This makes use of the 'nocrash' module to avoid a dialog box from the gl_PRINTF_ENOMEM configure check.
Tested on MacOS X 10.3.9: After executing the command $ defaults write com.apple.CrashReporter DialogType crashreport I get crash reports. (The values can be different for other OS versions: try 'prompt', 'basic', 'server', 'developer', ...) With this patch, the crash report from this configure check disappears. 2007-11-04 Bruno Haible <[EMAIL PROTECTED]> * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH. * modules/fprintf-posix (Depends-on): Add nocrash. * modules/snprintf-posix (Depends-on): Likewise. * modules/sprintf-posix (Depends-on): Likewise. * modules/vasnprintf-posix (Depends-on): Likewise. * modules/vasprintf-posix (Depends-on): Likewise. * modules/vfprintf-posix (Depends-on): Likewise. * modules/vsnprintf-posix (Depends-on): Likewise. * modules/vsprintf-posix (Depends-on): Likewise. * modules/unistdio/u8-vasnprintf (Depends-on): Likewise. * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise. * modules/unistdio/u16-vasnprintf (Depends-on): Likewise. * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise. * modules/unistdio/u32-vasnprintf (Depends-on): Likewise. * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise. * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise. *** m4/printf.m4.orig 2007-11-04 20:04:19.000000000 +0100 --- m4/printf.m4 2007-11-04 19:57:42.000000000 +0100 *************** *** 1,4 **** ! # printf.m4 serial 19 dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, --- 1,4 ---- ! # printf.m4 serial 20 dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, *************** *** 774,779 **** --- 774,780 ---- [ if test "$cross_compiling" = no; then AC_LANG_CONFTEST([AC_LANG_SOURCE([ + ]GL_NOCRASH[ changequote(,)dnl #include <stdio.h> #include <sys/types.h> *************** *** 784,789 **** --- 785,791 ---- { struct rlimit limit; int ret; + nocrash_init (); /* Some printf implementations allocate temporary space with malloc. */ /* On BSD systems, malloc() is limited by RLIMIT_DATA. */ #ifdef RLIMIT_DATA *** modules/fprintf-posix.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/fprintf-posix 2007-11-04 20:02:33.000000000 +0100 *************** *** 18,23 **** --- 18,24 ---- printf-frexpl signbit fpucw + nocrash printf-safe configure.ac: *** modules/snprintf-posix.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/snprintf-posix 2007-11-04 20:02:33.000000000 +0100 *************** *** 17,22 **** --- 17,23 ---- printf-frexpl signbit fpucw + nocrash printf-safe configure.ac: *** modules/sprintf-posix.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/sprintf-posix 2007-11-04 20:02:34.000000000 +0100 *************** *** 17,22 **** --- 17,23 ---- printf-frexpl signbit fpucw + nocrash printf-safe stdint *** modules/unistdio/u16-u16-vasnprintf.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/unistdio/u16-u16-vasnprintf 2007-11-04 20:02:34.000000000 +0100 *************** *** 37,42 **** --- 37,43 ---- printf-frexpl signbit fpucw + nocrash printf-safe alloca-opt localcharset *** modules/unistdio/u16-vasnprintf.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/unistdio/u16-vasnprintf 2007-11-04 20:02:35.000000000 +0100 *************** *** 37,42 **** --- 37,43 ---- printf-frexpl signbit fpucw + nocrash printf-safe alloca-opt localcharset *** modules/unistdio/u32-u32-vasnprintf.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/unistdio/u32-u32-vasnprintf 2007-11-04 20:02:36.000000000 +0100 *************** *** 37,42 **** --- 37,43 ---- printf-frexpl signbit fpucw + nocrash printf-safe alloca-opt localcharset *** modules/unistdio/u32-vasnprintf.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/unistdio/u32-vasnprintf 2007-11-04 20:02:36.000000000 +0100 *************** *** 37,42 **** --- 37,43 ---- printf-frexpl signbit fpucw + nocrash printf-safe alloca-opt localcharset *** modules/unistdio/u8-u8-vasnprintf.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/unistdio/u8-u8-vasnprintf 2007-11-04 20:02:37.000000000 +0100 *************** *** 37,42 **** --- 37,43 ---- printf-frexpl signbit fpucw + nocrash printf-safe alloca-opt localcharset *** modules/unistdio/u8-vasnprintf.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/unistdio/u8-vasnprintf 2007-11-04 20:02:38.000000000 +0100 *************** *** 37,42 **** --- 37,43 ---- printf-frexpl signbit fpucw + nocrash printf-safe alloca-opt localcharset *** modules/unistdio/ulc-vasnprintf.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/unistdio/ulc-vasnprintf 2007-11-04 20:02:39.000000000 +0100 *************** *** 35,40 **** --- 35,41 ---- printf-frexpl signbit fpucw + nocrash printf-safe alloca-opt localcharset *** modules/vasnprintf-posix.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/vasnprintf-posix 2007-11-04 20:02:39.000000000 +0100 *************** *** 16,21 **** --- 16,22 ---- printf-frexpl signbit fpucw + nocrash printf-safe configure.ac: *** modules/vasprintf-posix.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/vasprintf-posix 2007-11-04 20:02:40.000000000 +0100 *************** *** 16,21 **** --- 16,22 ---- printf-frexpl signbit fpucw + nocrash printf-safe configure.ac: *** modules/vfprintf-posix.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/vfprintf-posix 2007-11-04 20:02:41.000000000 +0100 *************** *** 18,23 **** --- 18,24 ---- printf-frexpl signbit fpucw + nocrash printf-safe configure.ac: *** modules/vsnprintf-posix.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/vsnprintf-posix 2007-11-04 20:02:41.000000000 +0100 *************** *** 17,22 **** --- 17,23 ---- printf-frexpl signbit fpucw + nocrash printf-safe configure.ac: *** modules/vsprintf-posix.orig 2007-11-04 20:04:19.000000000 +0100 --- modules/vsprintf-posix 2007-11-04 20:02:42.000000000 +0100 *************** *** 17,22 **** --- 17,23 ---- printf-frexpl signbit fpucw + nocrash printf-safe stdint