X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fconfigure.m4;h=f69946572154a5640906d805a451689c87c2b096;hb=2312ee83b1d81588586baec9331e09491c24f649;hp=35bd894fe5cbba71bcba5f86fa5146fdef50a7d8;hpb=492182feae223b5efe9cbe13d4ec5a5f08ab1a61;p=lyx.git diff --git a/lib/configure.m4 b/lib/configure.m4 index 35bd894fe5..f699465721 100644 --- a/lib/configure.m4 +++ b/lib/configure.m4 @@ -164,11 +164,12 @@ if test ! -r ${srcdir}/chkconfig.ltx ; then fi #### Adjust PATH for Win32 (Cygwin) -if test "x$OSTYPE" = xcygwin; then - echo "configure: cygwin detected; path correction" - srcdir=`cygpath -w "${srcdir}" | tr '\\\\' /` - echo "srcdir=${srcdir}" -fi +case `uname -s` in + CYGWIN*) + echo "configure: cygwin detected; path correction" + srcdir=`cygpath -w "${srcdir}" | tr '\\\\' /` + echo "srcdir=${srcdir}" ;; +esac #### Create the build directories if necessary for dir in bind clipart doc examples help images kbd layouts reLyX \ @@ -252,14 +253,14 @@ SEARCH_PROG([for a PDF preview],PDF_VIEWER,acroread gv ghostview xpdf) SEARCH_PROG([for a DVI previewer],DVI_VIEWER, xdvi windvi yap) # Search something to preview html -SEARCH_PROG([for a HTML previewer],HTML_VIEWER, netscape) +SEARCH_PROG([for a HTML previewer],HTML_VIEWER, "mozilla file://\$\$p\$\$i" netscape) # Search for a program to preview latex code SEARCH_PROG([for a LaTeX preview],LATEX_VIEWER, "xterm -e less") # Search for a program to convert ps to pdf SEARCH_PROG([for a PS to PDF converter],ps_to_pdf_command,ps2pdf) -test $ps_to_pdf_command = "ps2pdf" && ps_to_pdf_command="ps2pdf \$\$i" +test $ps_to_pdf_command = "ps2pdf" && ps_to_pdf_command="ps2pdf -dCompatibilityLevel=1.3 \$\$i" # Search for a program to convert dvi to ps SEARCH_PROG([for a DVI to PS converter],dvi_to_ps_command,dvips) @@ -269,9 +270,8 @@ test $dvi_to_ps_command = "dvips" && dvi_to_ps_command="dvips -o \$\$o \$\$i" SEARCH_PROG([for a DVI to PDF converter],dvi_to_pdf_command,dvipdfm) test $dvi_to_pdf_command = "dvipdfm" && dvi_to_pdf_command="dvipdfm \$\$i" -# Search for a program to convert previewlyx to eps -SEARCH_PROG([for a LyX preview converter],lyxpreview_to_xpm_command,lyxpreview2xpm.sh) -test $lyxpreview_to_xpm_command = "lyxpreview2xpm.sh" && lyxpreview_to_xpm_command="lyxpreview2xpm.sh \$\$i \$\$o" +# We have a script to convert previewlyx to ppm +lyxpreview_to_bitmap_command="lyxpreview2bitmap.sh" # Search a *roff program (used to translate tables in ASCII export) LYXRC_PROG([for a *roff formatter], \ascii_roff_command, dnl @@ -285,6 +285,10 @@ LYXRC_PROG([for ChkTeX], \chktex_command,dnl # Search for a spellchecker LYXRC_PROG([for a spell-checker], \spell_command, ispell) +# Search for computer algebra systems +SEARCH_PROG([for Octave],OCTAVE,octave) +SEARCH_PROG([for Maple],MAPLE,maple) + dnl # Search a Fax handling program dnl SEARCH_PROG([for a fax driver], FAX, sendfax faxsend fax) dnl if test $FAX = sendfax ; then @@ -298,7 +302,8 @@ dnl fax_command="none" dnl fi # Search a GUI Fax program -SEARCH_PROG([for a fax program], fax_command, ksendfax) +SEARCH_PROG([for a fax program], fax_command, kdeprintfax ksendfax) +test $fax_command = "kdeprintfax" && fax_command="kdeprintfax \$\$i" test $fax_command = "ksendfax" && fax_command="ksendfax \$\$i" # Search for LinuxDoc support @@ -435,7 +440,9 @@ cat >$outfile <$outfile <$outfile < EPS/XPM converter], FIG2DEV, fig2dev) +if test "$FIG2DEV" = "fig2dev"; then +cat >>$outfile < PS converter], TIFF2PS, tiff2ps) if test "$TIFF2PS" = "tiff2ps"; then cat >>$outfile < PDF converter], EPSTOPDF, epstopdf) if test "$EPSTOPDF" = "epstopdf"; then cat >>$outfile < EPS/XPM converter], EPS2EPS, eps2eps) +if test "$EPS2EPS" = "eps2eps"; then +cat >>$outfile <