fc1715b
Fix historic autoconf-generated checks to not fail with C99 compilers.
fc1715b
There is no need to upstream this patch because current autoconf no
fc1715b
longer generates these problematic checks.
fc1715b
fc1715b
diff --git a/configure b/configure
fc1715b
index f4812065f79460af..dfc195eb7d62840d 100755
fc1715b
--- a/configure
fc1715b
+++ b/configure
fc1715b
@@ -2098,7 +2098,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
fc1715b
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc1715b
   (exit $ac_status); }; }; then
fc1715b
   for ac_declaration in \
fc1715b
-   '' \
fc1715b
+   '#include <stdlib.h>' \
fc1715b
    'extern "C" void std::exit (int) throw (); using std::exit;' \
fc1715b
    'extern "C" void std::exit (int); using std::exit;' \
fc1715b
    'extern "C" void exit (int) throw ();' \
fc1715b
@@ -2759,8 +2759,8 @@ main ()
fc1715b
   for (i = 0; i < 256; i++)
fc1715b
     if (XOR (islower (i), ISLOWER (i))
fc1715b
 	|| toupper (i) != TOUPPER (i))
fc1715b
-      exit(2);
fc1715b
-  exit (0);
fc1715b
+      return 2;
fc1715b
+  return 0;
fc1715b
 }
fc1715b
 _ACEOF
fc1715b
 rm -f conftest$ac_exeext