OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [or32/] [configure.in] - Blame information for rev 862

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 180 jeremybenn
# configure.in. Autoconf input file.
2
 
3 204 jeremybenn
# Copyright (c) 1995, 1996 Cygnus Support
4 180 jeremybenn
# Copyright (C) 2004, Jacob Bower
5
# Copyright (C) 2010, Embecosm Limited 
6
 
7
# Contributor Jeremy Bennett 
8
 
9
# This file is part of Newlib.
10
 
11
# The original work by Jacob Bower is provided as-is without any kind of
12
# warranty. Use it at your own risk!
13
 
14
# All subsequent work is bound by version 3 of the GPL as follows.
15
 
16
# This program is free software; you can redistribute it and/or modify it
17
# under the terms of the GNU General Public License as published by the Free
18
# Software Foundation; either version 3 of the License, or (at your option)
19
# any later version.
20
 
21
# This program is distributed in the hope that it will be useful, but WITHOUT
22
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
23
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
24
# more details.
25
 
26
# You should have received a copy of the GNU General Public License along
27
# with this program.  If not, see .
28
 
29 148 jeremybenn
dnl Process this file with autoconf to produce a configure script.
30
AC_PREREQ(2.59)
31 180 jeremybenn
AC_INIT(libor32.a,0.2.0)
32
AC_CONFIG_HEADER(config.h)
33 148 jeremybenn
 
34 180 jeremybenn
# No shared libraries allowed
35
if test "${enable_shared}" = "yes" ; then
36
    echo "Shared libraries not supported for cross compiling, ignored"
37
fi
38 148 jeremybenn
 
39 180 jeremybenn
# Where are the auxillary tools (confg.sub etc)?
40 148 jeremybenn
if test "$srcdir" = "." ; then
41 180 jeremybenn
  if test "${with_target_subdir}" != "." ; then
42
    libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
43
  else
44
    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
45
  fi
46 148 jeremybenn
else
47 180 jeremybenn
  libgloss_topdir="${srcdir}/../.."
48 148 jeremybenn
fi
49 180 jeremybenn
AC_CONFIG_AUX_DIR($libgloss_topdir)
50 148 jeremybenn
 
51 204 jeremybenn
AC_CANONICAL_TARGET
52
 
53 180 jeremybenn
AC_ARG_PROGRAM
54 148 jeremybenn
AC_PROG_INSTALL
55
 
56 180 jeremybenn
AC_DEFINE(HAVE_GNU_LD, 1, [Using GNU ld])
57
 
58
# We always use ELF, define various useful associated things.
59
AC_DEFINE(HAVE_ELF, 1, [Using ELF format])
60
 
61
# Sort out what the symbol prefix is (we could just fix it as '_', but let the
62
# script work it out.
63
AC_CACHE_CHECK([for symbol prefix], libc_symbol_prefix, [dnl
64
cat > conftest.c <<\EOF
65
foo () { }
66
EOF
67
dnl
68
libc_symbol_prefix=none
69
if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null]);
70
then
71
  libc_symbol_prefix='$'
72
else
73
  if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null]);
74
  then
75
    libc_symbol_prefix=_
76
  fi
77
fi
78
rm -f conftest* ])
79
if test $libc_symbol_prefix != none; then
80
  AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_symbol_prefix", [symbol prefix])
81
else
82
  AC_DEFINE(__SYMBOL_PREFIX, "", [symbol prefix])
83
fi
84
 
85
# Standard stuff copied from libnosys. For this we'll need an aclocal.m4
86 148 jeremybenn
LIB_AC_PROG_CC
87
AS=${AS-as}
88
AC_SUBST(AS)
89
AR=${AR-ar}
90
AC_SUBST(AR)
91
LD=${LD-ld}
92
AC_SUBST(LD)
93
AC_PROG_RANLIB
94
LIB_AM_PROG_AS
95
 
96
host_makefile_frag=${srcdir}/../config/default.mh
97
 
98
dnl We have to assign the same value to other variables because autoconf
99
dnl doesn't provide a mechanism to substitute a replacement keyword with
100
dnl arbitrary data or pathnames.
101
dnl
102
host_makefile_frag_path=$host_makefile_frag
103
AC_SUBST(host_makefile_frag_path)
104
AC_SUBST_FILE(host_makefile_frag)
105
 
106 180 jeremybenn
AC_CONFIG_FILES(Makefile,
107
                ac_file=Makefile . ${libgloss_topdir}/config-ml.in,
108
                srcdir=${srcdir}
109
                target=${target}
110
                with_multisubdir=${with_multisubdir}
111
                ac_configure_args="${ac_configure_args} --enable-multilib"
112
                CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
113 204 jeremybenn
                libgloss_topdir=${libgloss_topdir}
114
)
115 148 jeremybenn
AC_OUTPUT

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.