aboutsummaryrefslogtreecommitdiff
path: root/sim/igen
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-09-01 03:21:59 +0000
committerAndrew Cagney <cagney@redhat.com>1997-09-01 03:21:59 +0000
commit9f3f3525396695352bffc5f9cda3ae542e3b83f7 (patch)
treec5b50dee6097097de7f35590a0e9e428280ee0aa /sim/igen
parent99bdb8d22dd986346ffdd9321557fd257d9c7621 (diff)
downloadgdb-9f3f3525396695352bffc5f9cda3ae542e3b83f7.zip
gdb-9f3f3525396695352bffc5f9cda3ae542e3b83f7.tar.gz
gdb-9f3f3525396695352bffc5f9cda3ae542e3b83f7.tar.bz2
Passify cross compilation and GCC -Wall
Diffstat (limited to 'sim/igen')
-rw-r--r--sim/igen/.Sanitize2
-rw-r--r--sim/igen/configure.in26
-rw-r--r--sim/igen/gen.h1
3 files changed, 25 insertions, 4 deletions
diff --git a/sim/igen/.Sanitize b/sim/igen/.Sanitize
index 7c4ed19..dde75c7 100644
--- a/sim/igen/.Sanitize
+++ b/sim/igen/.Sanitize
@@ -32,6 +32,8 @@ filter.c
filter.h
filter_host.c
filter_host.h
+gen.c
+gen.h
gen-engine.c
gen-engine.h
gen-icache.c
diff --git a/sim/igen/configure.in b/sim/igen/configure.in
index 0e203d3..27736de 100644
--- a/sim/igen/configure.in
+++ b/sim/igen/configure.in
@@ -1,15 +1,28 @@
dnl Process this file with autoconf to produce a configure script.
+sinclude(../common/aclocal.m4)
AC_PREREQ(2.5)dnl
-AC_INIT(Makefile.in)
+AC_INIT(table.h)
AC_PROG_INSTALL
AC_PROG_CC
+SIM_AC_OPTION_WARNINGS
+
# Put a plausible default for CC_FOR_BUILD in Makefile.
if test "x$cross_compiling" = "xno"; then
+ AR_FOR_BUILD='$(AR)'
+ AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
CC_FOR_BUILD='$(CC)'
+ CFLAGS_FOR_BUILD='$(CFLAGS)'
+ RANLIB_FOR_BUILD='$(RANLIB)'
+ LIBIBERTY_LIB=../../libiberty/libiberty.a
else
- CC_FOR_BUILD=gcc
+ AR_FOR_BUILD=${AR_FOR_BUILD-ar}
+ AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
+ CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
+ CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
+ RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
+ LIBIBERTY_LIB=
fi
@@ -24,10 +37,15 @@ AC_CONFIG_HEADER(config.h:config.in)
AC_CHECK_HEADERS(stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h)
AC_HEADER_DIRENT
+AC_SUBST(AR_FOR_BUILD)
+AC_SUBST(AR_FLAGS_FOR_BUILD)
AC_SUBST(CC_FOR_BUILD)
-AC_SUBST(CFLAGS)
-AR=${AR-ar}
+AC_SUBST(CFLAGS_FOR_BUILD)
+AC_SUBST(RANLIB_FOR_BUILD)
+AC_SUBST(LIBIBERTY_LIB)
+
AC_SUBST(AR)
+AC_SUBST(CFLAGS)
AC_PROG_RANLIB
AC_OUTPUT(Makefile,
diff --git a/sim/igen/gen.h b/sim/igen/gen.h
new file mode 100644
index 0000000..fb81067
--- /dev/null
+++ b/sim/igen/gen.h
@@ -0,0 +1 @@
+/* This file is blank */