dnl Process this file with autoconf to produce a configure script.
m4_include([../config/override.m4])
-AC_PREREQ(2.59)dnl
AC_INIT(Makefile.in)
AC_PROG_CC
AC_PROG_RANLIB
# Put a plausible default for CC_FOR_BUILD in Makefile.
-if test "x$cross_compiling" = "xno"; then
- CC_FOR_BUILD='$(CC)'
-else
- CC_FOR_BUILD=gcc
+if test -z "$CC_FOR_BUILD"; then
+ if test "x$cross_compiling" = "xno"; then
+ CC_FOR_BUILD='$(CC)'
+ else
+ CC_FOR_BUILD=gcc
+ fi
fi
AC_SUBST(CC_FOR_BUILD)
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
])
if test "${enable_sim}" != no; then
sinclude(configure.tgt)
- AC_CONFIG_SUBDIRS(testsuite)
- if test "$sim_igen" = yes; then
- AC_CONFIG_SUBDIRS(igen)
+ if test x"${sim_arch}" != x; then
+ AC_CONFIG_SUBDIRS(testsuite)
+ if test "$sim_igen" = yes; then
+ AC_CONFIG_SUBDIRS(igen)
+ fi
fi
fi