~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/link.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# link.m4 serial 7
2
 
dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
 
1
# link.m4 serial 8
 
2
dnl Copyright (C) 2009-2012 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.
7
7
AC_DEFUN([gl_FUNC_LINK],
8
8
[
9
9
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
 
10
  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
10
11
  AC_CHECK_FUNCS_ONCE([link])
11
12
  if test $ac_cv_func_link = no; then
12
13
    HAVE_LINK=0
36
37
             return result;
37
38
           ]])],
38
39
         [gl_cv_func_link_works=yes], [gl_cv_func_link_works=no],
39
 
         [gl_cv_func_link_works="guessing no"])
 
40
         [case "$host_os" in
 
41
                    # Guess yes on glibc systems.
 
42
            *-gnu*) gl_cv_func_link_works="guessing yes" ;;
 
43
                    # If we don't know, assume the worst.
 
44
            *)      gl_cv_func_link_works="guessing no" ;;
 
45
          esac
 
46
         ])
40
47
       rm -f conftest.a conftest.b conftest.lnk])
41
 
    if test "$gl_cv_func_link_works" != yes; then
42
 
      REPLACE_LINK=1
43
 
    fi
 
48
    case "$gl_cv_func_link_works" in
 
49
      *yes) ;;
 
50
      *)
 
51
        REPLACE_LINK=1
 
52
        ;;
 
53
    esac
44
54
  fi
45
55
])