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)
|
|
|
|
config_testsuite = true;
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
m32r-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(m32r)
|
|
|
|
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)
|
|
|
|
config_testsuite = true;
|
2002-07-23 23:56:27 +02:00
|
|
|
;;
|
2000-03-17 23:48:54 +01:00
|
|
|
m68*-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(m68k)
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
config_testsuite = true;
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
mn10200-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(mn10200)
|
|
|
|
config_testsuite = true;
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
mn10300-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(mn10300)
|
|
|
|
config_testsuite = true;
|
2000-03-17 23:48:54 +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)
|
|
|
|
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)
|
|
|
|
config_testsuite = true;
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
|
|
|
fr30-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(fr30)
|
|
|
|
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)
|
|
|
|
config_testsuite = true;
|
2002-06-18 23:41:22 +02:00
|
|
|
;;
|
2000-03-17 23:48:54 +01:00
|
|
|
mcore-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(mcore)
|
|
|
|
config_testsuite = true;
|
2000-03-17 23:48:54 +01:00
|
|
|
;;
|
2005-12-12 12:25:07 +01:00
|
|
|
mt-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(mt)
|
|
|
|
config_testsuite = true;
|
|
|
|
;;
|
2001-12-22 23:47:58 +01:00
|
|
|
xstormy16-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(xstormy16)
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
config_testsuite = true;
|
2002-01-07 19:12:32 +01:00
|
|
|
;;
|
2004-10-28 10:18:18 +02:00
|
|
|
iq2000-*-*)
|
2006-04-19 21:44:05 +02:00
|
|
|
AC_CONFIG_SUBDIRS(iq2000)
|
|
|
|
config_testsuite = true;
|
|
|
|
;;
|
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
|
|
|
|
|
|
|
|