* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
[deliverable/binutils-gdb.git] / sim / mips / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.5)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 AC_PROG_CC
11 AC_PROG_INSTALL
12
13 . ${srcdir}/../../bfd/configure.host
14
15 AC_SUBST(CFLAGS)
16 AC_SUBST(HDEFINES)
17 AR=${AR-ar}
18 AC_SUBST(AR)
19 AC_PROG_RANLIB
20
21 # Ensure a reasonable default simulator is constructed:
22 case "${target}" in
23 mips64*-*-*) SIMCONF="-mips0 --warnings";;
24 mips*-*-*) SIMCONF="-mips2 --warnings";;
25 *) SIMCONF="-mips0 --warnings";;
26 esac
27
28 # Put a plausible default for CC_FOR_BUILD in Makefile.
29 AC_C_CROSS
30 if test "x$cross_compiling" = "xno"; then
31 CC_FOR_BUILD='$(CC)'
32 else
33 CC_FOR_BUILD=gcc
34 fi
35 AC_SUBST(CC_FOR_BUILD)
36
37 AC_CHECK_HEADERS(string.h strings.h stdlib.h)
38 AC_CHECK_LIB(m, fabs)
39 AC_CHECK_FUNCS(aint anint)
40
41 AC_SUBST(SIMCONF)
42
43 AC_OUTPUT(Makefile,
44 [case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
This page took 0.032867 seconds and 5 git commands to generate.