~ubuntu-branches/ubuntu/lucid/mc/lucid

« back to all changes in this revision

Viewing changes to m4/lib-ld.m4

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Winnertz
  • Date: 2008-09-16 10:38:59 UTC
  • mfrom: (3.1.6 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080916103859-2uwn8w61xk5mbxxq
Tags: 2:4.6.2~git20080311-4
Corrected fix for odt2txt issue (Closes: #492019) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# lib-ld.m4 serial 1 (gettext-0.11)
2
 
dnl Copyright (C) 1996-2002 Free Software Foundation, Inc.
3
 
dnl This file is free software, distributed under the terms of the GNU
4
 
dnl General Public License.  As a special exception to the GNU General
5
 
dnl Public License, this file may be distributed as part of a program
6
 
dnl that contains a configuration script generated by Autoconf, under
7
 
dnl the same distribution terms as the rest of that program.
 
1
# lib-ld.m4 serial 3 (gettext-0.13)
 
2
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
 
3
dnl This file is free software; the Free Software Foundation
 
4
dnl gives unlimited permission to copy and/or distribute it,
 
5
dnl with or without modifications, as long as this notice is preserved.
8
6
 
9
7
dnl Subroutines of libtool.m4,
10
8
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
14
12
AC_DEFUN([AC_LIB_PROG_LD_GNU],
15
13
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
16
14
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
17
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
18
 
  acl_cv_prog_gnu_ld=yes
19
 
else
20
 
  acl_cv_prog_gnu_ld=no
21
 
fi])
 
15
case `$LD -v 2>&1 </dev/null` in
 
16
*GNU* | *'with BFD'*)
 
17
  acl_cv_prog_gnu_ld=yes ;;
 
18
*)
 
19
  acl_cv_prog_gnu_ld=no ;;
 
20
esac])
22
21
with_gnu_ld=$acl_cv_prog_gnu_ld
23
22
])
24
23
 
29
28
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
30
29
AC_REQUIRE([AC_PROG_CC])dnl
31
30
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
31
# Prepare PATH_SEPARATOR.
 
32
# The user is always right.
 
33
if test "${PATH_SEPARATOR+set}" != set; then
 
34
  echo "#! /bin/sh" >conf$$.sh
 
35
  echo  "exit 0"   >>conf$$.sh
 
36
  chmod +x conf$$.sh
 
37
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
38
    PATH_SEPARATOR=';'
 
39
  else
 
40
    PATH_SEPARATOR=:
 
41
  fi
 
42
  rm -f conf$$.sh
 
43
fi
32
44
ac_prog=ld
33
45
if test "$GCC" = yes; then
34
46
  # Check if gcc -print-prog-name=ld gives a path.
75
87
      # Check to see if the program is GNU ld.  I'd rather use --version,
76
88
      # but apparently some GNU ld's only accept -v.
77
89
      # Break only if it was the GNU/non-GNU ld that we prefer.
78
 
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
79
 
        test "$with_gnu_ld" != no && break
80
 
      else
81
 
        test "$with_gnu_ld" != yes && break
82
 
      fi
 
90
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
91
      *GNU* | *'with BFD'*)
 
92
        test "$with_gnu_ld" != no && break ;;
 
93
      *)
 
94
        test "$with_gnu_ld" != yes && break ;;
 
95
      esac
83
96
    fi
84
97
  done
85
98
  IFS="$ac_save_ifs"