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 AC_CONFIG_SUBDIRS(libnosys)
33 i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
34 AC_CONFIG_SUBDIRS(i386)
35 config_testsuite = true;
38 AC_CONFIG_SUBDIRS(m32r)
39 config_testsuite = true;
41 m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
42 AC_CONFIG_SUBDIRS(m68hc11)
43 config_testsuite = true;
46 AC_CONFIG_SUBDIRS(m68k)
47 config_testsuite = true;
51 config_testsuite = true;
54 AC_CONFIG_SUBDIRS(i960)
55 config_testsuite = true;
57 sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
58 AC_CONFIG_SUBDIRS(sparc)
59 config_testsuite = true;
61 sh*-*-pe | mips*-*-pe | *arm-wince-pe)
62 AC_CONFIG_SUBDIRS(wince)
65 AC_CONFIG_SUBDIRS(mips)
66 config_testsuite = true;
68 powerpc-*-*|powerpcle-*-*)
69 AC_CONFIG_SUBDIRS(rs6000)
70 config_testsuite = true;
73 AC_CONFIG_SUBDIRS(mn10200)
74 config_testsuite = true;
77 AC_CONFIG_SUBDIRS(mn10300)
78 config_testsuite = true;
80 cris-*-* | crisv32-*-*)
81 AC_CONFIG_SUBDIRS(cris)
82 config_testsuite = true;
85 AC_CONFIG_SUBDIRS(crx)
88 AC_CONFIG_SUBDIRS(d30v)
89 config_testsuite = true;
92 AC_CONFIG_SUBDIRS(fr30)
93 config_testsuite = true;
96 AC_CONFIG_SUBDIRS(frv)
97 config_testsuite = true;
100 AC_CONFIG_SUBDIRS(mcore)
101 config_testsuite = true;
104 AC_CONFIG_SUBDIRS(mt)
105 config_testsuite = true;
108 AC_CONFIG_SUBDIRS(xstormy16)
109 config_testsuite = true;
112 AC_CONFIG_SUBDIRS(m32c)
113 config_testsuite = true;
115 strongarm-*-elf | strongarm-*-coff | arm*-*-elf | arm*-*-coff | ep9312-*-elf | ep9312-*-coff | xscale-*-elf | xscale-*-coff | *arm-*-*)
116 AC_CONFIG_SUBDIRS(arm)
117 config_testsuite = true;
120 AC_CONFIG_SUBDIRS(iq2000)
121 config_testsuite = true;
125 # For now, don't bother configuring testsuite
127 # if test ${config_testsuite); then AC_CONFIG_SUBDIRS(testsuite); fi
133 AC_CHECK_PROG(AR, ar, ar, :)
141 host_makefile_frag=${srcdir}/config/default.mh
143 dnl We have to assign the same value to other variables because autoconf
144 dnl doesn't provide a mechanism to substitute a replacement keyword with
145 dnl arbitrary data or pathnames.
147 host_makefile_frag_path=$host_makefile_frag
148 AC_SUBST(host_makefile_frag_path)
149 AC_SUBST_FILE(host_makefile_frag)
151 if test "${multilib}" = "yes"; then
152 multilib_arg="--enable-multilib"
157 # for now, only add multilibs for specific targets
158 AC_CONFIG_FILES([Makefile],
159 [if test -n "$CONFIG_FILES"; then
161 . ${libgloss_topdir}/config-ml.in
165 with_multisubdir=${with_multisubdir}
166 ac_configure_args="--enable-multilib ${ac_configure_args}"
167 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
168 libgloss_topdir=${libgloss_topdir}