canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
authorBruno Haible <bruno@clisp.org>
Thu, 12 May 2011 00:10:44 +0000 (02:10 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 12 May 2011 00:10:44 +0000 (02:10 +0200)
* m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
* modules/canonicalize (Depends-on): Add 'nocrash'.
* modules/canonicalize-lgpl (Depends-on): Likewise.
* doc/posix-functions/realpath.texi: Update platforms list.
Reported by Ryan Schmidt <ryandesign@macports.org>.

ChangeLog
doc/posix-functions/realpath.texi
m4/canonicalize.m4
modules/canonicalize
modules/canonicalize-lgpl

index e8b8aa177c9e29be4659230e985e1fdfd95d50b6..1ce48bb108edac9993b658f4f6188a193053742c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-05-11  Bruno Haible  <bruno@clisp.org>
+
+       canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
+       * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
+       * modules/canonicalize (Depends-on): Add 'nocrash'.
+       * modules/canonicalize-lgpl (Depends-on): Likewise.
+       * doc/posix-functions/realpath.texi: Update platforms list.
+       Reported by Ryan Schmidt <ryandesign@macports.org>.
+
 2011-05-11  Bruno Haible  <bruno@clisp.org>
 
        group-member: Declare function in <unistd.h>.
index 0c20b4e4fc12a5b57c966b1f093c7a76d7ad65fe..cc2070989b3b90ac9fd990f3b0777878f3378a74 100644 (file)
@@ -14,7 +14,7 @@ mingw, BeOS.
 @item
 This function does not allow for a NULL @samp{resolved} parameter on
 some platforms:
-Solaris 10.
+MacOS X 10.5, FreeBSD 6.4, OpenBSD 4.4, Solaris 10.
 @item
 This function does not always return an absolute path on some
 platforms:
index b0174bc07e3d992c4ffaa74dacb3bd84deee641b..beb6163ec437369ea7d8a3c5ff9ca71b4dec1d8c 100644 (file)
@@ -1,4 +1,4 @@
-# canonicalize.m4 serial 17
+# canonicalize.m4 serial 18
 
 dnl Copyright (C) 2003-2007, 2009-2011 Free Software Foundation, Inc.
 
@@ -64,6 +64,7 @@ AC_DEFUN([gl_FUNC_REALPATH_WORKS],
     touch conftest.a
     AC_RUN_IFELSE([
       AC_LANG_PROGRAM([[
+        ]GL_NOCRASH[
         #include <stdlib.h>
       ]], [[
         int result = 0;
index 4ed943bd8783344b114a6ad364fc48ac2025e7c3..3b7b7fee87d4cf7e4e96d10fa75457fe79391614 100644 (file)
@@ -15,6 +15,7 @@ file-set
 hash-triple
 lstat
 memmove
+nocrash
 pathmax
 sys_stat
 xalloc
index 1fb23c29f379caf056227e88152c68ec9d189746..ab31beadb826bb0f99cd3af57818f22bee3abce3 100644 (file)
@@ -9,6 +9,7 @@ m4/double-slash-root.m4
 Depends-on:
 extensions
 stdlib
+nocrash
 alloca-opt      [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
 errno           [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
 lstat           [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]