diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-08-06 22:46:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-08-06 22:46:03 +0000 |
commit | 597e25914ec5895fba8097946514d4b8c878eb0a (patch) | |
tree | fdc7d79e1329f02cd7685d15e9dc98a2d5072989 /ld/configure | |
parent | 4a607dcc2c50b3c622c4e12c405ef33d85ee7f5f (diff) | |
download | gdb-597e25914ec5895fba8097946514d4b8c878eb0a.zip gdb-597e25914ec5895fba8097946514d4b8c878eb0a.tar.gz gdb-597e25914ec5895fba8097946514d4b8c878eb0a.tar.bz2 |
* emultempl/ostring.sed: Rename from stringify.sed.
* emultempl/astring.sed: New file.
* Makefile.am (stringify.sed): New target.
(GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
stringify.sed.
* configure.in: Define and substitute STRINGIFY.
* emultempl/*.em: Use stringify.sed from build directory rather
than source directory.
* emultempl/elf32.em: Use stringify.sed rather than inline sed
script.
* emultempl/gld960.em, emultempl/gld960c.em: Likewise.
* emultempl/hppaelf.em, emultempl/linux.em: Likewise.
* emultempl/lnk960.em, emultempl/sunos.em: Likewise.
* configure, Makefile.in: Rebuild.
Diffstat (limited to 'ld/configure')
-rwxr-xr-x | ld/configure | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ld/configure b/ld/configure index 00a8d9d..f2baf1d 100755 --- a/ld/configure +++ b/ld/configure @@ -4717,6 +4717,42 @@ EOF fi +# When converting linker scripts into strings for use in emulation +# files, use astring.sed if the compiler supports ANSI string +# concatenation, or ostring.sed otherwise. This is to support the +# broken Microsoft MSVC compiler, which limits the length of string +# constants, while still supporting pre-ANSI compilers which do not +# support string concatenation. +if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 4731 "configure" +#include "confdefs.h" + +int main() { +char *a = "a" "a"; +; return 0; } +EOF +if { (eval echo configure:4738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ld_cv_string_concatenation=true +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ld_cv_string_concatenation=false +fi +rm -f conftest* +fi + +if test "$ld_cv_string_concatenation" = "true"; then + STRINGIFY=astring.sed +else + STRINGIFY=ostring.sed +fi + + # target-specific stuff: all_targets= @@ -5013,6 +5049,7 @@ s%@HDEFINES@%$HDEFINES%g s%@HOSTING_CRT0@%$HOSTING_CRT0%g s%@HOSTING_LIBS@%$HOSTING_LIBS%g s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g +s%@STRINGIFY@%$STRINGIFY%g s%@EMUL@%$EMUL%g /@TDIRS@/r $TDIRS s%@TDIRS@%%g |