2000-03-17 23:48:54 +01:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_PREREQ(2.59)
|
|
|
|
AC_INIT([libgloss],[LIBGLOSS_VERSION])
|
|
|
|
AC_CONFIG_SRCDIR([libnosys])
|
2000-03-17 23:48:54 +01:00
|
|
|
|
|
|
|
if test "${enable_shared}" = "yes" ; then
|
|
|
|
echo "Shared libraries not supported for cross compiling, ignored"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "${srcdir}" = "." ; then
|
|
|
|
if test "${with_target_subdir}" != "." ; then
|
|
|
|
libgloss_topdir="${srcdir}/${with_multisrctop}../.."
|
|
|
|
else
|
|
|
|
libgloss_topdir="${srcdir}/${with_multisrctop}.."
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
libgloss_topdir="${srcdir}/.."
|
|
|
|
fi
|
|
|
|
AC_CONFIG_AUX_DIR($libgloss_topdir)
|
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
AC_CANONICAL_SYSTEM
|
2006-04-19 21:44:05 +02:00
|
|
|
AM_INIT_AUTOMAKE([cygnus no-define 1.9.5])
|
2000-03-17 23:48:54 +01:00
|
|
|
|
|
|
|
if test -z "${with_multisubdir}" ; then
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(doc)
|
2000-03-17 23:48:54 +01:00
|
|
|
fi
|
|
|
|
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(libnosys)
|
|
|
|
|
2000-03-17 23:48:54 +01:00
|
|
|
case "${target}" in
|
2006-04-19 21:44:05 +02:00
|
|
|
i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
|
|
|
|
AC_CONFIG_SUBDIRS(i386)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
m32r-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(m32r)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
2006-04-19 21:44:05 +02:00
|
|
|
m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
|
|
|
|
AC_CONFIG_SUBDIRS(m68hc11)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2002-07-23 23:56:27 +02:00
|
|
|
;;
|
2006-12-18 Kazu Hirata <kazu@codesourcery.com>
Merge from newlib-csl-20060320-branch:
2006-12-15 Daniel Jacobowitz <dan@codesourcery.com>
* m68k/fido-crt0.S (_vector_table): Reference
_PrivilegeViolationHandler.
2006-12-15 Daniel Jacobowitz <dan@codesourcery.com>
* m68k/fido-crt0.S (_start): Set %vbr for context 0 in
RAM configs.
* m68k/fido.sc: Clean up formatting. Add comments. Move
stack and heap end to SDRAM for SRAM and SDRAM configurations.
Put RedBoot application text in SRAM.
2006-12-13 Nathan Sidwell <nathan@codesourcery.com>
* m68k/Makefile (install_cf): Don't loop over files here. Only
install sources for the default multilib.
(install_fido): Likewise.
(install_io): Install bsps in one go.
2006-12-01 Nathan Sidwell <nathan@codesourcery.com>
Kazu Hirata <kazu@codesourcery.com>
* configure.in: Recognize fido-*-*.
* configure: Regenerate.
* m68k/Makefile.in (CF_ISRS): Use addprefix.
(FIDO_CRT0, FIDO_BSP, FIDO_OBJS, FIDO_HANDLERS,
FIDO_UNHOSTED_SCRIPTS, FIDO_HOSTED_SCRIPTS, FIDO_SCRIPTS,
FIDO_SOURCES, all_fido, fido-%-crt0.o, fido-rom.ld,
fido-rom-hosted.ld, fido-sram.ld, fido-sram-hosted.ld,
fido-sdram.ld, fido-sdram-hosted.ld, fido-redboot.ld,
install_fido): New.
* m68k/asm.h (mbb): New.
* m68k/configure.in (DO): Check for __mfido__.
* m68k/configure: Regenerate.
* m68k/fido-_exit.c, m68k/fido-crt0.S, m68k/fido-handler.c,
m68k/fido-hosted.S, m68k/fido-sbrk.c, m68k/fido.h,
m68k/fido.sc, m68k/fido_profiling.h: New.
2006-12-18 22:48:18 +01:00
|
|
|
fido-*-* | m68*-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(m68k)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
hppa*-*-pro*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(pa)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
i960-*-coff)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(i960)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
2006-04-19 21:44:05 +02:00
|
|
|
sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
|
|
|
|
AC_CONFIG_SUBDIRS(sparc)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
2006-04-19 21:44:05 +02:00
|
|
|
sh*-*-pe | mips*-*-pe | *arm-wince-pe)
|
|
|
|
AC_CONFIG_SUBDIRS(wince)
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
mips*-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(mips)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
powerpc-*-*|powerpcle-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(rs6000)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
mn10200-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(mn10200)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
mn10300-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(mn10300)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
2006-11-08 20:36:56 +01:00
|
|
|
bfin-*-*)
|
|
|
|
AC_CONFIG_SUBDIRS(bfin)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2006-11-08 20:36:56 +01:00
|
|
|
;;
|
2005-01-27 Hans-Peter Nilsson <hp@axis.com>
* configure.in: Support cris-*-* and crisv32-*-*.
* libnosys/configure.in: Ditto.
* configure, libnosys/configure: Regenerate.
* cris: New directory.
* cris/crt0.S, cris/crtn.c, cris/gensyscalls, cris/linunistd.h,
cris/outbyte.c, cris/configure.in, cris/crti.c, cris/lcrt0.c,
cris/Makefile.in, cris/setup.S, cris/configure: New files.
2005-01-27 23:57:32 +01:00
|
|
|
cris-*-* | crisv32-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(cris)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2005-01-27 Hans-Peter Nilsson <hp@axis.com>
* configure.in: Support cris-*-* and crisv32-*-*.
* libnosys/configure.in: Ditto.
* configure, libnosys/configure: Regenerate.
* cris: New directory.
* cris/crt0.S, cris/crtn.c, cris/gensyscalls, cris/linunistd.h,
cris/outbyte.c, cris/configure.in, cris/crti.c, cris/lcrt0.c,
cris/Makefile.in, cris/setup.S, cris/configure: New files.
2005-01-27 23:57:32 +01:00
|
|
|
;;
|
2004-10-05 22:00:53 +02:00
|
|
|
crx-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(crx)
|
2004-10-05 22:00:53 +02:00
|
|
|
;;
|
2000-03-17 23:48:54 +01:00
|
|
|
d30v-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(d30v)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
fr30-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(fr30)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
2002-06-18 23:19:17 +02:00
|
|
|
frv*-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(frv)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2002-06-18 23:41:22 +02:00
|
|
|
;;
|
2008-12-18 00:08:09 +01:00
|
|
|
lm32*-*-*)
|
|
|
|
AC_CONFIG_SUBDIRS(lm32)
|
|
|
|
config_testsuite=true
|
|
|
|
;;
|
2000-03-17 23:48:54 +01:00
|
|
|
mcore-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(mcore)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
2007-02-08 22:22:05 +01:00
|
|
|
mep-*-*)
|
|
|
|
AC_CONFIG_SUBDIRS(mep)
|
|
|
|
config_testsuite = true;
|
|
|
|
;;
|
2009-04-22 Anthony Green <green@moxielogic.com>
* configure.in: Add moxie support.
* configure: Regenerate.
* moxie/aclocal.m4, moxie/configure, moxie/configure.in,
moxie/crt0.S, moxie/fstat.c, moxie/getpid.c, isatty.c,
moxie/kill.c, moxie/Makefile.in, moxie/moxie-elf-common.ld,
moxie/print.c, moxie/putnum.c, moxie/qemu.ld, moxie/qemu-time.c,
moxie/qemu-write.c, moxie/sbrk.c, moxie/sim-close.S,
moxie/sim-exit.S,
moxie/sim-inbyte.c, moxie/sim.ld, moxie/sim-lseek.c,
moxie/sim-lseek.S, moxie/sim-open.S, moxie/sim-read.S, moxie/sim-time.c,
moxie/sim-unlink.S, moxie/sim-write.S, moxie/stat.c: New files.
2009-04-22 21:48:07 +02:00
|
|
|
moxie-*-*)
|
|
|
|
AC_CONFIG_SUBDIRS(moxie)
|
|
|
|
config_testsuite=true
|
|
|
|
;;
|
2005-12-12 12:25:07 +01:00
|
|
|
mt-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(mt)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2006-04-19 21:44:05 +02:00
|
|
|
;;
|
2001-12-22 23:47:58 +01:00
|
|
|
xstormy16-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(xstormy16)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2001-12-22 23:47:58 +01:00
|
|
|
;;
|
2005-08-10 DJ Delorie <dj@redhat.com>
* configure.in: Add m32c support.
* configure: Regenerated
* m32c: New directory, Renesas R8C/M16C/M32C support.
* m32c/abort.S m32c/argvlen.S m32c/argv.S m32c/chdir.S,
m32c/chmod.S m32c/close.S m32c/configure m32c/configure.in,
m32c/crt0.S, m32c/crtn.S, m32c/exit.S, m32c/fstat.S,
m32c/genscript, m32c/getpid.S, m32c/gettimeofday.S,
m32c/heaptop.S, m32c/isatty.S, m32c/kill.S, m32c/link.S,
m32c/lseek.S, m32c/m32csys.h, m32c/m32c.tmpl, m32c/Makefile.in,
m32c/open.S, m32c/read.S, m32c/sbrk.c, m32c/stat.S, m32c/time.S,
m32c/times.S, m32c/unlink.S, m32c/utime.S, m32c/write.S: New files
2005-08-10 22:29:33 +02:00
|
|
|
m32c-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(m32c)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2004-06-09 Toralf Lund <toralf@procaptura.com>
* arm/crt0.S: Copied from newlib and it now also sets up stacks for
FIQ and IRQ mode, plus calls hardware_init_hook() and
software_init_hook() if present.
* arm/libcfunc.c, arm/swi.h, arm/syscalls.c: Copied
from newlib.
* arm/Makefile.in: Build crt0.o, rdpmon-crt0.o, rdimon-crt0.o,
librdpmon.a, librdimon.a - support file for "bare" setup, as well
as "RDP" and "RDI" monitors.
* arm/coff-rdpmon.specs, arm/elf-rdpmon.specs,
arm/coff-rdimon.specs, arm/elf-rdimon.specs: gcc specs files to go
with above mentioned support libs and startfiles.
2004-06-09 21:06:50 +02:00
|
|
|
;;
|
2006-04-19 21:44:05 +02:00
|
|
|
strongarm-*-elf | strongarm-*-coff | arm*-*-elf | arm*-*-coff | ep9312-*-elf | ep9312-*-coff | xscale-*-elf | xscale-*-coff | *arm-*-*)
|
|
|
|
AC_CONFIG_SUBDIRS(arm)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2002-01-07 19:12:32 +01:00
|
|
|
;;
|
2006-08-16 23:15:03 +02:00
|
|
|
spu-*-elf)
|
|
|
|
AC_CONFIG_SUBDIRS(spu)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=false
|
2006-08-16 23:15:03 +02:00
|
|
|
;;
|
2004-10-28 10:18:18 +02:00
|
|
|
iq2000-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(iq2000)
|
2006-12-11 23:19:03 +01:00
|
|
|
config_testsuite=true
|
2006-04-19 21:44:05 +02:00
|
|
|
;;
|
2000-03-17 23:48:54 +01:00
|
|
|
esac
|
|
|
|
|
2006-04-19 21:44:05 +02:00
|
|
|
# For now, don't bother configuring testsuite
|
|
|
|
#
|
|
|
|
# if test ${config_testsuite); then AC_CONFIG_SUBDIRS(testsuite); fi
|
|
|
|
#
|
2000-03-17 23:48:54 +01:00
|
|
|
|
|
|
|
LIB_AC_PROG_CC
|
|
|
|
AS=${AS-as}
|
|
|
|
AC_SUBST(AS)
|
|
|
|
AC_CHECK_PROG(AR, ar, ar, :)
|
|
|
|
AR=${AR-ar}
|
|
|
|
AC_SUBST(AR)
|
|
|
|
LD=${LD-ld}
|
|
|
|
AC_SUBST(LD)
|
|
|
|
AC_PROG_RANLIB
|
2006-04-19 21:44:05 +02:00
|
|
|
LIB_AM_PROG_AS
|
2000-03-17 23:48:54 +01:00
|
|
|
|
|
|
|
host_makefile_frag=${srcdir}/config/default.mh
|
|
|
|
|
|
|
|
dnl We have to assign the same value to other variables because autoconf
|
|
|
|
dnl doesn't provide a mechanism to substitute a replacement keyword with
|
|
|
|
dnl arbitrary data or pathnames.
|
|
|
|
dnl
|
|
|
|
host_makefile_frag_path=$host_makefile_frag
|
|
|
|
AC_SUBST(host_makefile_frag_path)
|
|
|
|
AC_SUBST_FILE(host_makefile_frag)
|
|
|
|
|
2006-05-10 22:51:41 +02:00
|
|
|
if test "${multilib}" = "yes"; then
|
|
|
|
multilib_arg="--enable-multilib"
|
|
|
|
else
|
|
|
|
multilib_arg=
|
|
|
|
fi
|
|
|
|
|
2000-03-17 23:48:54 +01:00
|
|
|
# for now, only add multilibs for specific targets
|
2006-05-10 22:51:41 +02:00
|
|
|
AC_CONFIG_FILES([Makefile],
|
|
|
|
[if test -n "$CONFIG_FILES"; then
|
|
|
|
unset ac_file
|
|
|
|
. ${libgloss_topdir}/config-ml.in
|
|
|
|
fi],
|
2000-03-17 23:48:54 +01:00
|
|
|
srcdir=${srcdir}
|
|
|
|
target=${target}
|
|
|
|
with_multisubdir=${with_multisubdir}
|
|
|
|
ac_configure_args="--enable-multilib ${ac_configure_args}"
|
|
|
|
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
|
|
|
libgloss_topdir=${libgloss_topdir}
|
2006-05-10 22:51:41 +02:00
|
|
|
CC="${CC}"
|
|
|
|
LDFLAGS=${LDFLAGS}
|
2000-03-17 23:48:54 +01:00
|
|
|
)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_OUTPUT
|
2000-03-17 23:48:54 +01:00
|
|
|
|
|
|
|
|