fe9dccc4d6000b7d2952af7eeb1a99d8fba461c5
[deliverable/binutils-gdb.git] / sim / mips / 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_HEADER(config.h:config.in)
6
7 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
8 AC_CANONICAL_SYSTEM
9 AC_ARG_PROGRAM
10
11 . ${srcdir}/../../bfd/configure.host
12
13 AC_PROG_CC
14 AC_SUBST(CFLAGS)
15 AC_SUBST(HDEFINES)
16 AR=${AR-ar}
17 AC_SUBST(AR)
18 AC_PROG_RANLIB
19
20 # Ensure a reasonable default simulator is constructed:
21 case "${target}" in
22 mips64*-*-*) SIMCONF="-mips0 --warnings";;
23 mips*-*-*) SIMCONF="-mips2 --warnings";;
24 *) SIMCONF="-mips0 --warnings";;
25 esac
26
27 # Put a plausible default for CC_FOR_BUILD in Makefile.
28 AC_C_CROSS
29 if test "x$cross_compiling" = "xno"; then
30 CC_FOR_BUILD='$(CC)'
31 else
32 CC_FOR_BUILD=gcc
33 fi
34 AC_SUBST(CC_FOR_BUILD)
35
36 AC_CHECK_HEADERS(string.h strings.h stdlib.h)
37 AC_CHECK_LIB(m, fabs)
38 AC_CHECK_FUNCS(aint anint)
39
40 AC_SUBST(SIMCONF)
41
42 AC_OUTPUT(Makefile,
43 [case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
This page took 0.034162 seconds and 4 git commands to generate.