source: trunk/libs/newlib/src/libgloss/or1k/configure.in @ 612

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

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

File size: 2.6 KB
Line 
1# Makefile for libgloss/or1k
2
3# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
4# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
5# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
6# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
7# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
8# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
9# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
10# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
11# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
12# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
13# POSSIBILITY OF SUCH DAMAGE.                                               */
14
15# Process this file with autoconf to produce a configure script
16
17AC_PREREQ(2.59)
18AC_INIT(libor1k,0.0.1)
19
20# No shared libraries allowed
21if test "${enable_shared}" = "yes" ; then
22    echo "Shared libraries not supported for cross compiling, ignored"
23fi
24
25# Where are the auxillary tools (confg.sub etc)?
26if test "$srcdir" = "." ; then
27  if test "${with_target_subdir}" != "." ; then
28    libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
29  else
30    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
31  fi
32else
33  libgloss_topdir="${srcdir}/../.."
34fi
35AC_CONFIG_AUX_DIR($libgloss_topdir)
36
37AC_CANONICAL_SYSTEM
38AC_ARG_PROGRAM
39
40AC_PROG_INSTALL
41
42AC_DEFINE(HAVE_GNU_LD, 1, [Using GNU ld])
43
44# We always use ELF, define various useful associated things.
45AC_DEFINE(HAVE_ELF, 1, [Using ELF format])
46
47# Standard stuff copied from libnosys. For this we'll need to an aclocal.m4
48LIB_AC_PROG_CC
49AS=${AS-as}
50AC_SUBST(AS)
51AR=${AR-ar}
52AC_SUBST(AR)
53LD=${LD-ld}
54AC_SUBST(LD)
55AC_PROG_RANLIB
56LIB_AM_PROG_AS
57
58host_makefile_frag=${srcdir}/../config/default.mh
59target_makefile_frag=${srcdir}/../config/default.mt
60
61dnl We have to assign the same value to other variables because autoconf
62dnl doesn't provide a mechanism to substitute a replacement keyword with
63dnl arbitrary data or pathnames.
64dnl
65host_makefile_frag_path=$host_makefile_frag
66AC_SUBST(host_makefile_frag_path)
67AC_SUBST_FILE(host_makefile_frag)
68target_makefile_frag_path=$target_makefile_frag
69AC_SUBST(target_makefile_frag_path)
70AC_SUBST_FILE(target_makefile_frag)
71
72AC_CONFIG_FILES(Makefile,
73. ${libgloss_topdir}/config-ml.in,
74srcdir=${srcdir}
75target=${target}
76with_multisubdir=${with_multisubdir}
77ac_configure_args="${ac_configure_args} --enable-multilib"
78CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
79libgloss_topdir=${libgloss_topdir}
80)
81AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.