Cleanup configure script and add back unit tests (make test).

This commit is contained in:
brectanus
2008-01-02 23:52:34 +00:00
parent badb2791f1
commit 40c57f8716
4 changed files with 76 additions and 19 deletions

View File

@@ -62,20 +62,30 @@ VERSION_OK
[AC_MSG_NOTICE(httpd is recent enough)],
[AC_MSG_ERROR(apache is too old, mmn must be at least $HTTPD_WANTED_MMN)])
fi
APXS_INCLUDES="`$APXS -q EXTRA_INCLUDES`"
APXS_CFLAGS="`$APXS -q CFLAGS`"
APXS_LDFLAGS="`$APXS -q LDFLAGS`"
APXS_LIBS="`$APXS -q LIBS`"
AC_MSG_NOTICE([APXS_INCLUDES=${APXS_INCLUDES}])
else
AC_MSG_ERROR(couldn't find APXS)
fi
CHECK_PCRE()
CHECK_LUA()
CHECK_LIBXML()
save_CPPFLAGS=$CPPFLAGS
APXS_INCLUDES="`$APXS -q EXTRA_INCLUDES`"
CPPFLAGS="$APXS_INCLUDES $CPPFLAGS"
CPPFLAGS=$save_CPPFLAGS
AC_SUBST(APXS)
AC_SUBST(APXS_INCLUDES)
AC_SUBST(APXS_CFLAGS)
AC_SUBST(APXS_LDFLAGS)
AC_SUBST(APXS_LIBS)
CHECK_PCRE()
CHECK_LUA()
CHECK_LIBXML()
CHECK_APR()
CHECK_APU()
AC_CONFIG_FILES([Makefile])