2 AC_INIT([shibboleth],[2.5.4],[https://issues.shibboleth.net/],[shibboleth-sp])
3 AC_CONFIG_SRCDIR(shibsp)
4 AC_CONFIG_AUX_DIR(build-aux)
5 AC_CONFIG_MACRO_DIR(m4)
19 DX_INIT_DOXYGEN(shibboleth, doxygen.cfg, doc/api)
23 AS_HELP_STRING([--enable-debug],[Have GCC compile with symbols (Default = no)]),
24 enable_debug=$enableval, enable_debug=no)
26 if test "$enable_debug" = "yes" ; then
27 GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
28 GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
30 GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
31 GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
34 AC_CONFIG_HEADERS([config.h shibsp/config_pub.h])
35 AC_CONFIG_FILES([shibboleth.spec])
37 AC_PROG_CC([gcc gcc3 cc])
38 AC_PROG_CXX([g++ g++3 c++ CC])
41 if test "$GCC" = "yes" ; then
42 # AC_HAVE_GCC_VERSION(4,0,0,0,
44 # AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
45 # [Define to enable class visibility control in gcc.])
46 # GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
47 # GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
49 CFLAGS="-Wall $GCC_CFLAGS"
50 CXXFLAGS="-Wall $GCC_CXXFLAGS"
53 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
54 # Also enables POSIX semantics for some functions.
55 case "${host_cpu}-${host_os}" in
57 CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
58 CXXFLAGS="$CXXFLAGS -D_POSIX_PTHREAD_SEMANTICS"
59 if test "$CXX" = "CC" ; then
60 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
64 CXXFLAGS="$CXXFLAGS -D_POSIX_PII_SOCKET"
70 # Checks for typedefs, structures, and compiler characteristics.
75 # Checks for library functions.
78 AC_CHECK_HEADERS([sys/utsname.h grp.h pwd.h])
79 AC_CHECK_HEADERS([sys/socket.h], [AC_DEFINE([SHIBSP_HAVE_SYS_SOCKET_H],[1],[Define to 1 if you have the <sys/socket> header file.])], [])
80 AC_CHECK_FUNCS([strchr strdup strstr timegm gmtime_r localtime_r strtok_r strcasecmp getpwnam getgrnam])
81 AC_CHECK_TYPES([struct sockaddr_storage], [], [], [[#include <sys/socket.h>]])
82 AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [], [[#include <sys/socket.h>]])
84 AC_CACHE_CHECK([for SOCK_CLOEXEC support], [shib_cv_sock_cloexec],
86 #include <sys/types.h>
87 #include <sys/socket.h>
90 return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
91 }], [shib_cv_sock_cloexec=yes], [shib_cv_sock_cloexec=no], [shib_cv_sock_cloexec=no])])
93 if test "$shib_cv_sock_cloexec" = "yes"; then
94 AC_DEFINE([HAVE_SOCK_CLOEXEC], 1, [Define if the SOCK_CLOEXEC flag is supported])
98 ACX_PTHREAD([enable_threads="pthread"],[enable_threads="no"])
99 if test $enable_threads != "pthread"; then
100 AC_MSG_ERROR([unable to find pthreads, currently this is required])
102 AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])
103 LIBS="$PTHREAD_LIBS $LIBS"
104 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
105 CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
110 AS_HELP_STRING([--with-openssl=PATH],[where openssl is installed]),
111 [if test x_$with_openssl != x_/usr; then
112 SSLFLAGS="-I${with_openssl}/include"
115 if test "x$with_openssl" = "x" ; then
116 AC_PATH_PROG(PKG_CONFIG, pkg-config)
117 if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
118 if pkg-config openssl ; then
119 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
121 AC_MSG_WARN([OpenSSL not supported by pkg-config, try --with-openssl instead])
126 AC_MSG_CHECKING(for OpenSSL cflags)
127 AC_MSG_RESULT($SSLFLAGS)
128 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
130 AC_CHECK_HEADER([openssl/x509.h],,AC_MSG_ERROR([unable to find openssl header files]))
146 CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS"
148 # Thank you Solaris, really.
149 AC_MSG_CHECKING(for ctime_r)
150 if test -z "$ac_cv_ctime_args"; then
152 [AC_LANG_PROGRAM([[#include <time.h>]], [[time_t clock; char buf[26]; ctime_r(&clock, buf);]])],
153 [ac_cv_ctime_args=2],[])
156 [AC_LANG_PROGRAM([[#include <time.h>]], [[time_t clock; char buf[26]; ctime_r(&clock, buf, 26);]])],
157 [ac_cv_ctime_args=3],[])
159 if test -z "$ac_cv_ctime_args"; then
162 if test "$ac_cv_ctime_args" = 2; then
163 AC_DEFINE([HAVE_CTIME_R_2],[1],[Define if ctime_r is present with 2 parameters.])
164 elif test "$ac_cv_ctime_args" = 3; then
165 AC_DEFINE([HAVE_CTIME_R_3],[1],[Define if ctime_r is present with 3 parameters.])
167 AC_MSG_RESULT([yes, and it takes $ac_cv_ctime_args arguments])
170 # log4shib settings (favor this version over the log4cpp code)
171 AC_PATH_PROG(LOG4SHIB_CONFIG,log4shib-config)
172 AC_ARG_WITH(log4shib,
173 AS_HELP_STRING([--with-log4shib=PATH],[where log4shib-config is installed]),
175 LOG4SHIB_CONFIG="${with_log4shib}"
176 if ! test -f "${LOG4SHIB_CONFIG}"; then
177 LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
180 if test -f "${LOG4SHIB_CONFIG}" ; then
181 LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
182 CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
183 AC_CHECK_HEADER([log4shib/CategoryStream.hh],,AC_MSG_ERROR([unable to find log4shib header files]))
185 [AC_LANG_PROGRAM([[#include <log4shib/Category.hh>
186 #include <log4shib/CategoryStream.hh>]],
187 [[log4shib::Category::getInstance("foo").errorStream() << log4shib::eol]])],
188 [AC_DEFINE([SHIBSP_LOG4SHIB],[1],[Define to 1 if log4shib library is used.])],
189 [AC_MSG_ERROR([unable to link with log4shib])])
191 AC_MSG_WARN([log4shib-config not found, may need to use --with-log4shib option])
192 AC_MSG_WARN([will look for original log4cpp library])
195 AC_PATH_PROG(LOG4CPP_CONFIG,log4cpp-config)
197 AS_HELP_STRING([--with-log4cpp=PATH],[where log4cpp-config is installed]),
199 LOG4CPP_CONFIG="${with_log4cpp}"
200 if ! test -f "${LOG4CPP_CONFIG}"; then
201 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
204 if test -f "${LOG4CPP_CONFIG}"; then
205 AC_MSG_WARN([will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe])
206 LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
207 CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
208 AC_CHECK_HEADER([log4cpp/CategoryStream.hh],,AC_MSG_ERROR([unable to find log4cpp header files]))
210 [AC_LANG_PROGRAM([[#include <log4cpp/Category.hh>
211 #include <log4cpp/CategoryStream.hh>]],
212 [[log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol]])],
213 [AC_DEFINE([SHIBSP_LOG4CPP],[1],[Define to 1 if log4cpp library is used.])],
214 [AC_MSG_ERROR([unable to link with log4cpp, need version 1.0 or later])])
216 AC_MSG_ERROR([log4cpp-config not found, may need to use --with-log4cpp option])
222 AS_HELP_STRING([--with-xerces=PATH],[where xerces-c is installed]),,
224 if test x_$with_xerces != x_/usr; then
225 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
226 LIBS="-L${with_xerces}/lib -lxerces-c $LIBS"
228 LIBS="-lxerces-c $LIBS"
231 AC_CHECK_HEADER([xercesc/dom/DOM.hpp],,AC_MSG_ERROR([unable to find xerces header files]))
232 AC_MSG_CHECKING([Xerces version])
234 [AC_LANG_PROGRAM([#include <xercesc/util/XercesVersion.hpp>],
235 [#if _XERCES_VERSION >= 20700
238 #error version 2.7.0 or above required
241 [AC_MSG_FAILURE([Xerces-C v2.7.0 or higher is required, v3.x preferred])])
243 [AC_LANG_PROGRAM([[#include <xercesc/util/PlatformUtils.hpp>]],[[xercesc::XMLPlatformUtils::Initialize()]])],
244 ,[AC_MSG_ERROR([unable to link with Xerces])])
246 AC_MSG_CHECKING([whether Xerces XMLString::release(XMLByte**) exists])
248 [AC_LANG_PROGRAM([[#include <xercesc/util/XMLString.hpp>]],
249 [[using namespace XERCES_CPP_NAMESPACE; XMLByte* buf=NULL; XMLString::release(&buf);]])],
250 [AC_MSG_RESULT([yes])AC_DEFINE([SHIBSP_XERCESC_HAS_XMLBYTE_RELEASE],[1],[Define to 1 if Xerces XMLString includes XMLByte release.])],
251 [AC_MSG_RESULT([no])])
253 AC_MSG_CHECKING([whether Xerces DOMNodeFilter API returns a short])
255 [AC_LANG_PROGRAM([[#include <xercesc/dom/DOM.hpp>]],
256 [[using namespace XERCES_CPP_NAMESPACE;
257 class Blocker : public DOMNodeFilter {
259 short acceptNode(const DOMNode* node) const {
260 return FILTER_REJECT;
263 static Blocker g_Blocker;
265 [AC_MSG_RESULT([yes])AC_DEFINE([SHIBSP_XERCESC_SHORT_ACCEPTNODE],[1],[Define to 1 if Xerces DOMNodeFilter API returns a short.])],
266 [AC_MSG_RESULT([no])])
268 # XML-Security settings
270 AS_HELP_STRING([--with-xmlsec=PATH],[where xmlsec is installed]),,
272 if test x_$with_xmlsec != x_/usr; then
273 CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
274 XMLSEC_LIBS="-L${with_xmlsec}/lib -lxml-security-c $XMLSEC_LIBS"
276 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
279 # save and append master libs
281 LIBS="$XMLSEC_LIBS $LIBS"
283 AC_CHECK_HEADER([xsec/utils/XSECPlatformUtils.hpp],,AC_MSG_ERROR([unable to find XML-Security-C header files]))
284 AC_MSG_CHECKING([XML-Security-C version])
286 [AC_LANG_PROGRAM([#include <xsec/utils/XSECPlatformUtils.hpp>],
287 [#if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
290 #error need version 1.4.0 or later
293 [AC_MSG_FAILURE([XML-Security-C version 1.4.0 or greater is required.])])
295 [AC_LANG_PROGRAM([[#include <xsec/utils/XSECPlatformUtils.hpp>]],
296 [[XSECPlatformUtils::Initialise()]])],,
297 [AC_MSG_ERROR([unable to link with XML-Security])])
299 AC_MSG_CHECKING([whether XML-Security-C supports white/blacklisting of algorithms])
300 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <xsec/framework/XSECAlgorithmMapper.hpp>]], [[XSECAlgorithmMapper* mapper; mapper->whitelistAlgorithm(NULL);]])],[AC_MSG_RESULT([yes])
301 AC_DEFINE([SHIBSP_XMLSEC_WHITELISTING],[1],[Define to 1 if XML-Security-C supports white/blacklisting algorithms.])],[AC_MSG_RESULT([no])])
303 # restore master libs
306 #XML-Tooling settings
307 AC_ARG_WITH(xmltooling,
308 AS_HELP_STRING([--with-xmltooling=PATH],[where xmltooling is installed]),,
309 [with_xmltooling=/usr])
310 if test x_$with_xmltooling != x_/usr; then
311 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
312 DX_INCLUDE="${with_xmltooling}/include"
313 LITE_LIBS="-L${with_xmltooling}/lib -lxmltooling-lite"
314 XMLSEC_LIBS="-L${with_xmltooling}/lib -lxmltooling $XMLSEC_LIBS"
316 LITE_LIBS="-lxmltooling-lite"
317 XMLSEC_LIBS="-lxmltooling $XMLSEC_LIBS"
320 AC_CHECK_HEADER([xmltooling/base.h],,AC_MSG_ERROR([unable to find xmltooling header files]))
322 # save and append master libs
324 LIBS="$XMLSEC_LIBS $LIBS"
327 [AC_LANG_PROGRAM([[#include <xmltooling/XMLToolingConfig.h>
328 #include <xmltooling/version.h>]],
329 [[#if _XMLTOOLING_VERSION >= 10500
330 xmltooling::XMLToolingConfig::getConfig();
332 #error Need XMLTooling version 1.5 or higher
334 ,[AC_MSG_ERROR([unable to link with XMLTooling, or version was too old])])
336 # restore master libs
339 # Establish location of xmltooling catalog.
341 if test "x$with_xmltooling" = "x" ; then
342 with_xmltooling="/usr"
344 if test -f $with_xmltooling/share/xml/xmltooling/catalog.xml ; then
345 XMLTOOLINGXMLDIR="$with_xmltooling"
346 elif test -f $with_xerces/share/xml/xmltooling/catalog.xml ; then
347 XMLTOOLINGXMLDIR="$with_xerces"
348 elif test -f $with_log4shib/share/xml/xmltooling/catalog.xml ; then
349 XMLTOOLINGXMLDIR="$with_log4shib"
351 if test "x$XMLTOOLINGXMLDIR" = "x" ; then
352 AC_MSG_ERROR([xmltooling XML catalog not found, may need to use --with-xmltooling option])
354 XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR/share/xml/xmltooling"
355 AC_SUBST(XMLTOOLINGXMLDIR)
359 AS_HELP_STRING([--with-saml=PATH],[where opensaml is installed]),,
361 if test x_$with_saml != x_/usr; then
362 CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
363 DX_INCLUDE="$DX_INCLUDE ${with_saml}/include"
364 XMLSEC_LIBS="-L${with_saml}/lib -lsaml $XMLSEC_LIBS"
366 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
369 # save and append master libs
371 LIBS="$XMLSEC_LIBS $LIBS"
373 AC_CHECK_HEADER([saml/saml2/metadata/Metadata.h],,AC_MSG_ERROR([unable to find OpenSAML header files]))
375 [AC_LANG_PROGRAM([[#include <saml/SAMLConfig.h>
376 #include <saml/version.h>]],
377 [[#if _OPENSAML_VERSION >= 20500
378 opensaml::SAMLConfig::getConfig();
380 #error Need OpenSAML version 2.5 or higher
382 ,[AC_MSG_ERROR([unable to link with OpenSAML, or version was too old])
385 # restore master libs
388 # Establish location of opensaml catalogs.
390 if test "x$with_saml" = "x" ; then
393 if test -f $with_saml/share/xml/opensaml/saml20-catalog.xml ; then
394 OPENSAMLXMLDIR="$with_saml"
395 elif test -f $with_xmltooling/share/xml/opensaml/saml20-catalog.xml ; then
396 OPENSAMLXMLDIR="$with_xmltooling"
397 elif test -f $with_xerces/share/xml/opensaml/saml20-catalog.xml ; then
398 OPENSAMLXMLDIR="$with_xerces"
399 elif test -f $with_log4shib/share/xml/opensaml/saml20-catalog.xml ; then
400 OPENSAMLXMLDIR="$with_log4shib"
402 if test "x$OPENSAMLXMLDIR" = "x" ; then
403 AC_MSG_ERROR([opensaml XML catalogs not found, may need to use --with-saml option])
405 OPENSAMLXMLDIR="$OPENSAMLXMLDIR/share/xml/opensaml"
406 AC_SUBST(OPENSAMLXMLDIR)
409 AC_SUBST(XMLSEC_LIBS)
411 # output the underlying makefiles
412 WANT_SUBDIRS="doc schemas configs shibsp plugins shibd util"
413 AC_CONFIG_FILES([Makefile doc/Makefile schemas/Makefile \
414 configs/Makefile shibsp/Makefile plugins/Makefile \
415 shibd/Makefile util/Makefile selinux/Makefile])
418 AC_CONFIG_FILES([adfs/Makefile])
419 AC_ARG_ENABLE([adfs],
420 AS_HELP_STRING([--disable-adfs],[don't build the ADFS module]),
421 [adfs_enabled=$enableval], [adfs_enabled=yes])
422 if test "x$adfs_enabled" = "x" ; then
425 AC_MSG_CHECKING(whether to build the ADFS module)
426 if test "$adfs_enabled" = "no" ; then
430 WANT_SUBDIRS="$WANT_SUBDIRS adfs"
435 # Build NSAPI module?
437 AC_MSG_CHECKING(for NSAPI module option)
439 AS_HELP_STRING([--with-nsapi=DIR],[Build NSAPI module for Netscape/iPlanet/SunONE]),
440 [WANT_NSAPI=$withval],[WANT_NSAPI=no])
441 AC_MSG_RESULT($WANT_NSAPI)
443 if test "$WANT_NSAPI" != "no"; then
444 if test ! -d $WANT_NSAPI/bin ; then
445 AC_MSG_ERROR([Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR])
447 AC_MSG_CHECKING(for NSAPI include files)
448 if test -d $WANT_NSAPI/include ; then
449 NSAPI_INCLUDE=$WANT_NSAPI/include
450 AC_MSG_RESULT(Netscape-Enterprise 3.x style)
451 AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h],,,[#define XP_UNIX])
452 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
454 if test -d $WANT_NSAPI/plugins/include ; then
455 test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
456 NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
457 AC_MSG_RESULT(iPlanet 4.x / SunONE 6.x style)
458 AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h],,,[#define XP_UNIX])
459 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
461 if test "$NSAPI_INCLUDE" = ""; then
462 AC_MSG_ERROR([Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include])
466 AC_SUBST(NSAPI_INCLUDE)
468 # always output the Makefile, even if you don't use it
469 AC_CONFIG_FILES([nsapi_shib/Makefile])
470 AM_CONDITIONAL(BUILD_NSAPI,test ! "$WANT_NSAPI" = "no")
472 # add the NSAPI module to the list of wanted subdirs..
473 if test ! "$WANT_NSAPI" = "no" ; then
474 WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
479 # Build FastCGI support?
481 AC_MSG_CHECKING(for FastCGI support)
483 AS_HELP_STRING([--with-fastcgi=DIR],[Build FastCGI support]),
484 [WANT_FASTCGI=$withval],[WANT_FASTCGI=no])
485 AC_MSG_RESULT($WANT_FASTCGI)
487 if test "$WANT_FASTCGI" != "no"; then
489 if test "$WANT_FASTCGI" != "yes"; then
490 if test x_$WANT_FASTCGI != x_/usr; then
491 FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
492 FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
496 # save and append master flags
497 save_CPPFLAGS="$CPPFLAGS"
498 CPPFLAGS="$FASTCGI_INCLUDE $CPPFLAGS"
500 AC_CHECK_HEADER([fcgio.h],,AC_MSG_ERROR([unable to find FastCGI header files]))
501 FASTCGI_LIBS="-lfcgi -lfcgi++"
503 # restore standard flags
504 CPPFLAGS="$save_CPPFLAGS"
507 AC_SUBST(FASTCGI_INCLUDE)
508 AC_SUBST(FASTCGI_LDFLAGS)
509 AC_SUBST(FASTCGI_LIBS)
511 # always output the Makefile, even if you don't use it
512 AC_CONFIG_FILES([fastcgi/Makefile])
513 AM_CONDITIONAL(BUILD_FASTCGI,test ! "$WANT_FASTCGI" = "no")
515 if test ! "$WANT_FASTCGI" = "no" ; then
516 WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
520 # Build Memcached support?
522 AC_MSG_CHECKING(for Memcached support)
523 AC_ARG_WITH(memcached,
524 AS_HELP_STRING([--with-memcached=DIR],[Build Memcached support]),
525 [WANT_MEMCACHED=$withval],[WANT_MEMCACHED=no])
526 AC_MSG_RESULT($WANT_MEMCACHED)
528 if test "$WANT_MEMCACHED" != "no"; then
530 if test "$WANT_MEMCACHED" != "yes"; then
531 if test x_$WANT_MEMCACHED != x_/usr; then
532 MEMCACHED_INCLUDE="-I$WANT_MEMCACHED/include"
533 MEMCACHED_LDFLAGS="-L$WANT_MEMCACHED/lib"
537 # save and append master flags
538 save_CPPFLAGS="$CPPFLAGS"
539 CPPFLAGS="$MEMCACHED_INCLUDE $CPPFLAGS"
541 AC_CHECK_HEADER([libmemcached/memcached.h],,
542 AC_MSG_ERROR([unable to find Memcached header files]))
543 AC_CHECK_DECL([memcached_last_error_message],
544 [AC_DEFINE([HAVE_MEMCACHED_LAST_ERROR_MESSAGE],[1],[Define to 1 if libmemcached supports error handling function.])],,
545 [#include <libmemcached/memcached.h>])
546 MEMCACHED_LIBS="-lmemcached"
548 # restore standard flags
549 CPPFLAGS="$save_CPPFLAGS"
552 AC_SUBST(MEMCACHED_INCLUDE)
553 AC_SUBST(MEMCACHED_LDFLAGS)
554 AC_SUBST(MEMCACHED_LIBS)
556 # always output the Makefile, even if you don't use it
557 AC_CONFIG_FILES([memcache-store/Makefile])
558 AM_CONDITIONAL(BUILD_MEMCACHED,test ! "$WANT_MEMCACHED" = "no")
560 if test ! "$WANT_MEMCACHED" = "no" ; then
561 WANT_SUBDIRS="$WANT_SUBDIRS memcache-store"
566 # If no --enable-apache-xx specified
567 # find a default and fake the specific parameters
570 # simple macro to peek at an enable or a with
572 if test "[${[$1]_][$2]+set}" = set; then
573 peekval="${[$1]_[$2]}"
578 AC_MSG_CHECKING(if default apache needed)
580 Peek(enable,apache_13,need_default=no)
581 Peek(enable,apache_20,need_default=no)
582 Peek(enable,apache_22,need_default=no)
583 Peek(enable,apache_24,need_default=no)
584 AC_MSG_RESULT($need_default)
586 if test "$need_default" = "yes"; then
587 # find an apxs, then the httpd
589 Peek(with,apxs,xs="$peekval")
590 Peek(with,apxs2,xs="$peekval")
591 Peek(with,apxs22,xs="$peekval")
592 Peek(with,apxs24,xs="$peekval")
593 if test "x$xs" = "x"; then
594 AC_PATH_PROGS(xs, apxs2 apxs,
595 AC_MSG_ERROR(No apxs, no Apache found. Try --with-apxs, --with-apxs2, etc.),
596 [/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH])
598 # ask the daemon for the version and set parameters
599 AC_MSG_CHECKING(default apache version)
600 httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
601 if test "x$httpd" != "x" && test -f $httpd ; then
602 v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
604 1.3*) [enable_apache_13]=yes
608 2.0*) [enable_apache_20]=yes
612 2.2*) [enable_apache_22]=yes
616 2.4*) [enable_apache_24]=yes
620 *) AC_MSG_ERROR(unusable Apache versions: $v. Try setting --with-apxs, --with=apxs2, etc.)
623 AC_MSG_RESULT(cannot determine Apache version. Try setting --with-apxs, --with-apxs2, etc.)
627 # Apache 1.3 (mod_shib_13)
629 # --with-apxs (DSO build, the normal way, uses apxs to derive build flags)
631 AC_ARG_ENABLE(apache-13,
632 AS_HELP_STRING([--enable-apache-13],[enable the Apache 1.3 module]),
633 [if test "x$enableval" = "x" ; then
636 WANT_APACHE_13="$enableval"
638 ],[ WANT_APACHE_13=no ])
639 AC_MSG_CHECKING(whether to build Apache 1.3 module)
640 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
643 AC_MSG_RESULT($WANT_APACHE_13)
645 if test "$WANT_APACHE_13" = "yes" ; then
647 AS_HELP_STRING([--with-apxs=FILE],[Specifies where to find the Apache 1.3 apxs script.]),
649 AC_MSG_CHECKING(for user-specified apxs name/location)
650 if test "$withval" != "no" ; then
651 if test "$withval" != "yes"; then
653 AC_MSG_RESULT("$withval")
658 AC_PATH_PROG(APXS, apxs, no)
659 if test "$APXS" = "no" ; then
660 for i in /usr/sbin /usr/local/apache/bin ; do
661 if test "$APXS" = "no" && test -f "$i/apxs"; then
668 AC_MSG_CHECKING([to see if apxs was located])
669 if test ! -f "$APXS" ; then
671 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.])
676 # extract settings we need from APXS -q
677 APXS_CC="`$APXS -q CC`"
678 APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
679 APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
682 AC_SUBST(APXS_CFLAGS)
683 AC_SUBST(APXS_INCLUDE)
686 # Apache 2.0 (mod_shib_20)
688 # --with-apxs2 (DSO build, the normal way, uses apxs to derive build flags)
689 # --with-apr (DSO build, APR development package installed separately)
690 # --with-apu (DSO build, APR-UTIL development package installed separately)
692 AC_ARG_ENABLE(apache-20,
693 AS_HELP_STRING([--enable-apache-20],[enable the Apache 2.0 module]),
694 [if test "x$enableval" = "x" ; then
697 WANT_APACHE_20="$enableval"
699 ],[ WANT_APACHE_20=no ])
700 AC_MSG_CHECKING(whether to build Apache 2.0 module)
701 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
704 AC_MSG_RESULT($WANT_APACHE_20)
706 if test "$WANT_APACHE_20" = "yes" ; then
708 AS_HELP_STRING([--with-apxs2=FILE],[Specifies where to find the Apache 2.0 apxs script.]),
710 AC_MSG_CHECKING(for user-specified Apache 2.0 apxs name/location)
711 if test "$withval" != "no" ; then
712 if test "$withval" != "yes"; then
714 AC_MSG_RESULT("$withval")
719 AC_PATH_PROG(APXS2, apxs2, no)
720 if test "$APXS2" = "no" ; then
721 AC_PATH_PROG(APXS2, apxs, no)
723 if test "$APXS2" = "no" ; then
724 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
725 if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
729 if test "$APXS2" = "no" ; then
730 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
731 if test "$APXS2" = "no" && test -f "$i/apxs" ; then
739 AC_MSG_CHECKING([to see if Apache 2.0 apxs was located])
740 if test ! -f "$APXS2" ; then
742 AC_MSG_ERROR([Unable to locate Apache 2.0 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option.])
744 AC_MSG_RESULT($APXS2)
749 AS_HELP_STRING([--with-apr=PATH],[where apr-config is installed]),
751 AC_MSG_CHECKING(for user-specified apr-config name/location)
752 if test "$withval" != "no" ; then
753 if test "$withval" != "yes"; then
755 AC_MSG_RESULT("$withval")
760 AC_PATH_PROG(APR_CONFIG, apr-config,,[`$APXS2 -q SBINDIR`]:[$PATH])
762 if test -f "${APR_CONFIG}"; then
763 APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
765 AC_MSG_ERROR([Unable to locate apr-config, may need --with-apr option.])
770 AS_HELP_STRING([--with-apu=PATH],[where apu-config is installed]),
772 AC_MSG_CHECKING(for user-specified apu-config name/location)
773 if test "$withval" != "no" ; then
774 if test "$withval" != "yes"; then
776 AC_MSG_RESULT("$withval")
781 AC_PATH_PROG(APU_CONFIG, apu-config,,[`$APXS2 -q SBINDIR`]:[$PATH])
783 if test -f "${APU_CONFIG}"; then
784 APU_CFLAGS="`${APU_CONFIG} --includes`"
786 AC_MSG_ERROR([Unable to locate apu-config, may need --with-apu option.])
789 # extract settings we need from APXS2 -q
790 APXS2_CC="`$APXS2 -q CC`"
791 APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APR_CFLAGS $APU_CFLAGS"
792 APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
795 AC_SUBST(APXS2_CFLAGS)
796 AC_SUBST(APXS2_INCLUDE)
799 # Apache 2.2 (mod_shib_22)
801 # --with-apxs22 (DSO build, the normal way, uses apxs to derive build flags)
802 # --with-apr1 (DSO build, APR development package installed separately)
803 # --with-apu1 (DSO build, APR-UTIL development package installed separately)
805 AC_ARG_ENABLE(apache-22,
806 AS_HELP_STRING([--enable-apache-22],[enable the Apache 2.2 module]),
807 [if test "x$enableval" = "x" ; then
810 WANT_APACHE_22="$enableval"
812 ],[ WANT_APACHE_22=no ])
813 AC_MSG_CHECKING(whether to build Apache 2.2 module)
814 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
817 AC_MSG_RESULT($WANT_APACHE_22)
819 if test "$WANT_APACHE_22" = "yes" ; then
821 AS_HELP_STRING([--with-apxs22=FILE],[Specifies where to find the Apache 2.2 apxs script.]),
823 AC_MSG_CHECKING(for user-specified Apache 2.2 apxs name/location)
824 if test "$withval" != "no" ; then
825 if test "$withval" != "yes"; then
827 AC_MSG_RESULT("$withval")
832 AC_PATH_PROG(APXS22, apxs2, no)
833 if test "$APXS22" = "no" ; then
834 AC_PATH_PROG(APXS22, apxs, no)
836 if test "$APXS22" = "no" ; then
837 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
838 if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
842 if test "$APXS22" = "no" ; then
843 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
844 if test "$APXS22" = "no" && test -f "$i/apxs" ; then
852 AC_MSG_CHECKING([to see if Apache 2.2 apxs was located])
853 if test ! -f "$APXS22" ; then
855 AC_MSG_ERROR([Unable to locate Apache 2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option.])
857 AC_MSG_RESULT($APXS22)
862 AS_HELP_STRING([--with-apr1=PATH],[where apr-1-config is installed]),
864 AC_MSG_CHECKING(for user-specified apr-1-config name/location)
865 if test "$withval" != "no" ; then
866 if test "$withval" != "yes"; then
868 AC_MSG_RESULT("$withval")
873 AC_PATH_PROG(APR1_CONFIG, apr-1-config,,[`$APXS22 -q SBINDIR`]:[$PATH])
875 if test -f "${APR1_CONFIG}"; then
876 APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
878 AC_MSG_ERROR([Unable to locate apr-1-config, may need --with-apr1 option.])
883 AS_HELP_STRING([--with-apu1=PATH],[where apu-1-config is installed]),
885 AC_MSG_CHECKING(for user-specified apu-1-config name/location)
886 if test "$withval" != "no" ; then
887 if test "$withval" != "yes"; then
889 AC_MSG_RESULT("$withval")
894 AC_PATH_PROG(APU1_CONFIG, apu-1-config,,[`$APXS22 -q SBINDIR`]:[$PATH])
896 if test -f "${APU1_CONFIG}"; then
897 APU1_CFLAGS="`${APU1_CONFIG} --includes`"
899 AC_MSG_ERROR([Unable to locate apu-1-config, may need --with-apu1 option.])
902 # extract settings we need from APXS22 -q
903 APXS22_CC="`$APXS22 -q CC`"
904 APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS $APU1_CFLAGS"
905 APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
908 AC_SUBST(APXS22_CFLAGS)
909 AC_SUBST(APXS22_INCLUDE)
911 # Apache 2.4 (mod_shib_24)
913 # --with-apxs24 (DSO build, the normal way, uses apxs to derive build flags)
914 # --with-apr1 (DSO build, APR development package installed separately)
915 # --with-apu1 (DSO build, APR-UTIL development package installed separately)
917 AC_ARG_ENABLE(apache-24,
918 AS_HELP_STRING([--enable-apache-24],[enable the Apache 2.4 module]),
919 [if test "x$enableval" = "x" ; then
922 WANT_APACHE_24="$enableval"
924 ],[ WANT_APACHE_24=no ])
925 AC_MSG_CHECKING(whether to build Apache 2.4 module)
926 if test "$WANT_APACHE_24" != yes && test "$WANT_APACHE_24" != no ; then
929 AC_MSG_RESULT($WANT_APACHE_24)
931 if test "$WANT_APACHE_24" = "yes" ; then
933 AS_HELP_STRING([--with-apxs24=FILE],[Specifies where to find the Apache 2.4 apxs script.]),
935 AC_MSG_CHECKING(for user-specified Apache 2.4 apxs name/location)
936 if test "$withval" != "no" ; then
937 if test "$withval" != "yes"; then
939 AC_MSG_RESULT("$withval")
944 AC_PATH_PROG(APXS24, apxs2, no)
945 if test "$APXS24" = "no" ; then
946 AC_PATH_PROG(APXS24, apxs, no)
948 if test "$APXS24" = "no" ; then
949 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
950 if test "$APXS24" = "no" && test -f "$i/apxs2" ; then
954 if test "$APXS24" = "no" ; then
955 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
956 if test "$APXS24" = "no" && test -f "$i/apxs" ; then
964 AC_MSG_CHECKING([to see if Apache 2.4 apxs was located])
965 if test ! -f "$APXS24" ; then
967 AC_MSG_ERROR([Unable to locate Apache 2.4 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs24 option.])
969 AC_MSG_RESULT($APXS24)
972 # If we haven't done this work already for Apache 2.2
973 if test "$WANT_APACHE_22" != "yes" ; then
976 AS_HELP_STRING([--with-apr1=PATH],[where apr-1-config is installed]),
978 AC_MSG_CHECKING(for user-specified apr-1-config name/location)
979 if test "$withval" != "no" ; then
980 if test "$withval" != "yes"; then
982 AC_MSG_RESULT("$withval")
987 AC_PATH_PROG(APR1_CONFIG, apr-1-config,,[`$APXS24 -q SBINDIR`]:[$PATH])
989 if test -f "${APR1_CONFIG}"; then
990 APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
992 AC_MSG_ERROR([Unable to locate apr-1-config, may need --with-apr1 option.])
997 AS_HELP_STRING([--with-apu1=PATH],[where apu-1-config is installed]),
999 AC_MSG_CHECKING(for user-specified apu-1-config name/location)
1000 if test "$withval" != "no" ; then
1001 if test "$withval" != "yes"; then
1002 APU1_CONFIG=$withval
1003 AC_MSG_RESULT("$withval")
1008 AC_PATH_PROG(APU1_CONFIG, apu-1-config,,[`$APXS24 -q SBINDIR`]:[$PATH])
1010 if test -f "${APU1_CONFIG}"; then
1011 APU1_CFLAGS="`${APU1_CONFIG} --includes`"
1013 AC_MSG_ERROR([Unable to locate apu-1-config, may need --with-apu1 option.])
1017 # extract settings we need from APXS24 -q
1018 APXS24_CC="`$APXS24 -q CC`"
1019 APXS24_CFLAGS="`$APXS24 -q CPPFLAGS` `$APXS24 -q CFLAGS` $APR1_CFLAGS $APU1_CFLAGS"
1020 APXS24_INCLUDE="`$APXS24 -q INCLUDEDIR`"
1023 AC_SUBST(APXS24_CFLAGS)
1024 AC_SUBST(APXS24_INCLUDE)
1026 # always output the Makefile, even if you don't use it
1027 AC_CONFIG_FILES([apache/Makefile])
1028 AM_CONDITIONAL(BUILD_AP13,test "$WANT_APACHE_13" = "yes")
1029 AM_CONDITIONAL(BUILD_AP20,test "$WANT_APACHE_20" = "yes")
1030 AM_CONDITIONAL(BUILD_AP22,test "$WANT_APACHE_22" = "yes")
1031 AM_CONDITIONAL(BUILD_AP24,test "$WANT_APACHE_24" = "yes")
1033 # add the apache module to the list of wanted subdirs..
1034 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" || test "$WANT_APACHE_24" = "yes" ; then
1035 WANT_SUBDIRS="$WANT_SUBDIRS apache"
1040 # Implement the checks of the ODBC Storage Service
1042 # 1) Assume the user wants ODBC; if it's not found then just continue without
1043 # 2) If the user specifically requested odbc, look for it and ERROR if not found
1044 # 3) If the user specifically requested no odbc, don't build it.
1047 AC_CONFIG_FILES([odbc-store/Makefile])
1049 # determine whether we should enable the odbc ccache
1050 AC_ARG_ENABLE([odbc],
1051 AS_HELP_STRING([--disable-odbc],[disable the ODBC Storage Service]),
1052 [odbc_enabled=$enableval], [odbc_enabled=default])
1053 if test "x$odbc_enabled" = "x" ; then
1057 # Are we trying to build ODBC?
1058 AC_MSG_CHECKING(whether to build the ODBC storage service)
1059 if test "$odbc_enabled" = "yes" ; then
1062 elif test "$odbc_enabled" = "default" ; then
1064 AC_MSG_RESULT([yes, if it can be found])
1070 # If we're trying to build ODBC, try to find the odbc_config program.
1071 if test "$build_odbc" = "yes" ; then
1074 AS_HELP_STRING([--with-odbc=PATH],[directory where odbc is installed]),
1075 [if test "$with_odbc" = no ; then
1076 AC_MSG_ERROR([Try running --disable-odbc instead.])
1077 elif test "$with_odbc" != yes ; then
1078 odbc_dir="$with_odbc/bin"
1079 if test "$with_odbc" != /usr ; then
1080 ODBC_CFLAGS="-I$with_odbc/include"
1081 ODBC_LIBS="-L$with_odbc/lib"
1085 AC_PATH_PROG(ODBC_CONFIG, odbc_config, no, $odbc_dir $PATH )
1086 if test "$ODBC_CONFIG" = no ; then
1087 AC_MSG_WARN([Cannot find odbc_config, will try to guess settings.])
1088 ODBC_LIBS="$ODBC_LIBS -lodbc"
1090 ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
1091 ODBC_LIBS=`$ODBC_CONFIG --libs`
1094 save_CPPFLAGS="$CPPFLAGS"
1095 CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
1097 AC_CHECK_HEADER([sql.h], [have_sql_h=yes], [have_sql_h=no])
1098 if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
1099 AC_MSG_ERROR(unable to find ODBC header files)
1102 if test "$have_sql_h" = yes ; then
1104 LIBS="$LIBS $ODBC_LIBS"
1105 AC_MSG_CHECKING(if we can link againt ODBC)
1107 [AC_LANG_PROGRAM([[#include <sql.h>
1109 #include <stdio.h>]],
1110 [[SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)]])],
1111 [have_odbc_libs=yes],[have_odbc_libs=no])
1113 if test "$have_odbc_libs" = no ; then
1114 if test "$odbc_enabled" = "yes" ; then
1115 AC_MSG_ERROR([unable to link with ODBC Library])
1117 AC_MSG_RESULT([no, skipping ODBC])
1122 CPPFLAGS="$save_CPPFLAGS"
1125 # if have_odbc_libs=yes then go ahead with building ODBC
1126 if test "$have_odbc_libs" = yes ; then
1127 # this AC_MSG_RESULT is from above!
1129 WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
1130 AC_SUBST(ODBC_CFLAGS)
1137 AC_ARG_WITH(gssapi-includes,
1138 AS_HELP_STRING([--with-gssapi-includes=DIR],[Specify location of GSSAPI header]),
1139 [ GSSAPI_INCS="-I$withval"
1143 AC_ARG_WITH(gssapi-libs,
1144 AS_HELP_STRING([--with-gssapi-libs=DIR],[Specify location of GSSAPI libs]),
1145 [ GSSAPI_LIB_DIR="-L$withval"
1150 AS_HELP_STRING([--with-gssapi=DIR],[Where to look for GSSAPI]),
1151 [ GSSAPI_ROOT="$withval"
1152 if test x"$GSSAPI_ROOT" != xno; then
1154 if test x"$GSSAPI_ROOT" = xyes; then
1155 dnl if yes, then use default root
1161 save_CPPFLAGS="$CPPFLAGS"
1162 AC_MSG_CHECKING([if GSSAPI support is requested])
1163 if test x"$want_gss" = xyes; then
1166 if test -z "$GSSAPI_INCS"; then
1167 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
1168 GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
1169 elif test "$GSSAPI_ROOT" != "yes"; then
1170 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
1174 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
1176 AC_CHECK_HEADER(gss.h,
1178 dnl found in the given dirs
1179 AC_DEFINE([SHIBSP_HAVE_GSSGNU],[1],[if you have the GNU gssapi libraries])
1183 dnl not found, check Heimdal or MIT
1184 AC_CHECK_HEADERS([gssapi/gssapi.h], [], [not_mit=1])
1186 [gssapi/gssapi_generic.h gssapi/gssapi_krb5.h],
1191 #ifdef HAVE_GSSAPI_GSSAPI_H
1192 #include <gssapi/gssapi.h>
1195 if test "x$not_mit" = "x1"; then
1196 dnl MIT not found, check for Heimdal
1197 AC_CHECK_HEADER([gssapi.h],
1200 AC_DEFINE([SHIBSP_HAVE_GSSHEIMDAL],[1],[if you have the Heimdal gssapi libraries])
1203 dnl no header found, disabling GSS
1205 AC_MSG_WARN([disabling GSSAPI since no header files was found])
1210 AC_DEFINE([SHIBSP_HAVE_GSSMIT],[1],[if you have the MIT gssapi libraries])
1211 dnl check if we have a really old MIT kerberos (<= 1.2)
1212 AC_MSG_CHECKING([if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE])
1215 #include <gssapi/gssapi.h>
1216 #include <gssapi/gssapi_generic.h>
1217 #include <gssapi/gssapi_krb5.h>
1222 GSS_C_NT_HOSTBASED_SERVICE,
1226 AC_MSG_RESULT([yes])
1229 AC_DEFINE([HAVE_OLD_GSSMIT],[1],[if you have an old MIT gssapi library, lacking GSS_C_NT_HOSTBASED_SERVICE])
1237 if test x"$want_gss" = xyes; then
1238 AC_DEFINE([SHIBSP_HAVE_GSSAPI],[1],[if you have the gssapi libraries])
1240 if test -n "$gnu_gss"; then
1241 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
1244 if test -z "$GSSAPI_LIB_DIR"; then
1245 GSSAPI_LIB_DIR="$GSSAPI_ROOT/lib$libsuff"
1247 if test "$GSSAPI_ROOT" != "yes"; then
1248 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
1250 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
1251 dnl krb5-config doesn't have --libs-only-L or similar, put everything
1253 gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
1255 if test "x$not_mit" = "x1"; then
1258 gss_libs="-lgssapi_krb5"
1261 LIBS="$LIBS $gss_libs"
1264 AC_MSG_CHECKING([whether GSS-API naming extensions are available])
1267 #ifdef SHIBSP_HAVE_GSSGNU
1269 #elif defined SHIBSP_HAVE_GSSMIT
1270 # include <gssapi/gssapi.h>
1271 # include <gssapi/gssapi_ext.h>
1273 # include <gssapi.h>
1275 [[gss_get_name_attribute(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);]])],
1276 [AC_MSG_RESULT([yes])AC_DEFINE([HAVE_GSSAPI_NAMINGEXTS],[1],[Define to 1 if GSS-API naming extensions are available.])],
1277 [AC_MSG_RESULT([no])])
1279 AC_MSG_CHECKING([whether GSS-API composite name import is available])
1282 #ifdef SHIBSP_HAVE_GSSGNU
1284 #elif defined SHIBSP_HAVE_GSSMIT
1285 # include <gssapi/gssapi.h>
1286 # include <gssapi/gssapi_ext.h>
1288 # include <gssapi.h>
1293 gss_buffer_desc importbuf;
1294 gss_import_name(&minor, &importbuf, GSS_C_NT_EXPORT_NAME_COMPOSITE, &srcname);
1296 [AC_MSG_RESULT([yes])AC_DEFINE([HAVE_GSSAPI_COMPOSITE_NAME],[1],[Define to 1 if GSS-API composite name import is available.])],
1297 [AC_MSG_RESULT([no])])
1300 CPPFLAGS="$save_CPPFLAGS"
1304 AC_SUBST(WANT_SUBDIRS)
1306 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
1307 echo "=================================================================="
1308 echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
1309 echo " compiler than the one used to compile Apache."
1311 echo " Current compiler: $CC"
1312 echo " Apache's compiler: $APXS_CC"
1314 echo "This could cause problems."
1315 echo "=================================================================="
1318 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
1319 echo "=================================================================="
1320 echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
1321 echo " compiler than the one used to compile Apache."
1323 echo " Current compiler: $CC"
1324 echo " Apache's compiler: $APXS2_CC"
1326 echo "This could cause problems."
1327 echo "=================================================================="
1330 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
1331 echo "=================================================================="
1332 echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
1333 echo " compiler than the one used to compile Apache."
1335 echo " Current compiler: $CC"
1336 echo " Apache's compiler: $APXS22_CC"
1338 echo "This could cause problems."
1339 echo "=================================================================="
1342 if test -n "$APXS24_CC" && test "$APXS24_CC" != "$CC" ; then
1343 echo "=================================================================="
1344 echo "WARNING: You have chosen to compile Apache-2.4 modules with a different"
1345 echo " compiler than the one used to compile Apache."
1347 echo " Current compiler: $CC"
1348 echo " Apache's compiler: $APXS24_CC"
1350 echo "This could cause problems."
1351 echo "=================================================================="
1354 LIBTOOL="$LIBTOOL --silent"