2000-03-18 06:48:54 +08:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2006-04-20 03:44:05 +08:00
|
|
|
AC_PREREQ(2.59)
|
|
|
|
AC_INIT([libgloss],[LIBGLOSS_VERSION])
|
|
|
|
AC_CONFIG_SRCDIR([libnosys])
|
2000-03-18 06:48:54 +08: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-20 03:44:05 +08:00
|
|
|
AM_INIT_AUTOMAKE([cygnus no-define 1.9.5])
|
2000-03-18 06:48:54 +08:00
|
|
|
|
|
|
|
if test -z "${with_multisubdir}" ; then
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([doc])
|
2000-03-18 06:48:54 +08:00
|
|
|
fi
|
|
|
|
|
2009-05-14 05:38:25 +08:00
|
|
|
dnl indicates whether to run configure within the testsuite subdirectory
|
|
|
|
config_testsuite=true
|
|
|
|
|
|
|
|
dnl indicates whether to run configure within the libnosys subdirectory
|
|
|
|
config_libnosys=true
|
2006-04-20 03:44:05 +08:00
|
|
|
|
2000-03-18 06:48:54 +08:00
|
|
|
case "${target}" in
|
2006-04-20 03:44:05 +08:00
|
|
|
i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([i386])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
m32r-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([m32r])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2006-04-20 03:44:05 +08:00
|
|
|
m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([m68hc11])
|
2002-07-24 05:56:27 +08: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-19 05:48:18 +08:00
|
|
|
fido-*-* | m68*-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([m68k])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
hppa*-*-pro*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([pa])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
i960-*-coff)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([i960])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2006-04-20 03:44:05 +08:00
|
|
|
sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([sparc])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2006-04-20 03:44:05 +08:00
|
|
|
sh*-*-pe | mips*-*-pe | *arm-wince-pe)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([wince])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
mips*-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([mips])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
powerpc-*-*|powerpcle-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([rs6000])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
mn10200-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([mn10200])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
mn10300-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([mn10300])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2006-11-09 03:36:56 +08:00
|
|
|
bfin-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([bfin])
|
2006-11-09 03:36:56 +08: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-28 06:57:32 +08:00
|
|
|
cris-*-* | crisv32-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([cris])
|
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-28 06:57:32 +08:00
|
|
|
;;
|
2004-10-06 04:00:53 +08:00
|
|
|
crx-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([crx])
|
2004-10-06 04:00:53 +08:00
|
|
|
;;
|
2000-03-18 06:48:54 +08:00
|
|
|
d30v-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([d30v])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
fr30-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([fr30])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2002-06-19 05:19:17 +08:00
|
|
|
frv*-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([frv])
|
2002-06-19 05:41:22 +08:00
|
|
|
;;
|
2008-12-18 07:08:09 +08:00
|
|
|
lm32*-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([lm32])
|
2008-12-18 07:08:09 +08:00
|
|
|
;;
|
2000-03-18 06:48:54 +08:00
|
|
|
mcore-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([mcore])
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2007-02-09 05:22:05 +08:00
|
|
|
mep-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([mep])
|
2007-02-09 05:22:05 +08:00
|
|
|
;;
|
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-23 03:48:07 +08:00
|
|
|
moxie-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([moxie])
|
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-23 03:48:07 +08:00
|
|
|
;;
|
2005-12-12 19:25:07 +08:00
|
|
|
mt-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([mt])
|
2006-04-20 03:44:05 +08:00
|
|
|
;;
|
2001-12-23 06:47:58 +08:00
|
|
|
xstormy16-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([xstormy16])
|
2001-12-23 06:47:58 +08: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-11 04:29:33 +08:00
|
|
|
m32c-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([m32c])
|
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-10 03:06:50 +08:00
|
|
|
;;
|
2006-04-20 03:44:05 +08:00
|
|
|
strongarm-*-elf | strongarm-*-coff | arm*-*-elf | arm*-*-coff | ep9312-*-elf | ep9312-*-coff | xscale-*-elf | xscale-*-coff | *arm-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([arm])
|
2002-01-08 02:12:32 +08:00
|
|
|
;;
|
2006-08-17 05:15:03 +08:00
|
|
|
spu-*-elf)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([spu])
|
2006-12-12 06:19:03 +08:00
|
|
|
config_testsuite=false
|
2009-05-14 05:38:25 +08:00
|
|
|
config_libnosys=false
|
2006-08-17 05:15:03 +08:00
|
|
|
;;
|
2004-10-28 16:18:18 +08:00
|
|
|
iq2000-*-*)
|
2009-05-14 05:38:25 +08:00
|
|
|
AC_CONFIG_SUBDIRS([iq2000])
|
2006-04-20 03:44:05 +08:00
|
|
|
;;
|
2000-03-18 06:48:54 +08:00
|
|
|
esac
|
|
|
|
|
2009-05-14 05:38:25 +08:00
|
|
|
dnl For now, don't bother configuring testsuite
|
|
|
|
dnl
|
|
|
|
dnl if test "${config_testsuite}" = "true";
|
|
|
|
dnl then AC_CONFIG_SUBDIRS([testsuite])
|
|
|
|
dnl fi
|
|
|
|
|
|
|
|
if test "${config_libnosys}" = "true"; then
|
|
|
|
AC_CONFIG_SUBDIRS([libnosys])
|
|
|
|
fi
|
2000-03-18 06:48:54 +08: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-20 03:44:05 +08:00
|
|
|
LIB_AM_PROG_AS
|
2000-03-18 06:48:54 +08: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-11 04:51:41 +08:00
|
|
|
if test "${multilib}" = "yes"; then
|
|
|
|
multilib_arg="--enable-multilib"
|
|
|
|
else
|
|
|
|
multilib_arg=
|
|
|
|
fi
|
|
|
|
|
2000-03-18 06:48:54 +08:00
|
|
|
# for now, only add multilibs for specific targets
|
2006-05-11 04:51:41 +08:00
|
|
|
AC_CONFIG_FILES([Makefile],
|
|
|
|
[if test -n "$CONFIG_FILES"; then
|
|
|
|
unset ac_file
|
|
|
|
. ${libgloss_topdir}/config-ml.in
|
|
|
|
fi],
|
2000-03-18 06:48:54 +08: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-11 04:51:41 +08:00
|
|
|
CC="${CC}"
|
|
|
|
LDFLAGS=${LDFLAGS}
|
2000-03-18 06:48:54 +08:00
|
|
|
)
|
2006-04-20 03:44:05 +08:00
|
|
|
AC_OUTPUT
|
2000-03-18 06:48:54 +08:00
|
|
|
|
|
|
|
|