Moved --enable-debug option code to near end of file to allow AC_PROG_CC to still update CFLAGS with -g -02
This commit is contained in:
parent
c0699e9c03
commit
debafb721b
@ -10,14 +10,6 @@ AC_CANONICAL_TARGET
|
|||||||
|
|
||||||
AM_INIT_AUTOMAKE(httperf, 0.9.99)
|
AM_INIT_AUTOMAKE(httperf, 0.9.99)
|
||||||
|
|
||||||
# Turn on Debug if necessary
|
|
||||||
AC_ARG_ENABLE(debug,
|
|
||||||
[ --enable-debug enable debug support])
|
|
||||||
|
|
||||||
if test "$enable_debug" = yes; then
|
|
||||||
CFLAGS="${CFLAGS} -DDEBUG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_GNU_SOURCE
|
AC_GNU_SOURCE
|
||||||
AC_PROG_CC([cc gcc])
|
AC_PROG_CC([cc gcc])
|
||||||
@ -76,4 +68,12 @@ AC_FUNC_STRTOD
|
|||||||
AC_FUNC_VPRINTF
|
AC_FUNC_VPRINTF
|
||||||
AC_CHECK_FUNCS([gethostbyname gettimeofday memset munmap select socket strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol strtoul inet_aton getopt_long])
|
AC_CHECK_FUNCS([gethostbyname gettimeofday memset munmap select socket strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol strtoul inet_aton getopt_long])
|
||||||
|
|
||||||
|
# Turn on Debug if necessary
|
||||||
|
AC_ARG_ENABLE(debug,
|
||||||
|
[ --enable-debug enable debug support])
|
||||||
|
|
||||||
|
if test "$enable_debug" = yes; then
|
||||||
|
CFLAGS="${CFLAGS} -DDEBUG"
|
||||||
|
fi
|
||||||
|
|
||||||
AC_OUTPUT(Makefile man/Makefile src/stat/Makefile src/lib/Makefile src/gen/Makefile src/Makefile)
|
AC_OUTPUT(Makefile man/Makefile src/stat/Makefile src/lib/Makefile src/gen/Makefile src/Makefile)
|
||||||
|
Loading…
Reference in New Issue
Block a user