# configure.ac # # This file is processed by autoconf to generate a configure script. # the configure script is then used to configure the daagt application. # AC_INIT([mod_sparql], [0.9.1]) srcdir=`pwd` topdir=`pwd` CFLAGS="-Wall -O2" AC_ARG_WITH(cflags, [ --with-cflags Specify additional flags to pass to preprocessor] , [ if test "x$withval" != "xno"; then CFLAGS="$CFLAGS $withval" fi ] ) AC_ARG_WITH(cppflags, [ --with-cppflags Specify additional flags to pass to preprocessor] , [ if test "x$withval" != "xno"; then CPPFLAGS="$CPPFLAGS $withval" fi ] ) for d in /usr/local/apache2; do if test -d $d && test -x $d/bin/apxs; then AC_MSG_RESULT([APXS found at $d/bin/apxs]) APXS=$d/bin/apxs break fi done for d in /usr/local /usr; do if test -d $d && test -d $d/bin && test -x $d/bin/redland-config; then AC_MSG_RESULT([Redland config script found at $d/bin/redland-config]) REDLAND=$d/bin/redland-config break fi done AC_SUBST(APXS) AC_SUBST(CFLAGS) AC_SUBST(REDLAND) AC_CONFIG_FILES([Makefile]) AC_OUTPUT