*) ;;
esac
- case ${cpu_type} in
- m68k) extra_objects="$extra_objects m68k-parse.o" ;;
- esac
-
# See if we really can support this configuration with the emulation code.
if test $this_target = $target ; then
EOF
+ case ${cpu_type} in
+ m68k) extra_objects="$extra_objects m68k-parse.o" ;;
+ esac
+
done
# Assign floating point type. Most processors with FP support
esac
-if test ! -r ${srcdir}/config/tc-${cpu_type}.c; then
- { echo "configure: error: GAS does not support target CPU ${cpu_type}" 1>&2; exit 1; }
+if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
+ { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
fi
if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
EOF
-files="config/tc-${cpu_type}.c config/tc-${cpu_type}.h \
+files="config/tc-${target_cpu_type}.c config/tc-${target_cpu_type}.h \
config/obj-${obj_format}.h config/obj-${obj_format}.c \
config/te-${te_file}.h config/atof-${atof}.c \
$extra_files"
links="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c \
$extra_links"
-case ${primary_bfd_gas}-${cpu_type}-${obj_format} in
+case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
yes-*-coff) need_bfd=yes ;;
no-*-coff) need_bfd=yes
cat >> confdefs.h <<\EOF
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
-#line 1230 "configure"
+#line 1234 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
-#line 1244 "configure"
+#line 1248 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1277 "configure"
+#line 1281 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_cv_c_cross=yes
else
cat > conftest.$ac_ext <<EOF
-#line 1329 "configure"
+#line 1333 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1352 "configure"
+#line 1356 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() { return 0; }
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1383 "configure"
+#line 1387 "configure"
#include "confdefs.h"
#ifdef __GNUC__
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1441 "configure"
+#line 1445 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1469 "configure"
+#line 1473 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
ac_cv_c_stack_direction=0
else
cat > conftest.$ac_ext <<EOF
-#line 1523 "configure"
+#line 1527 "configure"
#include "confdefs.h"
find_stack_direction ()
{
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
-#line 1565 "configure"
+#line 1569 "configure"
#include "confdefs.h"
int main() { return 0; }
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1604 "configure"
+#line 1608 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1657 "configure"
+#line 1661 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1710 "configure"
+#line 1714 "configure"
#include "confdefs.h"
#include <assert.h>
#include <stdio.h>
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1767 "configure"
+#line 1771 "configure"
#include "confdefs.h"
$gas_test_headers
int main() { return 0; }
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1803 "configure"
+#line 1807 "configure"
#include "confdefs.h"
$gas_test_headers
int main() { return 0; }
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1842 "configure"
+#line 1846 "configure"
#include "confdefs.h"
#ifdef HAVE_ERRNO_H
/@target_frag@/r $target_frag
s%@target_frag@%%g
s%@extra_objects@%$extra_objects%g
-s%@cpu_type@%$cpu_type%g
+s%@target_cpu_type@%$target_cpu_type%g
s%@obj_format@%$obj_format%g
s%@atof@%$atof%g
s%@BFDLIB@%$BFDLIB%g
*) ;;
esac
- case ${cpu_type} in
- m68k) extra_objects="$extra_objects m68k-parse.o" ;;
- esac
-
# See if we really can support this configuration with the emulation code.
if test $this_target = $target ; then
test -n "$want_sparcv9" && AC_DEFINE(sparcv9)
+ case ${cpu_type} in
+ m68k) extra_objects="$extra_objects m68k-parse.o" ;;
+ esac
+
done
# Assign floating point type. Most processors with FP support
dnl Make sure the desired support files exist.
dnl
-if test ! -r ${srcdir}/config/tc-${cpu_type}.c; then
- AC_MSG_ERROR(GAS does not support target CPU ${cpu_type})
+if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
+ AC_MSG_ERROR(GAS does not support target CPU ${target_cpu_type})
fi
if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
AC_DEFINE_UNQUOTED(EMULATIONS, $EMULATIONS)
AC_DEFINE_UNQUOTED(DEFAULT_EMULATION, "$DEFAULT_EMULATION")
-files="config/tc-${cpu_type}.c config/tc-${cpu_type}.h \
+files="config/tc-${target_cpu_type}.c config/tc-${target_cpu_type}.h \
config/obj-${obj_format}.h config/obj-${obj_format}.c \
config/te-${te_file}.h config/atof-${atof}.c \
$extra_files"
links="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c \
$extra_links"
-case ${primary_bfd_gas}-${cpu_type}-${obj_format} in
+case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
yes-*-coff) need_bfd=yes ;;
no-*-coff) need_bfd=yes
AC_DEFINE(MANY_SEGMENTS) ;;
;;
esac
-AC_SUBST(cpu_type)
+AC_SUBST(target_cpu_type)
AC_SUBST(obj_format)
AC_SUBST(atof)
dnl AC_SUBST(emulation)