X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fmod-domaintree;a=blobdiff_plain;f=configure.in;fp=configure.in;h=28f3caaa92e7c3e76971c9f0e619454c5c56968f;hp=0000000000000000000000000000000000000000;hb=22b87eb12bd502ea28cac63d8e71101ac0a11fcc;hpb=79216cd75117820958e490465d4dca2a438ca038;ds=sidebyside diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..28f3caa --- /dev/null +++ b/configure.in @@ -0,0 +1,34 @@ + +AC_PREREQ(2.59) +AC_INIT(mod_domaintree, 1.3, mike@iworks.at) + +AC_CONFIG_SRCDIR([mod_domaintree.c]) +AC_CONFIG_HEADER([config.h]) + +AC_CHECK_HEADERS([unistd.h]) +AC_C_CONST +AC_TYPE_SIZE_T +AC_HEADER_STDC +AC_CHECK_FUNCS([memmove strchr]) + +AC_ARG_WITH([apxs2], AC_HELP_STRING([--with-apxs2], [where the apxs2 tool is located])) + +AC_MSG_CHECKING([for apxs2]) +APXS2=apxs2 +if test "$with_apxs2" -a -x "$with_apxs"; then + APXS2=$with_apxs2 + AC_MSG_RESULT([$APXS2]) +else + apxs2 >/dev/null 2>&1 + if test $? -eq 1; then + APXS2=apxs2 + AC_MSG_RESULT([in \$PATH]) + else + AC_MSG_RESULT([ ]) + AC_MSG_ERROR([please specify path to the apxs2 tool through --with-apxs2]) + fi +fi + +AC_SUBST(APXS2) + +AC_OUTPUT(Makefile)