From: Alexandre Oliva Date: Sun, 20 Jun 1999 09:07:22 +0000 (+0000) Subject: * ltconfig.in: Use sed '$q' instead of sed "" for copying ltmain, X-Git-Tag: release-1-3b~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fea7159813b2c04331b40782a37f65fe21267d9a;p=thirdparty%2Flibtool.git * ltconfig.in: Use sed '$q' instead of sed "" for copying ltmain, just in case some sed does not support an empty command. --- diff --git a/ChangeLog b/ChangeLog index 6241cd1e0..43cf9765b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-06-20 Alexandre Oliva + * ltconfig.in: Use sed '$q' instead of sed "" for copying ltmain, + just in case some sed does not support an empty command. + * ltconfig.in (link_static_flag, ac_cv_prog_cc_static): Use the latter in the test. diff --git a/ltconfig.in b/ltconfig.in index 7d937f2b3..57ed3ac00 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -3020,7 +3020,11 @@ EOF esac # Append the ltmain.sh script. - sed -e "" "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1) + sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1) + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? chmod +x "$ofile" ;;