aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/configure.in')
-rw-r--r--sim/ppc/configure.in28
1 files changed, 18 insertions, 10 deletions
diff --git a/sim/ppc/configure.in b/sim/ppc/configure.in
index 19c4648..b964ece 100644
--- a/sim/ppc/configure.in
+++ b/sim/ppc/configure.in
@@ -2,23 +2,31 @@ dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.3)dnl
AC_INIT(Makefile.in)
+AC_CONFIG_HEADER(config.h:config.in)
+
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
AC_CANONICAL_SYSTEM
AC_ARG_PROGRAM
. ${srcdir}/../../bfd/configure.host
-if test -f ${srcdir}/../../bfd/config/${my_host}.mh; then
- host_makefile_frag=../../bfd/config/${my_host}.mh
+AC_PROG_CC
+AC_SUBST(CFLAGS)
+AC_SUBST(HDEFINES)
+AR=${AR-ar}
+AC_SUBST(AR)
+AC_PROG_RANLIB
+
+# Put a plausible default for CC_FOR_BUILD in Makefile.
+AC_C_CROSS
+if test "x$cross_compiling" = "xno"; then
+ CC_FOR_BUILD='$(CC)'
else
- host_makefile_frag=/dev/null
+ CC_FOR_BUILD=gcc
fi
+AC_SUBST(CC_FOR_BUILD)
-frags=
-if test $host_makefile_frag != /dev/null; then
- frags="$frags $host_makefile_frag"
-fi
-AC_SUBST_FILE(host_makefile_frag)
-AC_SUBST(frags)
+AC_CHECK_HEADERS(string.h strings.h stdlib.h time.h sys/times.h)
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile,
+[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])