diff options
author | Doug Evans <dje@google.com> | 1998-07-01 23:39:37 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-07-01 23:39:37 +0000 |
commit | 7c269afbb60e562492bbf10069bec8f9da081cc7 (patch) | |
tree | 7e10f5d357262c1d9afe6ec06414f916dfbe8fc2 /gas/configure.in | |
parent | 0499462e76273c3a7e9891a50378ecaffe97e149 (diff) | |
download | gdb-7c269afbb60e562492bbf10069bec8f9da081cc7.zip gdb-7c269afbb60e562492bbf10069bec8f9da081cc7.tar.gz gdb-7c269afbb60e562492bbf10069bec8f9da081cc7.tar.bz2 |
* Makefile.am (CGEN_CPU_PREFIX): New variable.
(cgen.o): Use it.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST cgen_cpu_prefix.
* configure: Regenerate.
Diffstat (limited to 'gas/configure.in')
-rw-r--r-- | gas/configure.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gas/configure.in b/gas/configure.in index 093014b..da397ad 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -368,7 +368,7 @@ changequote([,])dnl case ${cpu_type} in m32r) - case ${extra_objects} in + case "x${extra_objects}" in *cgen.o*) ;; *) extra_objects="$extra_objects cgen.o" AC_DEFINE(USING_CGEN) @@ -465,6 +465,17 @@ case "${obj_format}" in "") AC_MSG_ERROR(GAS does not know what format to use for target ${target}) ;; esac +# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). +cgen_cpu_prefix="" +case "x${extra_objects}" in + *cgen.o*) + case ${target_cpu} in + *) cgen_cpu_prefix=${target_cpu} ;; + esac + ;; +esac +AC_SUBST(cgen_cpu_prefix) + dnl dnl Make sure the desired support files exist. dnl |