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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [libgloss/] [m32r/] [configure.in] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1005 ivang
dnl Process this file with autoconf to produce a configure script.
2
AC_PREREQ(2.5)dnl
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
if test -f "${srcdir}/${with_multisrctop}../../gdb/m32r-stub.c"; then
21
  GDBSTUB=${srcdir}/${with_multisrctop}../../gdb/m32r-stub.c
22
else
23
  GDBSTUB=
24
fi
25
AC_SUBST(GDBSTUB)
26
 
27
AC_CANONICAL_SYSTEM
28
AC_ARG_PROGRAM
29
 
30
AC_PROG_INSTALL
31
 
32
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
33
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
34
# are probably using a cross compiler, which will not be able to fully
35
# link an executable.  This should really be fixed in autoconf
36
# itself.
37
 
38
AC_DEFUN(LIB_AC_PROG_CC,
39
[AC_BEFORE([$0], [AC_PROG_CPP])dnl
40
AC_CHECK_PROG(CC, gcc, gcc)
41
if test -z "$CC"; then
42
  AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
43
  test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
44
fi
45
 
46
AC_PROG_CC_GNU
47
 
48
if test $ac_cv_prog_gcc = yes; then
49
  GCC=yes
50
dnl Check whether -g works, even if CFLAGS is set, in case the package
51
dnl plays around with CFLAGS (such as to build both debugging and
52
dnl normal versions of a library), tasteless as that idea is.
53
  ac_test_CFLAGS="${CFLAGS+set}"
54
  ac_save_CFLAGS="$CFLAGS"
55
  CFLAGS=
56
  AC_PROG_CC_G
57
  if test "$ac_test_CFLAGS" = set; then
58
    CFLAGS="$ac_save_CFLAGS"
59
  elif test $ac_cv_prog_cc_g = yes; then
60
    CFLAGS="-g -O2"
61
  else
62
    CFLAGS="-O2"
63
  fi
64
else
65
  GCC=
66
  test "${CFLAGS+set}" = set || CFLAGS="-g"
67
fi
68
])
69
 
70
LIB_AC_PROG_CC
71
AS=${AS-as}
72
AC_SUBST(AS)
73
AR=${AR-ar}
74
AC_SUBST(AR)
75
LD=${LD-ld}
76
AC_SUBST(LD)
77
AC_PROG_RANLIB
78
 
79
host_makefile_frag=${srcdir}/../config/default.mh
80
 
81
dnl We have to assign the same value to other variables because autoconf
82
dnl doesn't provide a mechanism to substitute a replacement keyword with
83
dnl arbitrary data or pathnames.
84
dnl
85
host_makefile_frag_path=$host_makefile_frag
86
AC_SUBST(host_makefile_frag_path)
87
AC_SUBST_FILE(host_makefile_frag)
88
 
89
AC_OUTPUT(Makefile,
90
. ${libgloss_topdir}/config-ml.in,
91
srcdir=${srcdir}
92
target=${target}
93
ac_configure_args="${ac_configure_args} --enable-multilib"
94
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
95
libgloss_topdir=${libgloss_topdir}
96
)

powered by: WebSVN 2.1.0

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