From f651880cc590ee4545e0853d66233edfa0ea7da7 Mon Sep 17 00:00:00 2001 From: pi-rho Date: Thu, 3 May 2012 20:30:57 -0500 Subject: [PATCH] additional changes for configure.ac --- configure.ac | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 0f24eca..214bf5a 100644 --- a/configure.ac +++ b/configure.ac @@ -12,6 +12,9 @@ AM_MAINTAINER_MODE AM_SILENT_RULES([yes]) AC_SUBST([VERSION]) +# stop CFLAGS duplication +: ${CFLAGS=""} + # Find programs... AC_PROG_CC AM_PROG_CC_C_O @@ -33,15 +36,22 @@ AC_TYPE_UINT8_T # Checks for library functions. AC_CHECK_FUNCS([memset strncasecmp strtol]) +# Is this gcc? +AM_CONDITIONAL([IS_GCC], [test "x$GCC" = xyes]) + # debug stuff AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [Enable debug statements]), - [enable_debug=yes], - [enable_debug=no]) - -AS_IF([test "x$enable_debug" == "xyes"], - AC_DEFINE([DEBUGSTMTS], [1], [enable debugging statements]), - []) + [enable_debug=yes;AM_DEFAULT_VERBOSITY=1], [enable_debug=no]) +AM_CONDITIONAL([IS_DEBUG], [test "x$enable_debug" == xyes]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT + +echo +echo "$PACKAGE v$VERSION" +echo + +echo "Debug enabled : $enable_debug" +echo "Prefix ...... : $prefix" +echo