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