bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strndup on AIX 7.1BETA


From: Bruno Haible
Subject: strndup on AIX 7.1BETA
Date: Fri, 30 Jul 2010 21:28:28 +0200
User-agent: KMail/1.9.9

The logs say:

checking for working strndup... yes

gl_cv_func_strndup_works=${gl_cv_func_strndup_works=yes}


2010-07-30  Bruno Haible  <address@hidden>

        strndup: Update regarding AIX.
        * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
        AIX 7.
        Reported by Rainer Tammer.

--- m4/strndup.m4.orig  Fri Jul 30 21:23:04 2010
+++ m4/strndup.m4       Fri Jul 30 15:25:18 2010
@@ -1,4 +1,4 @@
-# strndup.m4 serial 17
+# strndup.m4 serial 18
 dnl Copyright (C) 2002-2003, 2005-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -33,10 +33,14 @@
   return s[13] != '\0';]])],
          [gl_cv_func_strndup_works=yes],
          [gl_cv_func_strndup_works=no],
-         [case $host_os in
-            aix*) gl_cv_func_strndup_works="guessing no";;
-            *) gl_cv_func_strndup_works="guessing yes";;
-          esac])])
+         [
+changequote(,)dnl
+          case $host_os in
+            aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
+            *)               gl_cv_func_strndup_works="guessing yes";;
+          esac
+changequote([,])dnl
+         ])])
     case $gl_cv_func_strndup_works in
       *no)
         REPLACE_STRNDUP=1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]