getopt-gnu: suppress core dumps from detection code
authorPádraig Brady <P@draigBrady.com>
Tue, 19 Jul 2011 16:22:49 +0000 (17:22 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 19 Jul 2011 17:47:38 +0000 (18:47 +0100)
* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
to suppress core dumps that may well occur on glibc systems.
These core dumps might not be cleaned up automatically, or could
trigger some system core dump handling logic.
* modules/getopt-gnu: Depend on nocrash.

Signed-off-by: Pádraig Brady <P@draigBrady.com>
ChangeLog
m4/getopt.m4
modules/getopt-gnu

index a521e9b2bd937636f69919964cede130c023e792..e72af4c8c524a468cf8bf9b58e0cf80eaaf9c30e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-19  Pádraig Brady  <P@draigBrady.com>
+
+       getopt-gnu: suppress core dumps from detection code
+       * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
+       to suppress core dumps that may well occur on glibc systems.
+       * modules/getopt-gnu: Depend on nocrash.
+
 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
 
        pthread_sigmask: ensure usleep is declared
index 7e49ddde9f6885488c3448344178d4b08876eae8..047a3db022141a001767069b7e3ba3e0d2239e2c 100644 (file)
@@ -231,8 +231,12 @@ dnl is ambiguous with environment values that contain newlines.
         [AC_LANG_PROGRAM([[#include <getopt.h>
                            #include <stddef.h>
                            #include <string.h>
+           ]GL_NOCRASH[
            ]], [[
              int result = 0;
+
+             nocrash_init();
+
              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
                 OSF/1 5.1, Solaris 10.  */
index 3e5876a1b94e8ba4704d4367248013cba81bb880..6ad3643aa7e046f2fd2bd29e3f83db251985a955 100644 (file)
@@ -5,6 +5,7 @@ process command line arguments.
 Files:
 
 Depends-on:
+nocrash
 getopt-posix
 
 configure.ac: