Lines Matching full:ld
1 # lib-ld.m4 serial 3 (gettext-0.13)
15 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
16 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
17 case `$LD -v 2>&1 </dev/null` in
26 dnl From libtool-1.4. Sets the variable LD.
28 [AC_ARG_WITH(gnu-ld,
29 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
46 ac_prog=ld
48 # Check if gcc -print-prog-name=ld gives a path.
49 AC_MSG_CHECKING([for ld used by GCC])
53 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
55 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
61 # Canonicalize the path of ld
66 test -z "$LD" && LD="$ac_prog"
70 ac_prog=ld
73 # If it is relative, then search for the first ld in PATH.
78 AC_MSG_CHECKING([for GNU ld])
80 AC_MSG_CHECKING([for non-GNU ld])
83 [if test -z "$LD"; then
89 # Check to see if the program is GNU ld. I'd rather use --version,
90 # but apparently some GNU ld's only accept -v.
91 # Break only if it was the GNU/non-GNU ld that we prefer.
102 acl_cv_path_LD="$LD" # Let the user override the test with a path.
104 LD="$acl_cv_path_LD"
105 if test -n "$LD"; then
106 AC_MSG_RESULT($LD)
110 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])