From e4dabd0ef53d766ea2b01478cfabd989b5b77995 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 26 Nov 1999 16:19:30 +0000 Subject: [PATCH] * configure.in: Put AC_MSG_CHECKING/AC_MSG_RESULT around check for STRINGIFY. Use yes/no instead of true/false as value for cache variable. * configure: Regenerate. --- ld/ChangeLog | 7 +++++++ ld/configure | 15 +++++++++------ ld/configure.in | 8 +++++--- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 41c5a5c44b..e5c5ec1f4f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +1999-11-26 Andreas Schwab + + * configure.in: Put AC_MSG_CHECKING/AC_MSG_RESULT around check for + STRINGIFY. Use yes/no instead of true/false as value for cache + variable. + * configure: Regenerate. + 1999-11-24 Nick Clifton * ldlang.c (IGNORE_SECTION): Section must have both ALLOC and LOAD diff --git a/ld/configure b/ld/configure index 0155179ec8..4b4ec5ec9f 100755 --- a/ld/configure +++ b/ld/configure @@ -3979,7 +3979,7 @@ else if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in - *.c | *.o | *.obj | *.ilk | *.pdb) ;; + *.c | *.o | *.obj) ;; *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; esac done @@ -4712,30 +4712,33 @@ fi # broken Microsoft MSVC compiler, which limits the length of string # constants, while still supporting pre-ANSI compilers which do not # support string concatenation. +echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6 +echo "configure:4717: checking whether ANSI C string concatenation works" >&5 if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - ld_cv_string_concatenation=true + ld_cv_string_concatenation=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - ld_cv_string_concatenation=false + ld_cv_string_concatenation=no fi rm -f conftest* fi -if test "$ld_cv_string_concatenation" = "true"; then +echo "$ac_t""$ld_cv_string_concatenation" 1>&6 +if test "$ld_cv_string_concatenation" = "yes"; then STRINGIFY=astring.sed else STRINGIFY=ostring.sed diff --git a/ld/configure.in b/ld/configure.in index c3d5e97250..32fc5f65ad 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -74,11 +74,13 @@ BFD_NEED_DECLARATION(environ) # broken Microsoft MSVC compiler, which limits the length of string # constants, while still supporting pre-ANSI compilers which do not # support string concatenation. +AC_MSG_CHECKING([whether ANSI C string concatenation works]) AC_CACHE_VAL(ld_cv_string_concatenation, [AC_TRY_COMPILE(,[char *a = "a" "a";], - [ld_cv_string_concatenation=true], - [ld_cv_string_concatenation=false])]) -if test "$ld_cv_string_concatenation" = "true"; then + [ld_cv_string_concatenation=yes], + [ld_cv_string_concatenation=no])]) +AC_MSG_RESULT($ld_cv_string_concatenation) +if test "$ld_cv_string_concatenation" = "yes"; then STRINGIFY=astring.sed else STRINGIFY=ostring.sed