aboutsummaryrefslogtreecommitdiffstats
path: root/m4/apache.m4
blob: 6051821881467ed19506d46652a6cd3aad4bc96e (plain)
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
147
148
149
150
151

dnl CHECK_APACHE([MINIMUM13-VERSION [, MINIMUM20-VERSION [, 
dnl            ACTION-IF-FOUND13 [, ACTION-IF-FOUND20 [, ACTION-IF-NOT-FOUND]]])
dnl Test for Apache apxs, APR, and APU

AC_DEFUN([CHECK_APACHE],
[dnl
AC_ARG_WITH(
    apxs,
    [AC_HELP_STRING([--with-apxs=PATH],[Path to apxs])],
    apxs_prefix="$withval",
    apxs_prefix="/usr"
    )

AC_ARG_ENABLE(
        apachetest,
        [AC_HELP_STRING([--disable-apxstest],[Do not try to compile and run apache version test program])],
        ,
        enable_apachetest=yes
    )

    if test -x $apxs_prefix -a ! -d $apxs_prefix; then
        APXS_BIN=$apxs_prefix
    else
        test_paths="$apxs_prefix:$apxs_prefix/bin:$apxs_prefix/sbin"
        test_paths="${test_paths}:/usr/bin:/usr/sbin"
        test_paths="${test_paths}:/usr/local/bin:/usr/local/sbin:/usr/local/apache2/bin"
        AC_PATH_PROG(APXS_BIN, apxs, no, [$test_paths])
    fi
    min_apache13_version=ifelse([$1], ,no,$1)
    min_apache20_version=ifelse([$2], ,no,$2)
    no_apxs=""
    if test "$APXS_BIN" = "no"; then
        AC_MSG_ERROR([*** The apxs binary installed by apache could not be found!])
        AC_MSG_ERROR([*** Use the --with-apxs option with the full path to apxs])
    else
        AP_INCLUDES="-I`$APXS_BIN -q INCLUDEDIR 2>/dev/null`"
        AP_INCLUDEDIR="`$APXS_BIN -q INCLUDEDIR 2>/dev/null`"

        AP_PREFIX="`$APXS_BIN -q prefix 2>/dev/null`"

        AP_BINDIR="`$APXS_BIN -q bindir 2>/dev/null`"
        AP_SBINDIR="`$APXS_BIN -q sbindir 2>/dev/null`"
        AP_SYSCONFDIR="`$APXS_BIN -q sysconfdir 2>/dev/null`"

        APXS_CFLAGS=""
        for flag in CFLAGS EXTRA_CFLAGS EXTRA_CPPFLAGS NOTEST_CFLAGS; do
            APXS_CFLAGS="$APXS_CFLAGS `$APXS_BIN -q $flag 2>/dev/null`"
        done

        AP_CPPFLAGS="$APXS_CPPFLAGS $AP_INCLUDES"
        AP_CFLAGS="$APXS_CFLAGS $AP_INCLUDES"

        AP_LIBEXECDIR=`$APXS_BIN -q LIBEXECDIR 2>/dev/null`

        if test "x$enable_apachetest" = "xyes" ; then
            if test "$min_apache20_version" != "no"; then
                APR_CONFIG="`$APXS_BIN -q APR_BINDIR 2>/dev/null`/apr-1-config"
                if test ! -x $APR_CONFIG; then
                    APR_CONFIG="`$APXS_BIN -q APR_BINDIR 2>/dev/null`/apr-config"
                fi
                APR_INCLUDES=`$APR_CONFIG --includes 2>/dev/null`
                APR_LDFLAGS=`$APR_CONFIG --link-ld 2>/dev/null`
                APR_LIBS=`$APR_CONFIG --libs 2>/dev/null`
                APR_LIBTOOL=`$APR_CONFIG --link-libtool 2>/dev/null`
                APR_CPPFLAGS=`$APR_CONFIG --cppflags 2>/dev/null`
                APR_CFLAGS=`$APR_CONFIG --cflags 2>/dev/null`
                APR_VERSION=`$APR_CONFIG --version 2>/dev/null`
                APU_CONFIG="`$APXS_BIN -q APU_BINDIR 2>/dev/null`/apu-1-config"
                if test ! -x $APU_CONFIG; then
                    APU_CONFIG="`$APXS_BIN -q APU_BINDIR 2>/dev/null`/apu-config"
                fi
                APU_INCLUDES=`$APU_CONFIG --includes 2>/dev/null`
                APU_LDFLAGS=`$APU_CONFIG --link-ld 2>/dev/null`
                APU_LIBS=`$APU_CONFIG --libs 2>/dev/null`
                APU_LIBTOOL=`$APU_CONFIG --link-libtool 2>/dev/null`
                APU_VERSION=`$APU_CONFIG --version 2>/dev/null`

                AC_MSG_CHECKING(for Apache 2.0 version >= $min_apache20_version)
                TEST_APACHE_VERSION(20,$min_apache20_version,
                    AC_MSG_RESULT(yes)
                    AC_DEFINE(WITH_APACHE20,1,[Define to 1 if we are compiling with Apache 2.0.x])
                    AP_VERSION="2.0"
                    APXS_EXTENSION=.la
		    if test -f `$APXS_BIN -q INCLUDEDIR`/mod_status.h; then
			AC_DEFINE(HAVE_MOD_STATUS_H,1,[Define to 1 if mod_status.h and the mod_Status hook are available])
		    fi
                    AP_CFLAGS="$AP_CFLAGS $APU_INCLUDES $APR_INCLUDES"
                    AP_CPPFLAGS="$AP_CPPFLAGS $APU_INCLUDES $APR_INCLUDES"
                    AP_DEFS="-DWITH_APACHE20"
                    ifelse([$4], , , $4),
                    AC_MSG_RESULT(no)
                    if test "x$min_apache13_version" = "xno"; then
                        ifelse([$5], , , $5)
                    fi
                )
            fi
            if test "$min_apache13_version" != "no" -a "x$AP_VERSION" = "x"; then
                APR_INCLUDES=""
                APR_VERSION=""
                APR_LDFLAGS=""
                APR_LIBS=""
                APR_LIBTOOL=""
                APR_CFLAGS=""
                APR_CPPFLAGS=""Gravatar Nikos Mavrogiannopoulos
2007-11-28
|
* Put a limit on the number of times we try to handshake.Gravatar Paul Querna 2005-09-25
|
* start the CA Certificate code.Gravatar Paul Querna 2005-05-24
|
* - add lua to do client verificationGravatar Paul Querna 2005-05-17
| | | | | - only use gcrypt locking when required to
* Refactor finding the correct server record to fix resumed sessions.0.2.00.2.xGravatar Paul Querna 2005-04-25
|
* apr_table_setn doesn't copy the data. oops.Gravatar Paul Querna 2005-04-24
|
* We already have a Certificate, use it directly. With SNI, GnuTLS doesn't ↵Gravatar Paul Querna 2005-04-24
| | | | properly update it's internal state. ick.
* if there aren't any certs.. still set something.Gravatar Paul Querna 2005-04-24
|
* add SSL_SERVER_S_DN and SSL_SERVER_I_DN Gravatar Paul Querna 2005-04-24
|
* - move hooks to gnutls_hooks.cGravatar Paul Querna 2005-04-24
| | | | | - use 'mgs_' as the prefix for all symbols, instead of mixed prefixes.
* move config functions to their own file. Gravatar Paul Querna 2005-04-24
|
* - remove more debug logging.Gravatar Paul Querna 2005-04-22
| | | | | - fix a crash by changing the certificate structure *after* starting the handshake.
* client auth is sort of working.Gravatar Paul Querna 2005-04-22
|
* working SNI. Not so working Client Cert support.Gravatar Paul Querna 2005-04-21
|
* include support for 2.0.xxGravatar Paul Querna 2005-04-08
|
* wrap the debug log in maintainer mode.Gravatar Paul Querna 2005-04-08
|
* - remove anno credsGravatar Paul Querna 2005-04-06
| | | | | | | | - initial attempt at Server Name Extension - change to adding 'mod_gnutls' to the server sig instead of GnuTLS/ - fix for EOF/EOC/EOS buckets - 'general' code cleanups
* checkpoint the work so far. The DBM cache needs a little more work.Gravatar Paul Querna 2005-04-05
|
* - make memcahe optionalGravatar Paul Querna 2005-04-04
| | | | | | - update for 2.1.x branch changes. - some mucking around with the conf stuff
* use apr to parse hostnames..Gravatar Paul Querna 2004-12-12
|
* working support for a ssl session cache via memcached.Gravatar Paul Querna 2004-12-10
|
* add check for apr_memcacheGravatar Paul Querna 2004-12-09
|
* fixes and stuff that i should of already committed.Gravatar Paul Querna 2004-12-09
|
* re-order the cipher types.Gravatar Paul Querna 2004-12-06
| | | | | Add a fixups hook and some Basic Env vars
* setting proper ignores.Gravatar Paul Querna 2004-12-02
| | | | | | | adding an empty cache files trying to fix >16kb writes.
* adding autofoo for memcache supportGravatar Paul Querna 2004-12-02
|
* hey hey, this is working code!Gravatar Paul Querna 2004-12-02
|
* input and output filtersGravatar Paul Querna 2004-09-28
|
* rename structures.Gravatar Paul Querna 2004-09-27
| | | | | | properly prefix all non-static functions with mod_gnutls_ fix build for GnuTLS 1.0.X. (redefine the changed structure names)
* break up the IO functions into their own fileGravatar Paul Querna 2004-09-27
|
* commit before i move everything aroundGravatar Paul Querna 2004-09-27
|
* updatedGravatar Paul Querna 2004-09-27
|
* iniail makefiles and license fooGravatar Paul Querna 2004-09-27