From: brarcher Date: Sun, 15 Jun 2014 23:15:10 +0000 (+0000) Subject: autotools: include flag for AIX only if on AIX X-Git-Tag: 0.10.0~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3daa906a030613b3f2ba950039ad233dab886ad7;p=check autotools: include flag for AIX only if on AIX Also, correcting comment about this being for Solaris. It is for AIX instead. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1143 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/configure.ac b/configure.ac index 3a1be6c..6582759 100644 --- a/configure.ac +++ b/configure.ac @@ -161,9 +161,17 @@ AX_CFLAGS_ADD([-Winit-self]) AX_CFLAGS_ADD([-Wmissing-include-dirs]) AX_CFLAGS_ADD([-Wswitch-default]) AX_CFLAGS_ADD([-Wunknown-pragmas]) -# The following flag is to enable C99 support on Solaris, which is +# The following flag is to enable C99 support on AIX, which is # necessary for variable macros in check.h -AX_CFLAGS_ADD([-qlanglvl=stdc99]) +case "${host_os}" in + *aix*) + if ! test "$GCC" = "yes"; then + AX_CFLAGS_ADD([-qlanglvl=stdc99]) + fi + ;; + *) + ;; +esac AC_CHECK_PROGS(GCOV, gcov, false) AC_CHECK_PROGS(LCOV, lcov, false)