From b5ca3656262b17e83bfa380d7e10218705320f89 Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Mon, 30 May 2016 16:53:41 +0200 Subject: [PATCH] For non GCC/clang on OSX the -Wno-deprecated-declarations may not be valid Closes: nmathewson/Libevent#129 --- configure.ac | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 334d2968..215c853e 100644 --- a/configure.ac +++ b/configure.ac @@ -85,13 +85,14 @@ if test "$GCC" = "yes" ; then fi # OS X Lion started deprecating the system openssl. Let's just disable -# all deprecation warnings on OS X. -case "$host_os" in - - darwin*) - CFLAGS="$CFLAGS -Wno-deprecated-declarations" - ;; -esac +# all deprecation warnings on OS X; but do so only for gcc... +if test "$GCC" = "yes" ; then + case "$host_os" in + darwin*) + CFLAGS="$CFLAGS -Wno-deprecated-declarations" + ;; + esac +fi AC_ARG_ENABLE(gcc-warnings, AS_HELP_STRING(--disable-gcc-warnings, disable verbose warnings with GCC)) -- 2.40.0