53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
|
|
AC_INIT([squid-db-logger], [1.0])
|
|
|
|
AC_CONFIG_AUX_DIR([build])
|
|
AC_CONFIG_MACRO_DIR([build/m4])
|
|
AC_CONFIG_HEADERS([build/config.h])
|
|
AC_PREREQ([2.69])
|
|
AM_SILENT_RULES([yes])
|
|
|
|
# Check for program dependencies
|
|
AC_PROG_CC
|
|
|
|
CFLAGS+=" -Wall"
|
|
|
|
# Check for debug mode
|
|
AC_MSG_CHECKING([whether to build with debug information])
|
|
AC_ARG_ENABLE([debug],
|
|
[AS_HELP_STRING([--enable-debug],
|
|
[Enable debug data generation [default=no]])],
|
|
[ENABLE_DEBUG=$enableval],
|
|
[ENABLE_DEBUG=no])
|
|
AC_MSG_RESULT([$ENABLE_DEBUG])
|
|
|
|
if test "$ENABLE_DEBUG" = "yes"; then
|
|
CFLAGS+=" -ggdb"
|
|
fi
|
|
|
|
# Check if it will be installed
|
|
AC_MSG_CHECKING([whether to configure to install])
|
|
AC_ARG_ENABLE([install],
|
|
[AS_HELP_STRING([--enable-install],
|
|
[Enable install configuration [default=yes]])],
|
|
[ENABLE_INSTALL=$enableval],
|
|
[ENABLE_INSTALL=yes])
|
|
AC_MSG_RESULT([$ENABLE_INSTALL])
|
|
AM_CONDITIONAL(ENABLE_INSTALL, [test "$ENABLE_INSTALL" = "yes"])
|
|
|
|
if test "$ENABLE_INSTALL" = "yes"; then
|
|
CFLAGS+=" -O3"
|
|
fi
|
|
|
|
AC_SUBST([CPPFLAGS])
|
|
AC_SUBST([CFLAGS])
|
|
AC_SUBST([LDFLAGS])
|
|
|
|
AM_INIT_AUTOMAKE()
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
src/Makefile
|
|
])
|
|
|
|
AC_OUTPUT
|