OSDN Git Service

* ltmain.sh: Update from GCC.
[pf3gnuchains/pf3gnuchains4x.git] / newlib / libc / sys / linux / configure.in
1 dnl This is the newlib/libc/sys/linux configure.in file.
2 dnl Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.59)
5 AC_INIT([newlib],[NEWLIB_VERSION])
6 AC_CONFIG_SRCDIR([linux.c])
7
8 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 
9 AC_CONFIG_AUX_DIR(../../../..)
10
11 NEWLIB_CONFIGURE(../../..)
12
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.
16 _LT_DECL_SED
17 AC_PROG_AWK
18 if test "${use_libtool}" = "yes"; then
19 AC_LIBTOOL_WIN32_DLL
20 AM_PROG_LIBTOOL
21 fi
22
23 LINUX_MACH_LIB=
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}
27   else
28     LINUX_MACH_LIB=machine/lib.${aext}
29   fi
30 fi
31 AC_SUBST(LINUX_MACH_LIB)
32
33 EXTRA_SUBDIRS=
34 EXTRA_SUBLIBS=
35
36 AC_CONFIG_SUBDIRS(machine)
37
38 if test "${newlib_multithread}" = "yes"; then
39 AC_CONFIG_SUBDIRS(linuxthreads)
40 fi
41 if test "x${newlib_elix_level}" = "x1"; then
42 EXTRA_SUBDIRS=linuxthreads net
43 else 
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"
46 fi
47
48 AC_SUBST(EXTRA_SUBDIRS)
49 AC_SUBST(EXTRA_SUBLIBS)
50
51 AC_CONFIG_FILES([Makefile intl/Makefile net/Makefile stdlib/Makefile iconv/Makefile dl/Makefile cmath/Makefile argp/Makefile])
52 AC_OUTPUT