diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-08-31 21:50:38 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-08-31 21:50:38 +0000 |
commit | fb589130a864058ea2202886f752945234fabba2 (patch) | |
tree | 3b2cb424a6f4a95eb6499232b298a3013d12caa6 /gas/configure | |
parent | 057815134f25d19307d6f6fb2a6956a9d52b719f (diff) | |
download | gdb-fb589130a864058ea2202886f752945234fabba2.zip gdb-fb589130a864058ea2202886f752945234fabba2.tar.gz gdb-fb589130a864058ea2202886f752945234fabba2.tar.bz2 |
* Makefile.in (prefix, exec_prefix): Use @-subtitutions.
* aclocal.m4 (AC_OUTPUT_LINKS): Deleted redefinition, since autoconf 1.109 has
this fixed.
* configure.in: Don't change quote characters around AC_MSG_ERROR invocation.
Don't use AC_HEADER_STDC, since it requires running a program. Cache
NEED_*_DECLARATION values.
* configure, conf.in: Regenerated with a modified autoconf 1.109.
Diffstat (limited to 'gas/configure')
-rwxr-xr-x | gas/configure | 303 |
1 files changed, 119 insertions, 184 deletions
diff --git a/gas/configure b/gas/configure index 0886ea1..6fb03dd 100755 --- a/gas/configure +++ b/gas/configure @@ -1,6 +1,7 @@ #!/bin/sh + # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 1.107 +# Generated automatically using autoconf version 1.109 # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc. # # This configure script is free software; you can redistribute it and/or @@ -219,7 +220,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 1.107" + echo "configure generated by autoconf version 1.109" exit 0 ;; -with-* | --with-*) @@ -419,6 +420,18 @@ ac_config_sub=${ac_aux_dir}/config.sub ac_configure=${ac_aux_dir}/configure # This should be Cygnus configure. ac_install_sh="${ac_aux_dir}/install.sh -c" +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' ac_t=' ' + else + ac_n=-n ac_c= ac_t= + fi +else + ac_n= ac_c='\c' ac_t= +fi + # Do some error checking and defaulting for the host and target type. # The inputs are: # configure --host=HOST --target=TARGET --build=BUILD NONOPT @@ -445,17 +458,6 @@ if ${ac_config_sub} sun4 >/dev/null 2>&1; then : else { echo "configure: can not run ${ac_config_sub}" 1>&2; exit 1; } fi -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi echo $ac_n "checking host system type""... $ac_c" 1>&4 host_alias=$host @@ -679,16 +681,14 @@ case "${obj_format}" in esac - -if [ ! -r ${srcdir}/config/tc-${cpu_type}.c ]; then +if test ! -r ${srcdir}/config/tc-${cpu_type}.c; then { echo "configure: GAS does not support target CPU ${cpu_type}" 1>&2; exit 1; } fi -if [ ! -r ${srcdir}/config/obj-${obj_format}.c ]; then +if test ! -r ${srcdir}/config/obj-${obj_format}.c; then { echo "configure: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; } fi - # and target makefile frag target_frag=${srcdir}/config/${gas_target}.mt @@ -881,17 +881,16 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.${ac_ext} <<EOF -#line 884 "configure" +#line 885 "configure" #include "confdefs.h" #include <stdio.h> Syntax Error EOF -# Some shells (Coherent) do redirections in the wrong order, so need -# the parens. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` +ac_err=`eval "$ac_cpp conftest.${ac_ext} >/dev/null" 2>&1` if test -z "$ac_err"; then : else + echo "$ac_err" >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.${ac_ext} <<EOF @@ -900,12 +899,11 @@ else #include <stdio.h> Syntax Error EOF -# Some shells (Coherent) do redirections in the wrong order, so need -# the parens. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` +ac_err=`eval "$ac_cpp conftest.${ac_ext} >/dev/null" 2>&1` if test -z "$ac_err"; then : else + echo "$ac_err" >&5 rm -rf conftest* CPP=/lib/cpp fi @@ -917,68 +915,43 @@ fi fi CPP="$ac_cv_prog_CPP" echo "$ac_t""$CPP" 1>&4 -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then + +for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h +do +ac_safe=`echo "${ac_hdr}" | tr './' '__'` +echo $ac_n "checking for ${ac_hdr}""... $ac_c" 1>&4 +if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.${ac_ext} <<EOF -#line 925 "configure" +#line 928 "configure" #include "confdefs.h" -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <float.h> +#include <${ac_hdr}> EOF -# Some shells (Coherent) do redirections in the wrong order, so need -# the parens. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` +ac_err=`eval "$ac_cpp conftest.${ac_ext} >/dev/null" 2>&1` if test -z "$ac_err"; then rm -rf conftest* - ac_cv_header_stdc=yes -else - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -cat > conftest.${ac_ext} <<EOF -#line 947 "configure" -#include "confdefs.h" -#include <string.h> -EOF -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" -if egrep "memchr" conftest.out >/dev/null 2>&1; then - : + eval "ac_cv_header_$ac_safe=yes" else + echo "$ac_err" >&5 rm -rf conftest* - ac_cv_header_stdc=no + eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* - fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. -cat > conftest.${ac_ext} <<EOF -#line 965 "configure" -#include "confdefs.h" -#include <stdlib.h> +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&4 + ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` + cat >> confdefs.h <<EOF +#define ${ac_tr_hdr} 1 EOF -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" -if egrep "free" conftest.out >/dev/null 2>&1; then - : + else - rm -rf conftest* - ac_cv_header_stdc=no + echo "$ac_t""no" 1>&4 fi -rm -f conftest* +done -fi -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. # If we cannot run a trivial program, we must be cross compiling. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4 if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then @@ -988,7 +961,7 @@ else { echo "configure: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.${ac_ext} <<EOF -#line 991 "configure" +#line 965 "configure" #include "confdefs.h" main(){exit(0);} EOF @@ -1003,75 +976,6 @@ rm -fr conftest* fi cross_compiling=$ac_cv_c_cross echo "$ac_t""$ac_cv_c_cross" 1>&4 -if test "$cross_compiling" = yes; then - { echo "configure: can not run test program while cross compiling" 1>&2; exit 1; } -else -cat > conftest.${ac_ext} <<EOF -#line 1010 "configure" -#include "confdefs.h" -#include <ctype.h> -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int main () { int i; for (i = 0; i < 256; i++) -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); -exit (0); } - -EOF -eval $ac_compile -if test -s conftest && (./conftest; exit) 2>/dev/null; then - : -else - ac_stdc_headers=no -fi -fi -rm -fr conftest* -fi -fi -echo "$ac_t""$ac_cv_header_stdc" 1>&4 -if test $ac_cv_header_stdc = yes; then - cat >> confdefs.h <<\EOF -#define STDC_HEADERS 1 -EOF - -fi - -for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h -do -ac_safe=`echo "${ac_hdr}" | tr './' '__'` -echo $ac_n "checking for ${ac_hdr}""... $ac_c" 1>&4 -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&4 -else - cat > conftest.${ac_ext} <<EOF -#line 1047 "configure" -#include "confdefs.h" -#include <${ac_hdr}> -EOF -# Some shells (Coherent) do redirections in the wrong order, so need -# the parens. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&4 - ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'` - cat >> confdefs.h <<EOF -#define ${ac_tr_hdr} 1 -EOF - -else - echo "$ac_t""no" 1>&4 -fi -done - # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! @@ -1080,7 +984,7 @@ if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.${ac_ext} <<EOF -#line 1083 "configure" +#line 988 "configure" #include "confdefs.h" #include <alloca.h> int main() { return 0; } @@ -1111,7 +1015,7 @@ if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.${ac_ext} <<EOF -#line 1114 "configure" +#line 1019 "configure" #include "confdefs.h" #ifdef __GNUC__ @@ -1169,7 +1073,7 @@ if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.${ac_ext} <<EOF -#line 1172 "configure" +#line 1077 "configure" #include "confdefs.h" #if defined(CRAY) && ! defined(CRAY2) webecray @@ -1178,8 +1082,8 @@ wenotbecray #endif EOF -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" -if egrep "webecray" conftest.out >/dev/null 2>&1; then +if eval "$ac_cpp conftest.${ac_ext}" 2>&5 | + egrep "webecray" >/dev/null 2>&1; then rm -rf conftest* ac_cv_os_cray=yes else @@ -1196,7 +1100,7 @@ if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.${ac_ext} <<EOF -#line 1199 "configure" +#line 1104 "configure" #include "confdefs.h" #include <ctype.h> /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -1237,7 +1141,7 @@ if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.${ac_ext} <<EOF -#line 1240 "configure" +#line 1145 "configure" #include "confdefs.h" #include <ctype.h> /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -1278,7 +1182,7 @@ if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.${ac_ext} <<EOF -#line 1281 "configure" +#line 1186 "configure" #include "confdefs.h" #include <ctype.h> /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -1332,7 +1236,7 @@ ac_cv_c_stack_direction=0 else cat > conftest.${ac_ext} <<EOF -#line 1335 "configure" +#line 1240 "configure" #include "confdefs.h" find_stack_direction () { @@ -1373,7 +1277,7 @@ if eval "test \"`echo '${'ac_cv_c_inline'+set}'`\" = set"; then else if test "$GCC" = yes; then cat > conftest.${ac_ext} <<EOF -#line 1376 "configure" +#line 1281 "configure" #include "confdefs.h" int main() { return 0; } @@ -1406,9 +1310,12 @@ fi # Some non-ANSI preprocessors botch requoting inside strings. That's bad # enough, but on some of those systems, the assert macro relies on requoting # working properly! -echo "checking for working assert macro" 1>&4 -cat > conftest.${ac_ext} <<EOF -#line 1411 "configure" +echo $ac_n "checking for working assert macro""... $ac_c" 1>&4 +if eval "test \"`echo '${'gas_cv_assert_ok'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&4 +else + cat > conftest.${ac_ext} <<EOF +#line 1319 "configure" #include "confdefs.h" #include <assert.h> #include <stdio.h> @@ -1426,23 +1333,30 @@ assert (a == b ; return 0; } EOF if eval $ac_compile; then - : + rm -rf conftest* + gas_cv_assert_ok=yes else rm -rf conftest* - cat >> confdefs.h <<\EOF -#define BROKEN_ASSERT 1 -EOF - + gas_cv_assert_ok=no fi rm -f conftest* +fi +echo "$ac_t""$gas_cv_assert_ok" 1>&4 +test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF +#define BROKEN_ASSERT 1 +EOF + # On some systems, the system header files may not declare malloc, realloc, # and free. There are places where gas needs these functions to have been # declared -- such as when taking their addresses. -echo "checking whether malloc declaration is required" 1>&4 -cat > conftest.${ac_ext} <<EOF -#line 1445 "configure" +echo $ac_n "checking whether a malloc declaration is required""... $ac_c" 1>&4 +if eval "test \"`echo '${'gas_cv_malloc_decl_needed'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&4 +else + cat > conftest.${ac_ext} <<EOF +#line 1360 "configure" #include "confdefs.h" #ifdef HAVE_MEMORY_H @@ -1467,19 +1381,27 @@ f = (char *(*)()) malloc; ; return 0; } EOF if eval $ac_compile; then - : + rm -rf conftest* + gas_cv_malloc_decl_needed=no else rm -rf conftest* - cat >> confdefs.h <<\EOF + gas_cv_malloc_decl_needed=yes +fi +rm -f conftest* + +fi +echo "$ac_t""$gas_cv_malloc_decl_needed" 1>&4 +test $gas_cv_malloc_decl_needed = no || cat >> confdefs.h <<\EOF #define NEED_MALLOC_DECLARATION 1 EOF -fi -rm -f conftest* -echo "checking free declaration required" 1>&4 -cat > conftest.${ac_ext} <<EOF -#line 1482 "configure" +echo $ac_n "checking whether a free declaration is required""... $ac_c" 1>&4 +if eval "test \"`echo '${'gas_cv_free_decl_needed'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&4 +else + cat > conftest.${ac_ext} <<EOF +#line 1405 "configure" #include "confdefs.h" #ifdef HAVE_MEMORY_H @@ -1504,22 +1426,30 @@ f = (int (*)()) free; ; return 0; } EOF if eval $ac_compile; then - : + rm -rf conftest* + gas_cv_free_decl_needed=no else rm -rf conftest* - cat >> confdefs.h <<\EOF -#define NEED_FREE_DECLARATION 1 -EOF - + gas_cv_free_decl_needed=yes fi rm -f conftest* +fi + +echo "$ac_t""$gas_cv_free_decl_needed" 1>&4 +test $gas_cv_free_decl_needed = no || cat >> confdefs.h <<\EOF +#define NEED_FREE_DECLARATION 1 +EOF + # Does errno.h declare errno, or do we have to add a separate declaration # for it? -echo "checking errno declaration required" 1>&4 -cat > conftest.${ac_ext} <<EOF -#line 1522 "configure" +echo $ac_n "checking whether an errno declaration is required""... $ac_c" 1>&4 +if eval "test \"`echo '${'gas_cv_errno_decl_needed'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&4 +else + cat > conftest.${ac_ext} <<EOF +#line 1453 "configure" #include "confdefs.h" #ifdef HAVE_ERRNO_H @@ -1535,16 +1465,21 @@ x = errno; ; return 0; } EOF if eval $ac_compile; then - : + rm -rf conftest* + gas_cv_errno_decl_needed=no else rm -rf conftest* - cat >> confdefs.h <<\EOF -#define NEED_ERRNO_DECLARATION 1 -EOF - + gas_cv_errno_decl_needed=yes fi rm -f conftest* +fi + +echo "$ac_t""$gas_cv_errno_decl_needed" 1>&4 +test $gas_cv_errno_decl_needed = no || cat >> confdefs.h <<\EOF +#define NEED_ERRNO_DECLARATION 1 +EOF + subdirs="testsuite" @@ -1613,7 +1548,7 @@ do echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create --norecursion exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create --norecursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "${CONFIG_STATUS} generated by autoconf version 1.107" + echo "${CONFIG_STATUS} generated by autoconf version 1.109" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; @@ -1777,12 +1712,12 @@ for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then EOF # Transform confdefs.h into a sed script conftest.vals that substitutes -# the proper values into config.h.in to produce config.h. +# the proper values into config.h.in to produce config.h. And first: +# Protect against being on the right side of a sed subst in config.status. +# Protect against being in an unquoted here document in config.status. rm -f conftest.vals cat > conftest.hdr <<\EOF -# Protect against being on the right side of a sed subst in config.status. s/[\\&%]/\\&/g -# Protect against being in an unquoted here document in config.status. s%[\\$`]%\\&%g s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp s%ac_d%ac_u%gp |