]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Passify cross compilation and GCC -Wall
authorAndrew Cagney <cagney@redhat.com>
Mon, 1 Sep 1997 03:21:59 +0000 (03:21 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 1 Sep 1997 03:21:59 +0000 (03:21 +0000)
sim/igen/.Sanitize
sim/igen/configure.in
sim/igen/gen.h [new file with mode: 0644]

index 7c4ed1979e60bf637428bb7f8acdeecc3245a81e..dde75c78079e9879bb0608c5d81cf4a385ae62b3 100644 (file)
@@ -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
index 0e203d3c8a7309fbbb879279b07717b0b7e1c0dd..27736de8049ff70875ef28bee1be716fa54b231b 100644 (file)
@@ -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 (file)
index 0000000..fb81067
--- /dev/null
@@ -0,0 +1 @@
+/* This file is blank */