1999-10-28 Olly Betts <olly@muscat.co.uk>
+ * ltconfig.in (opt_cr): Handle crlf sequences output by the
+ mingw toolchain.
+
* libtool.m4: Third time lucky, with Tor's patch.
1999-10-19 Tor Lillqvist <tml@iki.fi>
;;
esac
+# Handle CRLF in mingw too chain
+opt_cr=
+case "$host_os" in
+mingw*)
+ opt_cr=`echo 'x?' | tr x '\015'` # option cr in regexp
+ ;;
+esac
+
# If we're using GNU nm, then use its standard symbol codes.
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
symcode='[ABCDGISTW]'
for ac_symprfx in "" "_"; do
# Write the raw and C identifiers.
- global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$/$symxfrm/p'"
+global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
# Check to see that the pipe works correctly.
pipe_works=no