]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/d10v/configure.in
More debug support; Enable -t/-v to work correctly; Add --enable-sim-cflags configure...
[thirdparty/binutils-gdb.git] / sim / d10v / configure.in
CommitLineData
2934d1c9
MH
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.5)dnl
3AC_INIT(Makefile.in)
4
5AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
6AC_CANONICAL_SYSTEM
7AC_ARG_PROGRAM
8AC_PROG_CC
9AC_PROG_INSTALL
10AC_C_BIGENDIAN
11
12. ${srcdir}/../../bfd/configure.host
13
7eebfc62
MM
14AC_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"`;;
21esac
22if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
23 echo "Setting sim cflags = $sim_cflags" 6>&1
24fi],[sim_cflags=""])dnl
25
2934d1c9
MH
26AC_SUBST(CFLAGS)
27AC_SUBST(HDEFINES)
28AR=${AR-ar}
29AC_SUBST(AR)
30AC_PROG_RANLIB
7eebfc62 31AC_SUBST(sim_cflags)
2934d1c9
MH
32
33# Put a plausible default for CC_FOR_BUILD in Makefile.
34AC_C_CROSS
35if test "x$cross_compiling" = "xno"; then
36 CC_FOR_BUILD='$(CC)'
37else
38 CC_FOR_BUILD=gcc
39fi
40AC_SUBST(CC_FOR_BUILD)
41
42AC_OUTPUT(Makefile)