libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remove use of exit(2) in configure test.


From: Ralf Wildenhues
Subject: Remove use of exit(2) in configure test.
Date: Mon, 11 Aug 2008 22:39:34 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Jeff reported this off-list, applied to master as rather obvious.

Cheers, and thanks!
Ralf

2008-08-11  Ralf Wildenhues  <address@hidden>

        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.

diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index b9d0fc9..79f58f8 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]