* Makefile.in, configure.in: converted to autoconf.
[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
9 # WHEN ADDING ENTRIES TO THIS MATRIX:
10 # Make sure that the left side always has two dashes. Otherwise you
11 # can get spurious matches. Even for unambiguous cases, do this as a
12 # convention, else the table becomes a real mess to understand and maintain.
13
14 case "${target}" in
15 arm*-*-*) sim_target=arm ;;
16 h8300*-*-*) sim_target=h8300 ;;
17 h8500-*-*) sim_target=h8500 ;;
18 sh*-*-*) sim_target=sh ;;
19 w65-*-*) sim_target=w65 ;;
20 z8k*-*-*) sim_target=z8k ;;
21 *) sim_target=none ;;
22 esac
23
24 configdirs=${sim_target}
25 AC_CONFIG_SUBDIRS($configdirs)
26
27 if test ! -f ${srcdir}/${sim_target}/${sim_target}.mt ; then
28 target_makefile_frag=/dev/null
29 else
30 target_makefile_frag=${srcdir}/${sim_target}/${sim_target}.mt
31 fi
32
33 frags=
34 if test $target_makefile_frag != /dev/null; then
35 frags="$frags $target_makefile_frag"
36 fi
37 AC_SUBST_FILE(target_makefile_frag)
38 AC_SUBST(frags)
39
40 AC_OUTPUT(Makefile)
This page took 0.03973 seconds and 4 git commands to generate.