configure.ac revision 1.1.1.5
1dnl Process this file with autoconf to produce a configure script. 2m4_include([../config/override.m4]) 3AC_INIT(Makefile.in) 4 5AC_PROG_CC 6AC_PROG_INSTALL 7AC_CHECK_TOOL(AR, ar) 8AC_CHECK_TOOL(RANLIB, ranlib, :) 9 10AC_CANONICAL_SYSTEM 11AC_ARG_PROGRAM 12AC_PROG_CC 13AC_SUBST(CFLAGS) 14AC_SUBST(HDEFINES) 15AR=${AR-ar} 16AC_SUBST(AR) 17AC_PROG_RANLIB 18 19# Put a plausible default for CC_FOR_BUILD in Makefile. 20if test -z "$CC_FOR_BUILD"; then 21 if test "x$cross_compiling" = "xno"; then 22 CC_FOR_BUILD='$(CC)' 23 else 24 CC_FOR_BUILD=gcc 25 fi 26fi 27AC_SUBST(CC_FOR_BUILD) 28CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} 29AC_SUBST(CFLAGS_FOR_BUILD) 30 31# If a cpu ever has more than one simulator to choose from, use 32# --enable-sim=... to choose. 33AC_ARG_ENABLE(sim, 34[AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])], 35[case "${enableval}" in 36yes | no) ;; 37*) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;; 38esac]) 39 40m4_define([SIM_ARCH], [ 41 sim_arch=$1 42 AC_CONFIG_SUBDIRS($1) 43]) 44if test "${enable_sim}" != no; then 45 sinclude(configure.tgt) 46 if test x"${sim_arch}" != x; then 47 AC_CONFIG_SUBDIRS(testsuite) 48 if test "$sim_igen" = yes; then 49 AC_CONFIG_SUBDIRS(igen) 50 fi 51 fi 52fi 53 54AC_OUTPUT(Makefile) 55 56exit 0 57