]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorMark Andrews <marka@isc.org>
Wed, 5 Dec 2001 02:31:56 +0000 (02:31 +0000)
committerMark Andrews <marka@isc.org>
Wed, 5 Dec 2001 02:31:56 +0000 (02:31 +0000)
1156.   [port]          The configure test for strsep() incorrectly
                        succeeded on certain patched versions of
                        AIX 4.3.3. [RT #2190]

CHANGES
configure.in

diff --git a/CHANGES b/CHANGES
index 20a00a4a50cc5f7ad261f9e9454559832df03cd4..6a1735f93e7df9e3de263dbc53e9aba0dbf6b6a8 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+1156.  [port]          The configure test for strsep() incorrectly
+                       succeeded on certain patched versions of
+                       AIX 4.3.3. [RT #2190]
+
 1136.  [bug]           CNAME records synthesized from DNAMEs did not
                        have a TTL of zero as required by RFC2672
                        [RT #2129]
index 7b9885efc247ec45f7df142ec3d60b0672275363..78636832f8f970a9a19f40ec861c66795606807c 100644 (file)
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
 esyscmd([sed "s/^/# /" COPYRIGHT])dnl
 AC_DIVERT_POP()dnl
 
-AC_REVISION($Revision: 1.205.2.10 $)
+AC_REVISION($Revision: 1.205.2.11 $)
 
 AC_INIT(lib/dns/name.c)
 AC_PREREQ(2.13)
@@ -1114,9 +1114,18 @@ found_rt_iflist
 #
 # Check for some other useful functions that are not ever-present.
 #
-AC_CHECK_FUNC(strsep,
-       [ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"],
-       [ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"])
+
+# We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC
+# because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
+# reportedly defines strsep() without declaring it in <string.h> when
+# -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and
+# AC_CHECK_FUNC() incorrectly succeeds because it declares
+# the function itself.
+AC_MSG_CHECKING(for correctly declared strsep())
+AC_TRY_LINK([#include <string.h>], [char *sp; char *foo = strsep(&sp, ".");],
+       [AC_MSG_RESULT(yes); ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"],
+       [AC_MSG_RESULT(no); ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"])
+
 AC_CHECK_FUNC(vsnprintf,
        [ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"],
        [ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"