summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-07 10:50:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:51 -0500
commitb7f937bdbbb419c85c2fe2682dc48aa247b621fc (patch)
tree0aab011faf46851e04991b688f0b67952c32aba3 /source4/lib/replace
parentb427944198e9fb67ceb8fbcfee2dbf80c5f8216d (diff)
downloadsamba-b7f937bdbbb419c85c2fe2682dc48aa247b621fc.tar.gz
samba-b7f937bdbbb419c85c2fe2682dc48aa247b621fc.tar.bz2
samba-b7f937bdbbb419c85c2fe2682dc48aa247b621fc.zip
r18216: 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 (This used to be commit 46f72d7e3f285d08a043b4e8551f22c4dffe65e5)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/libreplace_macros.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/replace/libreplace_macros.m4 b/source4/lib/replace/libreplace_macros.m4
index 9cf06c1a37..a50104cd1c 100644
--- a/source4/lib/replace/libreplace_macros.m4
+++ b/source4/lib/replace/libreplace_macros.m4
@@ -37,6 +37,16 @@ if test x"$c99_init" = x"no"; then
],
[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