source: trunk/libs/newlib/src/libgloss/moxie/configure.in @ 453

Last change on this file since 453 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.5 KB
RevLine 
[444]1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.59)
3AC_INIT(crt0.S)
4
5if test "${enable_shared}" = "yes" ; then
6    echo "Shared libraries not supported for cross compiling, ignored"
7fi
8
9if test "$srcdir" = "." ; then
10  if test "${with_target_subdir}" != "." ; then
11    libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
12  else
13    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
14  fi
15else
16  libgloss_topdir="${srcdir}/../.."
17fi
18AC_CONFIG_AUX_DIR($libgloss_topdir)
19
20AC_CANONICAL_SYSTEM
21AC_ARG_PROGRAM
22
23AC_PROG_INSTALL
24
25LIB_AC_PROG_CC
26
27AS=${AS-as}
28AC_SUBST(AS)
29AR=${AR-ar}
30AC_SUBST(AR)
31LD=${LD-ld}
32AC_SUBST(LD)
33AC_PROG_RANLIB
34LIB_AM_PROG_AS
35
36dnl Don't build crt0 for moxiebox, which provides crt0 for us.
37case "${target}" in
38  moxie-*-moxiebox*)
39    BUILD_CRT0_TRUE='#'
40    BUILD_CRT0_FALSE=
41    ;;
42  *)
43    BUILD_CRT0_TRUE=
44    BUILD_CRT0_FALSE='#'
45    ;;
46esac
47
48AC_SUBST(BUILD_CRT0_TRUE)
49AC_SUBST(BUILD_CRT0_FALSE)
50
51host_makefile_frag=${srcdir}/../config/default.mh
52
53dnl We have to assign the same value to other variables because autoconf
54dnl doesn't provide a mechanism to substitute a replacement keyword with
55dnl arbitrary data or pathnames.
56dnl
57host_makefile_frag_path=$host_makefile_frag
58AC_SUBST(host_makefile_frag_path)
59AC_SUBST_FILE(host_makefile_frag)
60
61AC_CONFIG_FILES(Makefile,
62. ${libgloss_topdir}/config-ml.in,
63srcdir=${srcdir}
64target=${target}
65with_multisubdir=${with_multisubdir}
66ac_configure_args="${ac_configure_args} --enable-multilib"
67CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
68libgloss_topdir=${libgloss_topdir}
69)
70AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.