X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fconfigure.m4;h=b3734852a2c9cbc5d41a354cde763a99cd62d460;hb=f7e97284cbbab098cf3bf99976ec8af3146df8d3;hp=0aea284b018c2e7b898b230286d9a78ecf344fa9;hpb=62c0de61f76503b89cb471d4e10f2fd3e77ad176;p=lyx.git diff --git a/lib/configure.m4 b/lib/configure.m4 index 0aea284b01..b3734852a2 100644 --- a/lib/configure.m4 +++ b/lib/configure.m4 @@ -463,16 +463,16 @@ changequote(,)dnl b :match -# Remove the \DeclareFOOClass macro and add the correct boolean -# at the end of the line telling whether the class is +# Remove the \DeclareFOOClass macro and add the correct boolean +# at the end of the line telling whether the class is # available s/^.*\DeclareLaTeXClass *\(.*\)/\1 "false"/ s/^.*\DeclareDocBookClass *\(.*\)/\1 "'$bool_docbook'"/ s/^.*\DeclareLinuxDocClass *\(.*\)/\1 "'$bool_linuxdoc'"/ -# If the macro had an optional argument with several +# If the macro had an optional argument with several # parameters, only keep the first one s/\[\([^,]*\),[^]]*\]/[\1]/ -# If the macro did not have an optional argument, provide one +# If the macro did not have an optional argument, provide one # (equal to the class name) s/^{/['$class']{/ # Remove brackets and replace with correctly quoted entries @@ -552,6 +552,14 @@ changequote(,)dnl echo "creating doc/LaTeXConfig.lyx" echo "s/@chk_linuxdoc@/$chk_linuxdoc/g" >> chkconfig.sed echo "s/@chk_docbook@/$chk_docbook/g" >> chkconfig.sed + +if test `uname -s | grep 'MINGW'` ; then + # Before running chkconfig.sed, remove the trailing '\r' + # characters that can bugger up various versions of sed. + tr -d '\r' < chkconfig.sed > chkconfig2.sed + mv -f chkconfig2.sed chkconfig.sed +fi + sed -f chkconfig.sed "${srcdir}"/doc/LaTeXConfig.lyx.in >doc/LaTeXConfig.lyx ### Let's check whether spaces are allowed in TeX file names @@ -580,9 +588,9 @@ cat >$outfile <$outfile <