]> www.ginac.de Git - cln.git/commitdiff
Prepare for autoconf-2.60.
authorBruno Haible <bruno@clisp.org>
Wed, 19 Apr 2006 16:10:18 +0000 (16:10 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 19 Apr 2006 16:10:18 +0000 (16:10 +0000)
ChangeLog
m4/general.m4
m4/longdouble.m4
m4/longlong.m4
m4/times.m4

index f7aa6eb36a42c24b1ca98eb01497b49bf3789a91..7b06fab1f9de136c83bcfeeb5649747f525fa8b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-04-19  Bruno Haible  <bruno@clisp.org>
+
+       Prepare for autoconf-2.60.
+       * general.m4 (CL_CC_WORKS): Include <stdlib.h>, for exit() declaration.
+       * longdouble.m4 (CL_LONGDOUBLE): Likewise.
+       * longlong.m4 (CL_LONGLONG): Likewise.
+       * times.m4 (CL_TIMES_CLOCK): Likewise.
+       Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
 2005-12-04  Bruno Haible  <bruno@clisp.org>
 
        * src/integer/conv/cl_I_to_digits.cc (I_to_digits_noshrink): Set
index 0c550af7a620561995945934cc7dcb6f1afea3e3..b9fa4ba7d9cb9b20df64e5da6be63a4d27b79c3d 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright (C) 1993-2002 Free Software Foundation, Inc.
+dnl Copyright (C) 1993-2006 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
 dnl Public License, this file may be distributed as part of a program
@@ -93,7 +93,10 @@ AC_DEFUN([CL_CC_WORKS],
 [AC_CACHE_CHECK(whether CC works at all, cl_cv_prog_cc_works, [
 AC_LANG_SAVE()
 AC_LANG_C()
-AC_TRY_RUN([int main() { exit(0); }],
+AC_TRY_RUN([
+#include <stdlib.h>
+int main() { exit(0); }
+],
 cl_cv_prog_cc_works=yes, cl_cv_prog_cc_works=no,
 AC_TRY_LINK([], [], cl_cv_prog_cc_works=yes, cl_cv_prog_cc_works=no))
 AC_LANG_RESTORE()
index 069de223f1d795abaeff68087b3d6bc62b01f900..70b08e417b3d4a4f1a9070430e1a4c795339d43a 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright (C) 1993-2005 Free Software Foundation, Inc.
+dnl Copyright (C) 1993-2006 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
 dnl Public License, this file may be distributed as part of a program
@@ -11,8 +11,11 @@ AC_PREREQ(2.13)
 
 AC_DEFUN([CL_LONGDOUBLE],
 [AC_CACHE_CHECK(for long double type, cl_cv_c_longdouble, [
-AC_TRY_RUN([int main()
-{ long double x = 2.7182818284590452354L; x = x*x; exit (x==0.0L); }],
+AC_TRY_RUN([
+#include <stdlib.h>
+int main()
+{ long double x = 2.7182818284590452354L; x = x*x; exit (x==0.0L); }
+],
 cl_cv_c_longdouble=yes, cl_cv_c_longdouble=no, [
 dnl When cross-compiling, use the test from gnulib.
 AC_TRY_COMPILE([
index e3bdb97104d70fccc01b363fe08387cfb5aa931c..78fae88cd1f6e760cfc7ca6319958e29200a8a4c 100644 (file)
@@ -1,5 +1,5 @@
 dnl -*- Autoconf -*-
-dnl Copyright (C) 1993-2005 Free Software Foundation, Inc.
+dnl Copyright (C) 1993-2006 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
 dnl Public License, this file may be distributed as part of a program
@@ -12,7 +12,9 @@ AC_PREREQ(2.57)
 
 AC_DEFUN([CL_LONGLONG],
 [AC_CACHE_CHECK(for long long type, cl_cv_c_longlong, [
-AC_TRY_RUN([int main()
+AC_TRY_RUN([
+#include <stdlib.h>
+int main()
 {
 /* long longs don't work right with gcc-2.7.2 on m68k */
 /* long longs don't work right with gcc-2.7.2 on rs6000: avcall/tests.c gets
index c03b548b5a624295e426e30e48543dcc57a4cb26..d0d2b0e75a8ab2e9a27b2dfeba57d46b72ae2b20 100644 (file)
@@ -1,5 +1,5 @@
 dnl -*- Autoconf -*-
-dnl Copyright (C) 1993-2003 Free Software Foundation, Inc.
+dnl Copyright (C) 1993-2006 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
 dnl Public License, this file may be distributed as part of a program
@@ -17,6 +17,7 @@ AC_CHECK_FUNC(times, , no_times=1)dnl
 if test -z "$no_times"; then
 AC_CACHE_CHECK(for times return value, cl_cv_func_times_return, [
 AC_TRY_RUN([
+#include <stdlib.h> /* needed for exit() */
 #include <sys/types.h>
 #include <time.h> /* needed for CLK_TCK */
 #ifndef CLK_TCK