X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=f5a785677d322f6f24659e8ce55de3140ed693ab;hp=109c5d990a20b3f95ae8e4ce6d0310240f70993e;hb=aad6970e87313b94afb250f5dec73ff6751eed34;hpb=6d925b70ffc5a5e8be12d20b61210b8a4bc9810c diff --git a/configure.ac b/configure.ac index 109c5d9..f5a7856 100644 --- a/configure.ac +++ b/configure.ac @@ -45,6 +45,11 @@ if test x"$do_have_ssl" = xyes; then AC_DEFINE([HAVE_SSL], 1, [Define if you are using SSL]) fi +AC_ARG_ENABLE([debug], + [AS_HELP_STRING([--enable-debug], [debug mode (compile using -O0 -Wall -Wshadow -Werror)])], + [CFLAGS='-g -O0 -Wall -Wshadow -Werror'], + [CFLAGS='-g -O2']) + # Checks for header files. AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h windows.h winsock2.h])