From: Ralf Wildenhues Date: Mon, 11 Aug 2008 20:36:42 +0000 (+0200) Subject: Remove use of exit in configure test sources. X-Git-Tag: v2.2.6~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4eca607f697f0c264476436913b9720d3d069e87;p=thirdparty%2Flibtool.git Remove use of exit in configure test sources. * libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Return from main, to avoid using undeclared exit. Report against OpenMPI from Coverity via Jeff Squyres. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 706990e94..033048315 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-08-11 Ralf Wildenhues + Remove use of exit in configure test sources. + * libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Return from main, + to avoid using undeclared exit. + Report against OpenMPI from Coverity via Jeff Squyres. + * tests/configure-iface.at (convenience libltdl): Ignore warning from parallel make. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index b9d0fc9b5..79f58f863 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -1684,10 +1684,6 @@ else # endif #endif -#ifdef __cplusplus -extern "C" void exit (int); -#endif - void fnord() { int i=42;} int main () { @@ -1703,7 +1699,7 @@ int main () else puts (dlerror ()); - exit (status); + return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then