2000-02-18 03:39:52 +08:00
|
|
|
dnl This is the newlib/libc/sys configure.in file.
|
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
2006-04-14 03:56:32 +08:00
|
|
|
AC_PREREQ(2.59)
|
|
|
|
AC_INIT([newlib],[NEWLIB_VERSION])
|
|
|
|
AC_CONFIG_SRCDIR([a29khif])
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
|
|
|
|
AC_CONFIG_AUX_DIR(../../..)
|
|
|
|
|
|
|
|
NEWLIB_CONFIGURE(../..)
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
|
|
|
|
dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
|
|
|
|
dnl line of the macro which fail because appropriate LDFLAGS are not set.
|
2007-05-25 01:33:42 +08:00
|
|
|
_LT_DECL_SED
|
2010-02-25 05:00:08 +08:00
|
|
|
_LT_PROG_ECHO_BACKSLASH
|
2001-12-14 07:50:11 +08:00
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
fi
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
if test -n "${sys_dir}"; then
|
2006-04-12 03:02:16 +08:00
|
|
|
case ${sys_dir} in
|
|
|
|
a29khif) AC_CONFIG_SUBDIRS(a29khif) ;;
|
2019-01-15 23:36:50 +08:00
|
|
|
amdgcn) AC_CONFIG_SUBDIRS(amdgcn) ;;
|
2006-04-12 03:02:16 +08:00
|
|
|
arm) AC_CONFIG_SUBDIRS(arm) ;;
|
|
|
|
d10v) AC_CONFIG_SUBDIRS(d10v) ;;
|
|
|
|
decstation) AC_CONFIG_SUBDIRS(decstation) ;;
|
2012-02-22 06:34:31 +08:00
|
|
|
epiphany) AC_CONFIG_SUBDIRS(epiphany) ;;
|
2006-04-12 03:02:16 +08:00
|
|
|
h8300hms) AC_CONFIG_SUBDIRS(h8300hms) ;;
|
|
|
|
h8500hms) AC_CONFIG_SUBDIRS(h8500hms) ;;
|
|
|
|
linux) AC_CONFIG_SUBDIRS(linux) ;;
|
|
|
|
m88kbug) AC_CONFIG_SUBDIRS(m88kbug) ;;
|
|
|
|
mmixware) AC_CONFIG_SUBDIRS(mmixware) ;;
|
|
|
|
netware) AC_CONFIG_SUBDIRS(netware) ;;
|
2015-01-20 20:27:30 +08:00
|
|
|
or1k) AC_CONFIG_SUBDIRS(or1k) ;;
|
2016-05-10 03:23:58 +08:00
|
|
|
phoenix) AC_CONFIG_SUBDIRS(phoenix) ;;
|
2006-04-12 03:02:16 +08:00
|
|
|
rdos) AC_CONFIG_SUBDIRS(rdos) ;;
|
|
|
|
rtems) AC_CONFIG_SUBDIRS(rtems) ;;
|
|
|
|
sh) AC_CONFIG_SUBDIRS(sh) ;;
|
|
|
|
sparc64) AC_CONFIG_SUBDIRS(sparc64) ;;
|
|
|
|
sun4) AC_CONFIG_SUBDIRS(sun4) ;;
|
|
|
|
sysmec) AC_CONFIG_SUBDIRS(sysmec) ;;
|
|
|
|
sysnec810) AC_CONFIG_SUBDIRS(sysnec810) ;;
|
|
|
|
sysnecv850) AC_CONFIG_SUBDIRS(sysnecv850) ;;
|
|
|
|
sysvi386) AC_CONFIG_SUBDIRS(sysvi386) ;;
|
|
|
|
sysvnecv70) AC_CONFIG_SUBDIRS(sysvnecv70) ;;
|
|
|
|
tic80) AC_CONFIG_SUBDIRS(tic80) ;;
|
2014-04-05 05:40:59 +08:00
|
|
|
tirtos) AC_CONFIG_SUBDIRS(tirtos) ;;
|
2006-04-12 03:02:16 +08:00
|
|
|
w65) AC_CONFIG_SUBDIRS(w65) ;;
|
|
|
|
z8ksim) AC_CONFIG_SUBDIRS(z8ksim) ;;
|
|
|
|
esac;
|
2000-02-18 03:39:52 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
CRT0=
|
2005-09-01 04:39:43 +08:00
|
|
|
if test "x${have_crt0}" = "xyes"; then
|
2000-02-18 03:39:52 +08:00
|
|
|
CRT0=crt0.o
|
|
|
|
fi
|
|
|
|
AC_SUBST(CRT0)
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_SYS_DIR, test x${sys_dir} != x)
|
|
|
|
|
2006-04-14 03:56:32 +08:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_OUTPUT
|