# lib-ld.m4 serial 6 dnl Copyright (C) 1996-2003, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid dnl collision with libtool.m4. dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], [# I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) acl_cv_prog_gnu_ld=yes ;; *) acl_cv_prog_gnu_ld=no ;; esac]) with_gnu_ld=$acl_cv_prog_gnu_ld ]) dnl From libtool-2.4. Sets the variable LD. AC_DEFUN([AC_LIB_PROG_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld [default=no]])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL([acl_cv_path_LD], [if test -z "$LD"; then acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$acl_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$acl_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT([$LD]) else AC_MSG_RESULT([no]) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ])
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
argz.m4 | File | 2.56 KB | 0644 |
|
bison-i18n.m4 | File | 1.88 KB | 0644 |
|
codeset.m4 | File | 842 B | 0644 |
|
extern-inline.m4 | File | 4.27 KB | 0644 |
|
fcntl-o.m4 | File | 4.56 KB | 0644 |
|
fontutil.m4 | File | 13.83 KB | 0644 |
|
freetype2.m4 | File | 6.18 KB | 0644 |
|
gettext.m4 | File | 15.49 KB | 0644 |
|
glibc2.m4 | File | 830 B | 0644 |
|
glibc21.m4 | File | 907 B | 0644 |
|
gpg-error.m4 | File | 3.52 KB | 0644 |
|
iconv.m4 | File | 9.06 KB | 0644 |
|
intdiv0.m4 | File | 2.35 KB | 0644 |
|
intl.m4 | File | 11.84 KB | 0644 |
|
intldir.m4 | File | 917 B | 0644 |
|
intlmacosx.m4 | File | 2.47 KB | 0644 |
|
intmax.m4 | File | 1.1 KB | 0644 |
|
inttypes-pri.m4 | File | 1.22 KB | 0644 |
|
inttypes_h.m4 | File | 1020 B | 0644 |
|
lcmessage.m4 | File | 1.33 KB | 0644 |
|
lib-ld.m4 | File | 3.6 KB | 0644 |
|
lib-link.m4 | File | 32.28 KB | 0644 |
|
lib-prefix.m4 | File | 8.27 KB | 0644 |
|
libgcrypt.m4 | File | 4.62 KB | 0644 |
|
libtool.m4 | File | 279.78 KB | 0644 |
|
libxml.m4 | File | 7.7 KB | 0644 |
|
libxslt.m4 | File | 7.93 KB | 0644 |
|
lock.m4 | File | 1.43 KB | 0644 |
|
longlong.m4 | File | 4.63 KB | 0644 |
|
ltdl.m4 | File | 26.42 KB | 0644 |
|
ltoptions.m4 | File | 12.06 KB | 0644 |
|
ltsugar.m4 | File | 4.27 KB | 0644 |
|
ltversion.m4 | File | 690 B | 0644 |
|
lt~obsolete.m4 | File | 5.98 KB | 0644 |
|
mysql.m4 | File | 4.53 KB | 0644 |
|
nls.m4 | File | 1.19 KB | 0644 |
|
pkg.m4 | File | 7.15 KB | 0644 |
|
po.m4 | File | 18.52 KB | 0644 |
|
printf-posix.m4 | File | 1.54 KB | 0644 |
|
progtest.m4 | File | 3.02 KB | 0644 |
|
size_max.m4 | File | 2.99 KB | 0644 |
|
stdint_h.m4 | File | 995 B | 0644 |
|
threadlib.m4 | File | 14.8 KB | 0644 |
|
uintmax_t.m4 | File | 1.09 KB | 0644 |
|
visibility.m4 | File | 3.27 KB | 0644 |
|
wchar_t.m4 | File | 818 B | 0644 |
|
wint_t.m4 | File | 1.03 KB | 0644 |
|
xsize.m4 | File | 406 B | 0644 |
|