1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT([libgloss],[LIBGLOSS_VERSION])
4 AC_CONFIG_SRCDIR([libnosys])
6 if test "${enable_shared}" = "yes" ; then
7 echo "Shared libraries not supported for cross compiling, ignored"
10 if test "${srcdir}" = "." ; then
11 if test "${with_target_subdir}" != "." ; then
12 libgloss_topdir="${srcdir}/${with_multisrctop}../.."
14 libgloss_topdir="${srcdir}/${with_multisrctop}.."
17 libgloss_topdir="${srcdir}/.."
19 AC_CONFIG_AUX_DIR($libgloss_topdir)
24 AM_INIT_AUTOMAKE([cygnus no-define 1.9.5])
26 if test -z "${with_multisubdir}" ; then
27 AC_CONFIG_SUBDIRS([doc])
30 dnl indicates whether to run configure within the testsuite subdirectory
33 dnl indicates whether to run configure within the libnosys subdirectory
37 i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
38 AC_CONFIG_SUBDIRS([i386])
41 AC_CONFIG_SUBDIRS([m32r])
43 m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
44 AC_CONFIG_SUBDIRS([m68hc11])
47 AC_CONFIG_SUBDIRS([m68k])
50 AC_CONFIG_SUBDIRS([pa])
53 AC_CONFIG_SUBDIRS([i960])
55 sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
56 AC_CONFIG_SUBDIRS([sparc])
58 sh*-*-pe | mips*-*-pe | *arm-wince-pe)
59 AC_CONFIG_SUBDIRS([wince])
62 AC_CONFIG_SUBDIRS([mips])
64 powerpc-*-*|powerpcle-*-*)
65 AC_CONFIG_SUBDIRS([rs6000])
68 AC_CONFIG_SUBDIRS([mn10200])
71 AC_CONFIG_SUBDIRS([mn10300])
74 AC_CONFIG_SUBDIRS([bfin])
76 cris-*-* | crisv32-*-*)
77 AC_CONFIG_SUBDIRS([cris])
80 AC_CONFIG_SUBDIRS([crx])
83 AC_CONFIG_SUBDIRS([d30v])
86 AC_CONFIG_SUBDIRS([fr30])
89 AC_CONFIG_SUBDIRS([frv])
92 AC_CONFIG_SUBDIRS([lm32])
95 AC_CONFIG_SUBDIRS([mcore])
98 AC_CONFIG_SUBDIRS([mep])
101 AC_CONFIG_SUBDIRS([moxie])
104 AC_CONFIG_SUBDIRS([microblaze])
107 AC_CONFIG_SUBDIRS([mt])
110 AC_CONFIG_SUBDIRS([xstormy16])
113 AC_CONFIG_SUBDIRS([m32c])
116 AC_CONFIG_SUBDIRS([rx])
118 strongarm-*-elf | strongarm-*-coff | arm*-*-elf | arm*-*-coff | ep9312-*-elf | ep9312-*-coff | xscale-*-elf | xscale-*-coff | *arm-*-*)
119 AC_CONFIG_SUBDIRS([arm])
122 AC_CONFIG_SUBDIRS([spu])
123 config_testsuite=false
124 config_libnosys=false
127 AC_CONFIG_SUBDIRS([iq2000])
131 dnl For now, don't bother configuring testsuite
133 dnl if test "${config_testsuite}" = "true";
134 dnl then AC_CONFIG_SUBDIRS([testsuite])
137 if test "${config_libnosys}" = "true"; then
138 AC_CONFIG_SUBDIRS([libnosys])
144 AC_CHECK_PROG(AR, ar, ar, :)
152 host_makefile_frag=${srcdir}/config/default.mh
154 dnl We have to assign the same value to other variables because autoconf
155 dnl doesn't provide a mechanism to substitute a replacement keyword with
156 dnl arbitrary data or pathnames.
158 host_makefile_frag_path=$host_makefile_frag
159 AC_SUBST(host_makefile_frag_path)
160 AC_SUBST_FILE(host_makefile_frag)
162 if test "${multilib}" = "yes"; then
163 multilib_arg="--enable-multilib"
168 # for now, only add multilibs for specific targets
169 AC_CONFIG_FILES([Makefile],
170 [if test -n "$CONFIG_FILES"; then
172 . ${libgloss_topdir}/config-ml.in
176 with_multisubdir=${with_multisubdir}
177 ac_configure_args="--enable-multilib ${ac_configure_args}"
178 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
179 libgloss_topdir=${libgloss_topdir}