1 dnl Process this file with autoconf to produce a configure script.
5 if test "${enable_shared}" = "yes" ; then
6 echo "Shared libraries not supported for cross compiling, ignored"
9 if test "$srcdir" = "." ; then
10 if test "${with_target_subdir}" != "." ; then
11 libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
13 libgloss_topdir="${srcdir}/${with_multisrctop}../.."
16 libgloss_topdir="${srcdir}/../.."
18 AC_CONFIG_AUX_DIR($libgloss_topdir)
25 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
26 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
27 # are probably using a cross compiler, which will not be able to fully
28 # link an executable. This should really be fixed in autoconf
31 AC_DEFUN(LIB_AC_PROG_CC,
32 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
33 AC_CHECK_PROG(CC, gcc, gcc)
34 if test -z "$CC"; then
35 AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
36 test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
41 if test $ac_cv_prog_gcc = yes; then
43 dnl Check whether -g works, even if CFLAGS is set, in case the package
44 dnl plays around with CFLAGS (such as to build both debugging and
45 dnl normal versions of a library), tasteless as that idea is.
46 ac_test_CFLAGS="${CFLAGS+set}"
47 ac_save_CFLAGS="$CFLAGS"
50 if test "$ac_test_CFLAGS" = set; then
51 CFLAGS="$ac_save_CFLAGS"
52 elif test $ac_cv_prog_cc_g = yes; then
59 test "${CFLAGS+set}" = set || CFLAGS="-g"
83 host_makefile_frag=${srcdir}/../config/default.mh
85 dnl We have to assign the same value to other variables because autoconf
86 dnl doesn't provide a mechanism to substitute a replacement keyword with
87 dnl arbitrary data or pathnames.
89 host_makefile_frag_path=$host_makefile_frag
90 AC_SUBST(host_makefile_frag_path)
91 AC_SUBST_FILE(host_makefile_frag)
94 . ${libgloss_topdir}/config-ml.in,
97 ac_configure_args="${ac_configure_args} --enable-multilib"
98 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
99 libgloss_topdir=${libgloss_topdir}