~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/config/largefile.m4

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This macro wraps AC_SYS_LARGEFILE with one exception for Solaris.
 
2
# PR 9992/binutils: We have to replicate everywhere the behaviour of
 
3
# bfd's configure script so that all the directories agree on the size
 
4
# of structures used to describe files.
 
5
 
 
6
AC_DEFUN([ACX_LARGEFILE],[dnl
 
7
 
 
8
# The tests for host and target for $enable_largefile require
 
9
# canonical names.
 
10
AC_REQUIRE([AC_CANONICAL_HOST])
 
11
AC_REQUIRE([AC_CANONICAL_TARGET])
 
12
 
 
13
# As the $enable_largefile decision depends on --enable-plugins we must set it
 
14
# even in directories otherwise not depending on the $plugins option.
 
15
 
 
16
AC_PLUGINS
 
17
 
 
18
case "${host}" in
 
19
changequote(,)dnl
 
20
  sparc-*-solaris*|i[3-7]86-*-solaris*)
 
21
changequote([,])dnl
 
22
    # On native 32bit sparc and ia32 solaris, large-file and procfs support
 
23
    # are mutually exclusive; and without procfs support, the bfd/ elf module
 
24
    # cannot provide certain routines such as elfcore_write_prpsinfo
 
25
    # or elfcore_write_prstatus.  So unless the user explicitly requested
 
26
    # large-file support through the --enable-largefile switch, disable
 
27
    # large-file support in favor of procfs support.
 
28
    test "${target}" = "${host}" -a "x$plugins" = xno \
 
29
      && : ${enable_largefile="no"}
 
30
    ;;
 
31
esac
 
32
 
 
33
AC_SYS_LARGEFILE
 
34
])