diff options
Diffstat (limited to 'newlib/libm/configure.in')
-rw-r--r-- | newlib/libm/configure.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/newlib/libm/configure.in b/newlib/libm/configure.in index 66ebb4f67..ed32902c9 100644 --- a/newlib/libm/configure.in +++ b/newlib/libm/configure.in @@ -18,4 +18,25 @@ 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 + +LIBM_MACHINE_LIB= +if test -n "${machine_dir}"; then + AC_CONFIG_SUBDIRS(machine) + if test "${use_libtool}" = "yes"; then + LIBM_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext} + else + LIBM_MACHINE_LIB=machine/lib.${aext} + fi +fi + +AC_SUBST(LIBM_MACHINE_LIB) + AC_OUTPUT(Makefile math/Makefile mathfp/Makefile common/Makefile) |