diff options
author | Edward Rudd | 2004-04-29 17:12:36 +0000 |
---|---|---|
committer | Edward Rudd | 2004-04-29 17:12:36 +0000 |
commit | 8d6d7ac732c00839b39af2fdf050751ad80e2f5e (patch) | |
tree | 9b590b91abc1415ae802fed9f8baa83978f8b6a2 /m4/mod_ssl.m4 | |
parent | 801aa25fbb60779da4610e5a406bc845c0d41027 (diff) |
moved m4 files to separate repository
Diffstat (limited to 'm4/mod_ssl.m4')
-rw-r--r-- | m4/mod_ssl.m4 | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/m4/mod_ssl.m4 b/m4/mod_ssl.m4 deleted file mode 100644 index c431bce..0000000 --- a/m4/mod_ssl.m4 +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | dnl CHECK_PATH_MOD_SSL([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) | ||
2 | dnl Test for mod_ssl and openssl header directory. | ||
3 | dnl | ||
4 | AC_DEFUN(CHECK_PATH_MOD_SSL, | ||
5 | [dnl | ||
6 | AC_ARG_ENABLE( | ||
7 | ssl, | ||
8 | [AC_HELP_STRING([--enable-ssl],[Compile in SSL support])], | ||
9 | ssl_val=yes, | ||
10 | ssl_val=no | ||
11 | ) | ||
12 | AC_ARG_WITH( | ||
13 | ssl-inc, | ||
14 | [AC_HELP_STRING([--with-ssl-inc=DIR],[Location of SSL header files])], | ||
15 | ssl_incdir="$withval", | ||
16 | ) | ||
17 | AC_ARG_WITH( | ||
18 | db-inc, | ||
19 | [AC_HELP_STRING([--with-db-inc=DIR],[Location of DB header files])], | ||
20 | db_incdir="$withval", | ||
21 | db_incdir="/usr/include/db1" | ||
22 | ) | ||
23 | |||
24 | if test "x$ssl_val" = "xyes"; then | ||
25 | ac_save_CFLAGS=$CFLAGS | ||
26 | ac_save_CPPFLAGS=$CPPFLAGS | ||
27 | MOD_SSL_CFLAGS="-I/usr/include/openssl" | ||
28 | if test "x$ssl_incdir" != "x"; then | ||
29 | MOD_SSL_CFLAGS="-I$ssl_incdir -I$ssl_incdir/openssl $MOD_SSL_CFLAGS" | ||
30 | fi | ||
31 | if test "x$db_incdir" != "x"; then | ||
32 | MOD_SSL_CFLAGS="-I$db_incdir $MOD_SSL_CFLAGS" | ||
33 | fi | ||
34 | CFLAGS="$APACHE_CFLAGS $APACHE_CPPFLAGS $MOD_SSL_CFLAGS $CFLAGS" | ||
35 | CPPFLAGS="$APACHE_CFLAGS $APACHE_CPPFLAGS $MOD_SSL_CFLAGS $CPPFLAGS" | ||
36 | AC_CHECK_HEADERS([mod_ssl.h], | ||
37 | mod_ssl_h=yes | ||
38 | ) | ||
39 | CFLAGS=$ac_save_CFLAGS | ||
40 | CPPFLAGS=$ac_save_CPPFLAGS | ||
41 | if test "x$mod_ssl_h" = "x"; then | ||
42 | ifelse([$2], , :, [$2]) | ||
43 | else | ||
44 | AC_SUBST(MOD_SSL_CFLAGS) | ||
45 | ifelse([$1], , :, [$1]) | ||
46 | fi | ||
47 | else | ||
48 | ifelse([$2], , :, [$2]) | ||
49 | fi | ||
50 | ]) | ||