~drizzle-trunk/drizzle/7.2

« back to all changes in this revision

Viewing changes to m4/lib-ld.m4

  • Committer: Continuous Integration
  • Date: 2013-04-27 20:03:58 UTC
  • mfrom: (2633.1.11 drizzle-7.2)
  • Revision ID: ci@drizzle.org-20130427200358-77r6140iqb0orc1o
Merge lp:~brianaker/drizzle/update-bootstrap-april-20113/ Build: jenkins-Drizzle-Builder-192

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# lib-ld.m4 serial 3 (gettext-0.13)
2
 
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
 
1
# lib-ld.m4 serial 4 (gettext-0.18)
 
2
dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
10
10
 
11
11
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
12
12
AC_DEFUN([AC_LIB_PROG_LD_GNU],
13
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
 
13
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
14
14
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
15
15
case `$LD -v 2>&1 </dev/null` in
16
16
*GNU* | *'with BFD'*)
23
23
 
24
24
dnl From libtool-1.4. Sets the variable LD.
25
25
AC_DEFUN([AC_LIB_PROG_LD],
26
 
[AC_ARG_WITH(gnu-ld,
 
26
[AC_ARG_WITH([gnu-ld],
27
27
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
28
28
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
29
29
AC_REQUIRE([AC_PROG_CC])dnl
59
59
      # Canonicalize the path of ld
60
60
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
61
61
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
62
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
62
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
63
63
      done
64
64
      test -z "$LD" && LD="$ac_prog"
65
65
      ;;
77
77
else
78
78
  AC_MSG_CHECKING([for non-GNU ld])
79
79
fi
80
 
AC_CACHE_VAL(acl_cv_path_LD,
 
80
AC_CACHE_VAL([acl_cv_path_LD],
81
81
[if test -z "$LD"; then
82
82
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
83
83
  for ac_dir in $PATH; do
89
89
      # Break only if it was the GNU/non-GNU ld that we prefer.
90
90
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
91
91
      *GNU* | *'with BFD'*)
92
 
        test "$with_gnu_ld" != no && break ;;
 
92
        test "$with_gnu_ld" != no && break ;;
93
93
      *)
94
 
        test "$with_gnu_ld" != yes && break ;;
 
94
        test "$with_gnu_ld" != yes && break ;;
95
95
      esac
96
96
    fi
97
97
  done
101
101
fi])
102
102
LD="$acl_cv_path_LD"
103
103
if test -n "$LD"; then
104
 
  AC_MSG_RESULT($LD)
 
104
  AC_MSG_RESULT([$LD])
105
105
else
106
 
  AC_MSG_RESULT(no)
 
106
  AC_MSG_RESULT([no])
107
107
fi
108
108
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
109
109
AC_LIB_PROG_LD_GNU