libgloss: merge mips configure script up a level
Move the minor mips-specific logic to a dedicated file & namespace them so we can merge its configure logic up a level.
This commit is contained in:
parent
f9dc151186
commit
7a1c557b8e
|
@ -150,6 +150,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
|
|||
$(top_srcdir)/libnosys/acinclude.m4 \
|
||||
$(top_srcdir)/m68k/acinclude.m4 \
|
||||
$(top_srcdir)/mcore/acinclude.m4 \
|
||||
$(top_srcdir)/mips/acinclude.m4 \
|
||||
$(top_srcdir)/mn10300/acinclude.m4 \
|
||||
$(top_srcdir)/moxie/acinclude.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
|
@ -163,7 +164,7 @@ CONFIG_HEADER = config.h
|
|||
CONFIG_CLEAN_FILES = arc/Makefile csky/Makefile epiphany/Makefile \
|
||||
i386/Makefile m32r/Makefile m68hc11/Makefile nds32/Makefile \
|
||||
m68k/Makefile pa/Makefile i960/Makefile sparc_leon/Makefile \
|
||||
riscv/Makefile rs6000/Makefile mn10200/Makefile \
|
||||
mips/Makefile riscv/Makefile rs6000/Makefile mn10200/Makefile \
|
||||
mn10300/Makefile cr16/Makefile cris/Makefile crx/Makefile \
|
||||
d30v/Makefile fr30/Makefile frv/Makefile ft32/Makefile \
|
||||
lm32/Makefile mcore/Makefile mep/Makefile moxie/Makefile \
|
||||
|
@ -457,6 +458,11 @@ LTLIBOBJS = @LTLIBOBJS@
|
|||
M68K_TARGET = @M68K_TARGET@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MCORE_BSP_PREFIX = @MCORE_BSP_PREFIX@
|
||||
MIPS_BSP_LIST = @MIPS_BSP_LIST@
|
||||
MIPS_CRT0 = @MIPS_CRT0@
|
||||
MIPS_PART_SPECIFIC_DEFINES = @MIPS_PART_SPECIFIC_DEFINES@
|
||||
MIPS_PART_SPECIFIC_OBJ = @MIPS_PART_SPECIFIC_OBJ@
|
||||
MIPS_SCRIPT_LIST = @MIPS_SCRIPT_LIST@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MN10300_BSP_LIST = @MN10300_BSP_LIST@
|
||||
MN10300_SCRIPT_LIST = @MN10300_SCRIPT_LIST@
|
||||
|
@ -712,6 +718,8 @@ i960/Makefile: $(top_builddir)/config.status $(top_srcdir)/i960/Makefile.in
|
|||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
sparc_leon/Makefile: $(top_builddir)/config.status $(top_srcdir)/sparc_leon/Makefile.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
mips/Makefile: $(top_builddir)/config.status $(top_srcdir)/mips/Makefile.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
riscv/Makefile: $(top_builddir)/config.status $(top_srcdir)/riscv/Makefile.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
rs6000/Makefile: $(top_builddir)/config.status $(top_srcdir)/rs6000/Makefile.in
|
||||
|
|
|
@ -594,6 +594,11 @@ MOXIE_BUILD_CRT0_FALSE
|
|||
MOXIE_BUILD_CRT0_TRUE
|
||||
MN10300_BSP_LIST
|
||||
MN10300_SCRIPT_LIST
|
||||
MIPS_CRT0
|
||||
MIPS_BSP_LIST
|
||||
MIPS_SCRIPT_LIST
|
||||
MIPS_PART_SPECIFIC_DEFINES
|
||||
MIPS_PART_SPECIFIC_OBJ
|
||||
MCORE_BSP_PREFIX
|
||||
M68K_TARGET
|
||||
I386_CPPFLAGS
|
||||
|
@ -735,7 +740,6 @@ CCASFLAGS
|
|||
CPP'
|
||||
ac_subdirs_all='aarch64
|
||||
sparc
|
||||
mips
|
||||
arm'
|
||||
|
||||
# Initialize some variables set by options.
|
||||
|
@ -2747,8 +2751,10 @@ subdirs="$subdirs aarch64"
|
|||
config_wince=true
|
||||
;;
|
||||
mips*-*-*)
|
||||
subdirs="$subdirs mips"
|
||||
ac_config_files="$ac_config_files mips/Makefile"
|
||||
|
||||
subdirs="$subdirs mips"
|
||||
target_makefile_frag=${srcdir}/config/mips.mt
|
||||
;;
|
||||
riscv*-*-*)
|
||||
ac_config_files="$ac_config_files riscv/Makefile"
|
||||
|
@ -5083,6 +5089,54 @@ case "${target}" in
|
|||
esac
|
||||
|
||||
|
||||
MIPS_PART_SPECIFIC_OBJ=
|
||||
MIPS_PART_SPECIFIC_DEFINES=
|
||||
MIPS_SCRIPT_LIST=
|
||||
MIPS_BSP_LIST=
|
||||
MIPS_CRT0=crt0.o
|
||||
|
||||
case "${target}" in
|
||||
mips*-tx39*-*|mipstx39*-*-*)
|
||||
MIPS_SCRIPT_LIST="dve idt jmr3904app jmr3904dram jmr3904dram-java jmr3904app-java sde32 sde64 mti32 mti64 mti64_n32 mti64_64"
|
||||
MIPS_BSP_LIST="libdve.a libidt.a libjmr3904.a"
|
||||
;;
|
||||
mipsisa32-*-* | mipsisa32el-*-* | \
|
||||
mipsisa32r2-*-* | mipsisa32r2el-*-* | \
|
||||
mipsisa64*-*-*)
|
||||
MIPS_CRT0="crt0_cfe.o crt0_cygmon.o crt0.o"
|
||||
MIPS_SCRIPT_LIST="idt32 idt64 cfe"
|
||||
MIPS_BSP_LIST="libcygmon.a libidt.a libcfe.a"
|
||||
;;
|
||||
mips*-lsi*-*)
|
||||
MIPS_PART_SPECIFIC_OBJ="entry.o"
|
||||
MIPS_SCRIPT_LIST="lsi"
|
||||
MIPS_BSP_LIST=liblsi.a
|
||||
;;
|
||||
mips64vr5*-*-*)
|
||||
MIPS_PART_SPECIFIC_OBJ="vr5xxx.o cma101.o"
|
||||
MIPS_PART_SPECIFIC_DEFINES=-DR5000
|
||||
MIPS_SCRIPT_LIST="idt pmon ddb ddb-kseg0 lsi idtecoff nullmon"
|
||||
MIPS_BSP_LIST="libidt.a libpmon.a liblsi.a libnullmon.a"
|
||||
;;
|
||||
mips64vr-*-* | mips64vrel-*-*)
|
||||
MIPS_PART_SPECIFIC_OBJ="vr5xxx.o cma101.o"
|
||||
MIPS_SCRIPT_LIST="ddb ddb-kseg0 nullmon"
|
||||
MIPS_BSP_LIST="libpmon.a libnullmon.a"
|
||||
;;
|
||||
mips*)
|
||||
MIPS_CRT0="crt0_cfe.o crt0.o"
|
||||
MIPS_PART_SPECIFIC_OBJ="vr4300.o cma101.o"
|
||||
MIPS_SCRIPT_LIST="idt pmon ddb ddb-kseg0 lsi cfe idtecoff nullmon sde32 sde64 mti32 mti64 mti64_n32 mti64_64"
|
||||
MIPS_BSP_LIST="libidt.a libpmon.a liblsi.a libcfe.a libnullmon.a"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
MN10300_SCRIPT_LIST=
|
||||
MN10300_BSP_LIST=
|
||||
case "${target}" in
|
||||
|
@ -5966,6 +6020,7 @@ do
|
|||
"pa/Makefile") CONFIG_FILES="$CONFIG_FILES pa/Makefile" ;;
|
||||
"i960/Makefile") CONFIG_FILES="$CONFIG_FILES i960/Makefile" ;;
|
||||
"sparc_leon/Makefile") CONFIG_FILES="$CONFIG_FILES sparc_leon/Makefile" ;;
|
||||
"mips/Makefile") CONFIG_FILES="$CONFIG_FILES mips/Makefile" ;;
|
||||
"riscv/Makefile") CONFIG_FILES="$CONFIG_FILES riscv/Makefile" ;;
|
||||
"rs6000/Makefile") CONFIG_FILES="$CONFIG_FILES rs6000/Makefile" ;;
|
||||
"mn10200/Makefile") CONFIG_FILES="$CONFIG_FILES mn10200/Makefile" ;;
|
||||
|
|
|
@ -90,7 +90,9 @@ case "${target}" in
|
|||
config_wince=true
|
||||
;;
|
||||
mips*-*-*)
|
||||
AC_CONFIG_SUBDIRS([mips])
|
||||
AC_CONFIG_FILES([mips/Makefile])
|
||||
subdirs="$subdirs mips"
|
||||
target_makefile_frag=${srcdir}/config/mips.mt
|
||||
;;
|
||||
riscv*-*-*)
|
||||
AC_CONFIG_FILES([riscv/Makefile])
|
||||
|
@ -334,6 +336,7 @@ m4_include([i386/acinclude.m4])
|
|||
m4_include([libnosys/acinclude.m4])
|
||||
m4_include([m68k/acinclude.m4])
|
||||
m4_include([mcore/acinclude.m4])
|
||||
m4_include([mips/acinclude.m4])
|
||||
m4_include([mn10300/acinclude.m4])
|
||||
m4_include([moxie/acinclude.m4])
|
||||
|
||||
|
|
|
@ -64,31 +64,31 @@ OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
|
|||
then echo ${objroot}/../binutils/objcopy ; \
|
||||
else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
|
||||
|
||||
CRT0 = @crt0@
|
||||
PCRT0 = @pcrt0@
|
||||
CRT0 = @MIPS_CRT0@
|
||||
PCRT0 = pcrt0.o
|
||||
GENOBJS = syscalls.o fstat.o getpid.o isatty.o kill.o \
|
||||
lseek.o print.o putnum.o stat.o unlink.o
|
||||
GENOBJS2 = open.o close.o read.o write.o
|
||||
IDTOBJS = idtmon.o @part_specific_obj@ ${GENOBJS}
|
||||
PMONOBJS = pmon.o @part_specific_obj@ ${GENOBJS}
|
||||
LSIOBJS = lsipmon.o @part_specific_obj@ ${GENOBJS}
|
||||
DVEOBJS = dvemon.o @part_specific_obj@ ${GENOBJS} ${GENOBJS2}
|
||||
JMR3904OBJS = jmr3904-io.o @part_specific_obj@ ${GENOBJS} ${GENOBJS2}
|
||||
CFEOBJS = cfe.o cfe_api.o cfe_mem.o @part_specific_obj@ ${GENOBJS} ${GENOBJS2}
|
||||
CYGMONOBJS = open.o close.o cygmon.o @part_specific_obj@ ${GENOBJS}
|
||||
IDTOBJS = idtmon.o @MIPS_PART_SPECIFIC_OBJ@ ${GENOBJS}
|
||||
PMONOBJS = pmon.o @MIPS_PART_SPECIFIC_OBJ@ ${GENOBJS}
|
||||
LSIOBJS = lsipmon.o @MIPS_PART_SPECIFIC_OBJ@ ${GENOBJS}
|
||||
DVEOBJS = dvemon.o @MIPS_PART_SPECIFIC_OBJ@ ${GENOBJS} ${GENOBJS2}
|
||||
JMR3904OBJS = jmr3904-io.o @MIPS_PART_SPECIFIC_OBJ@ ${GENOBJS} ${GENOBJS2}
|
||||
CFEOBJS = cfe.o cfe_api.o cfe_mem.o @MIPS_PART_SPECIFIC_OBJ@ ${GENOBJS} ${GENOBJS2}
|
||||
CYGMONOBJS = open.o close.o cygmon.o @MIPS_PART_SPECIFIC_OBJ@ ${GENOBJS}
|
||||
|
||||
# Nullmon cannot support read and write, but the test cases pull them in via libs
|
||||
NULLMONOBJS = nullmon.o @part_specific_obj@ ${GENOBJS}
|
||||
NULLMONOBJS = nullmon.o @MIPS_PART_SPECIFIC_OBJ@ ${GENOBJS}
|
||||
|
||||
CFLAGS = -g
|
||||
|
||||
GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \
|
||||
then echo -L${objroot}/../gcc ; fi`
|
||||
|
||||
SCRIPTS = @script_list@
|
||||
BSP = @bsp_list@
|
||||
SCRIPTS = @MIPS_SCRIPT_LIST@
|
||||
BSP = @MIPS_BSP_LIST@
|
||||
|
||||
PART_SPECIFIC_DEFINES = @part_specific_defines@
|
||||
PART_SPECIFIC_DEFINES = @MIPS_PART_SPECIFIC_DEFINES@
|
||||
|
||||
# Host specific makefile fragment comes in here.
|
||||
@host_makefile_frag@
|
||||
|
@ -253,8 +253,5 @@ syscalls.o: ${srcdir}/syscalls.c
|
|||
# target specific makefile fragment comes in here.
|
||||
@target_makefile_frag@
|
||||
|
||||
Makefile: Makefile.in config.status @host_makefile_frag_path@ @target_makefile_frag_path@
|
||||
$(SHELL) config.status
|
||||
|
||||
config.status: configure
|
||||
$(SHELL) config.status --recheck
|
||||
Makefile: Makefile.in ../config.status
|
||||
cd .. && $(SHELL) config.status
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
MIPS_PART_SPECIFIC_OBJ=
|
||||
MIPS_PART_SPECIFIC_DEFINES=
|
||||
MIPS_SCRIPT_LIST=
|
||||
MIPS_BSP_LIST=
|
||||
MIPS_CRT0=crt0.o
|
||||
|
||||
case "${target}" in
|
||||
mips*-tx39*-*|mipstx39*-*-*)
|
||||
MIPS_SCRIPT_LIST="dve idt jmr3904app jmr3904dram jmr3904dram-java jmr3904app-java sde32 sde64 mti32 mti64 mti64_n32 mti64_64"
|
||||
MIPS_BSP_LIST="libdve.a libidt.a libjmr3904.a"
|
||||
;;
|
||||
mipsisa32-*-* | mipsisa32el-*-* | \
|
||||
mipsisa32r2-*-* | mipsisa32r2el-*-* | \
|
||||
mipsisa64*-*-*)
|
||||
MIPS_CRT0="crt0_cfe.o crt0_cygmon.o crt0.o"
|
||||
MIPS_SCRIPT_LIST="idt32 idt64 cfe"
|
||||
MIPS_BSP_LIST="libcygmon.a libidt.a libcfe.a"
|
||||
;;
|
||||
mips*-lsi*-*)
|
||||
MIPS_PART_SPECIFIC_OBJ="entry.o"
|
||||
MIPS_SCRIPT_LIST="lsi"
|
||||
MIPS_BSP_LIST=liblsi.a
|
||||
;;
|
||||
mips64vr5*-*-*)
|
||||
MIPS_PART_SPECIFIC_OBJ="vr5xxx.o cma101.o"
|
||||
MIPS_PART_SPECIFIC_DEFINES=-DR5000
|
||||
MIPS_SCRIPT_LIST="idt pmon ddb ddb-kseg0 lsi idtecoff nullmon"
|
||||
MIPS_BSP_LIST="libidt.a libpmon.a liblsi.a libnullmon.a"
|
||||
;;
|
||||
mips64vr-*-* | mips64vrel-*-*)
|
||||
MIPS_PART_SPECIFIC_OBJ="vr5xxx.o cma101.o"
|
||||
MIPS_SCRIPT_LIST="ddb ddb-kseg0 nullmon"
|
||||
MIPS_BSP_LIST="libpmon.a libnullmon.a"
|
||||
;;
|
||||
mips*)
|
||||
MIPS_CRT0="crt0_cfe.o crt0.o"
|
||||
MIPS_PART_SPECIFIC_OBJ="vr4300.o cma101.o"
|
||||
MIPS_SCRIPT_LIST="idt pmon ddb ddb-kseg0 lsi cfe idtecoff nullmon sde32 sde64 mti32 mti64 mti64_n32 mti64_64"
|
||||
MIPS_BSP_LIST="libidt.a libpmon.a liblsi.a libcfe.a libnullmon.a"
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_SUBST(MIPS_PART_SPECIFIC_OBJ)
|
||||
AC_SUBST(MIPS_PART_SPECIFIC_DEFINES)
|
||||
AC_SUBST(MIPS_SCRIPT_LIST)
|
||||
AC_SUBST(MIPS_BSP_LIST)
|
||||
AC_SUBST(MIPS_CRT0)
|
|
@ -1,384 +0,0 @@
|
|||
# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||
# AM_CONDITIONAL -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997-2017 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
||||
# -------------------------------------
|
||||
# Define a conditional.
|
||||
AC_DEFUN([AM_CONDITIONAL],
|
||||
[AC_PREREQ([2.52])dnl
|
||||
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
||||
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
||||
AC_SUBST([$1_TRUE])dnl
|
||||
AC_SUBST([$1_FALSE])dnl
|
||||
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
||||
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
||||
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
||||
if $2; then
|
||||
$1_TRUE=
|
||||
$1_FALSE='#'
|
||||
else
|
||||
$1_TRUE='#'
|
||||
$1_FALSE=
|
||||
fi
|
||||
AC_CONFIG_COMMANDS_PRE(
|
||||
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
||||
AC_MSG_ERROR([[conditional "$1" was never defined.
|
||||
Usually this means the macro was only invoked conditionally.]])
|
||||
fi])])
|
||||
|
||||
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
|
||||
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
|
||||
# written in clear, in which case automake, when reading aclocal.m4,
|
||||
# will think it sees a *use*, and therefore will trigger all it's
|
||||
# C support machinery. Also note that it means that autoscan, seeing
|
||||
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
||||
|
||||
|
||||
# _AM_DEPENDENCIES(NAME)
|
||||
# ----------------------
|
||||
# See how the compiler implements dependency checking.
|
||||
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
|
||||
# We try a few techniques and use that to set a single cache variable.
|
||||
#
|
||||
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
||||
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
||||
# dependency, and given that the user is not expected to run this macro,
|
||||
# just rely on AC_PROG_CC.
|
||||
AC_DEFUN([_AM_DEPENDENCIES],
|
||||
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
||||
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
||||
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
||||
AC_REQUIRE([AM_DEP_TRACK])dnl
|
||||
|
||||
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
|
||||
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
|
||||
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
||||
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
|
||||
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
|
||||
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
||||
[depcc="$$1" am_compiler_list=])
|
||||
|
||||
AC_CACHE_CHECK([dependency style of $depcc],
|
||||
[am_cv_$1_dependencies_compiler_type],
|
||||
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
||||
# We make a subdir and do the tests there. Otherwise we can end up
|
||||
# making bogus files that we don't know about and never remove. For
|
||||
# instance it was reported that on HP-UX the gcc test will end up
|
||||
# making a dummy file named 'D' -- because '-MD' means "put the output
|
||||
# in D".
|
||||
rm -rf conftest.dir
|
||||
mkdir conftest.dir
|
||||
# Copy depcomp to subdir because otherwise we won't find it if we're
|
||||
# using a relative directory.
|
||||
cp "$am_depcomp" conftest.dir
|
||||
cd conftest.dir
|
||||
# We will build objects and dependencies in a subdirectory because
|
||||
# it helps to detect inapplicable dependency modes. For instance
|
||||
# both Tru64's cc and ICC support -MD to output dependencies as a
|
||||
# side effect of compilation, but ICC will put the dependencies in
|
||||
# the current directory while Tru64 will put them in the object
|
||||
# directory.
|
||||
mkdir sub
|
||||
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
if test "$am_compiler_list" = ""; then
|
||||
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
||||
fi
|
||||
am__universal=false
|
||||
m4_case([$1], [CC],
|
||||
[case " $depcc " in #(
|
||||
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
||||
esac],
|
||||
[CXX],
|
||||
[case " $depcc " in #(
|
||||
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
||||
esac])
|
||||
|
||||
for depmode in $am_compiler_list; do
|
||||
# Setup a source with many dependencies, because some compilers
|
||||
# like to wrap large dependency lists on column 80 (with \), and
|
||||
# we should not choose a depcomp mode which is confused by this.
|
||||
#
|
||||
# We need to recreate these files for each test, as the compiler may
|
||||
# overwrite some of them when testing with obscure command lines.
|
||||
# This happens at least with the AIX C compiler.
|
||||
: > sub/conftest.c
|
||||
for i in 1 2 3 4 5 6; do
|
||||
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
||||
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
||||
# Solaris 10 /bin/sh.
|
||||
echo '/* dummy */' > sub/conftst$i.h
|
||||
done
|
||||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
||||
|
||||
# We check with '-c' and '-o' for the sake of the "dashmstdout"
|
||||
# mode. It turns out that the SunPro C++ compiler does not properly
|
||||
# handle '-M -o', and we need to detect this. Also, some Intel
|
||||
# versions had trouble with output in subdirs.
|
||||
am__obj=sub/conftest.${OBJEXT-o}
|
||||
am__minus_obj="-o $am__obj"
|
||||
case $depmode in
|
||||
gcc)
|
||||
# This depmode causes a compiler race in universal mode.
|
||||
test "$am__universal" = false || continue
|
||||
;;
|
||||
nosideeffect)
|
||||
# After this tag, mechanisms are not by side-effect, so they'll
|
||||
# only be used when explicitly requested.
|
||||
if test "x$enable_dependency_tracking" = xyes; then
|
||||
continue
|
||||
else
|
||||
break
|
||||
fi
|
||||
;;
|
||||
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
||||
# This compiler won't grok '-c -o', but also, the minuso test has
|
||||
# not run yet. These depmodes are late enough in the game, and
|
||||
# so weak that their functioning should not be impacted.
|
||||
am__obj=conftest.${OBJEXT-o}
|
||||
am__minus_obj=
|
||||
;;
|
||||
none) break ;;
|
||||
esac
|
||||
if depmode=$depmode \
|
||||
source=sub/conftest.c object=$am__obj \
|
||||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
||||
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
||||
>/dev/null 2>conftest.err &&
|
||||
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
||||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
||||
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
||||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
||||
# icc doesn't choke on unknown options, it will just issue warnings
|
||||
# or remarks (even with -Werror). So we grep stderr for any message
|
||||
# that says an option was ignored or not supported.
|
||||
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
||||
# icc: Command line warning: ignoring option '-M'; no argument required
|
||||
# The diagnosis changed in icc 8.0:
|
||||
# icc: Command line remark: option '-MP' not supported
|
||||
if (grep 'ignoring option' conftest.err ||
|
||||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
||||
am_cv_$1_dependencies_compiler_type=$depmode
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
cd ..
|
||||
rm -rf conftest.dir
|
||||
else
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
fi
|
||||
])
|
||||
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
||||
AM_CONDITIONAL([am__fastdep$1], [
|
||||
test "x$enable_dependency_tracking" != xno \
|
||||
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
||||
])
|
||||
|
||||
|
||||
# AM_SET_DEPDIR
|
||||
# -------------
|
||||
# Choose a directory name for dependency files.
|
||||
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
|
||||
AC_DEFUN([AM_SET_DEPDIR],
|
||||
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
||||
])
|
||||
|
||||
|
||||
# AM_DEP_TRACK
|
||||
# ------------
|
||||
AC_DEFUN([AM_DEP_TRACK],
|
||||
[AC_ARG_ENABLE([dependency-tracking], [dnl
|
||||
AS_HELP_STRING(
|
||||
[--enable-dependency-tracking],
|
||||
[do not reject slow dependency extractors])
|
||||
AS_HELP_STRING(
|
||||
[--disable-dependency-tracking],
|
||||
[speeds up one-time build])])
|
||||
if test "x$enable_dependency_tracking" != xno; then
|
||||
am_depcomp="$ac_aux_dir/depcomp"
|
||||
AMDEPBACKSLASH='\'
|
||||
am__nodep='_no'
|
||||
fi
|
||||
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
||||
AC_SUBST([AMDEPBACKSLASH])dnl
|
||||
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
||||
AC_SUBST([am__nodep])dnl
|
||||
_AM_SUBST_NOTMAKE([am__nodep])dnl
|
||||
])
|
||||
|
||||
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
|
||||
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# ------------------------------
|
||||
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[{
|
||||
# Older Autoconf quotes --file arguments for eval, but not when files
|
||||
# are listed without --file. Let's play safe and only enable the eval
|
||||
# if we detect the quoting.
|
||||
case $CONFIG_FILES in
|
||||
*\'*) eval set x "$CONFIG_FILES" ;;
|
||||
*) set x $CONFIG_FILES ;;
|
||||
esac
|
||||
shift
|
||||
for mf
|
||||
do
|
||||
# Strip MF so we end up with the name of the file.
|
||||
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
||||
# Check whether this is an Automake generated Makefile or not.
|
||||
# We used to match only the files named 'Makefile.in', but
|
||||
# some people rename them; so instead we look at the file content.
|
||||
# Grep'ing the first line is not enough: some people post-process
|
||||
# each Makefile.in and add a new line on top of each file to say so.
|
||||
# Grep'ing the whole file is not good either: AIX grep has a line
|
||||
# limit of 2048, but all sed's we know have understand at least 4000.
|
||||
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
||||
dirpart=`AS_DIRNAME("$mf")`
|
||||
else
|
||||
continue
|
||||
fi
|
||||
# Extract the definition of DEPDIR, am__include, and am__quote
|
||||
# from the Makefile without running 'make'.
|
||||
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
||||
test -z "$DEPDIR" && continue
|
||||
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
||||
test -z "$am__include" && continue
|
||||
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
||||
# Find all dependency output files, they are included files with
|
||||
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
||||
# simplest approach to changing $(DEPDIR) to its actual value in the
|
||||
# expansion.
|
||||
for file in `sed -n "
|
||||
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
||||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
|
||||
# Make sure the directory exists.
|
||||
test -f "$dirpart/$file" && continue
|
||||
fdir=`AS_DIRNAME(["$file"])`
|
||||
AS_MKDIR_P([$dirpart/$fdir])
|
||||
# echo "creating $dirpart/$file"
|
||||
echo '# dummy' > "$dirpart/$file"
|
||||
done
|
||||
done
|
||||
}
|
||||
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
|
||||
|
||||
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# -----------------------------
|
||||
# This macro should only be invoked once -- use via AC_REQUIRE.
|
||||
#
|
||||
# This code is only required when automatic dependency tracking
|
||||
# is enabled. FIXME. This creates each '.P' file that we will
|
||||
# need in order to bootstrap the dependency handling code.
|
||||
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AC_CONFIG_COMMANDS([depfiles],
|
||||
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
||||
])
|
||||
|
||||
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_MAKE_INCLUDE()
|
||||
# -----------------
|
||||
# Check to see how make treats includes.
|
||||
AC_DEFUN([AM_MAKE_INCLUDE],
|
||||
[am_make=${MAKE-make}
|
||||
cat > confinc << 'END'
|
||||
am__doit:
|
||||
@echo this is the am__doit target
|
||||
.PHONY: am__doit
|
||||
END
|
||||
# If we don't find an include directive, just comment out the code.
|
||||
AC_MSG_CHECKING([for style of include used by $am_make])
|
||||
am__include="#"
|
||||
am__quote=
|
||||
_am_result=none
|
||||
# First try GNU make style include.
|
||||
echo "include confinc" > confmf
|
||||
# Ignore all kinds of additional output from 'make'.
|
||||
case `$am_make -s -f confmf 2> /dev/null` in #(
|
||||
*the\ am__doit\ target*)
|
||||
am__include=include
|
||||
am__quote=
|
||||
_am_result=GNU
|
||||
;;
|
||||
esac
|
||||
# Now try BSD make style include.
|
||||
if test "$am__include" = "#"; then
|
||||
echo '.include "confinc"' > confmf
|
||||
case `$am_make -s -f confmf 2> /dev/null` in #(
|
||||
*the\ am__doit\ target*)
|
||||
am__include=.include
|
||||
am__quote="\""
|
||||
_am_result=BSD
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
AC_SUBST([am__include])
|
||||
AC_SUBST([am__quote])
|
||||
AC_MSG_RESULT([$_am_result])
|
||||
rm -f confinc confmf
|
||||
])
|
||||
|
||||
# Copyright (C) 2006-2017 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# _AM_SUBST_NOTMAKE(VARIABLE)
|
||||
# ---------------------------
|
||||
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
||||
# This macro is traced by Automake.
|
||||
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
||||
|
||||
# AM_SUBST_NOTMAKE(VARIABLE)
|
||||
# --------------------------
|
||||
# Public sister of _AM_SUBST_NOTMAKE.
|
||||
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
||||
|
||||
m4_include([../../config/depstand.m4])
|
||||
m4_include([../../config/lead-dot.m4])
|
||||
m4_include([../../config/multi.m4])
|
||||
m4_include([../../config/override.m4])
|
||||
m4_include([../acinclude.m4])
|
File diff suppressed because it is too large
Load Diff
|
@ -1,103 +0,0 @@
|
|||
# Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2002 Cygnus Support
|
||||
#
|
||||
# The authors hereby grant permission to use, copy, modify, distribute,
|
||||
# and license this software and its documentation for any purpose, provided
|
||||
# that existing copyright notices are retained in all copies and that this
|
||||
# notice is included verbatim in any distributions. No written agreement,
|
||||
# license, or royalty fee is required for any of the authorized uses.
|
||||
# Modifications to this software may be copyrighted by their authors
|
||||
# and need not follow the licensing terms described here, provided that
|
||||
# the new terms are clearly indicated on the first page of each file where
|
||||
# they apply.
|
||||
#
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
#
|
||||
AC_INIT(crt0.S)
|
||||
|
||||
AC_CONFIG_AUX_DIR(../..)
|
||||
|
||||
AC_CANONICAL_SYSTEM
|
||||
AC_ARG_PROGRAM
|
||||
|
||||
AC_PROG_INSTALL
|
||||
|
||||
LIB_AC_PROG_CC
|
||||
AS=${AS-as}
|
||||
AC_SUBST(AS)
|
||||
AR=${AR-ar}
|
||||
AC_SUBST(AR)
|
||||
LD=${LD-ld}
|
||||
AC_SUBST(LD)
|
||||
AC_PROG_RANLIB
|
||||
LIB_AM_PROG_AS
|
||||
|
||||
crt0=crt0.o
|
||||
pcrt0=pcrt0.o
|
||||
|
||||
case "${target}" in
|
||||
mips*-tx39*-*|mipstx39*-*-*)
|
||||
part_specific_obj=
|
||||
part_specific_defines=
|
||||
script_list="dve idt jmr3904app jmr3904dram jmr3904dram-java jmr3904app-java sde32 sde64 mti32 mti64 mti64_n32 mti64_64"
|
||||
bsp_list="libdve.a libidt.a libjmr3904.a"
|
||||
;;
|
||||
mipsisa32-*-* | mipsisa32el-*-* | \
|
||||
mipsisa32r2-*-* | mipsisa32r2el-*-* | \
|
||||
mipsisa64*-*-*)
|
||||
crt0="crt0_cfe.o crt0_cygmon.o crt0.o"
|
||||
pcrt0="pcrt0.o"
|
||||
part_specific_obj=
|
||||
part_specific_defines=
|
||||
script_list="idt32 idt64 cfe"
|
||||
bsp_list="libcygmon.a libidt.a libcfe.a"
|
||||
;;
|
||||
mips*-lsi*-*)
|
||||
part_specific_obj=entry.o
|
||||
part_specific_defines=
|
||||
script_list="lsi"
|
||||
bsp_list=liblsi.a
|
||||
;;
|
||||
mips64vr5*-*-*)
|
||||
part_specific_obj="vr5xxx.o cma101.o"
|
||||
part_specific_defines=-DR5000
|
||||
script_list="idt pmon ddb ddb-kseg0 lsi idtecoff nullmon"
|
||||
bsp_list="libidt.a libpmon.a liblsi.a libnullmon.a"
|
||||
;;
|
||||
mips64vr-*-* | mips64vrel-*-*)
|
||||
part_specific_obj="vr5xxx.o cma101.o"
|
||||
script_list="ddb ddb-kseg0 nullmon"
|
||||
bsp_list="libpmon.a libnullmon.a"
|
||||
;;
|
||||
*)
|
||||
crt0="crt0_cfe.o crt0.o"
|
||||
part_specific_obj="vr4300.o cma101.o"
|
||||
part_specific_defines=
|
||||
script_list="idt pmon ddb ddb-kseg0 lsi cfe idtecoff nullmon sde32 sde64 mti32 mti64 mti64_n32 mti64_64"
|
||||
bsp_list="libidt.a libpmon.a liblsi.a libcfe.a libnullmon.a"
|
||||
;;
|
||||
esac
|
||||
|
||||
host_makefile_frag=${srcdir}/../config/default.mh
|
||||
target_makefile_frag=${srcdir}/../config/mips.mt
|
||||
|
||||
dnl We have to assign the same value to other variables because autoconf
|
||||
dnl doesn't provide a mechanism to substitute a replacement keyword with
|
||||
dnl arbitrary data or pathnames.
|
||||
dnl
|
||||
host_makefile_frag_path=$host_makefile_frag
|
||||
AC_SUBST(host_makefile_frag_path)
|
||||
AC_SUBST_FILE(host_makefile_frag)
|
||||
target_makefile_frag_path=$target_makefile_frag
|
||||
AC_SUBST(target_makefile_frag_path)
|
||||
AC_SUBST_FILE(target_makefile_frag)
|
||||
AC_SUBST(part_specific_obj)
|
||||
AC_SUBST(part_specific_defines)
|
||||
AC_SUBST(script_list)
|
||||
AC_SUBST(bsp_list)
|
||||
AC_SUBST(crt0)
|
||||
AC_SUBST(pcrt0)
|
||||
|
||||
AM_ENABLE_MULTILIB(, ../..)
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
Loading…
Reference in New Issue