OSDN Git Service

5d368a6cc3f13454be485d12a5605f11c60f9f42
[pf3gnuchains/pf3gnuchains4x.git] / newlib / libm / machine / configure.in
1 dnl This is the newlib/libm/machine 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([i386])
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 add the following lines because automake detects the
14 dnl references to libtool libraries from aclocal and tries to verify that
15 dnl AM_PROG_LIBTOOL is being used.  This must be added after
16 dnl the call to NEWLIB_CONFIGURE.
17
18 if test "${use_libtool}" = "yes"; then
19 AC_LIBTOOL_WIN32_DLL
20 AM_PROG_LIBTOOL
21 fi
22
23 machlib=
24
25 if test -n "${libm_machine_dir}"; then
26   case ${libm_machine_dir} in
27         i386) AC_CONFIG_SUBDIRS(i386) ;;
28         spu) AC_CONFIG_SUBDIRS(spu) ;;
29   esac;
30   if test "${use_libtool}" = "yes"; then
31     machlib=${libm_machine_dir}/lib${libm_machine_dir}.${aext}
32   else
33     machlib=${libm_machine_dir}/lib.${aext}
34   fi
35 fi
36
37 AC_SUBST(libm_machine_dir)
38 AC_SUBST(machlib)
39
40 AM_CONDITIONAL(HAVE_LIBM_MACHINE_DIR, test x${libm_machine_dir} != x)
41 AC_CONFIG_FILES([Makefile])
42 AC_OUTPUT
43
44
45