Commit | Line | Data |
---|---|---|
00729fe3 AC |
1 | dnl Process this file file with autoconf to produce a configure script. |
2 | dnl This file is a shell script fragment that supplies the information | |
3 | dnl necessary to tailor a template configure script into the configure | |
4 | dnl script appropriate for this directory. For more information, check | |
5 | dnl any existing configure script. | |
6 | ||
7 | AC_PREREQ(2.5) | |
52352d38 | 8 | AC_INIT(common/bits-tst.c) |
00729fe3 AC |
9 | |
10 | CC=${CC-cc} | |
11 | AC_SUBST(CC) | |
12 | AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..) | |
13 | AC_CANONICAL_SYSTEM | |
14 | ||
15 | # Directories to use in all configurations. | |
16 | configdirs="" | |
17 | ||
00729fe3 | 18 | # add test sub-directory for appropriate targets |
52352d38 AC |
19 | testdir=`echo ${target} | sed -e 's/-.*-/-/'` |
20 | if test -r ${srcdir}/${testdir}/configure ; then | |
21 | configdirs="${configdirs} $testdir" | |
22 | fi | |
00729fe3 | 23 | |
ed063d52 DE |
24 | case $target in |
25 | m32r-*-*) use_cgen=yes ;; | |
26 | *) use_cgen=no ;; | |
27 | esac | |
28 | if test $use_cgen = yes ; then | |
29 | AC_CHECK_PROG(SCHEME, guile, guile, guile) | |
30 | fi | |
31 | ||
32 | # Compute the target architecture. | |
33 | # FIXME: Will need to canonicalize some values. | |
34 | # FIXME: Should be in generally accessable place. | |
35 | case $target in | |
36 | *) arch=${target_cpu} ;; | |
37 | esac | |
38 | AC_SUBST(arch) | |
39 | ||
00729fe3 AC |
40 | # configure the subdirectories too |
41 | AC_CONFIG_SUBDIRS($configdirs) | |
42 | ||
43 | AC_OUTPUT(Makefile) |