Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2001-12-14 02:50:11 +0300
committerThomas Fitzsimmons <fitzsim@redhat.com>2001-12-14 02:50:11 +0300
commit2e1a71756e754ada402efe9f5e2d6378dc11e496 (patch)
tree7df86f70bc78f4f8b0bcef05c1a4d677d8fc400f /newlib/libc/configure.in
parentb92591a1fc53f2d5c42faaf438f697006bf63a82 (diff)
* Makefile.shared: New file.
* libc/sys/linux/shared.ld: New file. * libm/machine/*: New files. * libm/machine/i386/*: New files. * Makefile.am: Add libtool support. Change math and mathfp references to variables. * configure.host: Add variables for libtool support. Add libm_machine_dir variable. * configure.in: Add objectlist variables, for libtool support. Add CC_FOR_BUILD tests. * libc/Makefile.am: Add libtool support. Change crt0.o reference to be a variable reference. * libc/configure.in: Add libtool support. Change sublib names to be lib${subdir}.la when using libtool. * libc/ctype/Makefile.am: Add libtool support. * libc/errno/Makefile.am: Likewise. * libc/locale/Makefile.am: Likewise. * libc/machine/Makefile.am: Likewise. * libc/machine/configure.in: Likewise. * libc/machine/i386/Makefile.am: Likewise. * libc/machine/i386/configure.in: Likewise. * libc/misc/Makefile.am: Likewise. * libc/posix/Makefile.am: Likewise. * libc/reent/Makefile.am: Likewise. * libc/signal/Makefile.am: Likewise. * libc/stdio/Makefile.am: Likewise. * libc/stdlib/Makefile.am: Likewise. * libc/string/Makefile.am: Likewise. * libc/sys/Makefile.am: Likewise. * libc/sys/configure.in: Likewise. * libc/sys/linux/Makefile.am: Add libtool support. Change awk reference to a variable reference. Change signal.h reference to a variable reference. * libc/sys/linux/configure.in: Add libtool support. * libc/syscalls/Makefile.am: Likewise. * libc/time/Makefile.am: Likewise. * libc/unix/Makefile.am: Likewise. * libm/Makefile.am: Add libtool support. Change math and mathfp references to variables. * libm/configure.in: Add libtool support. Add LIBM_MACHINE_LIB variable. * libm/common/Makefile.am: Add libtool support. * libm/math/Makefile.am: Likewise. * libm/mathfp/Makefile.am: Likewise. Regenerate all Makefile.in, aclocal.m4, and configure.
Diffstat (limited to 'newlib/libc/configure.in')
-rw-r--r--newlib/libc/configure.in47
1 files changed, 41 insertions, 6 deletions
diff --git a/newlib/libc/configure.in b/newlib/libc/configure.in
index 19d0f2196..eeb5286bd 100644
--- a/newlib/libc/configure.in
+++ b/newlib/libc/configure.in
@@ -9,6 +9,15 @@ AC_CONFIG_AUX_DIR(../..)
NEWLIB_CONFIGURE(..)
+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.
+
+if test "${use_libtool}" = "yes"; then
+AC_LIBTOOL_WIN32_DLL
+AM_PROG_LIBTOOL
+fi
+
AC_CONFIG_SUBDIRS(machine sys)
CRT0=
@@ -23,7 +32,11 @@ dnl build the library.
LIBC_POSIX_LIB=
if test -n "${posix_dir}"; then
- LIBC_POSIX_LIB=${posix_dir}/lib.a
+ if test "${use_libtool}" = "yes"; then
+ LIBC_POSIX_LIB=${posix_dir}/lib${posix_dir}.${aext}
+ else
+ LIBC_POSIX_LIB=${posix_dir}/lib.${aext}
+ fi
fi
AC_SUBST(LIBC_POSIX_LIB)
AM_CONDITIONAL(HAVE_POSIX_DIR, test x${posix_dir} != x)
@@ -31,7 +44,11 @@ AM_CONDITIONAL(HAVE_POSIX_DIR, test x${posix_dir} != x)
LIBC_SIGNAL_LIB=
LIBC_SIGNAL_DEF=
if test -n "${signal_dir}"; then
- LIBC_SIGNAL_LIB=${signal_dir}/lib.a
+ if test "${use_libtool}" = "yes"; then
+ LIBC_SIGNAL_LIB=${signal_dir}/lib${signal_dir}.${aext}
+ else
+ LIBC_SIGNAL_LIB=${signal_dir}/lib.${aext}
+ fi
LIBC_SIGNAL_DEF=${signal_dir}/stmp-def
fi
AC_SUBST(LIBC_SIGNAL_LIB)
@@ -40,14 +57,22 @@ AM_CONDITIONAL(HAVE_SIGNAL_DIR, test x${signal_dir} != x)
LIBC_SYSCALL_LIB=
if test -n "${syscall_dir}"; then
- LIBC_SYSCALL_LIB=${syscall_dir}/lib.a
+ if test "${use_libtool}" = "yes"; then
+ LIBC_SYSCALL_LIB=${syscall_dir}/lib${syscall_dir}.${aext}
+ else
+ LIBC_SYSCALL_LIB=${syscall_dir}/lib.${aext}
+ fi
fi
AC_SUBST(LIBC_SYSCALL_LIB)
AM_CONDITIONAL(HAVE_SYSCALL_DIR, test x${syscall_dir} != x)
LIBC_UNIX_LIB=
if test -n "${unix_dir}"; then
- LIBC_UNIX_LIB=${unix_dir}/lib.a
+ if test "${use_libtool}" = "yes"; then
+ LIBC_UNIX_LIB=${unix_dir}/lib${unix_dir}.${aext}
+ else
+ LIBC_UNIX_LIB=${unix_dir}/lib.${aext}
+ fi
fi
AC_SUBST(LIBC_UNIX_LIB)
AM_CONDITIONAL(HAVE_UNIX_DIR, test x${unix_dir} != x)
@@ -57,14 +82,24 @@ dnl do. However, we do need to know whether they will produce a library.
LIBC_SYS_LIB=
if test -n "${sys_dir}"; then
- LIBC_SYS_LIB=sys/lib.a
+ if test "${use_libtool}" = "yes"; then
+ LIBC_SYS_LIB=sys/${sys_dir}/lib${sys_dir}.${aext}
+ else
+ LIBC_SYS_LIB=sys/lib.${aext}
+ fi
fi
AC_SUBST(LIBC_SYS_LIB)
+AC_SUBST(sys_dir)
LIBC_MACHINE_LIB=
if test -n "${machine_dir}"; then
- LIBC_MACHINE_LIB=machine/lib.a
+ if test "${use_libtool}" = "yes"; then
+ LIBC_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}
+ else
+ LIBC_MACHINE_LIB=machine/lib.${aext}
+ fi
fi
AC_SUBST(LIBC_MACHINE_LIB)
+AC_SUBST(machine_dir)
AC_OUTPUT(Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile stdio/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile)