From eacfb01181c7d2c64325c8ea6f23e5b341ac8a03 Mon Sep 17 00:00:00 2001 From: warlord Date: Tue, 8 Oct 2002 00:29:36 +0000 Subject: [PATCH] Check for apreq headers to make sure apreq path is correct git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@136 cb58f699-b61c-0410-a6fe-9272a202ed29 --- configure.ac | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/configure.ac b/configure.ac index 0cda14e..dfe4e84 100644 --- a/configure.ac +++ b/configure.ac @@ -248,6 +248,22 @@ if test "$WANT_APACHE" = "yes"; then CPPFLAGS="-I${with_apreq}/include $CPPFLAGS" fi]) + saved_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="-I$APXS_INCLUDE $APXS_CFLAGS $CPPFLAGS" + AC_CHECK_HEADER([libapreq/apache_request.h],, + AC_MSG_ERROR([unable to find apreq header files])) + +dnl saved_LIBS="$LIBS" +dnl LIBS="-lapreq $LIBS" +dnl AC_TRY_LINK( +dnl [#include ], +dnl [ApacheRequest_expires], +dnl [AC_DEFINE(HAVE_APREQ,1,[Define if apreq library was found])], +dnl [AC_MSG_ERROR([unable to link with apreq]) +dnl ]) +dnl LIBS="$saved_LIBS" + CPPFLAGS="$saved_CPPFLAGS" + AC_SUBST(APXS_CFLAGS) AC_SUBST(APXS_INCLUDE) AC_SUBST(APXS_LIBEXEC) -- 2.1.4