aboutsummaryrefslogtreecommitdiff
path: root/sim/common/configure.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1999-04-16 01:35:26 +0000
committerStan Shebs <shebs@codesourcery.com>1999-04-16 01:35:26 +0000
commitc906108c21474dfb4ed285bcc0ac6fe02cd400cc (patch)
treea0015aa5cedc19ccbab307251353a41722a3ae13 /sim/common/configure.in
parentcd946cff9ede3f30935803403f06f6ed30cad136 (diff)
downloadgdb-c906108c21474dfb4ed285bcc0ac6fe02cd400cc.zip
gdb-c906108c21474dfb4ed285bcc0ac6fe02cd400cc.tar.gz
gdb-c906108c21474dfb4ed285bcc0ac6fe02cd400cc.tar.bz2
Initial creation of sourceware repositorygdb-4_18-branchpoint
Diffstat (limited to 'sim/common/configure.in')
-rw-r--r--sim/common/configure.in40
1 files changed, 40 insertions, 0 deletions
diff --git a/sim/common/configure.in b/sim/common/configure.in
new file mode 100644
index 0000000..b8ea538
--- /dev/null
+++ b/sim/common/configure.in
@@ -0,0 +1,40 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_PREREQ(2.5)dnl
+AC_INIT(Makefile.in)
+
+# This is intended for use by the target specific directories, and by us.
+SIM_AC_COMMON(cconfig.h)
+
+# Put a useful copy of CPP_FOR_TARGET in Makefile.
+# This is only used to build the target values header files. These files are
+# shipped with distributions so CPP_FOR_TARGET only needs to work in
+# developer's trees. This value is borrowed from ../../Makefile.in.
+CPP_FOR_TARGET="\` \
+ if test -f \$\${rootme}/../../gcc/Makefile ; then \
+ if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
+ echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
+ else \
+ echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
+ fi; \
+ else \
+ if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
+ echo \$(CC); \
+ else \
+ t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
+ fi; \
+ fi\` -E"
+AC_SUBST(CPP_FOR_TARGET)
+
+# Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
+if test x"${host}" = x"${target}" ; then
+ TARGET_SUBDIR="."
+else
+ TARGET_SUBDIR=${target_alias}
+fi
+AC_SUBST(TARGET_SUBDIR)
+
+# These aren't all needed yet, but will be eventually.
+AC_CHECK_HEADERS(stdlib.h string.h strings.h time.h sys/times.h)
+
+AC_OUTPUT(Makefile,
+[case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac])