cd1700a1b8beb472ac19c430b8029974a6b1371d
[deliverable/binutils-gdb.git] / sim / d10v / 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_AUX_DIR(`cd $srcdir;pwd`/../..)
6 AC_CANONICAL_SYSTEM
7 AC_ARG_PROGRAM
8 AC_PROG_CC
9 AC_PROG_INSTALL
10 AC_C_BIGENDIAN
11
12 . ${srcdir}/../../bfd/configure.host
13
14 AC_ARG_ENABLE(sim-cflags,
15 [ --enable-sim-cflags=opts Extra CFLAGS for use in building simulator],
16 [case "${enableval}" in
17 yes) sim_cflags="-O2";;
18 trace) sim_cflags="-O2 -DDEBUG=3";;
19 no) sim_cflags="";;
20 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21 esac
22 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
23 echo "Setting sim cflags = $sim_cflags" 6>&1
24 fi],[sim_cflags=""])dnl
25
26 AC_SUBST(CFLAGS)
27 AC_SUBST(HDEFINES)
28 AR=${AR-ar}
29 AC_SUBST(AR)
30 AC_PROG_RANLIB
31 AC_SUBST(sim_cflags)
32
33 # Put a plausible default for CC_FOR_BUILD in Makefile.
34 AC_C_CROSS
35 if test "x$cross_compiling" = "xno"; then
36 CC_FOR_BUILD='$(CC)'
37 else
38 CC_FOR_BUILD=gcc
39 fi
40 AC_SUBST(CC_FOR_BUILD)
41
42 AC_OUTPUT(Makefile)
This page took 0.033489 seconds and 4 git commands to generate.