]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Portability to HP-UX 11.
authorBruno Haible <bruno@clisp.org>
Wed, 19 Feb 2003 17:37:30 +0000 (17:37 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:12 +0000 (12:10 +0200)
gettext-tools/m4/ChangeLog
gettext-tools/m4/stdbool.m4

index 421e4be245d5cee3343e2f8bfb7acc452c282eeb..fad7cea89dc252865201ad7389c399219dd24079 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-19  Bruno Haible  <bruno@clisp.org>
+
+       * stdbool.m4 (gt_STDBOOL_H): Also test for usability of 'bool' in
+       declarations. Needed for HP-UX 11 cc.
+
 2003-02-12  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am: Update for new directory structure.
index d0959fc70da9d5f73aa4fa033411c6b56bad1e00..d41899f6d012ebdcb74cdf9a91484a5c8418b918 100644 (file)
@@ -1,5 +1,5 @@
-# stdbool.m4 serial 2 (gettext-0.11.3)
-dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
+# stdbool.m4 serial 3 (gettext-0.12)
+dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
 dnl Public License, this file may be distributed as part of a program
@@ -12,6 +12,8 @@ dnl Test whether <stdbool.h> is supported or must be substituted.
 AC_DEFUN([gt_STDBOOL_H],
 [dnl gcc 2.95.2 has an <stdbool.h> for which both 'true' and 'false' evaluate
 dnl to 0 in preprocessor expressions.
+dnl HP-UX 11 cc has an <stdbool.h> but the compiler doesn't understand the
+dnl type '_Bool' (to which 'bool' expands).
 AC_MSG_CHECKING([for stdbool.h])
 AC_CACHE_VAL(gt_cv_header_stdbool_h, [
   AC_TRY_COMPILE([#include <stdbool.h>
@@ -24,6 +26,7 @@ int A[-1];
 #define b 1
 #endif
 int B[b];
+bool c;
 ], [], gt_cv_header_stdbool_h=yes, gt_cv_header_stdbool_h=no)])
 AC_MSG_RESULT([$gt_cv_header_stdbool_h])
 if test $gt_cv_header_stdbool_h = yes; then