1995-07-05 22:54:10 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.3)dnl
|
|
|
|
AC_INIT(Makefile.in)
|
1992-12-22 21:59:06 +00:00
|
|
|
|
1995-07-05 22:54:10 +00:00
|
|
|
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_ARG_PROGRAM
|
1992-12-22 21:59:06 +00:00
|
|
|
|
1993-02-04 00:22:22 +00:00
|
|
|
. ${srcdir}/../../bfd/configure.host
|
1992-12-22 21:59:06 +00:00
|
|
|
|
|
|
|
# Set up to make a link between the host's include file and "sysdep.h".
|
1993-02-04 00:22:22 +00:00
|
|
|
files="../../bfd/hosts/${my_host}.h"
|
1995-07-05 22:54:10 +00:00
|
|
|
if test ! -f ${srcdir}/${files} ; then
|
1995-05-24 23:38:06 +00:00
|
|
|
files=../../bfd/hosts/std-host.h
|
1995-07-05 22:54:10 +00:00
|
|
|
AC_MSG_WARN(h8300sim has no specific support for host ${host} -- using std-host)
|
1992-12-22 21:59:06 +00:00
|
|
|
fi
|
1995-07-05 22:54:10 +00:00
|
|
|
AC_LINK_FILES($files, sysdep.h)
|
1992-12-22 21:59:06 +00:00
|
|
|
|
1995-07-05 22:54:10 +00:00
|
|
|
if test -f ${srcdir}/../../bfd/config/${my_host}.mh; then
|
1993-02-04 00:22:22 +00:00
|
|
|
host_makefile_frag=../../bfd/config/${my_host}.mh
|
1995-07-05 22:54:10 +00:00
|
|
|
else
|
|
|
|
host_makefile_frag=/dev/null
|
|
|
|
fi
|
|
|
|
|
|
|
|
frags=
|
|
|
|
if test $host_makefile_frag != /dev/null; then
|
|
|
|
frags="$frags $host_makefile_frag"
|
1992-12-22 21:59:06 +00:00
|
|
|
fi
|
1995-07-05 22:54:10 +00:00
|
|
|
AC_SUBST_FILE(host_makefile_frag)
|
|
|
|
AC_SUBST(frags)
|
1992-12-22 21:59:06 +00:00
|
|
|
|
1995-07-05 22:54:10 +00:00
|
|
|
AC_OUTPUT(Makefile)
|