Last change
on this file was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
1.2 KB
|
Line | |
---|
1 | dnl This is the newlib/doc 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([makedoc.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 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
---|
14 | if test -z "$CC_FOR_BUILD"; then |
---|
15 | if test "x$cross_compiling" = "xno"; then |
---|
16 | CC_FOR_BUILD='$(CC)' |
---|
17 | else |
---|
18 | CC_FOR_BUILD=gcc |
---|
19 | fi |
---|
20 | fi |
---|
21 | AC_SUBST(CC_FOR_BUILD) |
---|
22 | |
---|
23 | # Also set EXEEXT_FOR_BUILD. |
---|
24 | if test "x$cross_compiling" = "xno"; then |
---|
25 | EXEEXT_FOR_BUILD='$(EXEEXT)' |
---|
26 | else |
---|
27 | AC_CACHE_CHECK([for build system executable suffix], newlib_cv_build_exeext, |
---|
28 | [cat > ac_c_test.c << 'EOF' |
---|
29 | int main() { |
---|
30 | /* Nothing needed here */ |
---|
31 | } |
---|
32 | EOF |
---|
33 | ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5 |
---|
34 | newlib_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//` |
---|
35 | rm -f ac_c_test* |
---|
36 | test x"${newlib_cv_build_exeext}" = x && newlib_cv_build_exeext=no]) |
---|
37 | EXEEXT_FOR_BUILD="" |
---|
38 | test x"${newlib_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${newlib_cv_build_exeext} |
---|
39 | fi |
---|
40 | AC_SUBST(EXEEXT_FOR_BUILD) |
---|
41 | |
---|
42 | AC_CONFIG_FILES([Makefile]) |
---|
43 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.