diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-11-03 23:15:54 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-11-03 23:15:54 +0000 |
commit | f28891108ca6a50679c2297cda546768f0a3bc76 (patch) | |
tree | 024d16996f2649581ffaf1ca2e670549682d6244 /gas/configure | |
parent | 6c27841f3b120b58f6306070deaccd7421696c1b (diff) | |
download | gdb-f28891108ca6a50679c2297cda546768f0a3bc76.zip gdb-f28891108ca6a50679c2297cda546768f0a3bc76.tar.gz gdb-f28891108ca6a50679c2297cda546768f0a3bc76.tar.bz2 |
Changes from net 2.5.2 release branch:
* configure.in: Put AC_DEFINE(sparcv9) on its own line, so that the shell
variable settings associated with it are permanent. For CPUs requiring
bfd_gas=yes, select it based on CPU only, not individual target names. Handle
m68k-hp-hpux*, not just -hpux.
* config/tc-z8k.c (tc_coff_symbol_emit_hook): Add dummy argument to match
prototype in obj-coff.h.
* configure.in: Skip tests for defining WANT_FOPEN_BIN and IBM_COMPILER_SUX.
* acconfig.h: Deleted them.
* configure, conf.in: Rebuild with autoconf 2.0.
* config/go32.cfg, config/vms-conf.h: Updated.
* config/tc-m68k.c (md_apply_fix_2, md_convert_frag_1): Always use
IBM_COMPILER_SUX version of code, with comments indicating why.
* listing.c (file_info): Use text mode when opening file for read. Use "r"
directly, no macro.
* input-file.c (input_file_open): Don't use FOPEN_RT, just use "r".
* read.c (s_include): Ditto.
* output-file.c (output_file_create): Try both "wb" and "w", don't bother with
FOPEN_* macros.
* as.h: Don't include fopen-*.h.
* config/alpha-opcode.h: Make "ret" with no operands equivalent to "ret
zero,(ra)", to match OSF1 and to be consistent with both one-operand forms.
Patches from DJ Delorie:
* as.h (alloca): undef alloca before defining it just in case
* config/go32.cfg: new file for autoconf values
* config/te-go32.h: new file
* configure.bat: new for autoconf
* config/tc-i386.c (md_assemble): Fix typo in GOTPC check; had = for ==.
* configure.in: If target_frag doesn't exist, use /dev/null.
* as.c (parse_args): For non-VMS systems, re-add `v' to std_shortopts. Add
"verbose" to list of long options.
* write.c (adjust_reloc_syms): When generating an absolute section symbol as a
placeholder, don't mark it as used in a relocation entry, here.
* Makefile.in (comparison): Compare using makefile code from gcc, stripped down
to discard subdir stuff and adapted to give a non-zero exit status if either
file differs.
Diffstat (limited to 'gas/configure')
-rwxr-xr-x | gas/configure | 155 |
1 files changed, 72 insertions, 83 deletions
diff --git a/gas/configure b/gas/configure index 0377a84..7baa0d9 100755 --- a/gas/configure +++ b/gas/configure @@ -1,27 +1,16 @@ #!/bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 1.120 -# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc. +# Generated automatically using autoconf version 2.0 +# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. # -# This configure script is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as published -# by the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This script is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -# Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this script; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# The redistribution and modification terms for this script do not affect -# the terms for software that it configures. +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +# Defaults: ac_help= +ac_default_prefix=/usr/local +# Any additions from configure.in: ac_help="$ac_help bfd-assembler use BFD back end for writing object files" @@ -35,8 +24,10 @@ Configuration: --quiet, --silent do not print \`checking...' messages --version print the version of autoconf that created configure Directory and file names: - --exec-prefix=PREFIX install host dependent files in PREFIX [/usr/local] - --prefix=PREFIX install host independent files in PREFIX [/usr/local] + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=PREFIX install architecture-dependent files in PREFIX + [same as prefix] --srcdir=DIR find the sources in DIR [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names @@ -69,6 +60,7 @@ program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= +site= srcdir= target=NONE verbose= @@ -208,6 +200,11 @@ EOF | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site="$ac_optarg" ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) @@ -222,7 +219,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 1.120" + echo "configure generated by autoconf version 2.0" exit 0 ;; -with-* | --with-*) @@ -359,17 +356,14 @@ if test ! -r $srcdir/$ac_unique_file; then { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fi fi +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then - CONFIG_SITE=$prefix/lib/config.site + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else - CONFIG_SITE=/usr/local/lib/config.site - fi - # System dependent files override system independent ones. - if test "x$exec_prefix" != xNONE && test "x$exec_prefix" != "x$prefix"; then - CONFIG_SITE="$CONFIG_SITE $exec_prefix/lib/config.site" + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do @@ -390,6 +384,7 @@ fi ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5' ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5' if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then @@ -449,9 +444,8 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. # 2. Host defaults to nonopt. # 3. If nonopt is not specified, then host defaults to the current host, # as determined by config.guess. -# 4. Target defaults to nonopt. -# 5. If nonopt is not specified, then target defaults to host. -# 6. build defaults to empty (but implicitly to host). +# 4. Target and build default to nonopt. +# 5. If nonopt is not specified, then target and build default to host. # The aliases save the names the user supplied, while $host etc. # will get canonicalized. @@ -507,14 +501,17 @@ echo $ac_n "checking build system type""... $ac_c" 1>&4 build_alias=$build case "$build_alias" in -NONE) build= build_alias= ;; -*) +NONE) + case $nonopt in + NONE) build_alias=$host_alias ;; + *) build_alias=$nonopt ;; + esac ;; +esac + build=`$ac_config_sub $build_alias` build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` -;; -esac echo "$ac_t""$build" 1>&4 test "$host_alias" != "$target_alias" && @@ -555,7 +552,8 @@ case ${target_cpu} in mips*) cpu_type=mips endian=big ;; powerpc*) cpu_type=ppc ;; rs6000*) cpu_type=ppc ;; - sparc64) cpu_type=sparc obj_format=elf cat >> confdefs.h <<\EOF + sparc64) cpu_type=sparc obj_format=elf + cat >> confdefs.h <<\EOF #define sparcv9 1 EOF ;; @@ -585,7 +583,7 @@ case ${generic_target} in alpha-*-netware*) obj_format=ecoff ;; alpha-*-osf*) obj_format=ecoff ;; - arm-*-riscix*) obj_format=aout bfd_gas=yes ;; + arm-*-riscix*) obj_format=aout ;; hppa-*-*elf*) obj_format=elf emulation=hppa ;; hppa-*-osf*) obj_format=som emulation=hppa ;; @@ -630,14 +628,14 @@ case ${generic_target} in m68k-apollo-*) obj_format=coff gas_target=apollo emulation=apollo ;; m68k-*-coff | m68k-*-sysv*) obj_format=coff gas_target=m68kcoff ;; - m68k-*-hpux) obj_format=hp300 emulation=hp300 ;; + m68k-*-hpux*) obj_format=hp300 emulation=hp300 ;; m68k-*-lynxos*) obj_format=coff gas_target=m68kcoff emulation=lynx ;; m88k-*-coff*) obj_format=coff gas_target=m88kcoff ;; # don't change emulation like *-*-bsd does - mips-*-bsd*) bfd_gas=yes obj_format=aout gas_target=mips-lit ;; + mips-*-bsd*) obj_format=aout gas_target=mips-lit ;; mips-*-ultrix*) obj_format=ecoff gas_target=mips-lit ;; mips-*-ecoff*) obj_format=ecoff case "$endian" in @@ -656,15 +654,15 @@ case ${generic_target} in *) gas_target=mips-lit ;; esac ;; - ppc-*-aix*) obj_format=coff bfd_gas=yes ;; - ppc-*-elf*) obj_format=elf bfd_gas=yes ;; + ppc-*-aix*) obj_format=coff ;; + ppc-*-elf*) obj_format=elf ;; ppc-*-netware*) obj_format=elf emulation=ppcnw ;; - ppc-*-sysv4*) obj_format=elf bfd_gas=yes ;; + ppc-*-sysv4*) obj_format=elf ;; sh-*-coff) obj_format=coff ;; - ns32k-pc532-mach*) obj_format=aout emulation=pc532 bfd_gas=yes ;; - ns32k-pc532-netbsd*) obj_format=aout emulation=nbsd532 bfd_gas=yes ;; + ns32k-pc532-mach*) obj_format=aout emulation=pc532 ;; + ns32k-pc532-netbsd*) obj_format=aout emulation=nbsd532 ;; sparc*-*-sunos4*) obj_format=aout emulation=sun3 ;; sparc*-*-aout | sparc*-*-vxworks) @@ -722,11 +720,18 @@ fi # and target makefile frag target_frag=${srcdir}/config/${gas_target}.mt +if test ! -r ${target_frag}; then + target_frag=/dev/null # ick! but subst_file can't be conditionalized +fi case ${cpu_type}-${obj_format} in + arm-*) bfd_gas=yes ;; # not yet # i386-aout) bfd_gas=preferred ;; + mips-*) bfd_gas=yes ;; + ns32k-*) bfd_gas=yes ;; + ppc-*) bfd_gas=yes ;; sparc*-*) bfd_gas=yes ;; *-elf) bfd_gas=yes ;; *-ecoff) bfd_gas=yes ;; @@ -811,22 +816,6 @@ cat >> confdefs.h <<EOF EOF -case ${host} in - rs6000-*-*) - # The IBM compiler mis-compiles some expressions used in gas. - # This will tell gas to work around this lossage. - cat >> confdefs.h <<\EOF -#define IBM_COMPILER_SUX 1 -EOF - ;; - i386-*-go32) - # Using fopen(..., "w") for a binary file breaks under DOS. - cat >> confdefs.h <<\EOF -#define WANT_FOPEN_BIN 1 -EOF - ;; -esac - echo $ac_n "checking for CC""... $ac_c" 1>&4 test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'` test -z "$CC" && CC=cc @@ -913,9 +902,9 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF -#line 917 "configure" +#line 906 "configure" #include "confdefs.h" -#include <stdio.h> +#include <assert.h> Syntax Error EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" @@ -927,9 +916,9 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF -#line 931 "configure" +#line 920 "configure" #include "confdefs.h" -#include <stdio.h> +#include <assert.h> Syntax Error EOF eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" @@ -952,13 +941,13 @@ echo "$ac_t""$CPP" 1>&4 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 './' '__'` +ac_safe=`echo "$ac_hdr" | tr './\055' '___'` 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 962 "configure" +#line 951 "configure" #include "confdefs.h" #include <$ac_hdr> EOF @@ -976,7 +965,7 @@ 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]__'` + ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` cat >> confdefs.h <<EOF #define $ac_tr_hdr 1 EOF @@ -1010,7 +999,7 @@ else ac_cv_cross=yes else cat > conftest.$ac_ext <<EOF -#line 1014 "configure" +#line 1003 "configure" #include "confdefs.h" main(){return(0);} EOF @@ -1033,7 +1022,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 1037 "configure" +#line 1026 "configure" #include "confdefs.h" #include <alloca.h> int main() { return 0; } @@ -1064,7 +1053,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 1068 "configure" +#line 1057 "configure" #include "confdefs.h" #ifdef __GNUC__ @@ -1122,7 +1111,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 1126 "configure" +#line 1115 "configure" #include "confdefs.h" #if defined(CRAY) && ! defined(CRAY2) webecray @@ -1149,7 +1138,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 1153 "configure" +#line 1142 "configure" #include "confdefs.h" #include <ctype.h> /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -1190,7 +1179,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 1194 "configure" +#line 1183 "configure" #include "confdefs.h" #include <ctype.h> /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -1231,7 +1220,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 1235 "configure" +#line 1224 "configure" #include "confdefs.h" #include <ctype.h> /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -1283,7 +1272,7 @@ else ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext <<EOF -#line 1287 "configure" +#line 1276 "configure" #include "confdefs.h" find_stack_direction () { @@ -1324,7 +1313,7 @@ if eval "test \"`echo '${'ac_cv_c_inline'+set}'`\" = set"; then else if test "$GCC" = yes; then cat > conftest.$ac_ext <<EOF -#line 1328 "configure" +#line 1317 "configure" #include "confdefs.h" int main() { return 0; } @@ -1332,7 +1321,7 @@ int t() { } inline foo() { ; return 0; } EOF -if eval $ac_link; then +if eval $ac_compile; then rm -rf conftest* ac_cv_c_inline=yes else @@ -1362,7 +1351,7 @@ if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext <<EOF -#line 1366 "configure" +#line 1355 "configure" #include "confdefs.h" #include <ctype.h> /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -1411,7 +1400,7 @@ 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 1415 "configure" +#line 1404 "configure" #include "confdefs.h" #include <assert.h> #include <stdio.h> @@ -1468,7 +1457,7 @@ if eval "test \"`echo '${'gas_cv_decl_needed_malloc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext <<EOF -#line 1472 "configure" +#line 1461 "configure" #include "confdefs.h" $gas_test_headers int main() { return 0; } @@ -1504,7 +1493,7 @@ if eval "test \"`echo '${'gas_cv_decl_needed_free'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext <<EOF -#line 1508 "configure" +#line 1497 "configure" #include "confdefs.h" $gas_test_headers int main() { return 0; } @@ -1543,7 +1532,7 @@ if eval "test \"`echo '${'gas_cv_decl_needed_errno'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext <<EOF -#line 1547 "configure" +#line 1536 "configure" #include "confdefs.h" #ifdef HAVE_ERRNO_H @@ -1610,7 +1599,7 @@ fi trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15 -test "x$prefix" = xNONE && prefix=/usr/local +test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' @@ -1650,7 +1639,7 @@ do echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 1.120" + echo "$CONFIG_STATUS generated by autoconf version 2.0" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; |