forked from cosignweblogin/cosign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
executable file
·146 lines (108 loc) · 6.5 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Process this file with autoconf to produce a configure script.
AC_INIT(cosign,INTERNAL,cosign@umich.edu)
AC_PREREQ(2.53)
AC_COPYRIGHT([Copyright (c) 2001-2002 Regents of The University of Michigan. All Rights Reserved.])
AC_CONFIG_SRCDIR([version.c.in])
AC_CONFIG_HEADER([common/config.h])
# Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_CANONICAL_HOST
# Checks for libraries.
AC_CHECK_LIB([nsl], [inet_ntoa])
AC_CHECK_LIB([socket], [socket])
AC_ARG_ENABLE(apache1, AC_HELP_STRING([--enable-apache1=path_to_apache1.3-apxs], [enable apache 1.3 filter] ), CHECK_APACHE_1, AC_MSG_RESULT( apache 1.3 not enabled))
AC_ARG_ENABLE(apache2, AC_HELP_STRING([--enable-apache2=path_to_apache2-apxs], [enable apache 2 filter]), CHECK_APACHE2, AC_MSG_RESULT( apache 2 not enabled))
AC_ARG_ENABLE(lighttpd, AC_HELP_STRING([--enable-lighttpd=path_to_lighttpd], [enable lighttpd filter]), CHECK_LIGHTTPD, AC_MSG_RESULT( lighttpd not enabled))
AC_ARG_ENABLE(krb, AC_HELP_STRING([--enable-krb=path_to_krb], [enable kerberos for the cgi and apache filter]), CHECK_LIBKRB, AC_MSG_RESULT( kerberos not enabled))
AC_ARG_ENABLE(mysql, AC_HELP_STRING([--enable-mysql=path_to_mysql], [enable mysql for guest login support in the cgi]), CHECK_LIBMYSQL, AC_MSG_RESULT( mysql not enabled))
AC_ARG_ENABLE(pam, AC_HELP_STRING([--enable-pam=yes/no], [enable PAM login support in the cgi]), [CHECK_LIBPAM], AC_MSG_RESULT( pam not enabled))
AC_ARG_WITH(gss, AC_HELP_STRING([--with-gss], [enable apache filter
to set up GSSAPI ]), CHECK_GSS, AC_MSG_RESULT( GSSAPI not enabled))
AC_ARG_WITH(cosigndb, AC_HELP_STRING([--with-cosigndb=DIR], [default cosign database storage]), cosigndb="$withval", cosigndb="/var/cosign/daemon" )
AC_SUBST(cosigndb)
AC_ARG_WITH(cosignconf, AC_HELP_STRING([--with-cosignconf=FILE], [default cosign conf file location]), cosignconf="$withval", cosignconf="/usr/local/etc/cosign.conf" )
AC_SUBST(cosignconf)
AC_ARG_WITH(cosigncadir, AC_HELP_STRING([--with-cosigncadir=DIR], [default cosign CA dir location]), cosigncadir="$withval", cosigncadir="/var/cosign/certs/CA" )
AC_SUBST(cosigncadir)
AC_ARG_WITH(cosigncert, AC_HELP_STRING([--with-cosigncert=FILE], [default cosign
cert file location]), cosigncert="$withval", cosigncert="/var/cosign/certs/cert.pem" )
AC_SUBST(cosigncert)
AC_ARG_WITH(cosignkey, AC_HELP_STRING([--with-cosignkey=FILE], [default cosign
key file location]), cosignkey="$withval", cosignkey="/var/cosign/certs/key.pem" )
AC_SUBST(cosignkey)
AC_ARG_WITH(frienddbhost, AC_HELP_STRING([--with-frienddbhost=NAME], [name of host running friend's mysql db]), frienddbhost="$withval", frienddbhost="localhost" )
AC_SUBST(frienddbhost)
AC_ARG_WITH(frienddblogin, AC_HELP_STRING([--with-frienddblogin=NAME], [username of friend mysql db account]), frienddblogin="$withval", frienddblogin="friend" )
AC_SUBST(frienddblogin)
AC_ARG_WITH(frienddbpasswd, AC_HELP_STRING([--with-frienddbpasswd=PASSWD], [password of friend mysql db account]), frienddbpasswd="$withval", frienddbpasswd="" )
AC_SUBST(frienddbpasswd)
AC_ARG_WITH(ticketcache, AC_HELP_STRING([--with-ticketcache=DIR], [default cosign kerberos ticket cache]), ticketcache="$withval", ticketcache="/ticket" )
AC_SUBST(ticketcache)
AC_ARG_WITH(filterdb, AC_HELP_STRING([--with-filterdb=DIR], [default cosign filter database storage]), filterdb="$withval", filterdb="/var/cosign/filter" )
AC_SUBST(filterdb)
AC_ARG_WITH(proxydb, AC_HELP_STRING([--with-proxydb=DIR], [default cosign proxy authentication database storage]), proxydb="$withval", proxydb="/var/cosign/proxy" )
AC_SUBST(proxydb)
AC_ARG_WITH(cosignhost, AC_HELP_STRING([--with-cosignhost=NAME], [name of host that runs cosignd]), cosignhost="$withval", cosignhost="cosign.example.edu" )
AC_SUBST(cosignhost)
AC_ARG_WITH(cosignlogouturl, AC_HELP_STRING([--with-cosignlogouturl=URL], [default URL to redirect users to upon logout]), cosignlogouturl="$withval", cosignlogouturl="http://cosign.example.edu" )
AC_SUBST(cosignlogouturl)
AC_ARG_WITH(cosignlogoutregex, AC_HELP_STRING([--with-cosignlogoutregex=URL], [regular expression matching valid redirect URLs passed to the logout cgi]), cosignlogoutregex="$withval", cosignlogoutregex="http://.+\.example\.edu" )
AC_SUBST(cosignlogoutregex)
AC_ARG_WITH(cosignloopurl, AC_HELP_STRING([--with-cosignloopurl=URL], [default URL to redirect users to upon detecting an infinite loop]), cosignloopurl="$withval", cosignloopurl="http://cosign.example.edu/looping.html" )
AC_SUBST(cosignloopurl)
AC_ARG_WITH(keytabpath, AC_HELP_STRING([--with-keytabpath=FILE], [path
to keytab]), keytabpath="$withval", keytabpath="" )
AC_SUBST(keytabpath)
AC_ARG_WITH(pam-service, AC_HELP_STRING([--with-pam-service=NAME], [default pam.conf service name for PAM authentication]), cosignpamservice="$withval", cosignpamservice="cosign" )
AC_SUBST(cosignpamservice)
CHECK_SSL
AC_CHECK_HEADER([openssl/ssl.h], [], [AC_MSG_ERROR([header file <openssl/ssl.h> is required for this software.
You may be running RedHat 9.
If so, see the FAQ or the README for further instructions.])])
AC_CHECK_LIB([crypto], [X509_VERIFY_PARAM_set_flags], [AC_DEFINE(HAVE_X509_VERIFY_PARAM)], [])
# Checks for filters:
if test "x_$FILTERS" = "x_" ; then
AC_MSG_ERROR([No web server found - you must explicitly "enable-apache1"
or "enable-apache2" or both ])
fi
AC_SUBST(FILTERS)
for i in $FILTERS; do
FILTER_CONFIG_FILES="$FILTER_CONFIG_FILES $i/Makefile"
done
# Checks for header files.
#AC_HEADER_STDC
#AC_HEADER_SYS_WAIT
#AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/file.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h utime.h])
# Checks for typedefs, structures, and compiler characteristics.
#AC_C_CONST
#AC_HEADER_TIME
# Checks for library functions.
#AC_FUNC_FORK
#AC_FUNC_MALLOC
#AC_FUNC_UTIME_NULL
#AC_CHECK_FUNCS([bzero dup2 gethostbyaddr gethostbyname gettimeofday inet_ntoa isascii memset select socket strcasecmp strchr strdup strerror strrchr strstr strtol utime])
# Misc.
if test x_$GCC = x_yes; then
OPTOPTS=${OPTOPTS:-"-Wall -Wmissing-prototypes"}
fi
MACOSX_MUTE_DEPRECATION_WARNINGS
CHECK_UNIVERSAL_BINARIES
AC_SUBST(FILTER_LINKER_OPTS)
AC_SUBST(FILTER_COMPILER_OPTS)
AC_SUBST(UNIVERSAL_OPTOPTS)
AC_SUBST(OPTOPTS)
SET_NO_SASL
AC_CONFIG_SUBDIRS(scripts/startup)
AC_CONFIG_SUBDIRS(libsnet)
AC_CONFIG_SUBDIRS(libcgi)
AC_CONFIG_FILES([Makefile
version.c
cgi/Makefile
common/Makefile
html/Makefile
daemon/Makefile
filters/common/cosignpaths.h
$FILTER_CONFIG_FILES])
AC_OUTPUT