Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl
|
|
|
|
dnl And be careful when changing it! If you must add tests with square
|
|
|
|
dnl brackets, be sure changequote invocations surround it.
|
|
|
|
dnl
|
|
|
|
dnl
|
1997-08-06 04:30:05 +00:00
|
|
|
dnl v2.5 needed for --bindir et al
|
|
|
|
AC_PREREQ(2.5)
|
|
|
|
AC_INIT(as.h)
|
|
|
|
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
|
1998-06-03 19:12:08 +00:00
|
|
|
AM_INIT_AUTOMAKE(gas, 2.9.4)
|
1997-08-06 04:30:05 +00:00
|
|
|
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
1994-09-05 10:53:00 +00:00
|
|
|
user_bfd_gas=
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
AC_ARG_ENABLE(bfd-assembler,
|
1995-10-31 21:41:59 +00:00
|
|
|
[ --enable-bfd-assembler use BFD back end for writing object files],
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
[case "${enableval}" in
|
1994-09-05 10:53:00 +00:00
|
|
|
yes) need_bfd=yes user_bfd_gas=yes ;;
|
|
|
|
no) user_bfd_gas=no ;;
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} given for bfd-assembler option) ;;
|
|
|
|
esac])dnl
|
1995-05-10 23:08:40 +00:00
|
|
|
AC_ARG_ENABLE(targets,
|
|
|
|
[ targets alternative target configurations besides the primary],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes | "") AC_ERROR(enable-targets option must specify target names or 'all')
|
|
|
|
;;
|
|
|
|
no) enable_targets= ;;
|
|
|
|
*) enable_targets=$enableval ;;
|
|
|
|
esac])dnl
|
1997-03-28 23:16:18 +00:00
|
|
|
AC_ARG_ENABLE(commonbfdlib,
|
|
|
|
[ --enable-commonbfdlib build shared BFD/opcodes/libiberty library],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) commonbfdlib=true ;;
|
|
|
|
no) commonbfdlib=false ;;
|
|
|
|
*) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
|
|
|
|
esac])dnl
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
|
1997-08-06 04:30:05 +00:00
|
|
|
# Generate a header file
|
|
|
|
AM_CONFIG_HEADER(config.h:config.in)
|
1993-05-05 20:50:53 +00:00
|
|
|
|
1995-05-10 23:08:40 +00:00
|
|
|
te_file=generic
|
1991-08-28 21:49:12 +00:00
|
|
|
|
1998-08-26 17:25:19 +00:00
|
|
|
# Makefile target for installing gas in $(tooldir)/bin.
|
|
|
|
install_tooldir=install-exec-tooldir
|
|
|
|
|
1995-05-10 23:08:40 +00:00
|
|
|
canon_targets=""
|
|
|
|
if test -n "$enable_targets" ; then
|
|
|
|
for t in `echo $enable_targets | sed 's/,/ /g'`; do
|
1997-04-15 22:34:57 +00:00
|
|
|
result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null`
|
1995-05-10 23:08:40 +00:00
|
|
|
if test -n "$result" ; then
|
|
|
|
canon_targets="$canon_targets $result"
|
|
|
|
# else
|
|
|
|
# # Permit "all", etc. We don't support it yet though.
|
|
|
|
# canon_targets="$canon_targets $t"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
GAS_UNIQ(canon_targets)
|
|
|
|
fi
|
|
|
|
|
|
|
|
emulations=""
|
|
|
|
|
|
|
|
for this_target in $target $canon_targets ; do
|
|
|
|
|
1996-12-28 05:59:26 +00:00
|
|
|
changequote(,)dnl
|
|
|
|
eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
|
|
|
|
changequote([,])dnl
|
1993-10-21 19:50:06 +00:00
|
|
|
|
1995-05-10 23:08:40 +00:00
|
|
|
# check for architecture variants
|
1997-09-19 00:57:16 +00:00
|
|
|
arch=
|
1997-09-03 23:06:11 +00:00
|
|
|
endian=
|
1995-05-10 23:08:40 +00:00
|
|
|
case ${cpu} in
|
1997-10-08 19:36:17 +00:00
|
|
|
alpha*) cpu_type=alpha ;;
|
1996-02-14 23:13:13 +00:00
|
|
|
armeb) cpu_type=arm endian=big ;;
|
|
|
|
arm*) cpu_type=arm endian=little ;;
|
1997-07-08 02:57:50 +00:00
|
|
|
thumb*) cpu_type=arm endian=little ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
hppa*) cpu_type=hppa ;;
|
|
|
|
changequote(,)dnl
|
1996-02-15 16:22:03 +00:00
|
|
|
i[456]86) cpu_type=i386 ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
m680[012346]0) cpu_type=m68k ;;
|
1998-06-03 19:12:08 +00:00
|
|
|
changequote([,])dnl
|
1995-05-10 23:08:40 +00:00
|
|
|
m68008) cpu_type=m68k ;;
|
|
|
|
m683??) cpu_type=m68k ;;
|
1998-06-03 19:12:08 +00:00
|
|
|
m5200) cpu_type=m68k ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
m8*) cpu_type=m88k ;;
|
1997-01-02 21:53:52 +00:00
|
|
|
mips*el) cpu_type=mips endian=little ;;
|
1997-10-22 21:34:33 +00:00
|
|
|
# start-sanitize-r5900
|
1997-07-15 16:13:18 +00:00
|
|
|
mips*5900*) cpu_type=mips endian=little ;;
|
1997-10-22 21:34:33 +00:00
|
|
|
# end-sanitize-r5900
|
1995-05-10 23:08:40 +00:00
|
|
|
mips*) cpu_type=mips endian=big ;;
|
|
|
|
powerpcle*) cpu_type=ppc endian=little ;;
|
|
|
|
powerpc*) cpu_type=ppc endian=big ;;
|
|
|
|
rs6000*) cpu_type=ppc ;;
|
1997-09-19 00:57:16 +00:00
|
|
|
sparclite*) cpu_type=sparc arch=sparclite ;;
|
|
|
|
sparclet*) cpu_type=sparc arch=sparclet ;;
|
1997-10-20 20:02:28 +00:00
|
|
|
sparc64*) cpu_type=sparc arch=v9-64 ;;
|
1998-04-18 18:12:20 +00:00
|
|
|
sparc86x*) cpu_type=sparc arch=sparc86x ;;
|
1997-09-19 00:57:16 +00:00
|
|
|
sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
|
1997-09-10 17:05:00 +00:00
|
|
|
v850*) cpu_type=v850 ;;
|
* config/m68k-parse.y: New file: bison grammar for m68k operands,
including support for Motorola syntax.
* config/m68k-parse.h: New file; definitions shared between
m68k-parse.y and tc-m68k.c.
* config/tc-m68k.c: Include m68k-parse.h.
(enum operand_type): Move to m68k-parse.h, where it is named
m68k_operand_type. Rename all uses. Rearrange somewhat. Add
FPREG. Rename AOFF to DISP. Rename AINDX to BASE. Rename APODX
to POST. Rename APRDX to PRE. Remove AMIND. Rename MSCR to
CONTROL. Remove DINDR.
(struct m68k_exp): Move to m68k-parse.h. Remove e_beg, e_end and
e_seg fields. Rename e_exp to exp. Rename e_siz to size, and
change type to enum m68k_size. Change all uses.
(enum _register): Move to m68k-parse.h, where it is named
m68k_register. Rename all uses. Add ZDATA0-7 and ZADDR0-7.
(struct m68k_op): Move to m68k-parse.h. Change all fields.
(seg): Don't define.
(add_exp): Remove.
(FAIL, OK): Remove.
(m68k_reg_parse): Move to m68k-parse.y, and rewrite.
(SKIP_WHITE, SKIP_W): Remove.
(try_moto_index, try_index): Remove.
(m68k_ip_op): Move to m68k-parse.y, and rewrite to use grammar.
(main): Remove obsolete test function.
(m68k_ip): Extensive changes to use new grammar.
(get_regs): Remove.
(crack_operand): m68k_ip_op now returns 0 on success.
(init_table): Add ssp, zd0-7 and za0-7.
(md_assemble): Make er const. Correct loop over operands when
looking for error message.
(md_begin): Set alt_notend_table for '(' and '@'.
(get_num): Expression is already parsed. Don't set seg.
* configure.in: If cpu_type is m68k, put m68k-parse.o in
extra-objects.
* configure: Rebuild.
* Makefile.in (DISTSTUFF): Add m68k-parse.c.
(BISON): Use ../bison/bison if it exists.
(BISONFLAGS): Define as empty.
(TARG_CPU_DEP_m68k): Depend upon $(srcdir)/config/m68k-parse.h.
(m68k-parse.c, m68k-parse.o): New targets.
1995-08-08 02:36:10 +00:00
|
|
|
*) cpu_type=${cpu} ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
if test ${this_target} = $target ; then
|
|
|
|
target_cpu_type=${cpu_type}
|
1997-09-03 23:06:11 +00:00
|
|
|
if test x${endian} = xbig; then
|
|
|
|
AC_DEFINE(TARGET_BYTES_BIG_ENDIAN, 1)
|
|
|
|
elif test x${endian} = xlittle; then
|
|
|
|
AC_DEFINE(TARGET_BYTES_BIG_ENDIAN, 0)
|
|
|
|
fi
|
1995-05-10 23:08:40 +00:00
|
|
|
elif test ${target_cpu_type} != ${cpu_type} ; then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
|
|
|
generic_target=${cpu_type}-$vendor-$os
|
|
|
|
dev=no
|
|
|
|
bfd_gas=no
|
|
|
|
em=generic
|
1993-05-05 20:50:53 +00:00
|
|
|
|
1995-05-10 23:08:40 +00:00
|
|
|
# assign object format
|
|
|
|
case ${generic_target} in
|
1997-09-03 23:06:11 +00:00
|
|
|
a29k-*-coff) fmt=coff ;;
|
|
|
|
a29k-amd-udi) fmt=coff ;;
|
|
|
|
a29k-amd-ebmon) fmt=coff ;;
|
|
|
|
a29k-nyu-sym1) fmt=coff ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
a29k-*-vxworks*) fmt=coff ;;
|
|
|
|
|
1997-10-08 19:36:17 +00:00
|
|
|
alpha*-*-*vms*) fmt=evax ;;
|
|
|
|
alpha*-*-netware*) fmt=ecoff ;;
|
|
|
|
alpha*-*-openbsd*) fmt=ecoff ;;
|
|
|
|
alpha*-*-osf*) fmt=ecoff ;;
|
|
|
|
alpha*-*-linuxecoff*) fmt=ecoff ;;
|
1998-03-18 17:31:54 +00:00
|
|
|
alpha*-*-linux-gnu*) fmt=elf em=linux ;;
|
|
|
|
alpha*-*-netbsd*) fmt=elf em=nbsd ;;
|
1993-12-11 19:21:19 +00:00
|
|
|
|
1995-05-10 23:08:40 +00:00
|
|
|
arc-*-elf*) fmt=elf bfd_gas=yes ;;
|
1994-12-08 22:54:22 +00:00
|
|
|
|
1997-09-03 23:06:11 +00:00
|
|
|
arm-*-riscix*) fmt=aout em=riscix ;;
|
|
|
|
arm-*-aout) fmt=aout ;;
|
1997-07-08 02:57:50 +00:00
|
|
|
arm-*-coff | thumb-*-coff) fmt=coff ;;
|
1998-08-26 17:25:19 +00:00
|
|
|
arm-*-elf | thumb-*-elf) fmt=elf ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
arm-*-riscix*) fmt=aout ;;
|
1998-03-18 17:31:54 +00:00
|
|
|
arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
|
1996-07-18 16:59:15 +00:00
|
|
|
d10v-*-*) fmt=elf bfd_gas=yes ;;
|
1997-02-19 02:46:48 +00:00
|
|
|
d30v-*-*) fmt=elf bfd_gas=yes ;;
|
1996-07-18 00:39:03 +00:00
|
|
|
|
1998-08-26 17:25:19 +00:00
|
|
|
# start-sanitize-sky
|
|
|
|
dvp-*-*) fmt=elf bfd_gas=yes install_tooldir= ;;
|
|
|
|
# end-sanitize-sky
|
|
|
|
|
1995-05-10 23:08:40 +00:00
|
|
|
hppa-*-*elf*) fmt=elf em=hppa ;;
|
|
|
|
hppa-*-lites*) fmt=elf em=hppa ;;
|
|
|
|
hppa-*-osf*) fmt=som em=hppa ;;
|
1997-03-31 21:34:52 +00:00
|
|
|
hppa-*-rtems*) fmt=elf em=hppa ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
hppa-*-hpux*) fmt=som em=hppa ;;
|
|
|
|
hppa-*-bsd*) fmt=som em=hppa ;;
|
|
|
|
hppa-*-hiux*) fmt=som em=hppa ;;
|
|
|
|
|
|
|
|
h8300-*-coff) fmt=coff ;;
|
|
|
|
|
1997-09-03 23:06:11 +00:00
|
|
|
i386-ibm-aix*) fmt=coff em=i386aix ;;
|
1997-02-19 02:46:48 +00:00
|
|
|
i386-sequent-bsd*) fmt=aout em=dynix bfd_gas=yes ;;
|
1998-07-24 03:39:19 +00:00
|
|
|
dnl start-sanitize-beos
|
|
|
|
i386-*-beospe*) fmt=coff em=pe bfd_gas=yes ;;
|
1998-08-30 05:23:16 +00:00
|
|
|
i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;;
|
1998-07-24 03:39:19 +00:00
|
|
|
dnl end-sanitize-beos
|
1995-05-10 23:08:40 +00:00
|
|
|
i386-*-bsd*) fmt=aout em=386bsd ;;
|
|
|
|
i386-*-netbsd0.8) fmt=aout em=386bsd ;;
|
|
|
|
i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;;
|
1997-07-08 02:57:50 +00:00
|
|
|
i386-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes;;
|
* config/m68k-parse.y: New file: bison grammar for m68k operands,
including support for Motorola syntax.
* config/m68k-parse.h: New file; definitions shared between
m68k-parse.y and tc-m68k.c.
* config/tc-m68k.c: Include m68k-parse.h.
(enum operand_type): Move to m68k-parse.h, where it is named
m68k_operand_type. Rename all uses. Rearrange somewhat. Add
FPREG. Rename AOFF to DISP. Rename AINDX to BASE. Rename APODX
to POST. Rename APRDX to PRE. Remove AMIND. Rename MSCR to
CONTROL. Remove DINDR.
(struct m68k_exp): Move to m68k-parse.h. Remove e_beg, e_end and
e_seg fields. Rename e_exp to exp. Rename e_siz to size, and
change type to enum m68k_size. Change all uses.
(enum _register): Move to m68k-parse.h, where it is named
m68k_register. Rename all uses. Add ZDATA0-7 and ZADDR0-7.
(struct m68k_op): Move to m68k-parse.h. Change all fields.
(seg): Don't define.
(add_exp): Remove.
(FAIL, OK): Remove.
(m68k_reg_parse): Move to m68k-parse.y, and rewrite.
(SKIP_WHITE, SKIP_W): Remove.
(try_moto_index, try_index): Remove.
(m68k_ip_op): Move to m68k-parse.y, and rewrite to use grammar.
(main): Remove obsolete test function.
(m68k_ip): Extensive changes to use new grammar.
(get_regs): Remove.
(crack_operand): m68k_ip_op now returns 0 on success.
(init_table): Add ssp, zd0-7 and za0-7.
(md_assemble): Make er const. Correct loop over operands when
looking for error message.
(md_begin): Set alt_notend_table for '(' and '@'.
(get_num): Expression is already parsed. Don't set seg.
* configure.in: If cpu_type is m68k, put m68k-parse.o in
extra-objects.
* configure: Rebuild.
* Makefile.in (DISTSTUFF): Add m68k-parse.c.
(BISON): Use ../bison/bison if it exists.
(BISONFLAGS): Define as empty.
(TARG_CPU_DEP_m68k): Depend upon $(srcdir)/config/m68k-parse.h.
(m68k-parse.c, m68k-parse.o): New targets.
1995-08-08 02:36:10 +00:00
|
|
|
i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;;
|
1997-09-03 23:06:11 +00:00
|
|
|
i386-*-linux*coff*) fmt=coff em=linux ;;
|
1998-08-30 05:23:16 +00:00
|
|
|
i386-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
|
1997-09-03 23:06:11 +00:00
|
|
|
i386-*-lynxos*) fmt=coff em=lynx ;;
|
1997-11-13 22:21:36 +00:00
|
|
|
i386-*-sysv4* | i386-*-solaris* | i386-*-elf)
|
1998-08-30 05:23:16 +00:00
|
|
|
fmt=elf bfd_gas=yes ;;
|
|
|
|
i386-*-freebsdelf*) fmt=elf bfd_gas=yes ;;
|
1997-11-13 22:21:36 +00:00
|
|
|
i386-*-freebsd*) fmt=aout em=386bsd ;;
|
1998-01-27 18:35:53 +00:00
|
|
|
i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*)
|
|
|
|
fmt=coff ;;
|
|
|
|
i386-*-sco3.2v5*) fmt=elf
|
1997-09-03 23:06:11 +00:00
|
|
|
if test ${this_target} = $target; then
|
|
|
|
AC_DEFINE(SCO_ELF)
|
|
|
|
fi
|
|
|
|
;;
|
1998-01-27 18:35:53 +00:00
|
|
|
i386-*-sco3.2*) fmt=coff ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
i386-*-vsta) fmt=aout ;;
|
1997-12-22 10:08:43 +00:00
|
|
|
i386-*-msdosdjgpp* | i386-*-go32* | i386-go32-rtems*)
|
1997-09-03 23:06:11 +00:00
|
|
|
fmt=coff em=go32;;
|
|
|
|
i386-*-rtems*) fmt=coff ;;
|
1995-07-03 21:25:26 +00:00
|
|
|
i386-*-gnu*) fmt=elf ;;
|
|
|
|
i386-*-mach*)
|
1995-05-10 23:08:40 +00:00
|
|
|
fmt=aout em=mach bfd_gas=yes ;;
|
|
|
|
i386-*-msdos*) fmt=aout ;;
|
1995-07-03 21:25:26 +00:00
|
|
|
i386-*-moss*) fmt=elf ;;
|
1997-09-03 23:06:11 +00:00
|
|
|
i386-*-pe) fmt=coff em=pe ;;
|
1998-11-02 23:16:11 +00:00
|
|
|
i386-*-cygwin*) fmt=coff em=pe bfd_gas=yes ;;
|
1998-01-28 21:44:53 +00:00
|
|
|
i386-*-mingw32*) fmt=coff em=pe bfd_gas=yes ;;
|
|
|
|
i386-*-*nt*) fmt=coff em=pe ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
i960-*-bout) fmt=bout ;;
|
1997-09-03 23:06:11 +00:00
|
|
|
i960-*-coff) fmt=coff em=ic960 ;;
|
|
|
|
i960-*-rtems*) fmt=coff em=ic960 ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
i960-*-nindy*) fmt=bout ;;
|
|
|
|
i960-*-vxworks4*) fmt=bout ;;
|
|
|
|
i960-*-vxworks5.0) fmt=bout ;;
|
1997-09-03 23:06:11 +00:00
|
|
|
i960-*-vxworks5.*) fmt=coff em=ic960 ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
i960-*-vxworks*) fmt=bout ;;
|
|
|
|
|
1997-04-05 00:21:26 +00:00
|
|
|
m32r-*-*) fmt=elf bfd_gas=yes ;;
|
|
|
|
|
1995-05-10 23:08:40 +00:00
|
|
|
m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
|
|
|
|
fmt=aout em=sun3 ;;
|
1997-09-03 23:06:11 +00:00
|
|
|
m68k-motorola-sysv*) fmt=coff em=delta ;;
|
|
|
|
m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
|
|
|
|
m68k-apollo-*) fmt=coff em=apollo ;;
|
1997-02-21 17:00:45 +00:00
|
|
|
m68k-*-sysv4*) # must be before -sysv*
|
|
|
|
fmt=elf em=svr4 ;;
|
|
|
|
m68k-*-elf*) fmt=elf ;;
|
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
* doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
includedir): Use autoconf set values.
(docdir): Removed.
1996-06-25 12:40:48 +00:00
|
|
|
m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
|
1997-09-03 23:06:11 +00:00
|
|
|
fmt=coff ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
m68k-*-hpux*) fmt=hp300 em=hp300 ;;
|
1996-02-27 20:01:48 +00:00
|
|
|
m68k-*-linux*aout*) fmt=aout em=linux ;;
|
1998-03-18 17:31:54 +00:00
|
|
|
m68k-*-linux-gnu*) fmt=elf em=linux ;;
|
1997-09-03 23:06:11 +00:00
|
|
|
m68k-*-lynxos*) fmt=coff em=lynx ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
|
1997-07-08 02:57:50 +00:00
|
|
|
m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
|
1997-09-03 23:06:11 +00:00
|
|
|
m68k-apple-aux*) fmt=coff em=aux ;;
|
1996-02-14 21:37:16 +00:00
|
|
|
m68k-*-psos*) fmt=elf em=psos;;
|
1995-05-10 23:08:40 +00:00
|
|
|
|
1997-09-03 23:06:11 +00:00
|
|
|
m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
|
|
|
|
m88k-*-coff*) fmt=coff ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
|
|
|
|
# don't change em like *-*-bsd does
|
1997-09-03 23:06:11 +00:00
|
|
|
mips-dec-netbsd*) fmt=elf endian=little ;;
|
|
|
|
mips-dec-openbsd*) fmt=elf endian=little ;;
|
|
|
|
mips-dec-bsd*) fmt=aout ;;
|
|
|
|
mips-sony-bsd*) fmt=ecoff ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
mips-*-bsd*) AC_MSG_ERROR(Unknown vendor for mips-bsd configuration.) ;;
|
1997-09-03 23:06:11 +00:00
|
|
|
mips-*-ultrix*) fmt=ecoff endian=little ;;
|
|
|
|
mips-*-osf*) fmt=ecoff endian=little ;;
|
|
|
|
mips-*-ecoff*) fmt=ecoff ;;
|
|
|
|
mips-*-ecoff*) fmt=ecoff ;;
|
|
|
|
mips-*-irix6*) fmt=elf ;;
|
|
|
|
mips-*-irix5*) fmt=elf ;;
|
|
|
|
mips-*-irix*) fmt=ecoff ;;
|
|
|
|
mips-*-lnews*) fmt=ecoff em=lnews ;;
|
|
|
|
mips-*-riscos*) fmt=ecoff ;;
|
|
|
|
mips-*-sysv*) fmt=ecoff ;;
|
1998-03-18 17:31:54 +00:00
|
|
|
mips-*-elf* | mips-*-rtems* | mips-*-linux-gnu* | mips-*-gnu* | mips-*-openbsd*)
|
1997-09-03 23:06:11 +00:00
|
|
|
fmt=elf ;;
|
1996-10-03 16:42:22 +00:00
|
|
|
mn10200-*-*) fmt=elf bfd_gas=yes ;;
|
|
|
|
mn10300-*-*) fmt=elf bfd_gas=yes ;;
|
1998-11-02 23:16:11 +00:00
|
|
|
ppc-*-pe | ppc-*-cygwin* | ppc-*-winnt*)
|
1997-09-03 23:06:11 +00:00
|
|
|
fmt=coff em=pe ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
ppc-*-aix*) fmt=coff ;;
|
1997-03-28 19:25:01 +00:00
|
|
|
ppc-*-beos*) fmt=coff ;;
|
1997-07-08 02:57:50 +00:00
|
|
|
ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
|
1997-09-03 23:06:11 +00:00
|
|
|
fmt=elf ;;
|
1998-03-18 17:31:54 +00:00
|
|
|
ppc-*-linux-gnu*) fmt=elf
|
1996-04-16 14:41:45 +00:00
|
|
|
case "$endian" in
|
1997-09-03 23:06:11 +00:00
|
|
|
big) ;;
|
1998-03-18 17:31:54 +00:00
|
|
|
*) AC_MSG_ERROR(GNU/Linux must be configured big endian) ;;
|
1996-04-16 14:41:45 +00:00
|
|
|
esac
|
|
|
|
;;
|
|
|
|
ppc-*-solaris*) fmt=elf
|
1997-09-03 23:06:11 +00:00
|
|
|
if test ${this_target} = $target; then
|
|
|
|
AC_DEFINE(TARGET_SOLARIS_COMMENT)
|
|
|
|
fi
|
|
|
|
if test x${endian} = xbig; then
|
|
|
|
AC_MSG_ERROR(Solaris must be configured little endian)
|
|
|
|
fi
|
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
* doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
includedir): Use autoconf set values.
(docdir): Removed.
1996-06-25 12:40:48 +00:00
|
|
|
;;
|
1997-09-03 23:06:11 +00:00
|
|
|
ppc-*-rtems*) fmt=elf ;;
|
1995-11-20 18:48:32 +00:00
|
|
|
ppc-*-macos* | ppc-*-mpw*)
|
|
|
|
fmt=coff em=macos ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
ppc-*-netware*) fmt=elf em=ppcnw ;;
|
|
|
|
|
1996-10-01 20:17:23 +00:00
|
|
|
sh-*-elf*) fmt=elf ;;
|
|
|
|
sh-*-coff*) fmt=coff ;;
|
1998-03-30 22:35:51 +00:00
|
|
|
sh-*-rtems*) fmt=coff ;;
|
1993-12-11 19:21:19 +00:00
|
|
|
|
1995-09-13 20:35:17 +00:00
|
|
|
ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
|
|
|
|
ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
|
1997-07-08 02:57:50 +00:00
|
|
|
ns32k-pc532-openbsd*) fmt=aout em=nbsd532 ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
|
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
* doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
includedir): Use autoconf set values.
(docdir): Removed.
1996-06-25 12:40:48 +00:00
|
|
|
sparc-*-rtems*) fmt=aout ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
sparc-*-sunos4*) fmt=aout em=sun3 ;;
|
1996-06-21 20:10:12 +00:00
|
|
|
sparc-*-aout | sparc*-*-vxworks*)
|
1996-10-01 20:17:23 +00:00
|
|
|
fmt=aout em=sparcaout ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
sparc-*-coff) fmt=coff ;;
|
1997-03-28 23:16:18 +00:00
|
|
|
sparc-*-linux*aout*) fmt=aout em=linux ;;
|
1998-03-18 17:31:54 +00:00
|
|
|
sparc-*-linux-gnu*) fmt=elf em=linux ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
sparc-*-lynxos*) fmt=coff em=lynx ;;
|
|
|
|
sparc-fujitsu-none) fmt=aout ;;
|
1996-07-18 21:38:39 +00:00
|
|
|
sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
|
1995-05-10 23:08:40 +00:00
|
|
|
fmt=elf ;;
|
1998-08-30 05:23:16 +00:00
|
|
|
sparc-*-netbsd*) fmt=aout em=nbsd ;;
|
|
|
|
sparc-*-openbsd*) fmt=aout em=nbsd ;;
|
1996-08-21 23:37:04 +00:00
|
|
|
|
1998-02-03 00:17:20 +00:00
|
|
|
tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
|
|
|
|
tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
|
1996-12-28 05:59:26 +00:00
|
|
|
# start-sanitize-tic80
|
1997-09-03 23:06:11 +00:00
|
|
|
tic80-*-*) fmt=coff ;;
|
1996-12-28 05:59:26 +00:00
|
|
|
# end-sanitize-tic80
|
1997-12-22 18:03:58 +00:00
|
|
|
|
1996-08-21 23:37:04 +00:00
|
|
|
v850-*-*) fmt=elf bfd_gas=yes ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
|
1997-09-03 23:06:11 +00:00
|
|
|
# start-sanitize-v850e
|
|
|
|
v850e-*-*) fmt=elf bfd_gas=yes ;;
|
1997-12-22 10:08:43 +00:00
|
|
|
v850ea-*-*) fmt=elf bfd_gas=yes ;;
|
1997-09-24 20:58:30 +00:00
|
|
|
# end-sanitize-v850e
|
1995-05-10 23:08:40 +00:00
|
|
|
vax-*-bsd* | vax-*-ultrix*)
|
|
|
|
fmt=aout ;;
|
|
|
|
vax-*-vms) fmt=vms ;;
|
|
|
|
|
|
|
|
z8k-*-coff | z8k-*-sim)
|
|
|
|
fmt=coff ;;
|
|
|
|
|
|
|
|
w65-*-*) fmt=coff ;;
|
|
|
|
|
|
|
|
*-*-aout | *-*-scout)
|
|
|
|
fmt=aout ;;
|
|
|
|
*-*-nindy*)
|
|
|
|
fmt=bout ;;
|
|
|
|
*-*-bsd*)
|
|
|
|
fmt=aout em=sun3 ;;
|
|
|
|
*-*-generic) fmt=generic ;;
|
|
|
|
*-*-xray | *-*-hms) fmt=coff ;;
|
|
|
|
*-*-sim) fmt=coff ;;
|
|
|
|
*-*-elf | *-*-sysv4* | *-*-solaris*)
|
1996-01-22 17:53:34 +00:00
|
|
|
AC_MSG_WARN(GAS support for ${generic_target} is incomplete.)
|
1995-05-10 23:08:40 +00:00
|
|
|
fmt=elf dev=yes ;;
|
|
|
|
*-*-vxworks) fmt=aout ;;
|
|
|
|
*-*-netware) fmt=elf ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case ${cpu_type}-${fmt} in
|
1997-10-08 19:36:17 +00:00
|
|
|
alpha*-*) bfd_gas=yes ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
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 ;;
|
|
|
|
*-som) bfd_gas=yes ;;
|
|
|
|
*) ;;
|
|
|
|
esac
|
|
|
|
|
1995-09-13 20:35:17 +00:00
|
|
|
# Other random stuff.
|
|
|
|
|
1996-02-14 23:13:13 +00:00
|
|
|
# do we need the opcodes library?
|
|
|
|
case ${cpu_type} in
|
1998-02-03 00:17:20 +00:00
|
|
|
vax | i386 | tic30)
|
1996-02-15 16:22:03 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
need_opcodes=yes
|
1998-01-30 22:04:36 +00:00
|
|
|
|
|
|
|
case "${enable_shared}" in
|
|
|
|
yes) shared_opcodes=true ;;
|
|
|
|
*opcodes*) shared_opcodes=true ;;
|
|
|
|
*) shared_opcodes=false ;;
|
|
|
|
esac
|
1996-04-16 14:41:45 +00:00
|
|
|
if test "${shared_opcodes}" = "true"; then
|
1996-02-15 16:22:03 +00:00
|
|
|
# A shared libopcodes must be linked against libbfd.
|
|
|
|
need_bfd=yes
|
|
|
|
fi
|
|
|
|
;;
|
1996-02-14 23:13:13 +00:00
|
|
|
esac
|
|
|
|
|
1995-09-13 20:35:17 +00:00
|
|
|
case ${cpu_type} in
|
1997-04-05 00:21:26 +00:00
|
|
|
m32r)
|
1998-07-01 23:39:37 +00:00
|
|
|
case "x${extra_objects}" in
|
1997-04-05 00:21:26 +00:00
|
|
|
*cgen.o*) ;;
|
|
|
|
*) extra_objects="$extra_objects cgen.o"
|
|
|
|
AC_DEFINE(USING_CGEN)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
1996-02-07 19:13:20 +00:00
|
|
|
m68k)
|
|
|
|
case ${extra_objects} in
|
|
|
|
*m68k-parse.o*) ;;
|
|
|
|
*) extra_objects="$extra_objects m68k-parse.o" ;;
|
|
|
|
esac
|
|
|
|
;;
|
1997-02-23 22:23:12 +00:00
|
|
|
|
|
|
|
mips)
|
1997-03-28 19:25:01 +00:00
|
|
|
echo ${extra_objects} | grep -s "itbl-parse.o"
|
1997-02-23 22:23:12 +00:00
|
|
|
if test $? -ne 0 ; then
|
1997-03-28 19:25:01 +00:00
|
|
|
extra_objects="$extra_objects itbl-parse.o"
|
1997-02-23 22:23:12 +00:00
|
|
|
fi
|
|
|
|
|
1997-03-28 19:25:01 +00:00
|
|
|
echo ${extra_objects} | grep -s "itbl-lex.o"
|
1997-02-23 22:23:12 +00:00
|
|
|
if test $? -ne 0 ; then
|
1997-03-28 19:25:01 +00:00
|
|
|
extra_objects="$extra_objects itbl-lex.o"
|
1997-02-23 22:23:12 +00:00
|
|
|
fi
|
|
|
|
|
1997-03-28 19:25:01 +00:00
|
|
|
echo ${extra_objects} | grep -s "itbl-ops.o"
|
1997-02-23 22:23:12 +00:00
|
|
|
if test $? -ne 0 ; then
|
1997-03-28 19:25:01 +00:00
|
|
|
extra_objects="$extra_objects itbl-ops.o"
|
1997-02-23 22:23:12 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
1997-09-19 00:57:16 +00:00
|
|
|
sparc)
|
1997-10-10 22:02:59 +00:00
|
|
|
if test $this_target = $target ; then
|
|
|
|
AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}")
|
|
|
|
fi
|
1997-09-19 00:57:16 +00:00
|
|
|
;;
|
|
|
|
|
1997-02-23 22:23:12 +00:00
|
|
|
*)
|
|
|
|
;;
|
1995-09-13 20:35:17 +00:00
|
|
|
esac
|
|
|
|
|
1995-05-10 23:08:40 +00:00
|
|
|
# See if we really can support this configuration with the emulation code.
|
|
|
|
|
|
|
|
if test $this_target = $target ; then
|
|
|
|
primary_bfd_gas=$bfd_gas
|
|
|
|
obj_format=$fmt
|
|
|
|
te_file=$em
|
|
|
|
|
|
|
|
if test $bfd_gas = no ; then
|
|
|
|
# Can't support other configurations this way.
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
elif test $bfd_gas = no ; then
|
|
|
|
# Can't support this configuration.
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
|
|
|
|
# From target name and format, produce a list of supported emulations.
|
|
|
|
|
|
|
|
case ${generic_target}-${fmt} in
|
1995-06-01 22:28:54 +00:00
|
|
|
mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
|
1998-03-18 17:31:54 +00:00
|
|
|
mips-*-linux-gnu*-*) case "$endian" in
|
1997-03-28 19:25:01 +00:00
|
|
|
big) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
|
|
|
|
*) emulation="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
|
|
|
|
esac ;;
|
|
|
|
mips-*-lnews*-ecoff) ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
mips-*-*-ecoff) case "$endian" in
|
1995-06-01 22:28:54 +00:00
|
|
|
big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
|
|
|
|
*) emulation="mipslecoff mipsbecoff mipsecoff" ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
esac ;;
|
|
|
|
mips-*-*-elf) case "$endian" in
|
1995-06-01 22:28:54 +00:00
|
|
|
big) emulation="mipsbelf mipslelf mipself" ;;
|
|
|
|
*) emulation="mipslelf mipsbelf mipself" ;;
|
1997-03-28 19:25:01 +00:00
|
|
|
# Uncommenting the next line will turn on support for i386 COFF
|
|
|
|
# in any i386 ELF configuration. This probably doesn't work
|
|
|
|
# correctly.
|
|
|
|
# i386-*-*-elf) emulation="i386coff i386elf" ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
esac ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
emulations="$emulations $emulation"
|
|
|
|
|
|
|
|
done
|
1991-04-04 18:19:53 +00:00
|
|
|
|
1993-10-21 19:50:06 +00:00
|
|
|
# Assign floating point type. Most processors with FP support
|
|
|
|
# IEEE FP. On those that don't support FP at all, usually IEEE
|
|
|
|
# is emulated.
|
1991-08-28 21:49:12 +00:00
|
|
|
case ${target_cpu} in
|
1994-08-24 16:48:38 +00:00
|
|
|
vax | tahoe ) atof=${target_cpu} ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
*) atof=ieee ;;
|
1991-04-04 18:19:53 +00:00
|
|
|
esac
|
|
|
|
|
1993-10-21 19:50:06 +00:00
|
|
|
case "${obj_format}" in
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
"") AC_MSG_ERROR(GAS does not know what format to use for target ${target}) ;;
|
1993-10-21 19:50:06 +00:00
|
|
|
esac
|
1993-05-05 20:50:53 +00:00
|
|
|
|
1998-07-01 23:39:37 +00:00
|
|
|
# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
|
|
|
|
cgen_cpu_prefix=""
|
|
|
|
case "x${extra_objects}" in
|
|
|
|
*cgen.o*)
|
|
|
|
case ${target_cpu} in
|
|
|
|
*) cgen_cpu_prefix=${target_cpu} ;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(cgen_cpu_prefix)
|
|
|
|
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
dnl
|
|
|
|
dnl Make sure the desired support files exist.
|
|
|
|
dnl
|
|
|
|
|
1995-08-09 03:46:15 +00:00
|
|
|
if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
|
|
|
|
AC_MSG_ERROR(GAS does not support target CPU ${target_cpu_type})
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
fi
|
|
|
|
|
1994-08-31 21:50:38 +00:00
|
|
|
if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
AC_MSG_ERROR(GAS does not have support for object file format ${obj_format})
|
1993-05-05 20:50:53 +00:00
|
|
|
fi
|
|
|
|
|
1995-05-10 23:08:40 +00:00
|
|
|
case ${user_bfd_gas}-${primary_bfd_gas} in
|
1993-06-29 17:22:03 +00:00
|
|
|
yes-yes | no-no)
|
1993-05-05 20:50:53 +00:00
|
|
|
# We didn't override user's choice.
|
|
|
|
;;
|
1993-06-29 17:22:03 +00:00
|
|
|
no-yes)
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
AC_MSG_WARN(Use of BFD is required for ${target}; overriding config options.)
|
1993-05-05 20:50:53 +00:00
|
|
|
;;
|
1993-06-29 17:22:03 +00:00
|
|
|
no-preferred)
|
1995-05-10 23:08:40 +00:00
|
|
|
primary_bfd_gas=no
|
1993-06-29 17:22:03 +00:00
|
|
|
;;
|
|
|
|
*-preferred)
|
1995-05-10 23:08:40 +00:00
|
|
|
primary_bfd_gas=yes
|
1993-06-29 17:22:03 +00:00
|
|
|
;;
|
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.
1994-11-03 23:15:54 +00:00
|
|
|
yes-*)
|
1995-05-10 23:08:40 +00:00
|
|
|
primary_bfd_gas=yes
|
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.
1994-11-03 23:15:54 +00:00
|
|
|
;;
|
1993-06-29 17:22:03 +00:00
|
|
|
-*)
|
|
|
|
# User specified nothing.
|
|
|
|
;;
|
1993-05-05 20:50:53 +00:00
|
|
|
esac
|
|
|
|
|
1995-05-10 23:08:40 +00:00
|
|
|
# Some COFF configurations want these random other flags set.
|
|
|
|
case ${obj_format} in
|
|
|
|
coff)
|
|
|
|
case ${target_cpu_type} in
|
|
|
|
i386) AC_DEFINE(I386COFF) ;;
|
|
|
|
m68k) AC_DEFINE(M68KCOFF) ;;
|
|
|
|
m88k) AC_DEFINE(M88KCOFF) ;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Getting this done right is going to be a bitch. Each configuration specified
|
|
|
|
# with --enable-targets=... should be checked for environment, format, cpu, and
|
|
|
|
# bfd_gas setting.
|
|
|
|
#
|
|
|
|
# For each configuration, the necessary object file support code must be linked
|
|
|
|
# in. This might be only one, it might be up to four. The necessary emulation
|
|
|
|
# code needs to be provided, too.
|
|
|
|
#
|
|
|
|
# And then there's "--enable-targets=all"....
|
|
|
|
#
|
|
|
|
# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
|
|
|
|
|
|
|
|
formats="${obj_format}"
|
|
|
|
emfiles=""
|
|
|
|
EMULATIONS=""
|
|
|
|
GAS_UNIQ(emulations)
|
|
|
|
for em in . $emulations ; do
|
|
|
|
case $em in
|
|
|
|
.) continue ;;
|
|
|
|
mipsbelf | mipslelf)
|
|
|
|
fmt=elf file=mipself ;;
|
|
|
|
mipsbecoff | mipslecoff)
|
|
|
|
fmt=ecoff file=mipsecoff ;;
|
1997-03-28 19:25:01 +00:00
|
|
|
i386coff)
|
|
|
|
fmt=coff file=i386coff ;;
|
|
|
|
i386elf)
|
|
|
|
fmt=elf file=i386elf ;;
|
1995-05-10 23:08:40 +00:00
|
|
|
esac
|
|
|
|
formats="$formats $fmt"
|
|
|
|
emfiles="$emfiles e-$file.o"
|
|
|
|
EMULATIONS="$EMULATIONS &$em,"
|
|
|
|
done
|
|
|
|
GAS_UNIQ(formats)
|
|
|
|
GAS_UNIQ(emfiles)
|
|
|
|
if test `set . $formats ; shift ; echo $#` -gt 1 ; then
|
|
|
|
for fmt in $formats ; do
|
|
|
|
case $fmt in
|
|
|
|
aout) AC_DEFINE(OBJ_MAYBE_AOUT) ;;
|
|
|
|
bout) AC_DEFINE(OBJ_MAYBE_BOUT) ;;
|
|
|
|
coff) AC_DEFINE(OBJ_MAYBE_COFF) ;;
|
|
|
|
ecoff) AC_DEFINE(OBJ_MAYBE_ECOFF) ;;
|
|
|
|
elf) AC_DEFINE(OBJ_MAYBE_ELF) ;;
|
|
|
|
generic) AC_DEFINE(OBJ_MAYBE_GENERIC) ;;
|
|
|
|
hp300) AC_DEFINE(OBJ_MAYBE_HP300) ;;
|
|
|
|
ieee) AC_DEFINE(OBJ_MAYBE_IEEE) ;;
|
|
|
|
som) AC_DEFINE(OBJ_MAYBE_SOM) ;;
|
|
|
|
vms) AC_DEFINE(OBJ_MAYBE_VMS) ;;
|
|
|
|
esac
|
|
|
|
extra_objects="$extra_objects obj-$fmt.o"
|
|
|
|
done
|
|
|
|
obj_format=multi
|
|
|
|
fi
|
|
|
|
if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
|
|
|
|
te_file=multi
|
|
|
|
extra_objects="$extra_objects $emfiles"
|
|
|
|
DEFAULT_EMULATION=`set . $emulations ; echo $2`
|
|
|
|
AC_DEFINE(USE_EMULATIONS)
|
|
|
|
fi
|
|
|
|
AC_SUBST(extra_objects)
|
|
|
|
AC_DEFINE_UNQUOTED(EMULATIONS, $EMULATIONS)
|
|
|
|
AC_DEFINE_UNQUOTED(DEFAULT_EMULATION, "$DEFAULT_EMULATION")
|
|
|
|
|
1995-08-09 03:46:15 +00:00
|
|
|
case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
|
1994-09-05 10:53:00 +00:00
|
|
|
yes-*-coff) need_bfd=yes ;;
|
|
|
|
no-*-coff) need_bfd=yes
|
|
|
|
AC_DEFINE(MANY_SEGMENTS) ;;
|
|
|
|
esac
|
|
|
|
|
1994-01-14 01:55:59 +00:00
|
|
|
reject_dev_configs=yes
|
1993-10-21 19:50:06 +00:00
|
|
|
|
|
|
|
case ${reject_dev_configs}-${dev} in
|
|
|
|
yes-yes) # Oops.
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
AC_MSG_ERROR(GAS does not support the ${generic_target} configuration.)
|
1993-10-21 19:50:06 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
1995-08-09 03:46:15 +00:00
|
|
|
AC_SUBST(target_cpu_type)
|
1995-05-02 06:46:21 +00:00
|
|
|
AC_SUBST(obj_format)
|
1997-03-28 19:25:01 +00:00
|
|
|
AC_SUBST(te_file)
|
1998-08-26 17:25:19 +00:00
|
|
|
AC_SUBST(install_tooldir)
|
1995-05-02 06:46:21 +00:00
|
|
|
AC_SUBST(atof)
|
1995-05-10 23:08:40 +00:00
|
|
|
dnl AC_SUBST(emulation)
|
1995-05-02 06:46:21 +00:00
|
|
|
|
1995-05-10 23:08:40 +00:00
|
|
|
case "${primary_bfd_gas}" in
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
yes) AC_DEFINE(BFD_ASSEMBLER)
|
|
|
|
need_bfd=yes ;;
|
1993-03-12 03:04:32 +00:00
|
|
|
esac
|
|
|
|
|
1996-02-14 23:13:13 +00:00
|
|
|
# do we need the opcodes library?
|
|
|
|
case "${need_opcodes}" in
|
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
* doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
includedir): Use autoconf set values.
(docdir): Removed.
1996-06-25 12:40:48 +00:00
|
|
|
yes)
|
1997-08-06 04:30:05 +00:00
|
|
|
OPCODES_LIB=../opcodes/libopcodes.la
|
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
* doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
includedir): Use autoconf set values.
(docdir): Removed.
1996-06-25 12:40:48 +00:00
|
|
|
;;
|
1996-02-14 23:13:13 +00:00
|
|
|
esac
|
|
|
|
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
case "${need_bfd}" in
|
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
* doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
includedir): Use autoconf set values.
(docdir): Removed.
1996-06-25 12:40:48 +00:00
|
|
|
yes)
|
1997-08-06 04:30:05 +00:00
|
|
|
BFDLIB=../bfd/libbfd.la
|
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
* doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
includedir): Use autoconf set values.
(docdir): Removed.
1996-06-25 12:40:48 +00:00
|
|
|
ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
|
|
|
|
;;
|
1993-03-12 03:04:32 +00:00
|
|
|
esac
|
1997-03-28 23:16:18 +00:00
|
|
|
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
AC_SUBST(BFDLIB)
|
1997-03-28 23:16:18 +00:00
|
|
|
AC_SUBST(OPCODES_LIB)
|
|
|
|
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
AC_SUBST(ALL_OBJ_DEPS)
|
1993-03-12 03:04:32 +00:00
|
|
|
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
AC_DEFINE_UNQUOTED(TARGET_ALIAS, "${target_alias}")
|
|
|
|
AC_DEFINE_UNQUOTED(TARGET_CANONICAL, "${target}")
|
|
|
|
AC_DEFINE_UNQUOTED(TARGET_CPU, "${target_cpu}")
|
|
|
|
AC_DEFINE_UNQUOTED(TARGET_VENDOR, "${target_vendor}")
|
|
|
|
AC_DEFINE_UNQUOTED(TARGET_OS, "${target_os}")
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
1997-08-06 04:30:05 +00:00
|
|
|
AC_PROG_YACC
|
1998-04-21 20:27:16 +00:00
|
|
|
AM_PROG_LEX
|
1997-08-06 04:30:05 +00:00
|
|
|
|
* Many files: Added gettext invocations around user-visible
strings.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
HAVE_LC_MESSAGES): Define.
* dep-in.sed: Added asintl.h.
* po/Make-in: New file.
* gasp.c (main): Call setlocale, bindtextdomain, and textdomain.
Include "asintl.h".
* read.c (Z_): Renamed from `_'.
* Makefile.am (SUBDIRS): Added po.
(POTFILES): new macro.
(po/POTFILES.in): New target.
($(OBJS)): Added asintl.h.
(HFILES): Likewise.
(INCLUDES): Added -DLOCALEDIR, -I$(top_srcdir)/../intl.
(as_new_LDADD): Added $(INTLLIBS).
(as_new_DEPENDENCIES): Added $(INTLDEPS).
(gasp_new_LDADD): Added $(INTLLIBS).
(gasp_new_DEPENDENCIES): New macro.
* configure, aclocal.m4: Rebuilt.
* configure.in: Call CY_GNU_GETTEXT. Generate po/Makefile.in and
po/Makefile.
(ALL_LINGUAS): Define.
* macro.c: Include "asintl.h".
* as.c (main): Call setlocale, bindtextdomain, and textdomain.
* as.h: Include "asintl.h".
* config/tc-i386.c (ordinal_names): Removed.
(md_assemble): Changed error text to avoid ordinal_names.
(i386_operand): Likewise.
(reloc): Added as_bad to avoid i18n problems.
(tc_gen_reloc): Likewise.
* config/tc-arm.c (bad_args): Now a #define.
(bad_pc): Likewise.
* config/obj-vms.c (VMS_stab_parse): Changed type of
`long_const_msg'.
(global_symbol_directory): Unified strings to avoid i18n
problems.
* config/tc-m68k.c (get_reloc_code): Added some as_bad calls to
avoid i18n problems.
* config/tc-ns32k.c (reloc): Added as_bad to avoid i18n problems.
* config/tc-ppc.c (md_apply_fix3): Added as_bad_where to avoid
i18n problems.
* config/tc-sh.c (md_convert_frag): Added as_bad to avoid i18n
problems.
start-sanitize-v850
* config/tc-v850.c (md_assemble): Changed C++ comment into C
comment.
end-sanitize-v850
* config/tc-vax.c (md_assemble): Added as_warn to avoid i18n
problems.
* as.c (print_version_id): Added an fprintf to avoid i18n
problems.
* cond.c (cond_finish_check): Added as_bad call to avoid i18n
problems.
* expr.c (expr): Added as_warn call to avoid i18n problems.
* messages.c (as_assert): Changed code to avoid i18n problems.
(as_abort): Likewise.
* read.c (pseudo_set): Added as_bad call to avoid i18n problems.
(s_space): Likewise.
* po/Make-in, po/POTFILES.in, po/gas.pot: New files.
1998-04-22 06:10:03 +00:00
|
|
|
ALL_LINGUAS=
|
|
|
|
CY_GNU_GETTEXT
|
|
|
|
|
1997-08-06 04:30:05 +00:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
AM_CYGWIN32
|
|
|
|
AM_EXEEXT
|
|
|
|
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
AC_CHECK_HEADERS(string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h)
|
|
|
|
|
1994-09-07 23:34:23 +00:00
|
|
|
# Put this here so that autoconf's "cross-compiling" message doesn't confuse
|
|
|
|
# people who are not cross-compiling but are compiling cross-assemblers.
|
|
|
|
AC_MSG_CHECKING(whether compiling a cross-assembler)
|
|
|
|
if test "${host}" = "${target}"; then
|
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.
1994-11-03 23:15:54 +00:00
|
|
|
cross_gas=no
|
|
|
|
else
|
1994-09-07 23:34:23 +00:00
|
|
|
cross_gas=yes
|
|
|
|
AC_DEFINE(CROSS_COMPILE)
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT($cross_gas)
|
|
|
|
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
dnl ansidecl.h will deal with const
|
|
|
|
dnl AC_CONST
|
|
|
|
AC_FUNC_ALLOCA
|
|
|
|
AC_C_INLINE
|
|
|
|
|
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.
1994-11-03 23:15:54 +00:00
|
|
|
# VMS doesn't have unlink.
|
|
|
|
AC_CHECK_FUNCS(unlink remove, break)
|
* Makefile.in (*_FOR_TARGET, INSTALL_XFORM, install, uninstall): Rewrite
handling of program_transform_name.
* configure.in: Test for "unlink" and "delete", define USE_DELETE_FOR_UNLINK if
only the latter is found. Not expected to be triggered on UNIX/POSIX systems.
* acconfig.h (USE_DELETE_FOR_UNLINK): Undef here, provide comments.
Update for autoconf 1.118:
* gdbinit.in: New file, created from old .gdbinit.
* .gdbinit: Deleted.
* aclocal.m4 (GAS_GDBINIT): Deleted.
* configure.in: Don't use it. Instead, generate .gdbinit from gdbinit.in.
Don't substitute cpu_type, obj_format, emulation, atof. Switched order of
AC_LINK_FILES arguments. Use AC_PREREQ to ensure that older versions of
autoconf aren't used.
* Makefile.in: Added @configure_input@ line.
(configure): Deleted rule.
[regenerated conf.in, configure]
1994-09-13 22:27:20 +00:00
|
|
|
|
1995-07-05 08:04:28 +00:00
|
|
|
# Some systems don't have sbrk().
|
|
|
|
AC_CHECK_FUNCS(sbrk)
|
|
|
|
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
# 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!
|
1994-09-07 23:34:23 +00:00
|
|
|
GAS_WORKING_ASSERT
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
|
|
|
|
# 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.
|
1994-09-07 23:34:23 +00:00
|
|
|
gas_test_headers="
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
#ifdef HAVE_MEMORY_H
|
|
|
|
#include <memory.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_STRING_H
|
|
|
|
#include <string.h>
|
1996-08-07 18:23:08 +00:00
|
|
|
#else
|
|
|
|
#ifdef HAVE_STRINGS_H
|
|
|
|
#include <strings.h>
|
|
|
|
#endif
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_STDLIB_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
1994-09-07 23:34:23 +00:00
|
|
|
"
|
1996-08-07 18:23:08 +00:00
|
|
|
GAS_CHECK_DECL_NEEDED(strstr, f, char *(*f)(), $gas_test_headers)
|
1994-09-07 23:34:23 +00:00
|
|
|
GAS_CHECK_DECL_NEEDED(malloc, f, char *(*f)(), $gas_test_headers)
|
1995-09-13 20:35:17 +00:00
|
|
|
GAS_CHECK_DECL_NEEDED(free, f, void (*f)(), $gas_test_headers)
|
1996-08-07 18:23:08 +00:00
|
|
|
GAS_CHECK_DECL_NEEDED(sbrk, f, char *(*f)(), $gas_test_headers)
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
|
|
|
|
# Does errno.h declare errno, or do we have to add a separate declaration
|
|
|
|
# for it?
|
1994-09-07 23:34:23 +00:00
|
|
|
GAS_CHECK_DECL_NEEDED(errno, f, int f, [
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
#ifdef HAVE_ERRNO_H
|
|
|
|
#include <errno.h>
|
|
|
|
#endif
|
1994-09-07 23:34:23 +00:00
|
|
|
])
|
Conversion to autoconf:
* acconfig.h, aclocal.m4: New files.
* configure.in: Rewritten (except for some target-specific code) for autoconf.
* conf.in, configure: New files, generated from the above.
* Makefile.in: Changed magic sequence indicating insertion of makefile
fragments.
(VPATH, srcdir, CC, LIBS, OBJS dependencies): Use @-substitutions from
configure.
(LINKED_HEADERS): Deleted a.out.gnu.h, a.out.h, and host.h.
(config.status, configure): Rewrite rules.
(config-stamp): Depend on conf. Skip variables that configure is now
substituting itself.
(*.o dependencies): Deleted host.h.
(distclean, realclean): Don't delete host.h.
* as.c: Don't include stdio.h, string.h, sys/types.h. Include signal.h after
as.h.
* as.h: Include alloca-conf.h first. Include ctype.h, string.h, strings.h,
stdlib.h, unistd.h, sys/types.h, fopen-bin.h, fopen-same.h, as suggested by
autoconf test results.
[BROKEN_ASSERT]: Don't include assert.h.
(strdup): Declare.
(volatile, const): Define if not __STDC__ and not already defined.
(malloc, realloc) [NEED_MALLOC_DECLARATION]: Declare.
(free) [NEED_FREE_DECLARATION]: Declare.
* gasp.c: Include config.h, stdlib.h (if HAVE_STDLIB_H). Don't include host.h.
(malloc) [NEED_MALLOC_DECLARATION]: Declare.
* messages.c: Include as.h first. Include errno.h only if HAVE_ERRNO_H. If
HAVE_VARARGS_H and not __STDC__, undefine HAVE_STDARG_H. Set NO_STDARG and
NO_VARARGS as appropriate.
* doc/Makefile.in (srcdir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use
autoconf @-substitutions.
1994-08-28 07:59:06 +00:00
|
|
|
|
|
|
|
dnl This must come last.
|
1997-03-28 19:25:01 +00:00
|
|
|
|
|
|
|
dnl We used to make symlinks to files in the source directory, but now
|
|
|
|
dnl we just use the right name for .c files, and create .h files in
|
|
|
|
dnl the build directory which include the right .h file. Make sure
|
|
|
|
dnl the old symlinks don't exist, so that a reconfigure in an existing
|
|
|
|
dnl directory behaves reasonably.
|
|
|
|
|
* Many files: Added gettext invocations around user-visible
strings.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
HAVE_LC_MESSAGES): Define.
* dep-in.sed: Added asintl.h.
* po/Make-in: New file.
* gasp.c (main): Call setlocale, bindtextdomain, and textdomain.
Include "asintl.h".
* read.c (Z_): Renamed from `_'.
* Makefile.am (SUBDIRS): Added po.
(POTFILES): new macro.
(po/POTFILES.in): New target.
($(OBJS)): Added asintl.h.
(HFILES): Likewise.
(INCLUDES): Added -DLOCALEDIR, -I$(top_srcdir)/../intl.
(as_new_LDADD): Added $(INTLLIBS).
(as_new_DEPENDENCIES): Added $(INTLDEPS).
(gasp_new_LDADD): Added $(INTLLIBS).
(gasp_new_DEPENDENCIES): New macro.
* configure, aclocal.m4: Rebuilt.
* configure.in: Call CY_GNU_GETTEXT. Generate po/Makefile.in and
po/Makefile.
(ALL_LINGUAS): Define.
* macro.c: Include "asintl.h".
* as.c (main): Call setlocale, bindtextdomain, and textdomain.
* as.h: Include "asintl.h".
* config/tc-i386.c (ordinal_names): Removed.
(md_assemble): Changed error text to avoid ordinal_names.
(i386_operand): Likewise.
(reloc): Added as_bad to avoid i18n problems.
(tc_gen_reloc): Likewise.
* config/tc-arm.c (bad_args): Now a #define.
(bad_pc): Likewise.
* config/obj-vms.c (VMS_stab_parse): Changed type of
`long_const_msg'.
(global_symbol_directory): Unified strings to avoid i18n
problems.
* config/tc-m68k.c (get_reloc_code): Added some as_bad calls to
avoid i18n problems.
* config/tc-ns32k.c (reloc): Added as_bad to avoid i18n problems.
* config/tc-ppc.c (md_apply_fix3): Added as_bad_where to avoid
i18n problems.
* config/tc-sh.c (md_convert_frag): Added as_bad to avoid i18n
problems.
start-sanitize-v850
* config/tc-v850.c (md_assemble): Changed C++ comment into C
comment.
end-sanitize-v850
* config/tc-vax.c (md_assemble): Added as_warn to avoid i18n
problems.
* as.c (print_version_id): Added an fprintf to avoid i18n
problems.
* cond.c (cond_finish_check): Added as_bad call to avoid i18n
problems.
* expr.c (expr): Added as_warn call to avoid i18n problems.
* messages.c (as_assert): Changed code to avoid i18n problems.
(as_abort): Likewise.
* read.c (pseudo_set): Added as_bad call to avoid i18n problems.
(s_space): Likewise.
* po/Make-in, po/POTFILES.in, po/gas.pot: New files.
1998-04-22 06:10:03 +00:00
|
|
|
AC_OUTPUT(Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in,
|
1997-03-28 19:25:01 +00:00
|
|
|
[rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
|
|
|
|
echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
|
|
|
|
echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
|
|
|
|
echo '#include "te-'"${te_file}"'.h"' > targ-env.h
|
1997-04-07 18:38:33 +00:00
|
|
|
echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
|
|
|
|
case ${target_cpu_type} in
|
|
|
|
m32r) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;;
|
* Many files: Added gettext invocations around user-visible
strings.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
HAVE_LC_MESSAGES): Define.
* dep-in.sed: Added asintl.h.
* po/Make-in: New file.
* gasp.c (main): Call setlocale, bindtextdomain, and textdomain.
Include "asintl.h".
* read.c (Z_): Renamed from `_'.
* Makefile.am (SUBDIRS): Added po.
(POTFILES): new macro.
(po/POTFILES.in): New target.
($(OBJS)): Added asintl.h.
(HFILES): Likewise.
(INCLUDES): Added -DLOCALEDIR, -I$(top_srcdir)/../intl.
(as_new_LDADD): Added $(INTLLIBS).
(as_new_DEPENDENCIES): Added $(INTLDEPS).
(gasp_new_LDADD): Added $(INTLLIBS).
(gasp_new_DEPENDENCIES): New macro.
* configure, aclocal.m4: Rebuilt.
* configure.in: Call CY_GNU_GETTEXT. Generate po/Makefile.in and
po/Makefile.
(ALL_LINGUAS): Define.
* macro.c: Include "asintl.h".
* as.c (main): Call setlocale, bindtextdomain, and textdomain.
* as.h: Include "asintl.h".
* config/tc-i386.c (ordinal_names): Removed.
(md_assemble): Changed error text to avoid ordinal_names.
(i386_operand): Likewise.
(reloc): Added as_bad to avoid i18n problems.
(tc_gen_reloc): Likewise.
* config/tc-arm.c (bad_args): Now a #define.
(bad_pc): Likewise.
* config/obj-vms.c (VMS_stab_parse): Changed type of
`long_const_msg'.
(global_symbol_directory): Unified strings to avoid i18n
problems.
* config/tc-m68k.c (get_reloc_code): Added some as_bad calls to
avoid i18n problems.
* config/tc-ns32k.c (reloc): Added as_bad to avoid i18n problems.
* config/tc-ppc.c (md_apply_fix3): Added as_bad_where to avoid
i18n problems.
* config/tc-sh.c (md_convert_frag): Added as_bad to avoid i18n
problems.
start-sanitize-v850
* config/tc-v850.c (md_assemble): Changed C++ comment into C
comment.
end-sanitize-v850
* config/tc-vax.c (md_assemble): Added as_warn to avoid i18n
problems.
* as.c (print_version_id): Added an fprintf to avoid i18n
problems.
* cond.c (cond_finish_check): Added as_bad call to avoid i18n
problems.
* expr.c (expr): Added as_warn call to avoid i18n problems.
* messages.c (as_assert): Changed code to avoid i18n problems.
(as_abort): Likewise.
* read.c (pseudo_set): Added as_bad call to avoid i18n problems.
(s_space): Likewise.
* po/Make-in, po/POTFILES.in, po/gas.pot: New files.
1998-04-22 06:10:03 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile],
|
1997-03-28 19:25:01 +00:00
|
|
|
[target_cpu_type=${target_cpu_type}
|
|
|
|
obj_format=${obj_format}
|
|
|
|
te_file=${te_file}])
|