|
|
d9d0ed |
--- autoconf-2.13/acgeneral.m4~ Tue Jun 26 17:00:28 2001
|
|
|
d9d0ed |
+++ autoconf-2.13/acgeneral.m4 Tue Jun 26 17:00:28 2001
|
|
|
d9d0ed |
@@ -1817,10 +1817,6 @@
|
|
|
d9d0ed |
[cat > conftest.$ac_ext <
|
|
|
d9d0ed |
[#]line __oline__ "configure"
|
|
|
d9d0ed |
#include "confdefs.h"
|
|
|
d9d0ed |
-ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
|
|
|
d9d0ed |
-extern "C" void exit(int);
|
|
|
d9d0ed |
-#endif
|
|
|
d9d0ed |
-])dnl
|
|
|
d9d0ed |
[$1]
|
|
|
d9d0ed |
EOF
|
|
|
d9d0ed |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
|
d9d0ed |
--- autoconf-2.13/acspecific.m4~ Tue Jun 26 17:04:34 2001
|
|
|
d9d0ed |
+++ autoconf-2.13/acspecific.m4 Tue Jun 26 17:04:34 2001
|
|
|
d9d0ed |
@@ -152,8 +152,41 @@
|
|
|
d9d0ed |
CXXFLAGS=
|
|
|
d9d0ed |
fi
|
|
|
d9d0ed |
fi
|
|
|
d9d0ed |
+
|
|
|
d9d0ed |
+AC_PROG_CXX_EXIT_DECLARATION
|
|
|
d9d0ed |
])
|
|
|
d9d0ed |
|
|
|
d9d0ed |
+
|
|
|
d9d0ed |
+# AC_PROG_CXX_EXIT_DECLARATION
|
|
|
d9d0ed |
+# -----------------------------
|
|
|
d9d0ed |
+# Find a valid prototype for exit and declare it in confdefs.h.
|
|
|
d9d0ed |
+AC_DEFUN(AC_PROG_CXX_EXIT_DECLARATION,
|
|
|
d9d0ed |
+[for ac_declaration in \
|
|
|
d9d0ed |
+ ''\
|
|
|
d9d0ed |
+ '#include <stdlib.h>' \
|
|
|
d9d0ed |
+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
|
|
d9d0ed |
+ 'extern "C" void std::exit (int); using std::exit;' \
|
|
|
d9d0ed |
+ 'extern "C" void exit (int) throw ();' \
|
|
|
d9d0ed |
+ 'extern "C" void exit (int);' \
|
|
|
d9d0ed |
+ 'void exit (int);'
|
|
|
d9d0ed |
+do
|
|
|
d9d0ed |
+ AC_TRY_COMPILE([#include <stdlib.h>
|
|
|
d9d0ed |
+$ac_declaration],
|
|
|
d9d0ed |
+ [exit (42);],
|
|
|
d9d0ed |
+ [],
|
|
|
d9d0ed |
+ [continue])
|
|
|
d9d0ed |
+ AC_TRY_COMPILE([$ac_declaration],
|
|
|
d9d0ed |
+ [exit (42);],
|
|
|
d9d0ed |
+ [break])
|
|
|
d9d0ed |
+done
|
|
|
d9d0ed |
+if test -n "$ac_declaration"; then
|
|
|
d9d0ed |
+ echo '#ifdef __cplusplus' >>confdefs.h
|
|
|
d9d0ed |
+ echo $ac_declaration >>confdefs.h
|
|
|
d9d0ed |
+ echo '#endif' >>confdefs.h
|
|
|
d9d0ed |
+fi
|
|
|
d9d0ed |
+])# AC_PROG_CXX_EXIT_DECLARATION
|
|
|
d9d0ed |
+
|
|
|
d9d0ed |
+
|
|
|
d9d0ed |
dnl Determine a Fortran 77 compiler to use. If `F77' is not already set
|
|
|
d9d0ed |
dnl in the environment, check for `g77', `f77' and `f2c', in that order.
|
|
|
d9d0ed |
dnl Set the output variable `F77' to the name of the compiler found.
|