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)"
230 for ac_prog in noweave
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 test $LITERATE = "noweave" && LITERATE="noweave -delay -index \$\$FName > \$\$OutName"
264 # Search for a Postscript interpreter
265 echo $ac_n "checking for a Postscript interpreter""... $ac_c"
270 # Extract the first word of "$ac_prog", so it can be a program name with args.
271 set dummy $ac_prog ; ac_word=$2
272 if test -n "$ac_word"; then
273 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
275 for ac_dir in $PATH; do
276 test -z "$ac_dir" && ac_dir=.
277 if test -x $ac_dir/$ac_word; then
284 if test -n "$GS"; then
290 echo "$ac_t""$ac_result"
291 test -n "$GS" && break
295 if test -z "$GS" ; then
300 # Search something to preview postscript
301 echo $ac_n "checking for a Postscript previewer""... $ac_c"
302 echo "$ac_t""(gv ghostview)"
304 for ac_prog in gv ghostview
306 # Extract the first word of "$ac_prog", so it can be a program name with args.
307 set dummy $ac_prog ; ac_word=$2
308 if test -n "$ac_word"; then
309 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
311 for ac_dir in $PATH; do
312 test -z "$ac_dir" && ac_dir=.
313 if test -x $ac_dir/$ac_word; then
320 if test -n "$GHOSTVIEW"; then
326 echo "$ac_t""$ac_result"
327 test -n "$GHOSTVIEW" && break
331 if test -z "$GHOSTVIEW" ; then
336 # Search for a program to preview pdf
337 echo $ac_n "checking for a PDF preview""... $ac_c"
338 echo "$ac_t""(xpdf acroread gv ghostview)"
340 for ac_prog in xpdf acroread gv ghostview
342 # Extract the first word of "$ac_prog", so it can be a program name with args.
343 set dummy $ac_prog ; ac_word=$2
344 if test -n "$ac_word"; then
345 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
347 for ac_dir in $PATH; do
348 test -z "$ac_dir" && ac_dir=.
349 if test -x $ac_dir/$ac_word; then
350 PDF_VIEWER="$ac_prog"
356 if test -n "$PDF_VIEWER"; then
362 echo "$ac_t""$ac_result"
363 test -n "$PDF_VIEWER" && break
367 if test -z "$PDF_VIEWER" ; then
372 # Search something to preview dvi
373 echo $ac_n "checking for a DVI previewer""... $ac_c"
378 # Extract the first word of "$ac_prog", so it can be a program name with args.
379 set dummy $ac_prog ; ac_word=$2
380 if test -n "$ac_word"; then
381 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
383 for ac_dir in $PATH; do
384 test -z "$ac_dir" && ac_dir=.
385 if test -x $ac_dir/$ac_word; then
386 DVI_VIEWER="$ac_prog"
392 if test -n "$DVI_VIEWER"; then
398 echo "$ac_t""$ac_result"
399 test -n "$DVI_VIEWER" && break
403 if test -z "$DVI_VIEWER" ; then
408 # Search something to preview html
409 echo $ac_n "checking for a HTML previewer""... $ac_c"
410 echo "$ac_t""(netscape)"
412 for ac_prog in netscape
414 # Extract the first word of "$ac_prog", so it can be a program name with args.
415 set dummy $ac_prog ; ac_word=$2
416 if test -n "$ac_word"; then
417 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
419 for ac_dir in $PATH; do
420 test -z "$ac_dir" && ac_dir=.
421 if test -x $ac_dir/$ac_word; then
422 HTML_VIEWER="$ac_prog"
428 if test -n "$HTML_VIEWER"; then
434 echo "$ac_t""$ac_result"
435 test -n "$HTML_VIEWER" && break
439 if test -z "$HTML_VIEWER" ; then
444 # Search for a program to convert ps to pdf
445 echo $ac_n "checking for a PS to PDF converter""... $ac_c"
446 echo "$ac_t""(ps2pdf)"
448 for ac_prog in ps2pdf
450 # Extract the first word of "$ac_prog", so it can be a program name with args.
451 set dummy $ac_prog ; ac_word=$2
452 if test -n "$ac_word"; then
453 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
455 for ac_dir in $PATH; do
456 test -z "$ac_dir" && ac_dir=.
457 if test -x $ac_dir/$ac_word; then
458 ps_to_pdf_command="$ac_prog"
464 if test -n "$ps_to_pdf_command"; then
470 echo "$ac_t""$ac_result"
471 test -n "$ps_to_pdf_command" && break
475 if test -z "$ps_to_pdf_command" ; then
476 ps_to_pdf_command=none
479 test $ps_to_pdf_command = "ps2pdf" && ps_to_pdf_command="ps2pdf \$\$FName"
481 # Search for a program to convert dvi to ps
482 echo $ac_n "checking for a DVI to PS converter""... $ac_c"
483 echo "$ac_t""(dvips)"
487 # Extract the first word of "$ac_prog", so it can be a program name with args.
488 set dummy $ac_prog ; ac_word=$2
489 if test -n "$ac_word"; then
490 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
492 for ac_dir in $PATH; do
493 test -z "$ac_dir" && ac_dir=.
494 if test -x $ac_dir/$ac_word; then
495 dvi_to_ps_command="$ac_prog"
501 if test -n "$dvi_to_ps_command"; then
507 echo "$ac_t""$ac_result"
508 test -n "$dvi_to_ps_command" && break
512 if test -z "$dvi_to_ps_command" ; then
513 dvi_to_ps_command=none
516 test $dvi_to_ps_command = "dvips" && dvi_to_ps_command="dvips -o \$\$OutName \$\$FName"
518 # Search a *roff program (used to translate tables in ASCII export)
519 echo $ac_n "checking for a *roff formatter""... $ac_c"
520 echo "$ac_t""(groff nroff)"
522 for ac_prog in groff nroff
524 # Extract the first word of "$ac_prog", so it can be a program name with args.
525 set dummy $ac_prog ; ac_word=$2
526 if test -n "$ac_word"; then
527 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
529 for ac_dir in $PATH; do
530 test -z "$ac_dir" && ac_dir=.
531 if test -x $ac_dir/$ac_word; then
538 if test -n "$ROFF"; then
544 echo "$ac_t""$ac_result"
545 test -n "$ROFF" && break
549 if test -z "$ROFF" ; then
553 ascii_roff_command=$ROFF
554 test $ROFF = "groff" && ascii_roff_command="groff -t -Tlatin1 \$\$FName"
555 test $ROFF = "nroff" && ascii_roff_command="tbl \$\$FName | nroff"
557 # Search the ChkTeX program
558 echo $ac_n "checking for ChkTeX""... $ac_c"
559 echo "$ac_t""(chktex)"
561 for ac_prog in chktex
563 # Extract the first word of "$ac_prog", so it can be a program name with args.
564 set dummy $ac_prog ; ac_word=$2
565 if test -n "$ac_word"; then
566 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
568 for ac_dir in $PATH; do
569 test -z "$ac_dir" && ac_dir=.
570 if test -x $ac_dir/$ac_word; then
577 if test -n "$CHKTEX"; then
583 echo "$ac_t""$ac_result"
584 test -n "$CHKTEX" && break
588 if test -z "$CHKTEX" ; then
592 chktex_command=$CHKTEX
593 test $CHKTEX = "chktex" && chktex_command="$CHKTEX -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"
595 # Search for a spellchecker
596 echo $ac_n "checking for a spell-checker""... $ac_c"
597 echo "$ac_t""(ispell)"
599 for ac_prog in ispell
601 # Extract the first word of "$ac_prog", so it can be a program name with args.
602 set dummy $ac_prog ; ac_word=$2
603 if test -n "$ac_word"; then
604 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
606 for ac_dir in $PATH; do
607 test -z "$ac_dir" && ac_dir=.
608 if test -x $ac_dir/$ac_word; then
615 if test -n "$SPELL"; then
621 echo "$ac_t""$ac_result"
622 test -n "$SPELL" && break
626 if test -z "$SPELL" ; then
631 # Search a Fax handling program
632 echo $ac_n "checking for a fax driver""... $ac_c"
633 echo "$ac_t""(sendfax faxsend fax)"
635 for ac_prog in sendfax faxsend fax
637 # Extract the first word of "$ac_prog", so it can be a program name with args.
638 set dummy $ac_prog ; ac_word=$2
639 if test -n "$ac_word"; then
640 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
642 for ac_dir in $PATH; do
643 test -z "$ac_dir" && ac_dir=.
644 if test -x $ac_dir/$ac_word; then
651 if test -n "$FAX"; then
657 echo "$ac_t""$ac_result"
658 test -n "$FAX" && break
662 if test -z "$FAX" ; then
666 if test $FAX = sendfax ; then
667 fax_command="sendfax -n -h '\$\$Host' -c '\$\$Comment' -x '\$\$Enterprise' -d '\$\$Name'@'\$\$Phone' '\$\$FName'"
668 elif test $FAX = faxsend ; then
669 fax_command="faxsend '\$\$Phone' '\$\$FName'"
670 elif test $FAX = fax ; then
671 fax_command="fax send '\$\$Phone' '\$\$FName'"
676 # Search for LinuxDoc support
677 echo $ac_n "checking for SGML-tools 1.x (LinuxDoc)""... $ac_c"
678 echo "$ac_t""(sgml2lyx)"
680 for ac_prog in sgml2lyx
682 # Extract the first word of "$ac_prog", so it can be a program name with args.
683 set dummy $ac_prog ; ac_word=$2
684 if test -n "$ac_word"; then
685 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
687 for ac_dir in $PATH; do
688 test -z "$ac_dir" && ac_dir=.
689 if test -x $ac_dir/$ac_word; then
696 if test -n "$LINUXDOC"; then
702 echo "$ac_t""$ac_result"
703 test -n "$LINUXDOC" && break
707 if test -z "$LINUXDOC" ; then
712 if test $LINUXDOC != none; then
714 linuxdoc_cmd="\\def\\haslinuxdoc{yes}"
719 linuxdoc_to_latex_command="sgml2latex \$\$FName"
720 linuxdoc_to_dvi_command="sgml2latex -o dvi \$\$FName"
721 linuxdoc_to_html_command="sgml2html \$\$FName"
722 linuxdoc_to_lyx_command="sgml2lyx";;
724 linuxdoc_to_latex_command="none"
725 linuxdoc_to_dvi_command="none"
726 linuxdoc_to_html_command="none"
727 linuxdoc_to_lyx_command="none";;
730 # Search for DocBook support
731 echo $ac_n "checking for SGML-tools 2.x (DocBook) or db2x scripts""... $ac_c"
732 echo "$ac_t""(sgmltools db2dvi)"
734 for ac_prog in sgmltools db2dvi
736 # Extract the first word of "$ac_prog", so it can be a program name with args.
737 set dummy $ac_prog ; ac_word=$2
738 if test -n "$ac_word"; then
739 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
741 for ac_dir in $PATH; do
742 test -z "$ac_dir" && ac_dir=.
743 if test -x $ac_dir/$ac_word; then
750 if test -n "$DOCBOOK"; then
756 echo "$ac_t""$ac_result"
757 test -n "$DOCBOOK" && break
761 if test -z "$DOCBOOK" ; then
766 if test $DOCBOOK != none; then
768 docbook_cmd="\\def\\hasdocbook{yes}"
773 docbook_to_dvi_command="sgmltools -b dvi \$\$FName"
774 docbook_to_html_command="sgmltools -b html \$\$FName";;
776 docbook_to_dvi_command="db2dvi \$\$FName"
777 docbook_to_html_command="db2html \$\$FName";;
779 docbook_to_dvi_command="none"
780 docbook_to_html_command="none";;
783 # Search for a spool command
784 echo $ac_n "checking for a spool command""... $ac_c"
785 echo "$ac_t""(lp lpr)"
787 for ac_prog in lp lpr
789 # Extract the first word of "$ac_prog", so it can be a program name with args.
790 set dummy $ac_prog ; ac_word=$2
791 if test -n "$ac_word"; then
792 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
794 for ac_dir in $PATH; do
795 test -z "$ac_dir" && ac_dir=.
796 if test -x $ac_dir/$ac_word; then
803 if test -n "$LPR"; then
809 echo "$ac_t""$ac_result"
810 test -n "$LPR" && break
814 if test -z "$LPR" ; then
819 lp) print_spool_command=lp
820 print_spool_printerprefix="-d ";;
821 lpr) print_spool_command=lpr
822 print_spool_printerprefix="-P";;
823 *) :;; # leave to empty values
826 # Search for a latex to html converter
827 echo $ac_n "checking for an HTML converter""... $ac_c"
828 echo "$ac_t""(tth latex2html hevea)"
830 for ac_prog in tth latex2html hevea
832 # Extract the first word of "$ac_prog", so it can be a program name with args.
833 set dummy $ac_prog ; ac_word=$2
834 if test -n "$ac_word"; then
835 echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
837 for ac_dir in $PATH; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -x $ac_dir/$ac_word; then
846 if test -n "$TOHTML"; then
852 echo "$ac_t""$ac_result"
853 test -n "$TOHTML" && break
857 if test -z "$TOHTML" ; then
861 latex_to_html_command = $TOHTML
863 tth) latex_to_html_command="tth -t -e2 -L\$\$BaseName < \$\$FName > \$\$OutName";;
864 latex2html) latex_to_html_command="latex2html -no_subdir -split 0 -show_section_numbers \$\$FName";;
865 hevea) latex_to_html_command="hevea -s \$\$FName";;
868 #### Explore the LaTeX configuration
869 echo $ac_n "checking LaTeX configuration""... $ac_c"
870 # First, remove the files that we want to re-create
871 rm -f textclass.lst packages.lst chkconfig.sed
872 if test ${lyx_check_config} = no ; then
873 echo "$ac_t""default values"
876 rm -f wrap_chkconfig.ltx chkconfig.vars chkconfig.classes chklayouts.tex
877 cat >wrap_chkconfig.ltx <<EOF
878 \\newcommand\\srcdir{${srcdir}}
881 \\input{${srcdir}/chkconfig.ltx}
883 ## Construct the list of classes to test for.
884 # build the list of available layout files and convert it to commands
886 for file in ./layouts/*.layout ${srcdir}/layouts/*.layout ; do
889 *) test -r "$file" && echo $file ;;
891 done | sed -e 's%^.*layouts/\(.*\)\.layout$%\\TestDocClass{\1}%'\
893 eval ${LATEX} wrap_chkconfig.ltx 2>/dev/null | grep '^\+'
894 eval `cat chkconfig.vars | sed 's/-/_/g'`
897 # Do we have all the files we need? Useful if latex did not run
898 echo creating textclass.lst
899 # if textclass.lst does not exist (because LaTeX did not run),
900 # then provide a standard version.
901 if test ! -f textclass.lst ; then
902 cat >textclass.lst <<EOF
903 # This file declares layouts and their associated definition files
904 # (include dir. relative to the place where this file is).
905 # It contains only default values, since chkconfig.ltx could not be run
906 # for some reason. Run ./configure if you need to update it after a
907 # configuration change.
908 article article article
911 linuxdoc linuxdoc linuxdoc
916 # if chkconfig.sed does not exist (because LaTeX did not run),
917 # then provide a standard version.
918 if test ! -f chkconfig.sed ; then
919 cat >chkconfig.sed <<EOF
924 echo creating packages.lst
925 # if packages.lst does not exist (because LaTeX did not run),
926 # then provide a standard version.
927 if test ! -f packages.lst ; then
928 cat >packages.lst <<EOF
929 # This file should contain the list of LaTeX packages that have been
930 # recognized by LyX. Unfortunately, since configure could not find
931 # your LaTeX2e program, the tests have not been run. Run ./configure
932 # if you need to update it after a configuration change.
937 echo creating doc/LaTeXConfig.lyx
938 echo "s/@chk_linuxdoc@/$chk_linuxdoc/g" >> chkconfig.sed
939 echo "s/@chk_docbook@/$chk_docbook/g" >> chkconfig.sed
940 sed -f chkconfig.sed ${srcdir}/doc/LaTeXConfig.lyx.in >doc/LaTeXConfig.lyx
942 echo creating lyxrc.defaults
944 cat >lyxrc.defaults <<EOF
945 # This file has been automatically generated by LyX' lib/configure
946 # script. It contains default settings that have been determined by
947 # examining your system. PLEASE DO NOT MODIFY ANYTHING HERE! If you
948 # want to customize LyX, make a copy of the file LYXDIR/lyxrc as
949 # ~/.lyx/lyxrc and edit this file instead. Any setting in lyxrc will
950 # override the values given here.
951 \\converter tex dvi "$LATEX" ""
952 \\converter tex pdf "$PDFLATEX" ""
953 \\converter dvi ps "$dvi_to_ps_command" ""
954 \\converter ps pdf "$ps_to_pdf_command" ""
955 \\converter sgml tex "$linuxdoc_to_latex_command" ""
956 \\converter sgml dvi "$linuxdoc_to_dvi_command" ""
957 \\converter sgml html "$linuxdoc_to_html_command" ""
958 \\converter docbook dvi "$docbook_to_dvi_command" ""
959 \\converter docbook html "$docbook_to_html_command" ""
960 \\converter tex html "$latex_to_html_command"
961 "originaldir,needaux"
962 \\converter $LITERATE_EXT tex "$LITERATE" ""
964 \\viewer dvi "$DVI_VIEWER"
965 \\viewer html "$HTML_VIEWER"
966 \\viewer pdf "$PDF_VIEWER"
967 \\viewer ps "$GHOSTVIEW -swap"
968 \\viewer eps "$GHOSTVIEW"
970 \\relyx_command "$RELYX"
971 \\linuxdoc_to_lyx_command "$linuxdoc_to_lyx_command"
972 \\literate_extension "$LITERATE_EXT"
974 \\ascii_roff_command "$ascii_roff_command"
975 \\chktex_command "$chktex_command"
976 \\spell_command "$SPELL"
977 \\fax_command "$fax_command"
978 \\print_spool_command "$print_spool_command"
979 \\print_spool_printerprefix "$print_spool_printerprefix"
980 \\font_encoding "$chk_fontenc"
983 # Remove superfluous files if we are not writing in the main lib
985 for file in lyxrc.defaults textclass.lst packages.lst \
986 doc/LaTeXConfig.lyx ; do
987 # we rename the file first, so that we avoid comparing a file with itself
989 if test -r $srcdir/$file && diff $file.new $srcdir/$file >/dev/null 2>/dev/null ;
991 echo "removing $file, which is identical to the system global version"
1000 if test $lyx_keep_temps = no ; then
1001 rm -f chkconfig.sed chkconfig.vars wrap_chkconfig.* chklayouts.tex \