# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
-AC_INIT([mod_chxj],[0.14.0rc0],[konn@users.sourceforge.jp])
+AC_INIT([mod_chxj],[0.14.1],[konn@users.sourceforge.jp])
AC_PREREQ(2.59)
AC_CONFIG_SRCDIR([src/mod_chxj.c])
AC_CANONICAL_TARGET
APU_CONFIG=$with_apu_config
fi
+CFLAGS="${CFLAGS} -DLIBICONV_PLUG"
case $host_os in
freebsd*)
CFLAGS="${CFLAGS} -I/usr/local/include "
with_apache_header=`${APXS} -q includedir`
fi
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_CHECK_FUNCS([open mmap close memset memcpy strcasecmp strncasecmp strstr])
+
LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
-# Checks for library functions.
-AC_FUNC_MALLOC
-AC_CHECK_FUNCS([open mmap close memset memcpy strcasecmp strncasecmp strstr])
AC_SUBST(with_apache_header)
AC_SUBST(CC)
AC_SUBST(OPENSSL_PATH)
-AC_CONFIG_FILES([Makefile src/Makefile support/centos/mod-chxj.spec])
+AC_CONFIG_FILES([Makefile src/Makefile support/centos/mod-chxj.spec support/freebsd/Makefile])
AC_OUTPUT