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