From: Gary V. Vaughan Date: Fri, 26 Feb 1999 16:17:43 +0000 (+0000) Subject: * ltconfig.in (sub_uncdrive): removed. This won't work with X-Git-Tag: release-1-2f~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=697d6837c5854fd2a09f9f04716f5ace87dfc1b6;p=thirdparty%2Flibtool.git * ltconfig.in (sub_uncdrive): removed. This won't work with the next version of cygwin. (sub_uncdir): removed. We use :/path/to/executable now. * libtool.m4 (AC_PROG_LD): removed sub_uncdrive and sub_uncdir. --- diff --git a/ChangeLog b/ChangeLog index 8d0cd05b2..0dc8c41c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-02-26 Gary V. Vaughan + + * ltconfig.in (sub_uncdrive): removed. This won't work with + the next version of cygwin. + (sub_uncdir): removed. We use :/path/to/executable now. + * libtool.m4 (AC_PROG_LD): removed sub_uncdrive and sub_uncdir. + 1999-02-25 Thomas Tanner * TODO: added items for next alpha release, ILD etc. diff --git a/libtool.m4 b/libtool.m4 index ec4f032e8..4fc1e1c99 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -237,47 +237,15 @@ if test "$ac_cv_prog_gcc" = yes; then case "$ac_prog" in # Accept absolute paths. changequote(,)dnl - /* | [A-Za-z]:/*) - # Canonicalize the path of ld + /* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' - sub_uncdrive='s%^\([A-Za-z]\):/%//\1/%' changequote([,])dnl - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - case "$host_os" in - cygwin*) - # Convert to a UNC path for cygwin - test -z "$LD" && LD=`echo X$ac_prog | sed -e "1s/^X//" -e "$sub_uncdrive"` - ;; - *) - test -z "$LD" && LD="$ac_prog" - ;; - esac - ;; - ## - ## FIXME: The code fails later on if we try to use an $LD with - ## '\\' path separators. - ## -changequote(,)dnl - [A-Za-z]:[\\]*) # Canonicalize the path of ld - re_direlt='\\[^\\][^\\]*\\\.\.\(\\\)' - sub_uncdrive='s%^\([A-Za-z]\):\\%//\1/%' -changequote([,])dnl - sub_uncdir='s%\\%/%g' + 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%\1%"` + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done - case "$host_os" in - cygwin*) - # Convert to a UNC path for cygwin - test -z "$LD" && LD=`echo X$ac_prog | sed -e 's%^X%%' -e "$sub_uncdrive" -e "$sub_uncdir"` - ;; - *) - test -z "$LD" && LD="$ac_prog" - ;; - esac + test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. diff --git a/ltconfig.in b/ltconfig.in index 7e734fbe6..5e3449555 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -907,44 +907,14 @@ if test -z "$LD"; then ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. - /* | [A-Za-z]:/*) + /* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' - sub_uncdrive='s%^\([A-Za-z]\):/%//\1/%' # Canonicalize the path 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 - case "$host_os" in - cygwin*) - # Convert to a UNC path for cygwin - test -z "$LD" && LD=`echo X$ac_prog | $Xsed -e "$sub_uncdrive"` - ;; - *) - test -z "$LD" && LD="$ac_prog" - ;; - esac - ;; - ## - ## FIXME: The code fails later on if we try to use an $LD with - ## '\\' path separators. - ## - [A-Za-z]:[\\]*) - re_direlt='\\[^\\][^\\]*\\\.\.\(\\\)' - sub_uncdrive='s%^\([A-Za-z]\):\\%//\1/%' - sub_uncdir='s%\\%/%g' - # Canonicalize the path of ld - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%\1%"` - done - case "$host_os" in - cygwin*) - # Convert to a UNC path for cygwin - test -z "$LD" && LD=`echo X$ac_prog | $Xsed -e "$sub_uncdrive" -e "$sub_uncdir"` - ;; - *) - test -z "$LD" && LD="$ac_prog" - ;; - esac + test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we are not using GCC.