aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300/configure.in
blob: b7a9592566fef422b3bf5f9e5ea75ed06c8cbea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.3)dnl
AC_INIT(Makefile.in)

AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
AC_CANONICAL_SYSTEM
AC_ARG_PROGRAM

. ${srcdir}/../../bfd/configure.host

# Set up to make a link between the host's include file and "sysdep.h".
files="../../bfd/hosts/${my_host}.h"
if test ! -f ${srcdir}/${files} ; then
	files=../../bfd/hosts/std-host.h
	AC_MSG_WARN(h8300sim has no specific support for host ${host} -- using std-host)
fi
AC_LINK_FILES($files, sysdep.h)

if test -f ${srcdir}/../../bfd/config/${my_host}.mh; then
	host_makefile_frag=../../bfd/config/${my_host}.mh
else
	host_makefile_frag=/dev/null
fi

frags=
if test $host_makefile_frag != /dev/null; then
	frags="$frags $host_makefile_frag"
fi
AC_SUBST_FILE(host_makefile_frag)
AC_SUBST(frags)

AC_OUTPUT(Makefile)