aclocal.m4: Quote final argument of patsubst.

* aclocal.m4: Quote final argument of patsubst.  Use
	3-argument form of AC_DEFINE.  Restore quotes to [] while
	using AC_FD_CC.
	* configure.in: Remove unnecessary changequote calls.
	* configure, config.in: Regenerate.

From-SVN: r42617
This commit is contained in:
Zack Weinberg 2001-05-26 04:54:42 +00:00 committed by Zack Weinberg
parent 88657302b7
commit 05e126346a
5 changed files with 42 additions and 33 deletions

View file

@ -1,3 +1,11 @@
2001-05-25 Zack Weinberg <zackw@stanford.edu>
* aclocal.m4: Quote final argument of patsubst. Use
3-argument form of AC_DEFINE. Restore quotes to [] while
using AC_FD_CC.
* configure.in: Remove unnecessary changequote calls.
* configure, config.in: Regenerate.
2001-05-25 Sam TH <sam@uchicago.edu>
* basic-block.h: Fix header include guards.

9
gcc/aclocal.m4 vendored
View file

@ -70,8 +70,8 @@ done
dnl Automatically generate config.h entries via autoheader.
if test x = y ; then
patsubst(translit([$1], [a-z], [A-Z]), [\w+],
AC_DEFINE([HAVE_DECL_\&], 1,
[Define to 1 if we found this declaration otherwise define to 0.]))dnl
[AC_DEFINE([HAVE_DECL_\&], 1,
[Define to 1 if we found this declaration otherwise define to 0.])])dnl
fi
])
@ -206,7 +206,8 @@ switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;],
gcc_cv_c_long_double=yes, gcc_cv_c_long_double=no)
fi])
if test $gcc_cv_c_long_double = yes; then
AC_DEFINE(HAVE_LONG_DOUBLE)
AC_DEFINE(HAVE_LONG_DOUBLE, 1,
[Define if your compiler supports the \`long double' type.])
fi
])
@ -1135,7 +1136,9 @@ if test -n "[$]$1"; then
[changequote(<<,>>)dnl
ac_prog_version=`<<$>>$1 $3 2>&1 |
sed -n 's/^.*patsubst(<<$4>>,/,\/).*$/\1/p'`
changequote([,])dnl
echo "configure:__oline__: version of $2 is $ac_prog_version" >&AC_FD_CC
changequote(<<,>>)dnl
case $ac_prog_version in
'') gcc_cv_prog_$2_modern=no;;
<<$5>>)

View file

@ -13,9 +13,6 @@
/* Define if you don't have vprintf but do have _doprnt. */
#undef HAVE_DOPRNT
/* Define if the `long double' type works. */
#undef HAVE_LONG_DOUBLE
/* Define if you have the ANSI # stringizing operator in cpp. */
#undef HAVE_STRINGIZE
@ -296,6 +293,9 @@
/* Define if your compiler understands volatile. */
#undef HAVE_VOLATILE
/* Define if your compiler supports the `long double' type. */
#undef HAVE_LONG_DOUBLE
/* Define if your compiler supports the `long long' type. */
#undef HAVE_LONG_LONG

50
gcc/configure vendored
View file

@ -2052,7 +2052,7 @@ EOF
fi
# Find some useful tools
for ac_prog in gawk mawk nawk awk
for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@ -4490,66 +4490,66 @@ fi
done
if test x = y ; then
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_GETENV 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_ATOL 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_SBRK 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_ABORT 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_ATOF 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_GETCWD 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_GETWD 1
EOF
\
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_STRSIGNAL 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_PUTC_UNLOCKED 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_FPUTS_UNLOCKED 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_STRSTR 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_ENVIRON 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_ERRNO 1
EOF
\
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_MALLOC 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_REALLOC 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_CALLOC 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_FREE 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_BASENAME 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_GETOPT 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_CLOCK 1
EOF
fi
@ -4608,13 +4608,13 @@ fi
done
if test x = y ; then
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_GETRLIMIT 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_SETRLIMIT 1
EOF
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_GETRUSAGE 1
EOF
fi
@ -4673,7 +4673,7 @@ fi
done
if test x = y ; then
cat >> confdefs.h <<EOF
cat >> confdefs.h <<\EOF
#define HAVE_DECL_TIMES 1
EOF
fi

View file

@ -743,7 +743,6 @@ echo "Using \`$srcdir/config/$md_file' as machine description file."
# If any of the xm_file variables contain nonexistent files, warn
# about them and drop them.
changequote(,)dnl
bx=
for x in $build_xm_file; do
if test -f $srcdir/config/$x
@ -770,7 +769,6 @@ for x in $xm_file; do
fi
done
xm_file="$tx"
changequote([,])dnl
count=a
for f in $tm_file; do