just in case some sed does not support an empty command.
1999-06-20 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * 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.
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"
;;