From 6a75e16b6942cb3be87298fd9ca0c7d65d81f952 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 6 Nov 1999 21:55:19 +0000 Subject: Ready to send this to Mike. svn path=/trunk/; revision=2649 --- configure.in | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 8c117434..88093cbe 100644 --- a/configure.in +++ b/configure.in @@ -281,31 +281,41 @@ AC_ARG_ENABLE(opie, [ --enable-opie support OTP through the OPIE library], [ AC_CHECK_HEADER(opie.h,, [echo 'configure: cannot find , which is required for OPIE support.'; exit 1]) AC_CHECK_LIB(opie,opiegenerator,, [echo 'configure: cannot find libopie, which is required for OPIE support.'; exit 1]) - AC_DEFINE(OPIE,1) ], + with_opie=$enableval], [with_opie=no]) +test "$with_opie" = "yes" && AC_DEFINE(OPIE_ENABLE) AC_ARG_ENABLE(inet6, [ --enable-inet6 support IPv6 (requires the inet6-apps library)], - [ unset ac_cv_lib_inet6_getaddrinfo; AC_CHECK_LIB(inet6, getaddrinfo,, - [ unset ac_cv_lib_inet6_getaddrinfo; LDFLAGS="$LDFLAGS -L/usr/inet6/lib"; AC_CHECK_LIB(inet6, getaddrinfo,, - [ echo 'configure: cannot find libinet6, which is required for IPv6 support.'; exit 1]) ]) - AC_DEFINE(INET6, 1) ]) + [ unset ac_cv_lib_inet6_getaddrinfo; AC_CHECK_LIB(inet6,getaddrinfo,, + [ unset ac_cv_lib_inet6_getaddrinfo; + LDFLAGS="$LDFLAGS -L/usr/inet6/lib"; + AC_CHECK_LIB(inet6, getaddrinfo,, + [ echo 'configure: cannot find libinet6, which is required for IPv6 support.'; + exit 1]) ]) ] + [with_inet6=no]) +test "$with_inet6" = "yes" && AC_DEFINE(INET6_ENABLE) AC_ARG_ENABLE(netsec, [ --enable-netsec support network security (requires inet6-apps library)], [ unset ac_cv_lib_inet6_net_security_strtorequest; AC_CHECK_LIB(inet6, net_security_strtorequest,, - [ unset ac_cv_lib_inet6_net_security_strtorequest; LDFLAGS="$LDFLAGS -L/usr/inet6/lib"; AC_CHECK_LIB(inet6, net_security_strtorequest,, - [ echo 'configure: cannot find net_security_strtorequest in libinet6, which is required'; - echo ' for network security support. Either it does not exist, or it was'; - echo ' not built with network security support enabled.'; - exit 1]) ]) - unset ac_cv_header_net_security_h; AC_CHECK_HEADER(net/security.h,, - [ unset ac_cv_header_net_security_h; CPPFLAGS="$CPPFLAGS -I/usr/inet6/include"; CFLAGS="$CFLAGS -I/usr/inet6/include"; AC_CHECK_HEADER(net/security.h,, - [ echo 'configure: cannot find , which is required for network security'; - echo ' support.'; - exit 1]) ]) - AC_DEFINE(NET_SECURITY, 1) ]) - + [ unset ac_cv_lib_inet6_net_security_strtorequest; + LDFLAGS="$LDFLAGS -L/usr/inet6/lib"; + AC_CHECK_LIB(inet6, net_security_strtorequest,, + [ echo 'configure: cannot find net_security_strtorequest in libinet6, which is required'; + echo ' for network security support. Either it does not exist, or it was'; + echo ' not built with network security support enabled.'; + exit 1]) ]) + unset ac_cv_header_net_security_h; AC_CHECK_HEADER(net/security.h,, + [ unset ac_cv_header_net_security_h; + CPPFLAGS="$CPPFLAGS -I/usr/inet6/include"; + CFLAGS="$CFLAGS -I/usr/inet6/include"; AC_CHECK_HEADER(net/security.h,, + [ echo 'configure: cannot find , which is required'; + echo ' for network security support.'; + exit 1]) ]) ] + [with_netsec=no]) +test "$with_netsec" = "yes" && AC_DEFINE(NET_SECURITY) + ### use option --with-kerberos5=DIR to point at a Kerberos 5 directory AC_ARG_WITH(kerberos5, [ --with-kerberos5=DIR point fetchmail compilation at a Kerberos 5 directory]) -- cgit v1.2.3