aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-04 21:13:51 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-04 21:13:51 +0000
commitf515fb2f93d81fb401d86f9db2bf3c96cd659737 (patch)
tree372f7048995be9ae5056735a4d09396e09ebac23 /bfd/configure.in
parent9b65d5229b483563ad484fb890f07524fcc86f05 (diff)
downloadgdb-f515fb2f93d81fb401d86f9db2bf3c96cd659737.zip
gdb-f515fb2f93d81fb401d86f9db2bf3c96cd659737.tar.gz
gdb-f515fb2f93d81fb401d86f9db2bf3c96cd659737.tar.bz2
* configure.host: Incorporate host Makefile fragments by setting
shell variables. * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a value based on whether the code is being compiled by a cross compiler. Don't substitute host_makefile_frag or frags. * aclocal.m4: New file to define local AC_PROG_CC. * configure: Rebuild. * Makefile.in (INSTALL): Set to @INSTALL@. (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@. (INSTALL_DATA): Set to @INSTALL_DATA@. (AR): Set to @AR@. (CC): Define as @CC@. (CFLAGS): Set to @CFLAGS@. (CC_FOR_BUILD): Set to @CC_FOR_BUILD@. (@host_makefile_frag@): Remove. (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS) after other options. (config.status): Remove dependency upon @frags@. * config/*.mh, config/README: Remove.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in30
1 files changed, 18 insertions, 12 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index 42af6b9..a5a3566 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -29,9 +29,27 @@ target64=false
# host stuff:
+HDEFINES=
+
+# Permit host specific settings.
. ${srcdir}/configure.host
+AC_PROG_CC
+AC_SUBST(CFLAGS)
+AC_SUBST(HDEFINES)
+AR=${AR-ar}
+AC_SUBST(AR)
AC_PROG_RANLIB
+AC_PROG_INSTALL
+
+# Put a plausible default for CC_FOR_BUILD in Makefile.
+AC_C_CROSS
+if test "x$cross_compiling" = "xno"; then
+ CC_FOR_BUILD='$(CC)'
+else
+ CC_FOR_BUILD=gcc
+fi
+AC_SUBST(CC_FOR_BUILD)
# Set up to make a link between the host's include file and "sysdep.h".
files=hosts/${my_host}.h
@@ -43,18 +61,6 @@ fi
AC_LINK_FILES($files, sysdep.h)
-if test -f ${srcdir}/config/${my_host}.mh ; then
- host_makefile_frag=$srcdir/config/${my_host}.mh
-else
- host_makefile_frag=/dev/null
-fi
-AC_SUBST_FILE(host_makefile_frag)
-frags=
-if test $host_makefile_frag != /dev/null ; then
- frags="$host_makefile_frag"
-fi
-AC_SUBST(frags)
-
# If we are configured native, pick a core file support file.
COREFILE=
COREFLAG=