2012-09-27 04:11:54 +08:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_INIT(crt0.S)
|
|
|
|
|
2022-01-07 13:53:26 +08:00
|
|
|
AC_CONFIG_AUX_DIR(../..)
|
2012-09-27 04:11:54 +08:00
|
|
|
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_ARG_PROGRAM
|
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
2022-02-12 18:29:06 +08:00
|
|
|
AC_NO_EXECUTABLES
|
|
|
|
AC_PROG_CC
|
2022-02-19 12:46:44 +08:00
|
|
|
AM_PROG_AS
|
2012-09-27 04:11:54 +08:00
|
|
|
AR=${AR-ar}
|
|
|
|
AC_SUBST(AR)
|
|
|
|
LD=${LD-ld}
|
|
|
|
AC_SUBST(LD)
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
|
|
|
case "${target}" in
|
|
|
|
*-*-elf)
|
|
|
|
objtype=elf-
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AC_SUBST(objtype)
|
|
|
|
|
2022-02-12 18:04:49 +08:00
|
|
|
host_makefile_frag=`cd $srcdir/../config;pwd`/default.mh
|
2012-09-27 04:11:54 +08:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
# Configure cpu init plug-ins
|
|
|
|
if test -d "${srcdir}/cpu-init"; then
|
|
|
|
subdirs="${subdirs} cpu-init"
|
2022-02-12 18:04:49 +08:00
|
|
|
AC_CONFIG_FILES([cpu-init/Makefile], [dnl
|
|
|
|
ac_file=cpu-init/Makefile . ${srcdir}/../../config-ml.in
|
|
|
|
])
|
2012-09-27 04:11:54 +08:00
|
|
|
AC_SUBST(subdirs)
|
|
|
|
fi
|
|
|
|
|
2022-01-24 12:24:52 +08:00
|
|
|
AM_ENABLE_MULTILIB(, ../..)
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
2012-09-27 04:11:54 +08:00
|
|
|
AC_OUTPUT
|