m4-patches
[Top][All Lists]
Advanced

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

FYI: 41-gary-use-ac256-compiler-header-checking.patch


From: Gary V. Vaughan
Subject: FYI: 41-gary-use-ac256-compiler-header-checking.patch
Date: Thu, 14 Aug 2003 16:57:44 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030804

Applied to HEAD.
--
  ())_.  Gary V. Vaughan    gary@(oranda.demon.co.uk|gnu.org)
  ( '/   Research Scientist http://www.oranda.demon.co.uk       ,_())____
  / )=   GNU Hacker         http://www.gnu.org/software/libtool  \'      `&
`(_~)_   Tech' Author       http://sources.redhat.com/autobook   =`---d__/
Index: ChangeLog
from  Gary V. Vaughan  <address@hidden>
        * config/gnu-obstack.m4 (M4_AC_FUNC_OBSTACK): Use the interrim new
        compiler based AC_CHECK_HEADER that was introduced in
        autoconf-2.56.
        * config/stackovf.m4 (M4_AC_SYS_STACKOVF): Ditto.
        * config/gmp.m4 (AC_LIB_GMP): Ditto. And renamed to M4_AC_LIB_GMP.
        * configure.ac: Use renamed M4_AC_LIB_GMP.

Index: configure.ac
===================================================================
RCS file: /cvsroot/m4/m4/configure.ac,v
retrieving revision 1.8
diff -u -p -u -r1.8 configure.ac
--- configure.ac 6 Jun 2003 16:14:05 -0000 1.8
+++ configure.ac 14 Aug 2003 15:50:47 -0000
@@ -203,7 +203,7 @@ AC_FUNC_STRFTIME
 AC_CHECK_FUNCS(getcwd gethostname mktime uname)
 AC_CHECK_FUNCS(setenv unsetenv putenv clearenv)
 
-AC_LIB_GMP
+M4_AC_LIB_GMP
 AM_CONDITIONAL([USE_GMP], [test "x$USE_GMP" = xyes])
 
 
Index: config/gmp.m4
===================================================================
RCS file: /cvsroot/m4/m4/config/gmp.m4,v
retrieving revision 1.6
diff -u -p -u -r1.6 gmp.m4
--- config/gmp.m4 5 Oct 2001 07:50:26 -0000 1.6
+++ config/gmp.m4 14 Aug 2003 15:50:47 -0000
@@ -18,7 +18,7 @@
 
 # serial 6
 
-m4_define([_AC_LIB_GMP],
+m4_define([_M4_AC_LIB_GMP],
 [AC_ARG_WITH(gmp,
 [  --without-gmp           don't use GNU multiple precision arithmetic 
library],
 [use_gmp=$withval], [use_gmp=yes])
@@ -40,11 +40,12 @@ case $use_gmp:$LIBADD_GMP:$ac_cv_header_
     ac_cv_using_lib_gmp=no
     ;;
 esac
-])# _AC_LIB_GMP
+])# _M4_AC_LIB_GMP
 
 
-AC_DEFUN([AC_LIB_GMP],
-[AC_CHECK_HEADERS([gmp.h])
+AC_DEFUN([M4_AC_LIB_GMP],
+[AC_PREREQ(2.56)dnl We use the new compiler based header checking in 2.56
+AC_CHECK_HEADERS([gmp.h], [], [], $ac_default_headers)
 # Some versions of gmp provide mpq_init as a macro, so we need to
 # include the header file, otherwise the detection will fail.
 ac_gmp_save_LIBS="$LIBS"
@@ -59,7 +60,7 @@ AC_SUBST([LIBADD_GMP])
 
 AC_CACHE_CHECK([if using GNU multiple precision arithmetic library],
                [ac_cv_using_lib_gmp],
-               [_AC_LIB_GMP])
+               [_M4_AC_LIB_GMP])
 
 # Don't try to link in libgmp if we are not using it after the last call
 if test "$ac_cv_using_lib_gmp" = yes; then
@@ -68,4 +69,4 @@ if test "$ac_cv_using_lib_gmp" = yes; th
 fi
 
 AC_SUBST([USE_GMP], [$ac_cv_using_lib_gmp])
-])# AC_LIB_GMP
+])# M4_AC_LIB_GMP
Index: config/gnu-obstack.m4
===================================================================
RCS file: /cvsroot/m4/m4/config/gnu-obstack.m4,v
retrieving revision 1.9
diff -u -p -u -r1.9 gnu-obstack.m4
--- config/gnu-obstack.m4 22 Jan 2002 16:24:26 -0000 1.9
+++ config/gnu-obstack.m4 14 Aug 2003 15:50:47 -0000
@@ -1,7 +1,7 @@
 #                                                            -*- Autoconf -*-
 # gnu-obstack.m4 -- the libc supplied version of obstacks if available.
 #
-# Copyright 2000, 2001 Gary V. Vaughan <address@hidden>
+# Copyright 2000, 2001, 2003 Gary V. Vaughan <address@hidden>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -20,13 +20,12 @@
 
 # serial 6
 
-AC_PREREQ(2.52)
-
 # M4_AC_FUNC_OBSTACK
 # ------------------
 # Use the libc supplied version of obstacks if available.
 AC_DEFUN([M4_AC_FUNC_OBSTACK],
-[AC_CHECK_HEADER(obstack.h)
+[AC_PREREQ(2.56)dnl We use the new compiler based header checking in 2.56
+AC_CHECK_HEADER(obstack.h, [], [], $ac_default_headers)
 m4_pattern_allow([^m4_cv_func_obstack$])dnl
 m4_pattern_allow([^m4_obstack_h$])dnl
 
Index: config/stackovf.m4
===================================================================
RCS file: /cvsroot/m4/m4/config/stackovf.m4,v
retrieving revision 1.1
diff -u -p -u -r1.1 stackovf.m4
--- config/stackovf.m4 7 Aug 2001 10:02:25 -0000 1.1
+++ config/stackovf.m4 14 Aug 2003 15:50:47 -0000
@@ -1,11 +1,32 @@
-# -*- Autoconf -*-
-#serial 1
+#                                                            -*- Autoconf -*-
+# stackovf.m4 -- how do we deal with stack overflow?
+#
+# Copyright 2000, 2003 Gary V. Vaughan <address@hidden>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; see the file COPYING.  If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# serial 1
 
 # M4_AC_SYS_STACKOVF
 # ------------------
 AC_DEFUN([M4_AC_SYS_STACKOVF],
-[AC_REQUIRE([AC_TYPE_SIGNAL])dnl
-AC_CHECK_HEADERS(siginfo.h)
+[AC_PREREQ(2.56)dnl We use the new compiler based header checking in 2.56
+AC_REQUIRE([AC_TYPE_SIGNAL])dnl
+
+AC_CHECK_HEADERS(siginfo.h, [], [], $ac_default_headers)
 AC_CHECK_FUNCS(sigaction sigaltstack sigstack sigvec)
 AC_MSG_CHECKING(if stack overflow is detectable)
 # Code from Jim Avera <address@hidden>.

reply via email to

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