1 | dnl This is the newlib/libc/sys 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([a29khif]) |
---|
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 | _LT_PROG_ECHO_BACKSLASH |
---|
18 | if test "${use_libtool}" = "yes"; then |
---|
19 | AC_LIBTOOL_WIN32_DLL |
---|
20 | AM_PROG_LIBTOOL |
---|
21 | fi |
---|
22 | |
---|
23 | if test -n "${sys_dir}"; then |
---|
24 | case ${sys_dir} in |
---|
25 | a29khif) AC_CONFIG_SUBDIRS(a29khif) ;; |
---|
26 | almosmkh) AC_CONFIG_SUBDIRS(almosmkh) ;; |
---|
27 | arm) AC_CONFIG_SUBDIRS(arm) ;; |
---|
28 | d10v) AC_CONFIG_SUBDIRS(d10v) ;; |
---|
29 | decstation) AC_CONFIG_SUBDIRS(decstation) ;; |
---|
30 | epiphany) AC_CONFIG_SUBDIRS(epiphany) ;; |
---|
31 | h8300hms) AC_CONFIG_SUBDIRS(h8300hms) ;; |
---|
32 | h8500hms) AC_CONFIG_SUBDIRS(h8500hms) ;; |
---|
33 | linux) AC_CONFIG_SUBDIRS(linux) ;; |
---|
34 | m88kbug) AC_CONFIG_SUBDIRS(m88kbug) ;; |
---|
35 | mmixware) AC_CONFIG_SUBDIRS(mmixware) ;; |
---|
36 | netware) AC_CONFIG_SUBDIRS(netware) ;; |
---|
37 | or1k) AC_CONFIG_SUBDIRS(or1k) ;; |
---|
38 | phoenix) AC_CONFIG_SUBDIRS(phoenix) ;; |
---|
39 | rdos) AC_CONFIG_SUBDIRS(rdos) ;; |
---|
40 | rtems) AC_CONFIG_SUBDIRS(rtems) ;; |
---|
41 | sh) AC_CONFIG_SUBDIRS(sh) ;; |
---|
42 | sparc64) AC_CONFIG_SUBDIRS(sparc64) ;; |
---|
43 | sun4) AC_CONFIG_SUBDIRS(sun4) ;; |
---|
44 | sysmec) AC_CONFIG_SUBDIRS(sysmec) ;; |
---|
45 | sysnec810) AC_CONFIG_SUBDIRS(sysnec810) ;; |
---|
46 | sysnecv850) AC_CONFIG_SUBDIRS(sysnecv850) ;; |
---|
47 | sysvi386) AC_CONFIG_SUBDIRS(sysvi386) ;; |
---|
48 | sysvnecv70) AC_CONFIG_SUBDIRS(sysvnecv70) ;; |
---|
49 | tic80) AC_CONFIG_SUBDIRS(tic80) ;; |
---|
50 | tirtos) AC_CONFIG_SUBDIRS(tirtos) ;; |
---|
51 | w65) AC_CONFIG_SUBDIRS(w65) ;; |
---|
52 | z8ksim) AC_CONFIG_SUBDIRS(z8ksim) ;; |
---|
53 | esac; |
---|
54 | fi |
---|
55 | |
---|
56 | CRT0= |
---|
57 | if test "x${have_crt0}" = "xyes"; then |
---|
58 | CRT0=crt0.o |
---|
59 | fi |
---|
60 | AC_SUBST(CRT0) |
---|
61 | |
---|
62 | AM_CONDITIONAL(HAVE_SYS_DIR, test x${sys_dir} != x) |
---|
63 | |
---|
64 | AC_CONFIG_FILES([Makefile]) |
---|
65 | AC_OUTPUT |
---|