2 # This script is a hand-made configure script. It contains a lot of
3 # code stolen from GNU autoconf. I removed all the code that was not
4 # useful for configuring a LyX installation.
10 ####some configuration variables
15 #### Parse the command line
20 Usage: configure [options]
22 --help show this help lines
23 --keep-temps keep temporary files (for debug. purposes)
24 --without-latex-config do not run LaTeX to determine configuration
27 --without-latex-config)
28 lyx_check_config=no ;;
35 #### Checking for some echo oddities
36 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
37 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
38 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
49 #### I do not really know why this is useful, but we might as well keep it.
51 # Only set these to C if already set. These must not be set unconditionally
52 # because not all systems understand e.g. LANG=C (notably SCO).
53 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
54 # Non-C LC_CTYPE values break the ctype check.
55 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
56 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
57 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
58 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
61 #### Guess the directory in which configure is located.
63 srcdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
64 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
65 test "x$srcdir" = "x$ac_prog" && srcdir=.
66 if test ! -r ${srcdir}/chkconfig.ltx ; then
67 echo "configure: error: cannot find chkconfig.ltx script"
72 #### Create the build directories if necessary
73 for dir in bind clipart doc examples images kbd layouts reLyX \
74 scripts templates ui ; do
75 test ! -d $dir && mkdir $dir
79 #### Searching some useful programs
81 echo $ac_n "checking for a LaTeX2e program""... $ac_c"
82 echo "$ac_t""(latex latex2e)"
84 for ac_prog in latex latex2e
86 # Extract the first word of "$ac_prog", so it can be a program name with args.
87 set dummy $ac_prog ; ac_word=$2
88 if test -n "$ac_word"; then
89 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
90 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
91 for ac_dir in $PATH; do
92 test -z "$ac_dir" && ac_dir=.
93 if test -x $ac_dir/$ac_word; then
100 if test -n "$LATEX"; then
106 ## Check whether this is really LaTeX2e
108 cat >chklatex.ltx <<EOF
109 \\nonstopmode\\makeatletter
110 \\ifx\\undefined\\documentclass\\else
111 \\message{ThisIsLaTeX2e}
115 if eval ${LATEX} chklatex.ltx </dev/null 2>/dev/null \
116 | grep 'ThisIsLaTeX2e' >/dev/null; then
120 ac_result="not useable"
122 rm -f chklatex.ltx chklatex.log
123 echo "$ac_t""$ac_result"
124 test -n "$LATEX" && break
128 if test -z "$LATEX" ; then
133 if test x$lyx_check_config != x ; then
134 echo $ac_n "checking for the pdflatex program""... $ac_c"
135 echo "$ac_t""(pdflatex)"
137 for ac_prog in pdflatex
139 # Extract the first word of "$ac_prog", so it can be a program name with args.
140 set dummy $ac_prog ; ac_word=$2
141 if test -n "$ac_word"; then
142 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
144 for ac_dir in $PATH; do
145 test -z "$ac_dir" && ac_dir=.
146 if test -x $ac_dir/$ac_word; then
153 if test -n "$PDFLATEX"; then
159 ## Check whether this is really LaTeX2e
161 cat >chklatex.ltx <<EOF
162 \\nonstopmode\\makeatletter
163 \\ifx\\undefined\\documentclass\\else
164 \\message{ThisIsLaTeX2e}
168 if eval ${LATEX} chklatex.ltx </dev/null 2>/dev/null \
169 | grep 'ThisIsLaTeX2e' >/dev/null; then
173 ac_result="not useable"
175 rm -f chklatex.ltx chklatex.log
176 echo "$ac_t""$ac_result"
177 test -n "$PDFLATEX" && break
181 if test -z "$PDFLATEX" ; then
187 # Search for an installed reLyX or a ready-to-install one
189 PATH=${PATH}:./reLyX/
190 echo $ac_n "checking for reLyX LaTeX-to-LyX translator""... $ac_c"
191 echo "$ac_t""(reLyX)"
195 # Extract the first word of "$ac_prog", so it can be a program name with args.
196 set dummy $ac_prog ; ac_word=$2
197 if test -n "$ac_word"; then
198 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
200 for ac_dir in $PATH; do
201 test -z "$ac_dir" && ac_dir=.
202 if test -x $ac_dir/$ac_word; then
209 if test -n "$RELYX"; then
215 echo "$ac_t""$ac_result"
216 test -n "$RELYX" && break
220 if test -z "$RELYX" ; then
226 # Search something to process a literate document
227 echo $ac_n "checking for a Literate programming processor""... $ac_c"
228 echo "$ac_t""("noweave -delay -index")"
230 for ac_prog in "noweave -delay -index"
232 # Extract the first word of "$ac_prog", so it can be a program name with args.
233 set dummy $ac_prog ; ac_word=$2
234 if test -n "$ac_word"; then
235 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
237 for ac_dir in $PATH; do
238 test -z "$ac_dir" && ac_dir=.
239 if test -x $ac_dir/$ac_word; then
246 if test -n "$LITERATE"; then
252 echo "$ac_t""$ac_result"
253 test -n "$LITERATE" && break
257 if test -z "$LITERATE" ; then
261 if test "$LITERATE" = "none"; then LITERATE_EXT="none"; else LITERATE_EXT=".nw"; fi
263 # Search for a Postscript interpreter
264 echo $ac_n "checking for a Postscript interpreter""... $ac_c"
269 # Extract the first word of "$ac_prog", so it can be a program name with args.
270 set dummy $ac_prog ; ac_word=$2
271 if test -n "$ac_word"; then
272 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
274 for ac_dir in $PATH; do
275 test -z "$ac_dir" && ac_dir=.
276 if test -x $ac_dir/$ac_word; then
283 if test -n "$GS"; then
289 echo "$ac_t""$ac_result"
290 test -n "$GS" && break
294 if test -z "$GS" ; then
299 # Search something to preview postscript
300 echo $ac_n "checking for a Postscript previewer""... $ac_c"
301 echo "$ac_t""(gv ghostview)"
303 for ac_prog in gv ghostview
305 # Extract the first word of "$ac_prog", so it can be a program name with args.
306 set dummy $ac_prog ; ac_word=$2
307 if test -n "$ac_word"; then
308 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
310 for ac_dir in $PATH; do
311 test -z "$ac_dir" && ac_dir=.
312 if test -x $ac_dir/$ac_word; then
319 if test -n "$GHOSTVIEW"; then
325 echo "$ac_t""$ac_result"
326 test -n "$GHOSTVIEW" && break
330 if test -z "$GHOSTVIEW" ; then
335 # Search for a program to preview pdf
336 echo $ac_n "checking for a PDF preview""... $ac_c"
337 echo "$ac_t""(xpdf acroread gv ghostview)"
339 for ac_prog in xpdf acroread gv ghostview
341 # Extract the first word of "$ac_prog", so it can be a program name with args.
342 set dummy $ac_prog ; ac_word=$2
343 if test -n "$ac_word"; then
344 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
346 for ac_dir in $PATH; do
347 test -z "$ac_dir" && ac_dir=.
348 if test -x $ac_dir/$ac_word; then
349 PDF_VIEWER="$ac_prog"
355 if test -n "$PDF_VIEWER"; then
361 echo "$ac_t""$ac_result"
362 test -n "$PDF_VIEWER" && break
366 if test -z "$PDF_VIEWER" ; then
371 # Search something to preview dvi
372 echo $ac_n "checking for a DVI previewer""... $ac_c"
377 # Extract the first word of "$ac_prog", so it can be a program name with args.
378 set dummy $ac_prog ; ac_word=$2
379 if test -n "$ac_word"; then
380 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
382 for ac_dir in $PATH; do
383 test -z "$ac_dir" && ac_dir=.
384 if test -x $ac_dir/$ac_word; then
385 DVI_VIEWER="$ac_prog"
391 if test -n "$DVI_VIEWER"; then
397 echo "$ac_t""$ac_result"
398 test -n "$DVI_VIEWER" && break
402 if test -z "$DVI_VIEWER" ; then
407 # Search something to preview html
408 echo $ac_n "checking for a HTML previewer""... $ac_c"
409 echo "$ac_t""(netscape)"
411 for ac_prog in netscape
413 # Extract the first word of "$ac_prog", so it can be a program name with args.
414 set dummy $ac_prog ; ac_word=$2
415 if test -n "$ac_word"; then
416 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
418 for ac_dir in $PATH; do
419 test -z "$ac_dir" && ac_dir=.
420 if test -x $ac_dir/$ac_word; then
421 HTML_VIEWER="$ac_prog"
427 if test -n "$HTML_VIEWER"; then
433 echo "$ac_t""$ac_result"
434 test -n "$HTML_VIEWER" && break
438 if test -z "$HTML_VIEWER" ; then
443 # Search for a program to convert ps to pdf
444 echo $ac_n "checking for a PS to PDF converter""... $ac_c"
445 echo "$ac_t""(ps2pdf)"
447 for ac_prog in ps2pdf
449 # Extract the first word of "$ac_prog", so it can be a program name with args.
450 set dummy $ac_prog ; ac_word=$2
451 if test -n "$ac_word"; then
452 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
454 for ac_dir in $PATH; do
455 test -z "$ac_dir" && ac_dir=.
456 if test -x $ac_dir/$ac_word; then
457 ps_to_pdf_command="$ac_prog"
463 if test -n "$ps_to_pdf_command"; then
469 echo "$ac_t""$ac_result"
470 test -n "$ps_to_pdf_command" && break
474 if test -z "$ps_to_pdf_command" ; then
475 ps_to_pdf_command=none
478 test $ps_to_pdf_command = "ps2pdf" && ps_to_pdf_command="ps2pdf \$\$FName"
480 # Search for a program to convert dvi to ps
481 echo $ac_n "checking for a DVI to PS converter""... $ac_c"
482 echo "$ac_t""(dvips)"
486 # Extract the first word of "$ac_prog", so it can be a program name with args.
487 set dummy $ac_prog ; ac_word=$2
488 if test -n "$ac_word"; then
489 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
491 for ac_dir in $PATH; do
492 test -z "$ac_dir" && ac_dir=.
493 if test -x $ac_dir/$ac_word; then
494 dvi_to_ps_command="$ac_prog"
500 if test -n "$dvi_to_ps_command"; then
506 echo "$ac_t""$ac_result"
507 test -n "$dvi_to_ps_command" && break
511 if test -z "$dvi_to_ps_command" ; then
512 dvi_to_ps_command=none
515 test $dvi_to_ps_command = "dvips" && dvi_to_ps_command="dvips -o \$\$OutName \$\$FName"
517 # Search a *roff program (used to translate tables in ASCII export)
518 echo $ac_n "checking for a *roff formatter""... $ac_c"
519 echo "$ac_t""(groff nroff)"
521 for ac_prog in groff nroff
523 # Extract the first word of "$ac_prog", so it can be a program name with args.
524 set dummy $ac_prog ; ac_word=$2
525 if test -n "$ac_word"; then
526 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
528 for ac_dir in $PATH; do
529 test -z "$ac_dir" && ac_dir=.
530 if test -x $ac_dir/$ac_word; then
537 if test -n "$ROFF"; then
543 echo "$ac_t""$ac_result"
544 test -n "$ROFF" && break
548 if test -z "$ROFF" ; then
552 ascii_roff_command=$ROFF
553 test $ROFF = "groff" && ascii_roff_command="groff -t -Tlatin1 \$\$FName"
554 test $ROFF = "nroff" && ascii_roff_command="tbl \$\$FName | nroff"
556 # Search the ChkTeX program
557 echo $ac_n "checking for ChkTeX""... $ac_c"
558 echo "$ac_t""(chktex)"
560 for ac_prog in chktex
562 # Extract the first word of "$ac_prog", so it can be a program name with args.
563 set dummy $ac_prog ; ac_word=$2
564 if test -n "$ac_word"; then
565 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
567 for ac_dir in $PATH; do
568 test -z "$ac_dir" && ac_dir=.
569 if test -x $ac_dir/$ac_word; then
576 if test -n "$CHKTEX"; then
582 echo "$ac_t""$ac_result"
583 test -n "$CHKTEX" && break
587 if test -z "$CHKTEX" ; then
591 chktex_command=$CHKTEX
592 test $CHKTEX = "chktex" && chktex_command="$CHKTEX -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"
594 # Search for a spellchecker
595 echo $ac_n "checking for a spell-checker""... $ac_c"
596 echo "$ac_t""(ispell)"
598 for ac_prog in ispell
600 # Extract the first word of "$ac_prog", so it can be a program name with args.
601 set dummy $ac_prog ; ac_word=$2
602 if test -n "$ac_word"; then
603 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
605 for ac_dir in $PATH; do
606 test -z "$ac_dir" && ac_dir=.
607 if test -x $ac_dir/$ac_word; then
614 if test -n "$SPELL"; then
620 echo "$ac_t""$ac_result"
621 test -n "$SPELL" && break
625 if test -z "$SPELL" ; then
630 # Search a Fax handling program
631 echo $ac_n "checking for a fax driver""... $ac_c"
632 echo "$ac_t""(sendfax faxsend fax)"
634 for ac_prog in sendfax faxsend fax
636 # Extract the first word of "$ac_prog", so it can be a program name with args.
637 set dummy $ac_prog ; ac_word=$2
638 if test -n "$ac_word"; then
639 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
641 for ac_dir in $PATH; do
642 test -z "$ac_dir" && ac_dir=.
643 if test -x $ac_dir/$ac_word; then
650 if test -n "$FAX"; then
656 echo "$ac_t""$ac_result"
657 test -n "$FAX" && break
661 if test -z "$FAX" ; then
665 if test $FAX = sendfax ; then
666 fax_command="sendfax -n -h '\$\$Host' -c '\$\$Comment' -x '\$\$Enterprise' -d '\$\$Name'@'\$\$Phone' '\$\$FName'"
667 elif test $FAX = faxsend ; then
668 fax_command="faxsend '\$\$Phone' '\$\$FName'"
669 elif test $FAX = fax ; then
670 fax_command="fax send '\$\$Phone' '\$\$FName'"
675 # Search for LinuxDoc support
676 echo $ac_n "checking for SGML-tools 1.x (LinuxDoc)""... $ac_c"
677 echo "$ac_t""(sgml2lyx)"
679 for ac_prog in sgml2lyx
681 # Extract the first word of "$ac_prog", so it can be a program name with args.
682 set dummy $ac_prog ; ac_word=$2
683 if test -n "$ac_word"; then
684 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
686 for ac_dir in $PATH; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -x $ac_dir/$ac_word; then
695 if test -n "$LINUXDOC"; then
701 echo "$ac_t""$ac_result"
702 test -n "$LINUXDOC" && break
706 if test -z "$LINUXDOC" ; then
711 if test $LINUXDOC != none; then
713 linuxdoc_cmd="\\def\\haslinuxdoc{yes}"
718 linuxdoc_to_latex_command="sgml2latex \$\$FName"
719 linuxdoc_to_html_command="sgml2html \$\$FName"
720 linuxdoc_to_lyx_command="sgml2lyx";;
722 linuxdoc_to_latex_command="none"
723 linuxdoc_to_html_command="none"
724 linuxdoc_to_lyx_command="none";;
727 # Search for DocBook support
728 echo $ac_n "checking for SGML-tools 2.x (DocBook) or db2x scripts""... $ac_c"
729 echo "$ac_t""(sgmltools db2dvi)"
731 for ac_prog in sgmltools db2dvi
733 # Extract the first word of "$ac_prog", so it can be a program name with args.
734 set dummy $ac_prog ; ac_word=$2
735 if test -n "$ac_word"; then
736 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
738 for ac_dir in $PATH; do
739 test -z "$ac_dir" && ac_dir=.
740 if test -x $ac_dir/$ac_word; then
747 if test -n "$DOCBOOK"; then
753 echo "$ac_t""$ac_result"
754 test -n "$DOCBOOK" && break
758 if test -z "$DOCBOOK" ; then
763 if test $DOCBOOK != none; then
765 docbook_cmd="\\def\\hasdocbook{yes}"
770 docbook_to_dvi_command="sgmltools -b dvi \$\$FName"
771 docbook_to_html_command="sgmltools -b html \$\$FName";;
773 docbook_to_dvi_command="db2dvi \$\$FName"
774 docbook_to_html_command="db2html \$\$FName";;
776 docbook_to_dvi_command="none"
777 docbook_to_html_command="none";;
780 # Search for a spool command
781 echo $ac_n "checking for a spool command""... $ac_c"
782 echo "$ac_t""(lp lpr)"
784 for ac_prog in lp lpr
786 # Extract the first word of "$ac_prog", so it can be a program name with args.
787 set dummy $ac_prog ; ac_word=$2
788 if test -n "$ac_word"; then
789 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
791 for ac_dir in $PATH; do
792 test -z "$ac_dir" && ac_dir=.
793 if test -x $ac_dir/$ac_word; then
800 if test -n "$LPR"; then
806 echo "$ac_t""$ac_result"
807 test -n "$LPR" && break
811 if test -z "$LPR" ; then
816 lp) print_spool_command=lp
817 print_spool_printerprefix="-d ";;
818 lpr) print_spool_command=lpr
819 print_spool_printerprefix="-P";;
820 *) :;; # leave to empty values
823 # Search for a latex to html converter
824 echo $ac_n "checking for an HTML converter""... $ac_c"
825 echo "$ac_t""(tth latex2html hevea)"
827 for ac_prog in tth latex2html hevea
829 # Extract the first word of "$ac_prog", so it can be a program name with args.
830 set dummy $ac_prog ; ac_word=$2
831 if test -n "$ac_word"; then
832 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
834 for ac_dir in $PATH; do
835 test -z "$ac_dir" && ac_dir=.
836 if test -x $ac_dir/$ac_word; then
843 if test -n "$TOHTML"; then
849 echo "$ac_t""$ac_result"
850 test -n "$TOHTML" && break
854 if test -z "$TOHTML" ; then
858 latex_to_html_command = $TOHTML
860 tth) latex_to_html_command="tth -t -e2 -L\$\$BaseName < \$\$FName > \$\$OutName";;
861 latex2html) latex_to_html_command="latex2html -no_subdir -split 0 -show_section_numbers \$\$FName";;
862 hevea) latex_to_html_command="hevea -s \$\$FName";;
865 #### Explore the LaTeX configuration
866 echo $ac_n "checking LaTeX configuration""... $ac_c"
867 # First, remove the files that we want to re-create
868 rm -f textclass.lst packages.lst chkconfig.sed
869 if test ${lyx_check_config} = no ; then
870 echo "$ac_t""default values"
873 rm -f wrap_chkconfig.ltx chkconfig.vars chkconfig.classes chklayouts.tex
874 cat >wrap_chkconfig.ltx <<EOF
875 \\newcommand\\srcdir{${srcdir}}
878 \\input{${srcdir}/chkconfig.ltx}
880 ## Construct the list of classes to test for.
881 # build the list of available layout files and convert it to commands
883 for file in ./layouts/*.layout ${srcdir}/layouts/*.layout ; do
886 *) test -r "$file" && echo $file ;;
888 done | sed -e 's%^.*layouts/\(.*\)\.layout$%\\TestDocClass{\1}%'\
890 eval ${LATEX} wrap_chkconfig.ltx 2>/dev/null | grep '^\+'
891 eval `cat chkconfig.vars | sed 's/-/_/g'`
894 # Do we have all the files we need? Useful if latex did not run
895 echo creating textclass.lst
896 # if textclass.lst does not exist (because LaTeX did not run),
897 # then provide a standard version.
898 if test ! -f textclass.lst ; then
899 cat >textclass.lst <<EOF
900 # This file declares layouts and their associated definition files
901 # (include dir. relative to the place where this file is).
902 # It contains only default values, since chkconfig.ltx could not be run
903 # for some reason. Run ./configure if you need to update it after a
904 # configuration change.
905 article article article
908 linuxdoc linuxdoc linuxdoc
913 # if chkconfig.sed does not exist (because LaTeX did not run),
914 # then provide a standard version.
915 if test ! -f chkconfig.sed ; then
916 cat >chkconfig.sed <<EOF
921 echo creating packages.lst
922 # if packages.lst does not exist (because LaTeX did not run),
923 # then provide a standard version.
924 if test ! -f packages.lst ; then
925 cat >packages.lst <<EOF
926 # This file should contain the list of LaTeX packages that have been
927 # recognized by LyX. Unfortunately, since configure could not find
928 # your LaTeX2e program, the tests have not been run. Run ./configure
929 # if you need to update it after a configuration change.
934 echo creating doc/LaTeXConfig.lyx
935 echo "s/@chk_linuxdoc@/$chk_linuxdoc/g" >> chkconfig.sed
936 echo "s/@chk_docbook@/$chk_docbook/g" >> chkconfig.sed
937 sed -f chkconfig.sed ${srcdir}/doc/LaTeXConfig.lyx.in >doc/LaTeXConfig.lyx
939 echo creating lyxrc.defaults
941 cat >lyxrc.defaults <<EOF
942 # This file has been automatically generated by LyX' lib/configure
943 # script. It contains default settings that have been determined by
944 # examining your system. PLEASE DO NOT MODIFY ANYTHING HERE! If you
945 # want to customize LyX, make a copy of the file LYXDIR/lyxrc as
946 # ~/.lyx/lyxrc and edit this file instead. Any setting in lyxrc will
947 # override the values given here.
948 \\converter tex dvi "$LATEX" ""
949 \\converter tex pdf "$PDFLATEX" ""
950 \\converter dvi ps "$dvi_to_ps_command" ""
951 \\converter ps pdf "$ps_to_pdf_command" ""
952 \\converter sgml tex "$linuxdoc_to_latex_command" ""
953 \\converter sgml html "$linuxdoc_to_html_command" ""
954 \\converter docbook dvi "$docbook_to_dvi_command" ""
955 \\converter docbook html "$docbook_to_html_command" ""
956 \\converter tex html "$latex_to_html_command"
959 \\viewer dvi "$DVI_VIEWER"
960 \\viewer html "$HTML_VIEWER"
961 \\viewer pdf "$PDF_VIEWER"
962 \\viewer ps "$GHOSTVIEW -swap"
963 \\viewer pspic "$GHOSTVIEW"
965 \\relyx_command "$RELYX"
966 \\linuxdoc_to_lyx_command "$linuxdoc_to_lyx_command"
967 \\literate_command "$LITERATE"
968 \\literate_extension "$LITERATE_EXT"
970 \\ascii_roff_command "$ascii_roff_command"
971 \\chktex_command "$chktex_command"
972 \\spell_command "$SPELL"
973 \\fax_command "$fax_command"
974 \\print_spool_command "$print_spool_command"
975 \\print_spool_printerprefix "$print_spool_printerprefix"
976 \\font_encoding "$chk_fontenc"
979 # Remove superfluous files if we are not writing in the main lib
981 for file in lyxrc.defaults textclass.lst packages.lst \
982 doc/LaTeXConfig.lyx ; do
983 # we rename the file first, so that we avoid comparing a file with itself
985 if test -r $srcdir/$file && diff $file.new $srcdir/$file >/dev/null 2>/dev/null ;
987 echo "removing $file, which is identical to the system global version"
996 if test $lyx_keep_temps = no ; then
997 rm -f chkconfig.sed chkconfig.vars wrap_chkconfig.* chklayouts.tex \