aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-08 16:26:41 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-08 16:26:41 +0000
commit0743b4ac29326167e2f5507d9d4bf86ddaaa4ffb (patch)
tree1700d34c12558b47229ecd3b1d88e87473cd99b3 /sim/h8300/configure.in
parent1dff79026a659ca1ae5613cf98c2b62a5c0f98a4 (diff)
downloadgdb-0743b4ac29326167e2f5507d9d4bf86ddaaa4ffb.zip
gdb-0743b4ac29326167e2f5507d9d4bf86ddaaa4ffb.tar.gz
gdb-0743b4ac29326167e2f5507d9d4bf86ddaaa4ffb.tar.bz2
* configure.in: Call AC_CONFIG_HEADER. Don't try to use
bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES and AR. Call AC_CHECK_HEADERS for stdlib.h and time.h. Touch stamp.h if creating config.h. * configure: Rebuild. * Makefile.in (AR): Define as @AR@. (CC): New variable, defined as @CC@. (CFLAGS): Define as @CFLAGS@. (RANLIB): Define as @RANLIB@. (HDEFINES, TDEFINES): New variables. (@host_makefile_frag@): Remove. (compile.o, run.o): Depend upon config.h. (mostlyclean): Make the same as clean, not distclean. (clean): Remove config.log. (distclean): Remove config.h and stamp-h. (Makefile): Don't depend upon @frags@. Just rebuild Makefile when invoking config.status. (config.h, stamp-h): New targets. * compile.c: Include "config.h". Don't include <sys/times.h>. Include <time.h> and <stdlib.h> if they exist. Don't include "sysdep.h". (get_now): Remove unused local b. * run.c: Include "config.h". Include <stdlib.h> if it exists. Don't include "sysdep.h". * writecode.c: Don't include "bfd.h" or "sysdep.h". Include <stdio.h>.
Diffstat (limited to 'sim/h8300/configure.in')
-rw-r--r--sim/h8300/configure.in31
1 files changed, 11 insertions, 20 deletions
diff --git a/sim/h8300/configure.in b/sim/h8300/configure.in
index b7a9592..aea2a8d 100644
--- a/sim/h8300/configure.in
+++ b/sim/h8300/configure.in
@@ -2,31 +2,22 @@ dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.3)dnl
AC_INIT(Makefile.in)
+AC_CONFIG_HEADER(config.h:config.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
+AC_PROG_CC
+AC_SUBST(CFLAGS)
+AC_SUBST(HDEFINES)
+AR=${AR-ar}
+AC_SUBST(AR)
+AC_PROG_RANLIB
-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_CHECK_HEADERS(stdlib.h time.h)
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile,
+[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])