projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6d925b7
)
added AC_ARG_ENABLE to configure.ac to use -W (all, shadow, error) flags only if...
author
pk910
<philipp@zoelle1.de>
Sat, 10 Dec 2011 02:39:03 +0000
(
03:39
+0100)
committer
pk910
<philipp@zoelle1.de>
Sat, 10 Dec 2011 02:39:03 +0000
(
03:39
+0100)
Makefile.am
patch
|
blob
|
history
configure.ac
patch
|
blob
|
history
diff --git
a/Makefile.am
b/Makefile.am
index 876da82a542f1e58a06590cbdf6f1819ec18e031..634c9cba8ef2ef2ad0eba5d3b4b28bd6a1b9debd 100644
(file)
--- a/
Makefile.am
+++ b/
Makefile.am
@@
-1,8
+1,6
@@
AUTOMAKE_OPTIONS = foreign
AM_CFLAGS = $(MYSQL_CFLAGS)
AUTOMAKE_OPTIONS = foreign
AM_CFLAGS = $(MYSQL_CFLAGS)
-CFLAGS = -g -O0 -Wall -Wshadow -Werror
-
BUILT_SOURCES = version.c
version.c: checkversion
checkversion:
BUILT_SOURCES = version.c
version.c: checkversion
checkversion:
diff --git
a/configure.ac
b/configure.ac
index 109c5d990a20b3f95ae8e4ce6d0310240f70993e..f5a785677d322f6f24659e8ce55de3140ed693ab 100644
(file)
--- 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_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])
# 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])