You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ji...@apache.org on 2017/10/02 15:31:36 UTC

svn commit: r1810450 - /apr/apr/trunk/configure.in

Author: jim
Date: Mon Oct  2 15:31:35 2017
New Revision: 1810450

URL: http://svn.apache.org/viewvc?rev=1810450&view=rev
Log:
Get maint mode working again w/ macOS Xcode 9 (clang-900)

Modified:
    apr/apr/trunk/configure.in

Modified: apr/apr/trunk/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/trunk/configure.in?rev=1810450&r1=1810449&r2=1810450&view=diff
==============================================================================
--- apr/apr/trunk/configure.in (original)
+++ apr/apr/trunk/configure.in Mon Oct  2 15:31:35 2017
@@ -361,6 +361,11 @@ AC_ARG_ENABLE(maintainer-mode,[  --enabl
   [APR_ADDTO(CFLAGS,-g)
    if test "$GCC" = "yes"; then
      APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations])
+      case `($CC --version) 2>/dev/null` in
+        *clang-900*)
+          APACHE_ADD_GCC_CFLAG([-Wno-error=strict-prototypes])
+          ;;
+      esac
    elif test "$AIX_XLC" = "yes"; then
      APR_ADDTO(CFLAGS,-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro)
    fi