X-Git-Url: http://git.home-dn.net/?p=manu%2Fsuphp.git;a=blobdiff_plain;f=configure.ac;h=dbb9f9f00c160eb2a326c36c72e3ad2da9e9862f;hp=9c701b029bb6f81c88ed3760bfdb1eda79eefd3f;hb=47bcf8ba77fa8011f9be728c23dbe6915d70251b;hpb=1d5c20a335c25ab89adf2e0d3d74c810b679e719 diff --git a/configure.ac b/configure.ac index 9c701b0..dbb9f9f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ # Process this file with autoconf to produce a configure script. # Initialize -AC_INIT([suPHP], [0.6.0], [sebastian.marsching@suphp.org], [suphp]) +AC_INIT([suPHP], [0.6.1], [sebastian.marsching@suphp.org], [suphp]) # Auxiliary tools AC_CONFIG_AUX_DIR([config]) @@ -21,12 +21,16 @@ AC_PROG_INSTALL # Look for compiler AC_PROG_CC AC_PROG_CXX -AC_PROG_LIBTOOL +AM_PROG_LIBTOOL # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h]) +# Find apr-config + +APR_FIND_APR([], [], [1]) + # Determine Apache version and find apxs AC_MSG_CHECKING([for dynamic Apache module support (via APXS)]) @@ -74,7 +78,7 @@ if test -n "$APXS"; then APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR` - if test x"{$APACHE_VERSION_2}" = xtrue ; then \ + if test x"${APACHE_VERSION_2}" = xtrue ; then \ APXS_EXTRA_CFLAGS=`$APXS -q EXTRA_CFLAGS` fi if test x"${APACHE_VERSION_1_3}" = xtrue; then \ @@ -92,6 +96,15 @@ else AC_MSG_RESULT(no) fi +if test x"${APACHE_VERSION_2}" = xtrue ; then \ +dnl For Apache 2.x APR is needed + if test x"${apr_found}" = xyes ; then \ + APR_INCLUDEDIR=`${apr_config} --includedir` + AC_SUBST([APR_INCLUDEDIR]) + else + AC_MSG_ERROR([APR is needed to build mod_suphp for Apache 2.x but was not found]) + fi +fi # Get uid/gid mode