more functional unit changes
[deliverable/binutils-gdb.git] / sim / configure.in
CommitLineData
1ffd292b
C
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.3)dnl
3AC_INIT(Makefile.in)
b0c9f026 4
1ffd292b
C
5AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
6AC_CANONICAL_SYSTEM
7AC_ARG_PROGRAM
6f07ee29
MM
8AC_PROG_CC
9AC_SUBST(CFLAGS)
10AC_SUBST(HDEFINES)
11AR=${AR-ar}
12AC_SUBST(AR)
13AC_PROG_RANLIB
14
15# Put a plausible default for CC_FOR_BUILD in Makefile.
16AC_C_CROSS
17if test "x$cross_compiling" = "xno"; then
18 CC_FOR_BUILD='$(CC)'
19else
20 CC_FOR_BUILD=gcc
21fi
22AC_SUBST(CC_FOR_BUILD)
b0c9f026 23
e218c1be
MM
24# The PowerPC simulator uses the GCC extension long long as well as
25# ANSI prototypes, so don't enable it for random host compilers
26# unless asked to.
27
f50dc105
MM
28AC_ARG_ENABLE(sim-powerpc,
29[ --enable-sim-powerpc ],
30[case "${enableval}" in
31yes) powerpc_sim=yes ;;
32no) powerpc_sim=no ;;
33*) AC_MSG_ERROR(bad value ${enableval} given for sim-powerpc option) ;;
34esac],[if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi])
35
b0c9f026
SC
36# WHEN ADDING ENTRIES TO THIS MATRIX:
37# Make sure that the left side always has two dashes. Otherwise you
38# can get spurious matches. Even for unambiguous cases, do this as a
39# convention, else the table becomes a real mess to understand and maintain.
40
41case "${target}" in
d32033ad 42 arm*-*-*) sim_target=arm ;;
1ffd292b 43 h8300*-*-*) sim_target=h8300 ;;
47dba87a 44 h8500-*-*) sim_target=h8500 ;;
595a6ec3 45 mips*-*-*) sim_target=mips ;;
6c19c2ef 46 sh*-*-*) sim_target=sh ;;
f7c22f27 47 powerpc*-*-eabi*) if test x"$powerpc_sim" = x"yes"; then sim_target=ppc; fi ;;
6c19c2ef 48 w65-*-*) sim_target=w65 ;;
1ffd292b 49 z8k*-*-*) sim_target=z8k ;;
47dba87a 50 *) sim_target=none ;;
b0c9f026
SC
51esac
52
53configdirs=${sim_target}
1ffd292b 54AC_CONFIG_SUBDIRS($configdirs)
b0c9f026 55
1ffd292b 56AC_OUTPUT(Makefile)
23de525f
PS
57
58exit 0
This page took 0.115488 seconds and 4 git commands to generate.