diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-08 16:13:42 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-08 16:13:42 +0000 |
commit | e27555c46856475fc3686511ce8e393651de8e44 (patch) | |
tree | 558a2cff52d01f9ceb38219e53442a74748a08be /configure.ac | |
parent | 8d0a174a86d29dbec6412cb1bd38f87b3b3c059b (diff) | |
download | rsyslog-e27555c46856475fc3686511ce8e393651de8e44.tar.gz rsyslog-e27555c46856475fc3686511ce8e393651de8e44.tar.xz rsyslog-e27555c46856475fc3686511ce8e393651de8e44.zip |
added --enable-mudflap ./configure option
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5a79a4a6..2da0e5b9 100644 --- a/configure.ac +++ b/configure.ac @@ -270,6 +270,26 @@ if test "$enable_debug" = "no"; then AC_DEFINE(NDEBUG, 1, [Defined if debug mode is disabled.]) fi +# mudflap +AC_ARG_ENABLE(mudflap, + [AS_HELP_STRING([--enable-mudflap],[Enable mudflap @<:@default=no@:>@])], + [case "${enableval}" in + yes) enable_mudflap="yes" ;; + no) enable_mudflap="no" ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-mudflap) ;; + esac], + [enable_mudflap="no"] +) +if test "$enable_mudflap" = "yes"; then + # is there any way to just change the -O option in default CFLAGS? -- rgerhards, 2008-01-08 + CFLAGS="-O1 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g" + mudflap_libs="-lmudflapth" + mudflap_cflags="-fmudflapth" + AC_SUBST(mudflap_libs) + AC_SUBST(mudflap_cflags) + ], +fi + # MySQL support @@ -369,4 +389,5 @@ echo "Large file support enabled: $enable_largefile" echo "Networking support enabled: $enable_inet" echo "Enable GSSAPI Kerberos 5 support: $want_gssapi_krb5" echo "Debug mode enabled: $enable_debug" +echo "Mudflap enabled: $enable_mudflap" |