[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14-useless-ac-require-cpp.patch
From: |
Akim Demaille |
Subject: |
14-useless-ac-require-cpp.patch |
Date: |
12 Nov 2000 15:55:06 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* acfunctions.m4 (AC_FUNC_ALLOCA): Don't require AC_PROG_CPP,
since (i) you actually need a compiler, (ii) AC_TRY_LINK handles
it.
* acheaders.m4 (AC_HEADER_STDC): Don't require AC_PROG_CPP,
AC_TRY_CPP does it.
Index: acfunctions.m4
--- acfunctions.m4 Sat, 11 Nov 2000 16:02:51 +0100 akim (ace/b/37_acfunction
1.9 644)
+++ acfunctions.m4 Sun, 12 Nov 2000 10:43:16 +0100 akim (ace/b/37_acfunction
1.9 644)
@@ -197,8 +197,7 @@ m4_define([_AC_LIBOBJ_ALLOCA],
# AC_FUNC_ALLOCA
# --------------
AC_DEFUN([AC_FUNC_ALLOCA],
-[AC_REQUIRE_CPP()dnl Set CPP; we run AC_EGREP_CPP conditionally.
-# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+[# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
AC_CACHE_CHECK([for working alloca.h], ac_cv_working_alloca_h,
[AC_TRY_LINK(address@hidden:@include <alloca.h>],
Index: acgeneral.m4
--- acgeneral.m4 Sat, 11 Nov 2000 18:44:22 +0100 akim (ace/27_acgeneral.
1.169.8.89 644)
+++ acgeneral.m4 Sun, 12 Nov 2000 10:47:45 +0100 akim (ace/27_acgeneral.
1.169.8.89 644)
@@ -2771,10 +2771,12 @@ m4_define([AH_CHECK_LIB],
# _AC_TRY_CPP
# -----------
# Run cpp and set ac_cpp_err to "yes" for an error, to
-# "$ac_(c,cxx)_preproc_warn_flag" if there are warnings or to "" if neither
-# warnings nor errors have been detected.
-# eval is necessary to expand ac_cpp. It may put trace lines to conftest.err
-# when run under sh -x (e.g. when zsh is used), so we filter them out.
+# "$ac_(c,cxx)_preproc_warn_flag" if there are warnings or to "" if
+# neither warnings nor errors have been detected. eval is necessary
+# to expand ac_cpp. It may put trace lines to conftest.err when run
+# under sh -x (e.g. when zsh is used), so we filter them out.
+#
+# Do not require AC_PROG_CPP since this macro is also used by AC_PROG_CPP.
AC_DEFUN([_AC_TRY_CPP],
[ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
if AC_TRY_EVAL(ac_try); then
@@ -2812,15 +2814,6 @@ AC_DEFUN([AC_TRY_CPP],
])# AC_TRY_CPP
-# AC_EGREP_HEADER(PATTERN, HEADER-FILE,
-# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-# ---------------------------------------------------------
-AC_DEFUN([AC_EGREP_HEADER],
-[AC_EGREP_CPP([$1],
-[#include <$2>
-], [$3], [$4])])
-
-
# AC_EGREP_CPP(PATTERN, PROGRAM,
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
# ------------------------------------------------------
@@ -2840,6 +2833,16 @@ AC_DEFUN([AC_EGREP_CPP],
fi
rm -f conftest*
])# AC_EGREP_CPP
+
+
+# AC_EGREP_HEADER(PATTERN, HEADER-FILE,
+# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# ---------------------------------------------------------
+AC_DEFUN([AC_EGREP_HEADER],
+[AC_EGREP_CPP([$1],
+[#include <$2>
+], [$3], [$4])])
+
Index: acheaders.m4
--- acheaders.m4 Sat, 11 Nov 2000 18:44:22 +0100 akim (ace/b/48_acheaders. 1.1
644)
+++ acheaders.m4 Sun, 12 Nov 2000 10:40:22 +0100 akim (ace/b/48_acheaders. 1.1
644)
@@ -223,8 +223,7 @@ AC_DEFUN([AC_HEADER_STAT],
# AC_HEADER_STDC
# --------------
AC_DEFUN([AC_HEADER_STDC],
-[AC_REQUIRE_CPP()dnl
-AC_CACHE_CHECK(for ANSI C header files, ac_cv_header_stdc,
+[AC_CACHE_CHECK(for ANSI C header files, ac_cv_header_stdc,
[AC_TRY_CPP([#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
- 14-useless-ac-require-cpp.patch,
Akim Demaille <=