diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1996-11-20 09:20:55 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1996-11-20 09:20:55 +0000 |
commit | 58b72d7e20508573cd2499c53e8505e3f64f9e09 (patch) | |
tree | e9a17495599ec3e4905500dfaadf846f325bbd3e /sim/common/configure.in | |
parent | e01714ccdabefedf2b6b2524c688d7994ca3f652 (diff) | |
download | gdb-58b72d7e20508573cd2499c53e8505e3f64f9e09.zip gdb-58b72d7e20508573cd2499c53e8505e3f64f9e09.tar.gz gdb-58b72d7e20508573cd2499c53e8505e3f64f9e09.tar.bz2 |
* run.c: #include ../common/config.h, tconfig.h.
(myname): New static global.
(main): Recognize new options -a, -c. Also recognize -h if h8/300.
Only process -c ifdef SIM_HAVE_SIMCACHE.
Only process -p/-s ifdef SIM_HAVE_PROFILE.
Parse program name from argv[0] and use in error messages.
Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
Add support for incomplete h8/300 termination indicators.
(usage): Make more verbose.
* aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
* Makefile.in,Make-common.in,callback.c: New files.
* nltvals.def,gentmap.c,gentvals.sh: New files.
Diffstat (limited to 'sim/common/configure.in')
-rw-r--r-- | sim/common/configure.in | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sim/common/configure.in b/sim/common/configure.in new file mode 100644 index 0000000..8f74e77 --- /dev/null +++ b/sim/common/configure.in @@ -0,0 +1,50 @@ +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 + +# 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) + +case "${target}" in +*-*-*) TARG_VALS_DEF=nltvals.def ;; +esac + +# Discard what SIM_AC_COMMON sets for these. +sim_link_files="${TARG_VALS_DEF}" +sim_link_links="targ-vals.def" + +AC_LINK_FILES($sim_link_files, $sim_link_links) + +# 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 xconfig.h:config.in) echo > stamp-h ;; esac]) |