source: trunk/libs/newlib/src/newlib/libc/sys/linux/configure.in

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.4 KB
Line 
1dnl This is the newlib/libc/sys/linux configure.in file.
2dnl Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT([newlib],[NEWLIB_VERSION])
6AC_CONFIG_SRCDIR([linux.c])
7
8dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
9AC_CONFIG_AUX_DIR(../../../..)
10
11NEWLIB_CONFIGURE(../../..)
12
13dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
14dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
15dnl line of the macro which fail because appropriate LDFLAGS are not set.
16_LT_DECL_SED
17_LT_PROG_ECHO_BACKSLASH
18AC_PROG_AWK
19if test "${use_libtool}" = "yes"; then
20AC_LIBTOOL_WIN32_DLL
21AM_PROG_LIBTOOL
22fi
23
24AC_CONFIG_SUBDIRS(machine)
25
26if test "${newlib_multithread}" = "yes"; then
27AC_CONFIG_SUBDIRS(linuxthreads)
28fi
29
30LINUX_MACH_LIB=
31if test -n "${machine_dir}"; then
32  if test "${use_libtool}" = "yes"; then
33    LINUX_MACH_LIB=machine/${machine_dir}/liblinux${machine_dir}.${aext}
34  else
35    LINUX_MACH_LIB=machine/lib.${aext}
36  fi
37fi
38AC_SUBST(LINUX_MACH_LIB)
39
40EXTRA_SUBDIRS=
41EXTRA_SUBLIBS=
42
43if test "x${newlib_elix_level}" = "x1"; then
44EXTRA_SUBDIRS=linuxthreads net
45else
46EXTRA_SUBDIRS="linuxthreads net intl iconv dl"
47EXTRA_SUBLIBS="net/libnet.la intl/libintl.la iconv/libiconv.la dl/libdl.la"
48fi
49
50AC_SUBST(EXTRA_SUBDIRS)
51AC_SUBST(EXTRA_SUBLIBS)
52
53AC_CONFIG_FILES([Makefile intl/Makefile net/Makefile iconv/Makefile dl/Makefile cmath/Makefile argp/Makefile])
54AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.