svn commit: samba r18216 - in
branches/SAMBA_4_0/source/lib/replace: .
tridge at samba.org
tridge at samba.org
Thu Sep 7 10:50:34 GMT 2006
Author: tridge
Date: 2006-09-07 10:50:33 +0000 (Thu, 07 Sep 2006)
New Revision: 18216
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18216
Log:
a special override for the broken HP-UX C compiler. It does support
C99 initialisers without any flags, but if you don't give it -AC99
then it dies when those initialisers are very complex
Modified:
branches/SAMBA_4_0/source/lib/replace/libreplace_macros.m4
Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/libreplace_macros.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/libreplace_macros.m4 2006-09-07 10:32:49 UTC (rev 18215)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace_macros.m4 2006-09-07 10:50:33 UTC (rev 18216)
@@ -37,6 +37,16 @@
],
[AC_MSG_RESULT(yes); c99_init=yes],[AC_MSG_RESULT(no)])
fi
+
+if test "`uname`" = "HP-UX"; then
+ if test "$ac_cv_c_compiler_gnu" = no; then
+ # special override for broken HP-UX compiler - I can't find a way to test
+ # this properly (its a compiler bug)
+ CFLAGS="$CFLAGS -AC99";
+ c99_init=yes;
+ fi
+fi
+
if test x"$c99_init" = x"yes"; then
saved_CFLAGS=""
$1
More information about the samba-cvs
mailing list