]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Karl Benoit <karl.isatwork@gmail.com>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 21 Jul 2010 07:22:55 +0000 (01:22 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 21 Jul 2010 07:22:55 +0000 (01:22 -0600)
Bug 2885: AIX support: c only c++ style comments test case

configure.in

index e5ee37ef31a75b36d2899df92e918ecdae063e5b..11f60b35362b7cd5f7105646b44ee4b1cc285716 100644 (file)
@@ -2917,6 +2917,17 @@ dnl Please change your configure script.  AIX doesn't need -lbsd.
        *-ibm-aix*)
                AC_MSG_NOTICE([Removing -lbsd for AIX...])
                LIBS=`echo $LIBS | sed -e s/-lbsd//`
+               AC_MSG_CHECKING(for aix xlc c++ comments support)
+               AC_LANG_PUSH([C])
+               AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[//c++ cmt]])],[AIX_CPPCMT_SUPPORT=yes],[AIX_CPPCMT_SUPPORT=no])      
+               AC_MSG_RESULT($AIX_CPPCMT_SUPPORT)
+               if test -n `echo $CC | grep cc` 2>/dev/null && \
+                   test -n `cc -qversion 2>/dev/null | grep "IBM XL C/C++ for AIX"` 2>/dev/null;then
+                       if test "$AIX_CPPCMT_SUPPORT"="no";then
+                               SQUID_CFLAGS="-qcpluscmt $SQUID_CFLAGS"
+                       fi
+               fi
+               AC_LANG_POP([C])
                ;;
        *m88k*)
                SQUID_CFLAGS="$SQUID_CFLAGS -D_SQUID_MOTOROLA_"