2 AC_INIT([shibboleth], [2.0], [shibboleth-users@internet2.edu], [shibboleth])
3 AM_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE([shibboleth],[2.0])
6 sinclude(acx_pthread.m4)
9 AC_HELP_STRING(--enable-debug, [Have GCC compile with symbols (Default = no)
11 enable_debug=$enableval, enable_debug=no)
13 if test "$enable_debug" = "yes" ; then
14 GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
15 GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
17 GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
18 GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
21 AC_PROG_CC([gcc gcc3 cc])
22 AC_PROG_CXX([g++ g++3 c++ CC])
24 if test "$GCC" = "yes" ; then
25 # AC_HAVE_GCC_VERSION(4,0,0,0,
27 # AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
28 # [Define to enable class visibility control in gcc.])
29 # GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
30 # GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
32 CFLAGS="-Wall $GCC_CFLAGS"
33 CXXFLAGS="-Wall $GCC_CXXFLAGS"
35 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
36 case "${host_cpu}-${host_os}" in
38 if test "$CXX" = "CC" ; then
39 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
50 # Checks for typedefs, structures, and compiler characteristics.
55 # Checks for library functions.
58 AC_CHECK_FUNCS([strchr strdup strstr gmtime_r ctime_r strtok_r strcasecmp])
61 ACX_PTHREAD([enable_threads="pthread"],[enable_threads="no"])
62 if test $enable_threads != "pthread"; then
63 AC_MSG_ERROR([unable to find pthreads, currently this is required])
65 AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.])
66 LIBS="$PTHREAD_LIBS $LIBS"
67 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
68 CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
78 AC_PATH_PROG(LOG4CPP_CONFIG,log4cpp-config)
80 AC_HELP_STRING([--with-log4cpp=PATH], [where log4cpp is installed]),
81 [LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"])
82 if test -f "${LOG4CPP_CONFIG}"; then
83 LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
84 CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
86 AC_MSG_WARN([log4cpp-config not found, guessing at log4cpp build settings])
87 LIBS="-llog4cpp $LIBS"
89 AC_CHECK_HEADER([log4cpp/Category.hh],,AC_MSG_ERROR([unable to find log4cpp header files]))
91 [#include <log4cpp/Category.hh>],
92 [log4cpp::Category::getInstance("foo")],
93 [AC_DEFINE(HAVE_LIBLOG4CPP,1,[Define if log4cpp library was found])],
94 [AC_MSG_ERROR([unable to link with log4cpp])])
98 AC_HELP_STRING([--with-xerces=PATH], [where xerces-c is installed]),
99 [if test x_$with_xerces != x_/usr; then
100 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
101 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
103 LIBS="-lxerces-c $LIBS"
104 AC_CHECK_HEADER([xercesc/dom/DOM.hpp],,
105 AC_MSG_ERROR([unable to find xerces header files]))
106 AC_MSG_CHECKING([Xerces version])
108 [AC_LANG_PROGRAM([#include <xercesc/util/XercesVersion.hpp>],
109 [#if _XERCES_VERSION != 20600
112 #error cannot use version 2.6.0
115 [AC_MSG_FAILURE([Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version])])
117 [#include <xercesc/util/PlatformUtils.hpp>],
118 [xercesc::XMLPlatformUtils::Initialize()],
119 [AC_DEFINE(HAVE_LIBXERCESC,1,[Define if Xerces-C library was found])],
120 [AC_MSG_ERROR([unable to link with Xerces])])
123 #XML-Tooling settings
124 AC_ARG_WITH(xmltooling,
125 AC_HELP_STRING([--with-xmltooling=PATH], [where xmltooling-c is installed]),
126 [if test x_$with_xmltooling != x_/usr; then
127 LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
128 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
130 LITE_LIBS="-lxmltooling-lite"
131 XMLSEC_LIBS="-lxmltooling"
132 AC_CHECK_HEADER([xmltooling/base.h],,
133 AC_MSG_ERROR([unable to find xmltooling header files]))
136 # XML-Security settings
138 AC_HELP_STRING([--with-xmlsec=PATH], [where xmlsec is installed]),,
141 if test x_$with_xmlsec != x_/usr; then
142 LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
143 CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
145 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
147 # save and append master libs
149 LIBS="$XMLSEC_LIBS $LIBS"
151 AC_CHECK_HEADER([xsec/utils/XSECPlatformUtils.hpp],,AC_MSG_ERROR([unable to find XML-Security header files]))
152 AC_MSG_CHECKING([XML-Security version])
154 [AC_LANG_PROGRAM([#include <xsec/utils/XSECPlatformUtils.hpp>],
155 [#if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3) || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM == 3 && XSEC_VERSION_MINOR > 0)
158 #error need version 1.3.1 or later
161 [AC_MSG_FAILURE([XML-Security version 1.3.1 or greater is required.])])
163 [#include <xsec/utils/XSECPlatformUtils.hpp>],
164 [XSECPlatformUtils::Initialise()],,
165 [AC_MSG_ERROR([unable to link with XML-Sec])])
167 # restore master libs
172 AC_HELP_STRING([--with-saml=PATH], [where saml is installed]),
173 [if test x_$with_saml != x_/usr; then
174 LDFLAGS="-L${with_saml}/lib $LDFLAGS"
175 CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
177 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
179 # save and append master libs
181 LIBS="$XMLSEC_LIBS $LIBS"
183 AC_CHECK_HEADER([saml/saml2/metadata/Metadata.h],,
184 AC_MSG_ERROR([unable to find OpenSAML header files]))
186 [#include <saml/SAMLConfig.h>
187 #include <saml/version.h>],
188 [#if _OPENSAML_VERSION >= 20000
189 opensaml::SAMLConfig::getConfig();
191 #error Need OpenSAML version 2.0 or higher
193 [AC_DEFINE(HAVE_SAML,1,[Define if saml library was found])],
194 [AC_MSG_ERROR([unable to link with OpenSAML, or version was too old])])
196 # restore master libs
200 AC_SUBST(XMLSEC_LIBS)
202 # output the underlying makefiles
203 WANT_SUBDIRS="doc schemas configs shibsp shibd util"
204 AC_CONFIG_FILES([Makefile doc/Makefile schemas/Makefile \
205 configs/Makefile shibsp/Makefile shibd/Makefile \
206 util/Makefile selinux/Makefile])
209 # Build NSAPI module?
211 AC_MSG_CHECKING(for NSAPI module option)
213 AC_HELP_STRING([--with-nsapi=DIR], [Build NSAPI module for Netscape/iPlanet/SunONE]),
214 [WANT_NSAPI=$withval],[WANT_NSAPI=no])
215 AC_MSG_RESULT($WANT_NSAPI)
217 if test "$WANT_NSAPI" != "no"; then
218 if test ! -d $WANT_NSAPI/bin ; then
219 AC_MSG_ERROR(Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR)
221 AC_MSG_CHECKING(for NSAPI include files)
222 if test -d $WANT_NSAPI/include ; then
223 NSAPI_INCLUDE=$WANT_NSAPI/include
224 AC_MSG_RESULT(Netscape-Enterprise 3.x style)
225 AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h])
226 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
228 if test -d $WANT_NSAPI/plugins/include ; then
229 test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
230 NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
231 AC_MSG_RESULT(iPlanet 4.x / SunONE 6.x style)
232 AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h])
233 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
235 if test "$NSAPI_INCLUDE" = ""; then
236 AC_MSG_ERROR(Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include)
240 AC_SUBST(NSAPI_INCLUDE)
242 # always output the Makefile, even if you don't use it
243 AC_CONFIG_FILES([nsapi_shib/Makefile])
244 AM_CONDITIONAL(BUILD_NSAPI,test ! "$WANT_NSAPI" = "no")
246 # add the NSAPI module to the list of wanted subdirs..
247 if test ! "$WANT_NSAPI" = "no" ; then
248 WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
252 # If no --enable-apache-xx specified
253 # find a default and fake the specific parameters
256 # simple macro to peek at an enable or a with
258 if test "[${[$1]_][$2]+set}" = set; then
259 peekval="${[$1]_[$2]}"
264 AC_MSG_CHECKING(if default apache needed)
266 Peek(enable,apache_13,need_default=no)
267 Peek(enable,apache_20,need_default=no)
268 Peek(enable,apache_22,need_default=no)
269 AC_MSG_RESULT($need_default)
271 if test "$need_default" = "yes"; then
272 # find an apxs, then the httpd
274 Peek(with,apxs,xs="$peekval")
275 Peek(with,apxs2,xs="$peekval")
276 Peek(with,apxs22,xs="$peekval")
277 if test "x$xs" = "x"; then
278 AC_PATH_PROGS(xs, apxs2 apxs,
279 AC_MSG_ERROR(No apxs, no apache found. Try --with-apxs),
280 [/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH])
282 # ask the daemon for the version and set parameters
283 AC_MSG_CHECKING(default apache version)
284 httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
285 if test "x$httpd" != "x"; then
286 v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
288 1.3*) [enable_apache_13]=yes
292 2.0*) [enable_apache_20]=yes
296 2.2*) [enable_apache_22]=yes
300 *) AC_MSG_ERROR(unusable apache versions: $v. Try setting --with-apxs)
303 AC_MSG_RESULT(cannot determine version. Try setting --with-apxs)
307 # Apache 1.3 (mod_shib_13)
309 # --with-apxs (DSO build, the normal way, uses apxs to derive build flags)
311 AC_ARG_ENABLE(apache-13,
312 AC_HELP_STRING([--enable-apache-13], [enable the Apache 1.3 module]),
313 [ if test "x$enableval" = "x" ; then
316 WANT_APACHE_13="$enableval"
318 ],[ WANT_APACHE_13=no ])
319 AC_MSG_CHECKING(whether to build Apache 1.3 module)
320 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
323 AC_MSG_RESULT($WANT_APACHE_13)
325 if test "$WANT_APACHE_13" = "yes" ; then
327 AC_HELP_STRING([--with-apxs=FILE], [Specifies where to find the Apache 1.3 apxs script.]),
329 AC_MSG_CHECKING(for user-specified apxs name/location)
330 if test "$withval" != "no" ; then
331 if test "$withval" != "yes"; then
333 AC_MSG_RESULT("$withval")
338 AC_PATH_PROG(APXS, apxs, no)
339 if test "$APXS" = "no" ; then
340 for i in /usr/sbin /usr/local/apache/bin ; do
341 if test "$APXS" = "no" && test -f "$i/apxs"; then
348 AC_MSG_CHECKING([to see if apxs was located])
349 if test ! -f "$APXS" ; then
351 AC_MSG_ERROR([Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option.])
356 # extract settings we need from APXS -q
357 APXS_CC="`$APXS -q CC`"
358 APXS_CFLAGS="`$APXS -q CPPFLAGS` `$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
359 APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
362 AC_SUBST(APXS_CFLAGS)
363 AC_SUBST(APXS_INCLUDE)
366 # Apache 2.0 (mod_shib_20)
368 # --with-apxs2 (DSO build, the normal way, uses apxs to derive build flags)
369 # --with-apr (DSO build, APR development package installed separately)
371 AC_ARG_ENABLE(apache-20,
372 AC_HELP_STRING([--enable-apache-20], [enable the Apache 2.0 module]),
373 [ if test "x$enableval" = "x" ; then
376 WANT_APACHE_20="$enableval"
378 ],[ WANT_APACHE_20=no ])
379 AC_MSG_CHECKING(whether to build Apache 2.0 module)
380 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
383 AC_MSG_RESULT($WANT_APACHE_20)
385 if test "$WANT_APACHE_20" = "yes" ; then
387 AC_HELP_STRING([--with-apxs2=FILE], [Specifies where to find the Apache 2.0 apxs script.]),
389 AC_MSG_CHECKING(for user-specified Apache2 apxs name/location)
390 if test "$withval" != "no" ; then
391 if test "$withval" != "yes"; then
393 AC_MSG_RESULT("$withval")
398 AC_PATH_PROG(APXS2, apxs2, no)
399 if test "$APXS2" = "no" ; then
400 AC_PATH_PROG(APXS2, apxs, no)
402 if test "$APXS2" = "no" ; then
403 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
404 if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
408 if test "$APXS2" = "no" ; then
409 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
410 if test "$APXS2" = "no" && test -f "$i/apxs" ; then
418 AC_MSG_CHECKING([to see if Apache2 apxs was located])
419 if test ! -f "$APXS2" ; then
421 AC_MSG_ERROR([Unable to locate Apache2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option.])
423 AC_MSG_RESULT($APXS2)
428 AC_HELP_STRING([--with-apr=PATH], [where apr-config is installed]),
430 AC_MSG_CHECKING(for user-specified apr-config name/location)
431 if test "$withval" != "no" ; then
432 if test "$withval" != "yes"; then
434 AC_MSG_RESULT("$withval")
439 AC_PATH_PROG(APR_CONFIG, apr-config)
441 if test -f "${APR_CONFIG}"; then
442 APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
444 AC_MSG_ERROR([Unable to locate apr-config, may need --with-apr option.])
447 # extract settings we need from APXS2 -q
448 APXS2_CC="`$APXS2 -q CC`"
449 APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` `$APXS2 -q CFLAGS_SHLIB` $APR_CFLAGS"
450 APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
453 AC_SUBST(APXS2_CFLAGS)
454 AC_SUBST(APXS2_INCLUDE)
457 # Apache 2.2 (mod_shib_22)
459 # --with-apxs22 (DSO build, the normal way, uses apxs to derive build flags)
460 # --with-apr1 (DSO build, APR development package installed separately)
462 AC_ARG_ENABLE(apache-22,
463 AC_HELP_STRING([--enable-apache-22], [enable the Apache 2.2 module]),
464 [ if test "x$enableval" = "x" ; then
467 WANT_APACHE_22="$enableval"
469 ],[ WANT_APACHE_22=no ])
470 AC_MSG_CHECKING(whether to build Apache 2.2 module)
471 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
474 AC_MSG_RESULT($WANT_APACHE_22)
476 if test "$WANT_APACHE_22" = "yes" ; then
478 AC_HELP_STRING([--with-apxs22=FILE], [Specifies where to find the Apache 2.2 apxs script.]),
480 AC_MSG_CHECKING(for user-specified Apache2.2 apxs name/location)
481 if test "$withval" != "no" ; then
482 if test "$withval" != "yes"; then
484 AC_MSG_RESULT("$withval")
489 AC_PATH_PROG(APXS22, apxs2, no)
490 if test "$APXS22" = "no" ; then
491 AC_PATH_PROG(APXS22, apxs, no)
493 if test "$APXS22" = "no" ; then
494 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
495 if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
499 if test "$APXS22" = "no" ; then
500 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
501 if test "$APXS22" = "no" && test -f "$i/apxs" ; then
509 AC_MSG_CHECKING([to see if Apache2.2 apxs was located])
510 if test ! -f "$APXS22" ; then
512 AC_MSG_ERROR([Unable to locate Apache2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option.])
514 AC_MSG_RESULT($APXS22)
519 AC_HELP_STRING([--with-apr1=PATH], [where apr-1-config is installed]),
521 AC_MSG_CHECKING(for user-specified apr-1-config name/location)
522 if test "$withval" != "no" ; then
523 if test "$withval" != "yes"; then
525 AC_MSG_RESULT("$withval")
530 AC_PATH_PROG(APR1_CONFIG, apr-1-config)
532 if test -f "${APR1_CONFIG}"; then
533 APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
535 AC_MSG_ERROR([Unable to locate apr-1-config, may need --with-apr1 option.])
538 # extract settings we need from APXS22 -q
539 APXS22_CC="`$APXS22 -q CC`"
540 APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` `$APXS22 -q CFLAGS_SHLIB` $APR1_CFLAGS"
541 APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
544 AC_SUBST(APXS22_CFLAGS)
545 AC_SUBST(APXS22_INCLUDE)
547 # always output the Makefile, even if you don't use it
548 AC_CONFIG_FILES([apache/Makefile])
549 AM_CONDITIONAL(BUILD_AP13,test "$WANT_APACHE_13" = "yes")
550 AM_CONDITIONAL(BUILD_AP20,test "$WANT_APACHE_20" = "yes")
551 AM_CONDITIONAL(BUILD_AP22,test "$WANT_APACHE_22" = "yes")
553 # add the apache module to the list of wanted subdirs..
554 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" ; then
555 WANT_SUBDIRS="$WANT_SUBDIRS apache"
560 # Implement the checks of the ODBC Storage Service
562 # 1) Assume the user wants ODBC; if it's not found then just continue without
563 # 2) If the user specifically requested odbc, look for it and ERROR if not found
564 # 3) If the user specifically requested no odbc, don't build it.
567 AC_CONFIG_FILES([odbc-store/Makefile])
569 # determine whether we should enable the odbc ccache
570 AC_ARG_ENABLE([odbc],
571 AC_HELP_STRING([--disable-odbc], [disable the ODBC Storage Service]),
572 [odbc_enabled=$enableval], [odbc_enabled=default])
574 if test "x$odbc_enabled" = "x" ; then
578 # Are we trying to build ODBC?
579 AC_MSG_CHECKING(whether to build the ODBC storage service)
580 if test "$odbc_enabled" = "yes" ; then
583 elif test "$odbc_enabled" = "default" ; then
585 AC_MSG_RESULT([yes, if it can be found])
591 # If we're trying to build ODBC, try to find the odbc_config program.
592 if test "$build_odbc" = "yes" ; then
595 AC_HELP_STRING([--with-odbc=PATH], [directory where odbc is installed]),
596 [if test "$with_odbc" = no ; then
597 AC_MSG_ERROR([Try running --disable-odbc instead.])
598 elif test "$with_odbc" != yes ; then
599 odbc_dir="$with_odbc/bin"
602 AC_PATH_PROG(ODBC_CONFIG, odbc_config, no, $odbc_dir $PATH )
604 if test "$ODBC_CONFIG" = no ; then
605 if test "$odbc_enabled" = "yes" ; then
606 AC_MSG_ERROR(Cannot find odbc_config)
608 AC_MSG_WARN(ODBC not found, skipping.)
613 if test "$build_odbc" = yes ; then
614 ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
615 ODBC_CFLAGS=`eval echo $ODBC_CFLAGS`
616 ODBC_LIBS=`$ODBC_CONFIG --libs`
617 ODBC_LIBS=`eval echo $ODBC_LIBS`
619 save_CPPFLAGS="$CPPFLAGS"
620 CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
622 AC_CHECK_HEADER([sql.h], [have_sql_h=yes], [have_sql_h=no])
623 if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
624 AC_MSG_ERROR(unable to find ODBC header files)
627 if test "$have_sql_h" = yes ; then
629 LIBS="$LIBS $ODBC_LIBS"
630 AC_MSG_CHECKING(if we can link againt ODBC)
635 [SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)],
636 [have_odbc_libs=yes],
640 if test "$have_odbc_libs" = no ; then
641 if test "$odbc_enabled" = "yes" ; then
642 AC_MSG_ERROR([unable to link with ODBC Library])
644 AC_MSG_RESULT(no, skipping ODBC)
649 CPPFLAGS="$save_CPPFLAGS"
652 # if have_odbc_libs=yes then go ahead with building ODBC
653 if test "$have_odbc_libs" = yes ; then
654 # this AC_MSG_RESULT is from above!
656 WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
657 AC_SUBST(ODBC_CFLAGS)
662 AC_SUBST(WANT_SUBDIRS)
664 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
665 echo "=================================================================="
666 echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
667 echo " compiler than the one used to compile Apache."
669 echo " Current compiler: $CC"
670 echo " Apache's compiler: $APXS_CC"
672 echo "This could cause problems."
673 echo "=================================================================="
676 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
677 echo "=================================================================="
678 echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
679 echo " compiler than the one used to compile Apache."
681 echo " Current compiler: $CC"
682 echo " Apache's compiler: $APXS2_CC"
684 echo "This could cause problems."
685 echo "=================================================================="
688 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
689 echo "=================================================================="
690 echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
691 echo " compiler than the one used to compile Apache."
693 echo " Current compiler: $CC"
694 echo " Apache's compiler: $APXS22_CC"
696 echo "This could cause problems."
697 echo "=================================================================="
700 LIBTOOL="$LIBTOOL --silent"