1 dnl This is the newlib/libc/sys/linux configure.in file.
2 dnl Process this file with autoconf to produce a configure script.
5 AC_INIT([newlib],[NEWLIB_VERSION])
6 AC_CONFIG_SRCDIR([linux.c])
8 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
9 AC_CONFIG_AUX_DIR(../../../..)
11 NEWLIB_CONFIGURE(../../..)
13 dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
14 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
15 dnl line of the macro which fail because appropriate LDFLAGS are not set.
18 if test "${use_libtool}" = "yes"; then
24 if test -n "${machine_dir}"; then
25 if test "${use_libtool}" = "yes"; then
26 LINUX_MACH_LIB=machine/${machine_dir}/liblinux${machine_dir}.${aext}
28 LINUX_MACH_LIB=machine/lib.${aext}
31 AC_SUBST(LINUX_MACH_LIB)
36 AC_CONFIG_SUBDIRS(machine)
38 if test "${newlib_multithread}" = "yes"; then
39 AC_CONFIG_SUBDIRS(linuxthreads)
41 if test "x${newlib_elix_level}" = "x1"; then
42 EXTRA_SUBDIRS=linuxthreads net
44 EXTRA_SUBDIRS="linuxthreads net intl stdlib iconv dl"
45 EXTRA_SUBLIBS="net/libnet.la intl/libintl.la stdlib/libstdlib.la iconv/libiconv.la dl/libdl.la"
48 AC_SUBST(EXTRA_SUBDIRS)
49 AC_SUBST(EXTRA_SUBLIBS)
51 AC_CONFIG_FILES([Makefile intl/Makefile net/Makefile stdlib/Makefile iconv/Makefile dl/Makefile cmath/Makefile argp/Makefile])