* Test cases for PR 18015.
[deliverable/binutils-gdb.git] / sim / testsuite / configure.in
CommitLineData
00729fe3
AC
1dnl Process this file file with autoconf to produce a configure script.
2dnl This file is a shell script fragment that supplies the information
3dnl necessary to tailor a template configure script into the configure
4dnl script appropriate for this directory. For more information, check
5dnl any existing configure script.
6
7AC_PREREQ(2.5)
52352d38 8AC_INIT(common/bits-tst.c)
00729fe3
AC
9
10CC=${CC-cc}
11AC_SUBST(CC)
12AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
13AC_CANONICAL_SYSTEM
14
15# Directories to use in all configurations.
16configdirs=""
17
00729fe3 18# add test sub-directory for appropriate targets
52352d38
AC
19testdir=`echo ${target} | sed -e 's/-.*-/-/'`
20if test -r ${srcdir}/${testdir}/configure ; then
21 configdirs="${configdirs} $testdir"
22fi
00729fe3 23
559eba20
FCE
24# add any extra subdirectories
25case $target in
26 # start-sanitize-sky
5678ce88 27 mips64r5900-sky-elf) configdirs="${configdirs}" ;;
559eba20
FCE
28 # end-sanitize-sky
29 *) ;;
30esac
31
ed063d52
DE
32case $target in
33 m32r-*-*) use_cgen=yes ;;
34 *) use_cgen=no ;;
35esac
36if test $use_cgen = yes ; then
37 AC_CHECK_PROG(SCHEME, guile, guile, guile)
38fi
39
40# Compute the target architecture.
41# FIXME: Will need to canonicalize some values.
42# FIXME: Should be in generally accessable place.
43case $target in
44 *) arch=${target_cpu} ;;
45esac
46AC_SUBST(arch)
47
00729fe3
AC
48# configure the subdirectories too
49AC_CONFIG_SUBDIRS($configdirs)
50
51AC_OUTPUT(Makefile)
This page took 0.075429 seconds and 4 git commands to generate.