2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for preview-latex 11.84.
5 # Report bugs to <bug-auctex@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='preview-latex'
576 PACKAGE_TARNAME='preview-latex'
577 PACKAGE_VERSION='11.84'
578 PACKAGE_STRING='preview-latex 11.84'
579 PACKAGE_BUGREPORT='bug-auctex@gnu.org'
590 program_transform_name
649 ac_precious_vars='build_alias
656 # Initialize some variables set by options.
658 ac_init_version=false
659 # The variables have the same names as the options, with
660 # dashes changed to underlines.
668 program_transform_name=s,x,x,
676 # Installation directory options.
677 # These are left unexpanded so users can "make install exec_prefix=/foo"
678 # and all the variables that are supposed to be based on exec_prefix
679 # by default will actually change.
680 # Use braces instead of parens because sh, perl, etc. also accept them.
681 # (The list follows the same order as the GNU Coding Standards.)
682 bindir='${exec_prefix}/bin'
683 sbindir='${exec_prefix}/sbin'
684 libexecdir='${exec_prefix}/libexec'
685 datarootdir='${prefix}/share'
686 datadir='${datarootdir}'
687 sysconfdir='${prefix}/etc'
688 sharedstatedir='${prefix}/com'
689 localstatedir='${prefix}/var'
690 includedir='${prefix}/include'
691 oldincludedir='/usr/include'
692 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
693 infodir='${datarootdir}/info'
698 libdir='${exec_prefix}/lib'
699 localedir='${datarootdir}/locale'
700 mandir='${datarootdir}/man'
706 # If the previous option needs an argument, assign it.
707 if test -n "$ac_prev"; then
708 eval $ac_prev=\$ac_option
714 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
718 # Accept the important Cygnus configure options, so we can diagnose typos.
720 case $ac_dashdash$ac_option in
724 -bindir | --bindir | --bindi | --bind | --bin | --bi)
726 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
729 -build | --build | --buil | --bui | --bu)
730 ac_prev=build_alias ;;
731 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
732 build_alias=$ac_optarg ;;
734 -cache-file | --cache-file | --cache-fil | --cache-fi \
735 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
736 ac_prev=cache_file ;;
737 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
738 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
739 cache_file=$ac_optarg ;;
742 cache_file=config.cache ;;
744 -datadir | --datadir | --datadi | --datad)
746 -datadir=* | --datadir=* | --datadi=* | --datad=*)
747 datadir=$ac_optarg ;;
749 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
750 | --dataroo | --dataro | --datar)
751 ac_prev=datarootdir ;;
752 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
753 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
754 datarootdir=$ac_optarg ;;
756 -disable-* | --disable-*)
757 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
761 { (exit 1); exit 1; }; }
762 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
763 eval enable_$ac_feature=no ;;
765 -docdir | --docdir | --docdi | --doc | --do)
767 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
770 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
772 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
775 -enable-* | --enable-*)
776 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
779 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
780 { (exit 1); exit 1; }; }
781 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
782 eval enable_$ac_feature=\$ac_optarg ;;
784 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
785 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
786 | --exec | --exe | --ex)
787 ac_prev=exec_prefix ;;
788 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
789 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
790 | --exec=* | --exe=* | --ex=*)
791 exec_prefix=$ac_optarg ;;
793 -gas | --gas | --ga | --g)
794 # Obsolete; use --with-gas.
797 -help | --help | --hel | --he | -h)
799 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
800 ac_init_help=recursive ;;
801 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
802 ac_init_help=short ;;
804 -host | --host | --hos | --ho)
805 ac_prev=host_alias ;;
806 -host=* | --host=* | --hos=* | --ho=*)
807 host_alias=$ac_optarg ;;
809 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
811 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
813 htmldir=$ac_optarg ;;
815 -includedir | --includedir | --includedi | --included | --include \
816 | --includ | --inclu | --incl | --inc)
817 ac_prev=includedir ;;
818 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
819 | --includ=* | --inclu=* | --incl=* | --inc=*)
820 includedir=$ac_optarg ;;
822 -infodir | --infodir | --infodi | --infod | --info | --inf)
824 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
825 infodir=$ac_optarg ;;
827 -libdir | --libdir | --libdi | --libd)
829 -libdir=* | --libdir=* | --libdi=* | --libd=*)
832 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
833 | --libexe | --libex | --libe)
834 ac_prev=libexecdir ;;
835 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
836 | --libexe=* | --libex=* | --libe=*)
837 libexecdir=$ac_optarg ;;
839 -localedir | --localedir | --localedi | --localed | --locale)
841 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
842 localedir=$ac_optarg ;;
844 -localstatedir | --localstatedir | --localstatedi | --localstated \
845 | --localstate | --localstat | --localsta | --localst | --locals)
846 ac_prev=localstatedir ;;
847 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
848 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
849 localstatedir=$ac_optarg ;;
851 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
853 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
857 # Obsolete; use --without-fp.
860 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
861 | --no-cr | --no-c | -n)
864 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
865 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
868 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
869 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
870 | --oldin | --oldi | --old | --ol | --o)
871 ac_prev=oldincludedir ;;
872 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
873 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
874 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
875 oldincludedir=$ac_optarg ;;
877 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
879 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
882 -program-prefix | --program-prefix | --program-prefi | --program-pref \
883 | --program-pre | --program-pr | --program-p)
884 ac_prev=program_prefix ;;
885 -program-prefix=* | --program-prefix=* | --program-prefi=* \
886 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
887 program_prefix=$ac_optarg ;;
889 -program-suffix | --program-suffix | --program-suffi | --program-suff \
890 | --program-suf | --program-su | --program-s)
891 ac_prev=program_suffix ;;
892 -program-suffix=* | --program-suffix=* | --program-suffi=* \
893 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
894 program_suffix=$ac_optarg ;;
896 -program-transform-name | --program-transform-name \
897 | --program-transform-nam | --program-transform-na \
898 | --program-transform-n | --program-transform- \
899 | --program-transform | --program-transfor \
900 | --program-transfo | --program-transf \
901 | --program-trans | --program-tran \
902 | --progr-tra | --program-tr | --program-t)
903 ac_prev=program_transform_name ;;
904 -program-transform-name=* | --program-transform-name=* \
905 | --program-transform-nam=* | --program-transform-na=* \
906 | --program-transform-n=* | --program-transform-=* \
907 | --program-transform=* | --program-transfor=* \
908 | --program-transfo=* | --program-transf=* \
909 | --program-trans=* | --program-tran=* \
910 | --progr-tra=* | --program-tr=* | --program-t=*)
911 program_transform_name=$ac_optarg ;;
913 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
915 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
918 -psdir | --psdir | --psdi | --psd | --ps)
920 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
924 | -silent | --silent | --silen | --sile | --sil)
927 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
929 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
931 sbindir=$ac_optarg ;;
933 -sharedstatedir | --sharedstatedir | --sharedstatedi \
934 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
935 | --sharedst | --shareds | --shared | --share | --shar \
937 ac_prev=sharedstatedir ;;
938 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
939 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
940 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
942 sharedstatedir=$ac_optarg ;;
944 -site | --site | --sit)
946 -site=* | --site=* | --sit=*)
949 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
951 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
954 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
955 | --syscon | --sysco | --sysc | --sys | --sy)
956 ac_prev=sysconfdir ;;
957 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
958 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
959 sysconfdir=$ac_optarg ;;
961 -target | --target | --targe | --targ | --tar | --ta | --t)
962 ac_prev=target_alias ;;
963 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
964 target_alias=$ac_optarg ;;
966 -v | -verbose | --verbose | --verbos | --verbo | --verb)
969 -version | --version | --versio | --versi | --vers | -V)
973 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
976 { echo "$as_me: error: invalid package name: $ac_package" >&2
977 { (exit 1); exit 1; }; }
978 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
979 eval with_$ac_package=\$ac_optarg ;;
981 -without-* | --without-*)
982 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
985 { echo "$as_me: error: invalid package name: $ac_package" >&2
986 { (exit 1); exit 1; }; }
987 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
988 eval with_$ac_package=no ;;
991 # Obsolete; use --with-x.
994 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
995 | --x-incl | --x-inc | --x-in | --x-i)
996 ac_prev=x_includes ;;
997 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
998 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
999 x_includes=$ac_optarg ;;
1001 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1002 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1003 ac_prev=x_libraries ;;
1004 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1005 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1006 x_libraries=$ac_optarg ;;
1008 -*) { echo "$as_me: error: unrecognized option: $ac_option
1009 Try \`$0 --help' for more information." >&2
1010 { (exit 1); exit 1; }; }
1014 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1018 { (exit 1); exit 1; }; }
1019 eval $ac_envvar=\$ac_optarg
1020 export $ac_envvar ;;
1023 # FIXME: should be removed in autoconf 3.0.
1024 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1025 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1027 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1033 if test -n "$ac_prev"; then
1034 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1035 { echo "$as_me: error: missing argument to $ac_option" >&2
1036 { (exit 1); exit 1; }; }
1039 # Be sure to have absolute directory names.
1040 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1041 datadir sysconfdir sharedstatedir localstatedir includedir \
1042 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1043 libdir localedir mandir
1045 eval ac_val=\$$ac_var
1047 [\\/$]* | ?:[\\/]* ) continue;;
1048 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1050 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1051 { (exit 1); exit 1; }; }
1054 # There might be people who depend on the old broken behavior: `$host'
1055 # used to hold the argument of --host etc.
1056 # FIXME: To remove some day.
1059 target=$target_alias
1061 # FIXME: To remove some day.
1062 if test "x$host_alias" != x; then
1063 if test "x$build_alias" = x; then
1064 cross_compiling=maybe
1065 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1066 If a cross compiler is detected then cross compile mode will be used." >&2
1067 elif test "x$build_alias" != "x$host_alias"; then
1073 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1075 test "$silent" = yes && exec 6>/dev/null
1078 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1079 ac_ls_di=`ls -di .` &&
1080 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1081 { echo "$as_me: error: Working directory cannot be determined" >&2
1082 { (exit 1); exit 1; }; }
1083 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1084 { echo "$as_me: error: pwd does not report name of working directory" >&2
1085 { (exit 1); exit 1; }; }
1088 # Find the source files, if location was not specified.
1089 if test -z "$srcdir"; then
1090 ac_srcdir_defaulted=yes
1091 # Try the directory containing this script, then the parent directory.
1092 ac_confdir=`$as_dirname -- "$0" ||
1093 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1094 X"$0" : 'X\(//\)[^/]' \| \
1095 X"$0" : 'X\(//\)$' \| \
1096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1116 if test ! -r "$srcdir/$ac_unique_file"; then
1120 ac_srcdir_defaulted=no
1122 if test ! -r "$srcdir/$ac_unique_file"; then
1123 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1124 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1125 { (exit 1); exit 1; }; }
1127 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1129 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1130 { (exit 1); exit 1; }; }
1132 # When building in place, set srcdir=.
1133 if test "$ac_abs_confdir" = "$ac_pwd"; then
1136 # Remove unnecessary trailing slashes from srcdir.
1137 # Double slashes in file names in object file debugging info
1138 # mess up M-x gdb in Emacs.
1140 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1142 for ac_var in $ac_precious_vars; do
1143 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1144 eval ac_env_${ac_var}_value=\$${ac_var}
1145 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1146 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1150 # Report the --help message.
1152 if test "$ac_init_help" = "long"; then
1153 # Omit some internal or obsolete options to make the list less imposing.
1154 # This message is too long to be a string in the A/UX 3.1 sh.
1156 \`configure' configures preview-latex 11.84 to adapt to many kinds of systems.
1158 Usage: $0 [OPTION]... [VAR=VALUE]...
1160 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1161 VAR=VALUE. See below for descriptions of some of the useful variables.
1163 Defaults for the options are specified in brackets.
1166 -h, --help display this help and exit
1167 --help=short display options specific to this package
1168 --help=recursive display the short help of all the included packages
1169 -V, --version display version information and exit
1170 -q, --quiet, --silent do not print \`checking...' messages
1171 --cache-file=FILE cache test results in FILE [disabled]
1172 -C, --config-cache alias for \`--cache-file=config.cache'
1173 -n, --no-create do not create output files
1174 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1176 Installation directories:
1177 --prefix=PREFIX install architecture-independent files in PREFIX
1178 [$ac_default_prefix]
1179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1182 By default, \`make install' will install all the files in
1183 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1184 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1185 for instance \`--prefix=\$HOME'.
1187 For better control, use the options below.
1189 Fine tuning of the installation directories:
1190 --bindir=DIR user executables [EPREFIX/bin]
1191 --sbindir=DIR system admin executables [EPREFIX/sbin]
1192 --libexecdir=DIR program executables [EPREFIX/libexec]
1193 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1194 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1195 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1196 --libdir=DIR object code libraries [EPREFIX/lib]
1197 --includedir=DIR C header files [PREFIX/include]
1198 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1199 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1200 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1201 --infodir=DIR info documentation [DATAROOTDIR/info]
1202 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1203 --mandir=DIR man documentation [DATAROOTDIR/man]
1204 --docdir=DIR documentation root [DATAROOTDIR/doc/preview-latex]
1205 --htmldir=DIR html documentation [DOCDIR]
1206 --dvidir=DIR dvi documentation [DOCDIR]
1207 --pdfdir=DIR pdf documentation [DOCDIR]
1208 --psdir=DIR ps documentation [DOCDIR]
1215 if test -n "$ac_init_help"; then
1216 case $ac_init_help in
1217 short | recursive ) echo "Configuration of preview-latex 11.84:";;
1222 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1223 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1224 --enable-build-dir-test test for build directory inside `load-path'
1228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1230 --with-emacs[=PATH] Use Emacs to build (on PATH if given)
1231 --with-xemacs[=PATH] Use XEmacs to build (on PATH if given)
1232 --with-packagedir=DIR package DIR for XEmacs
1233 --with-lispdir=DIR A place in load-path for Lisp files; most
1234 files will be place in a subdirectory.
1235 --with-previewstartfile=FILE What file to use for preview startup.
1236 --with-packagelispdir=DIR
1237 Directory for the package lisp files.
1238 --with-packagedatadir=DIR Where the data files go.
1239 --with-tex-site=DIR Location of AUCTeX's tex-site.el, if not standard
1240 --with-texmf-dir=DIR TEXMF tree to install into,
1241 or --without-texmf-dir for runtime config
1242 --with-tex-dir=DIR Location to install preview TeX sources
1243 --with-doc-dir=DIR Location to install preview.dvi
1245 Some influential environment variables:
1246 GS Ghostscript executable for batch operation
1247 TEXHASH command to update the TeX filename database. Set to : to skip
1248 updating the database on installation. This is the default for
1251 Use these variables to override the choices made by `configure' or to help
1252 it to find libraries and programs with nonstandard names/locations.
1254 Report bugs to <bug-auctex@gnu.org>.
1259 if test "$ac_init_help" = "recursive"; then
1260 # If there are subdirs, report their specific --help.
1261 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1262 test -d "$ac_dir" || continue
1266 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1269 # A ".." for each directory in $ac_dir_suffix.
1270 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1271 case $ac_top_builddir_sub in
1272 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1273 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1276 ac_abs_top_builddir=$ac_pwd
1277 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1278 # for backward compatibility:
1279 ac_top_builddir=$ac_top_build_prefix
1282 .) # We are building in place.
1284 ac_top_srcdir=$ac_top_builddir_sub
1285 ac_abs_top_srcdir=$ac_pwd ;;
1286 [\\/]* | ?:[\\/]* ) # Absolute name.
1287 ac_srcdir=$srcdir$ac_dir_suffix;
1288 ac_top_srcdir=$srcdir
1289 ac_abs_top_srcdir=$srcdir ;;
1291 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1292 ac_top_srcdir=$ac_top_build_prefix$srcdir
1293 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1295 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1297 cd "$ac_dir" || { ac_status=$?; continue; }
1298 # Check for guested configure.
1299 if test -f "$ac_srcdir/configure.gnu"; then
1301 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1302 elif test -f "$ac_srcdir/configure"; then
1304 $SHELL "$ac_srcdir/configure" --help=recursive
1306 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1308 cd "$ac_pwd" || { ac_status=$?; break; }
1312 test -n "$ac_init_help" && exit $ac_status
1313 if $ac_init_version; then
1315 preview-latex configure 11.84
1316 generated by GNU Autoconf 2.61
1318 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1319 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1320 This configure script is free software; the Free Software Foundation
1321 gives unlimited permission to copy, distribute and modify it.
1325 cat >config.log <<_ACEOF
1326 This file contains any messages produced by compilers while
1327 running configure, to aid debugging if configure makes a mistake.
1329 It was created by preview-latex $as_me 11.84, which was
1330 generated by GNU Autoconf 2.61. Invocation command line was
1342 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1343 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1344 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1345 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1346 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1348 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1349 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1351 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1352 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1353 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1354 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1355 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1356 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1357 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365 test -z "$as_dir" && as_dir=.
1366 echo "PATH: $as_dir"
1382 # Keep a trace of the command line.
1383 # Strip out --no-create and --no-recursion so they do not pile up.
1384 # Strip out --silent because we don't want to record it for future runs.
1385 # Also quote any args containing shell meta-characters.
1386 # Make two passes to allow for proper duplicate-argument suppression.
1390 ac_must_keep_next=false
1396 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1398 | -silent | --silent | --silen | --sile | --sil)
1401 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1404 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1406 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1407 if test $ac_must_keep_next = true; then
1408 ac_must_keep_next=false # Got value, back to normal.
1411 *=* | --config-cache | -C | -disable-* | --disable-* \
1412 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1413 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1414 | -with-* | --with-* | -without-* | --without-* | --x)
1415 case "$ac_configure_args0 " in
1416 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1419 -* ) ac_must_keep_next=true ;;
1422 ac_configure_args="$ac_configure_args '$ac_arg'"
1427 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1428 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1430 # When interrupted or exit'd, cleanup temporary files, and complete
1431 # config.log. We remove comments because anyway the quotes in there
1432 # would cause problems or look ugly.
1433 # WARNING: Use '\'' to represent an apostrophe within the trap.
1434 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1435 trap 'exit_status=$?
1436 # Save into config.log some information that might help in debugging.
1441 ## ---------------- ##
1442 ## Cache variables. ##
1443 ## ---------------- ##
1446 # The following way of writing the cache mishandles newlines in values,
1448 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1449 eval ac_val=\$$ac_var
1453 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1454 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1457 _ | IFS | as_nl) ;; #(
1458 *) $as_unset $ac_var ;;
1463 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1464 *${as_nl}ac_space=\ *)
1466 "s/'\''/'\''\\\\'\'''\''/g;
1467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1478 ## ----------------- ##
1479 ## Output variables. ##
1480 ## ----------------- ##
1483 for ac_var in $ac_subst_vars
1485 eval ac_val=\$$ac_var
1487 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1489 echo "$ac_var='\''$ac_val'\''"
1493 if test -n "$ac_subst_files"; then
1495 ## ------------------- ##
1496 ## File substitutions. ##
1497 ## ------------------- ##
1500 for ac_var in $ac_subst_files
1502 eval ac_val=\$$ac_var
1504 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1506 echo "$ac_var='\''$ac_val'\''"
1511 if test -s confdefs.h; then
1521 test "$ac_signal" != 0 &&
1522 echo "$as_me: caught signal $ac_signal"
1523 echo "$as_me: exit $exit_status"
1525 rm -f core *.core core.conftest.* &&
1526 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1529 for ac_signal in 1 2 13 15; do
1530 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1535 rm -f -r conftest* confdefs.h
1537 # Predefined preprocessor variables.
1539 cat >>confdefs.h <<_ACEOF
1540 #define PACKAGE_NAME "$PACKAGE_NAME"
1544 cat >>confdefs.h <<_ACEOF
1545 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1549 cat >>confdefs.h <<_ACEOF
1550 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1554 cat >>confdefs.h <<_ACEOF
1555 #define PACKAGE_STRING "$PACKAGE_STRING"
1559 cat >>confdefs.h <<_ACEOF
1560 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1564 # Let the site file select an alternate cache file if it wants to.
1565 # Prefer explicitly selected file to automatically selected ones.
1566 if test -n "$CONFIG_SITE"; then
1567 set x "$CONFIG_SITE"
1568 elif test "x$prefix" != xNONE; then
1569 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1571 set x "$ac_default_prefix/share/config.site" \
1572 "$ac_default_prefix/etc/config.site"
1577 if test -r "$ac_site_file"; then
1578 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1579 echo "$as_me: loading site script $ac_site_file" >&6;}
1580 sed 's/^/| /' "$ac_site_file" >&5
1585 if test -r "$cache_file"; then
1586 # Some versions of bash will fail to source /dev/null (special
1587 # files actually), so we avoid doing that.
1588 if test -f "$cache_file"; then
1589 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1590 echo "$as_me: loading cache $cache_file" >&6;}
1592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1593 *) . "./$cache_file";;
1597 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1598 echo "$as_me: creating cache $cache_file" >&6;}
1602 # Check that the precious variables saved in the cache have kept the same
1604 ac_cache_corrupted=false
1605 for ac_var in $ac_precious_vars; do
1606 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1607 eval ac_new_set=\$ac_env_${ac_var}_set
1608 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1609 eval ac_new_val=\$ac_env_${ac_var}_value
1610 case $ac_old_set,$ac_new_set in
1612 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1613 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1614 ac_cache_corrupted=: ;;
1616 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1617 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1618 ac_cache_corrupted=: ;;
1621 if test "x$ac_old_val" != "x$ac_new_val"; then
1622 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1623 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1624 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1625 echo "$as_me: former value: $ac_old_val" >&2;}
1626 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1627 echo "$as_me: current value: $ac_new_val" >&2;}
1628 ac_cache_corrupted=:
1631 # Pass precious variables to config.status.
1632 if test "$ac_new_set" = set; then
1634 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1635 *) ac_arg=$ac_var=$ac_new_val ;;
1637 case " $ac_configure_args " in
1638 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1639 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1643 if $ac_cache_corrupted; then
1644 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1645 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1646 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1647 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1648 { (exit 1); exit 1; }; }
1676 ac_cpp='$CPP $CPPFLAGS'
1677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1683 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1684 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1685 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1686 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 cat >conftest.make <<\_ACEOF
1692 @echo '@@@%%%=$(MAKE)=@@@%%%'
1694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1695 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1697 eval ac_cv_prog_make_${ac_make}_set=yes;;
1699 eval ac_cv_prog_make_${ac_make}_set=no;;
1703 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1704 { echo "$as_me:$LINENO: result: yes" >&5
1705 echo "${ECHO_T}yes" >&6; }
1708 { echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6; }
1710 SET_MAKE="MAKE=${MAKE-make}"
1714 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1715 if test -f "$ac_dir/install-sh"; then
1717 ac_install_sh="$ac_aux_dir/install-sh -c"
1719 elif test -f "$ac_dir/install.sh"; then
1721 ac_install_sh="$ac_aux_dir/install.sh -c"
1723 elif test -f "$ac_dir/shtool"; then
1725 ac_install_sh="$ac_aux_dir/shtool install -c"
1729 if test -z "$ac_aux_dir"; then
1730 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1731 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1732 { (exit 1); exit 1; }; }
1735 # These three variables are undocumented and unsupported,
1736 # and are intended to be withdrawn in a future Autoconf release.
1737 # They can cause serious problems if a builder's source tree is in a directory
1738 # whose full name contains unusual characters.
1739 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1740 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1741 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1744 # Find a good install program. We prefer a C program (faster),
1745 # so one script is as good as another. But avoid the broken or
1746 # incompatible versions:
1747 # SysV /etc/install, /usr/sbin/install
1748 # SunOS /usr/etc/install
1749 # IRIX /sbin/install
1751 # AmigaOS /C/install, which installs bootblocks on floppy discs
1752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1755 # OS/2's system install, which has a completely different semantic
1756 # ./install, which can be erroneously created by make from ./install.sh.
1757 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1758 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1759 if test -z "$INSTALL"; then
1760 if test "${ac_cv_path_install+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 # Account for people who put trailing slashes in PATH elements.
1770 ./ | .// | /cC/* | \
1771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1772 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1775 # OSF1 and SCO ODT 3.0 have their own names for install.
1776 # Don't use installbsd from OSF since it installs stuff as root
1778 for ac_prog in ginstall scoinst install; do
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1781 if test $ac_prog = install &&
1782 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1783 # AIX install. It has an incompatible calling convention.
1785 elif test $ac_prog = install &&
1786 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1787 # program-specific install script used by HP pwplus--don't use.
1790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1803 if test "${ac_cv_path_install+set}" = set; then
1804 INSTALL=$ac_cv_path_install
1806 # As a last resort, use the slow shell script. Don't cache a
1807 # value for INSTALL within a source directory, because that will
1808 # break other packages using the cache if that directory is
1809 # removed, or if the value is a relative name.
1810 INSTALL=$ac_install_sh
1813 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1814 echo "${ECHO_T}$INSTALL" >&6; }
1816 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1817 # It thinks the first close brace ends the variable substitution.
1818 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1820 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1822 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1825 # Import unquoted variables.
1827 packagedir="$packagedir_unquoted"
1828 packagelispdir="$packagelispdir_unquoted"
1829 packagedatadir="$packagedatadir_unquoted"
1830 EMACS="$EMACS_UNQUOTED"
1833 # Check for (X)Emacs, report its path, flavor and prefix
1835 # Apparently, if you run a shell window in Emacs, it sets the EMACS
1836 # environment variable to 't'. Let's undo the damage.
1837 if test "${EMACS}" = "t"; then
1841 # Check whether --with-emacs was given.
1842 if test "${with_emacs+set}" = set; then
1843 withval=$with_emacs; if test "${withval}" = "yes"; then EMACS=emacs
1844 elif test "${withval}" = "no"; then EMACS=xemacs
1845 else EMACS="${withval}"; fi
1850 # Check whether --with-xemacs was given.
1851 if test "${with_xemacs+set}" = set; then
1852 withval=$with_xemacs; if test "x${withval}" != xno
1854 if test "x${with_emacs}" != xno -a "x${with_emacs}" != x
1856 { { echo "$as_me:$LINENO: error: cannot use both Emacs and XEmacs" >&5
1857 echo "$as_me: error: cannot use both Emacs and XEmacs" >&2;}
1858 { (exit 1); exit 1; }; }
1860 if test "x${withval}" = "xyes"
1866 elif test "x${with_emacs}" = xno
1868 { { echo "$as_me:$LINENO: error: need to use either Emacs or XEmacs" >&5
1869 echo "$as_me: error: need to use either Emacs or XEmacs" >&2;}
1870 { (exit 1); exit 1; }; }
1875 # "${prefix}/bin" is for Windows users
1876 for ac_prog in ${EMACS} emacs xemacs
1878 # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1882 if test "${ac_cv_path_EMACS+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in ${PATH} "${prefix}/bin"
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1897 ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 EMACS=$ac_cv_path_EMACS
1909 if test -n "$EMACS"; then
1910 { echo "$as_me:$LINENO: result: $EMACS" >&5
1911 echo "${ECHO_T}$EMACS" >&6; }
1913 { echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6; }
1918 test -n "$EMACS" && break
1920 test -n "$EMACS" || EMACS=""""
1922 if test -z "${EMACS}"; then
1923 { { echo "$as_me:$LINENO: error: (X)Emacs not found! Aborting!" >&5
1924 echo "$as_me: error: (X)Emacs not found! Aborting!" >&2;}
1925 { (exit 1); exit 1; }; }
1928 { echo "$as_me:$LINENO: checking if ${EMACS} is XEmacs" >&5
1929 echo $ECHO_N "checking if ${EMACS} is XEmacs... $ECHO_C" >&6; }
1931 elisp="(if (featurep (quote xemacs)) \"yes\" \"no\")"
1932 OUTPUT=./conftest-$$
1933 echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1934 "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1935 XEMACS="`cat ${OUTPUT}`"
1936 echo "=> ${XEMACS}" >& 5 2>&1
1939 if test "${XEMACS}" = "yes"; then
1942 elif test "${XEMACS}" = "no"; then
1946 { { echo "$as_me:$LINENO: error: Unable to run ${EMACS}! Aborting!" >&5
1947 echo "$as_me: error: Unable to run ${EMACS}! Aborting!" >&2;}
1948 { (exit 1); exit 1; }; }
1950 { echo "$as_me:$LINENO: result: ${XEMACS}" >&5
1951 echo "${ECHO_T}${XEMACS}" >&6; }
1954 { echo "$as_me:$LINENO: checking for ${EMACS_NAME} prefix" >&5
1955 echo $ECHO_N "checking for ${EMACS_NAME} prefix... $ECHO_C" >&6; }
1958 elisp="(condition-case nil (let*
1959 ((prefix (directory-file-name (file-name-directory (executable-find cmd))))
1960 (parent (directory-file-name (file-name-directory prefix))))
1961 (if (string= (file-name-nondirectory prefix) \"bin\")
1962 (setq prefix parent)
1963 (if (string= (file-name-nondirectory parent) \"bin\")
1964 (setq prefix (directory-file-name (file-name-directory parent)))))
1965 prefix) (error "NONE"))"
1966 OUTPUT=./conftest-$$
1967 echo "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${EMACS}" >& 5 2>&1
1968 "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${EMACS}" >& 5 2>&1
1969 emacsprefix="`cat ${OUTPUT}`"
1970 echo "=> ${emacsprefix}" >& 5 2>&1
1973 { echo "$as_me:$LINENO: result: \"${emacsprefix}\"" >&5
1974 echo "${ECHO_T}\"${emacsprefix}\"" >&6; }
1977 if test ${EMACS_FLAVOR} = xemacs
1980 { echo "$as_me:$LINENO: checking if ${EMACS_NAME} is recent enough" >&5
1981 echo $ECHO_N "checking if ${EMACS_NAME} is recent enough... $ECHO_C" >&6; }
1983 elisp="(cond ((< emacs-major-version 21) \"no\")
1984 ((> emacs-major-version 21) \"yes\")
1985 ((< emacs-minor-version 04) \"no\")
1987 OUTPUT=./conftest-$$
1988 echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1989 "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1990 result="`cat ${OUTPUT}`"
1991 echo "=> ${result}" >& 5 2>&1
1994 { echo "$as_me:$LINENO: result: ${result}" >&5
1995 echo "${ECHO_T}${result}" >&6; }
1996 if test "${result}" != "yes"
1998 { { echo "$as_me:$LINENO: error: This package requires at least ${EMACS_NAME} version 21.4 Aborting!" >&5
1999 echo "$as_me: error: This package requires at least ${EMACS_NAME} version 21.4 Aborting!" >&2;}
2000 { (exit 1); exit 1; }; }
2005 { echo "$as_me:$LINENO: checking if ${EMACS_NAME} is recent enough" >&5
2006 echo $ECHO_N "checking if ${EMACS_NAME} is recent enough... $ECHO_C" >&6; }
2008 elisp="(cond ((< emacs-major-version 21) \"no\")
2009 ((> emacs-major-version 21) \"yes\")
2010 ((< emacs-minor-version 01) \"no\")
2012 OUTPUT=./conftest-$$
2013 echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
2014 "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
2015 result="`cat ${OUTPUT}`"
2016 echo "=> ${result}" >& 5 2>&1
2019 { echo "$as_me:$LINENO: result: ${result}" >&5
2020 echo "${ECHO_T}${result}" >&6; }
2021 if test "${result}" != "yes"
2023 { { echo "$as_me:$LINENO: error: This package requires at least ${EMACS_NAME} version 21.1 Aborting!" >&5
2024 echo "$as_me: error: This package requires at least ${EMACS_NAME} version 21.1 Aborting!" >&2;}
2025 { (exit 1); exit 1; }; }
2030 # The Debian package uses `--disable-build-dir-test'; normal users should
2031 # never need to modify the default behavior.
2032 # Check whether --enable-build-dir-test was given.
2033 if test "${enable_build_dir_test+set}" = set; then
2034 enableval=$enable_build_dir_test; if ! [ "X-${enableval}" = "X-no" ]
2036 { echo "$as_me:$LINENO: checking if build directory is valid" >&5
2037 echo $ECHO_N "checking if build directory is valid... $ECHO_C" >&6; }
2039 elisp="(if (or (member (directory-file-name default-directory) load-path)\
2040 (member (file-name-as-directory default-directory) load-path))\
2042 OUTPUT=./conftest-$$
2043 echo "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
2044 "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
2045 valid_build_dir="`cat ${OUTPUT}`"
2046 echo "=> ${valid_build_dir}" >& 5 2>&1
2049 if test "${valid_build_dir}" = "no"; then
2050 { { echo "$as_me:$LINENO: error: Build directory inside load-path! Aborting!" >&5
2051 echo "$as_me: error: Build directory inside load-path! Aborting!" >&2;}
2052 { (exit 1); exit 1; }; }
2054 { echo "$as_me:$LINENO: result: yes" >&5
2055 echo "${ECHO_T}yes" >&6; }
2061 { echo "$as_me:$LINENO: checking if build directory is valid" >&5
2062 echo $ECHO_N "checking if build directory is valid... $ECHO_C" >&6; }
2064 elisp="(if (or (member (directory-file-name default-directory) load-path)\
2065 (member (file-name-as-directory default-directory) load-path))\
2067 OUTPUT=./conftest-$$
2068 echo "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
2069 "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
2070 valid_build_dir="`cat ${OUTPUT}`"
2071 echo "=> ${valid_build_dir}" >& 5 2>&1
2074 if test "${valid_build_dir}" = "no"; then
2075 { { echo "$as_me:$LINENO: error: Build directory inside load-path! Aborting!" >&5
2076 echo "$as_me: error: Build directory inside load-path! Aborting!" >&2;}
2077 { (exit 1); exit 1; }; }
2079 { echo "$as_me:$LINENO: result: yes" >&5
2080 echo "${ECHO_T}yes" >&6; }
2086 if test ${EMACS_FLAVOR} = "xemacs" ; then
2087 PLAT_LISP=prv-xemacs.el
2089 # Check whether --with-packagedir was given.
2090 if test "${with_packagedir+set}" = set; then
2091 withval=$with_packagedir; packagedir="`echo ${withval} | sed 's/^~\//${HOME}\//;s/[\/\\]$//'`"
2093 if test ${EMACS_FLAVOR} = xemacs; then
2094 { echo "$as_me:$LINENO: checking for XEmacs package directory" >&5
2095 echo $ECHO_N "checking for XEmacs package directory... $ECHO_C" >&6; }
2096 for currentprefix in '${datadir}/xemacs/xemacs-packages' \
2097 '${libdir}/xemacs/xemacs-packages' \
2098 '${datadir}' '${libdir}' "${emacsprefix}"
2100 expprefix="${currentprefix}"
2101 __ac_tmp_oldprefix__="${prefix}"
2102 __ac_tmp_oldexec_prefix__="$exec_prefix"
2103 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2104 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2105 while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2106 eval "expprefix=`sed ${__ac_tmp__} <<EOF
2109 `";; *) break ;; esac; done
2110 prefix="${__ac_tmp_oldprefix__}"
2111 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2114 (let (reldir (dirs (if (boundp 'late-packages)
2115 (append late-packages last-packages early-packages)
2116 (append late-package-hierarchies last-package-hierarchies
2117 early-package-hierarchies))))
2118 (dolist (name (list \"xemacs/site-packages\" \"xemacs/xemacs-packages\"
2119 \"site-packages\" \"xemacs-packages\") \"NONE\")
2122 (setq dir (directory-file-name dir))
2123 (file-name-absolute-p dir)
2124 (file-directory-p dir)
2125 (not (string-match \"\\\\\`\\\\.\\\\.\"
2126 (setq reldir (file-relative-name dir expanded))))
2127 (not (file-name-absolute-p reldir))
2128 (let ((name name) (dir dir))
2129 (while (and dir name
2130 (string= (file-name-nondirectory dir)
2131 (file-name-nondirectory name))
2132 (setq dir (file-name-directory dir)
2133 name (file-name-directory name))
2135 (setq dir (directory-file-name dir)
2136 name (directory-file-name name)))))
2139 (if (string= reldir \".\") (directory-file-name prefix)
2140 (concat (file-name-as-directory prefix)
2142 OUTPUT=./conftest-$$
2143 echo "${EMACS}" -batch -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" >& 5 2>&1
2144 "${EMACS}" -batch -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" >& 5 2>&1
2145 packagedir="`cat ${OUTPUT}`"
2146 echo "=> ${packagedir}" >& 5 2>&1
2149 if test "$packagedir" != NONE; then break; fi; done
2150 if test "x${packagedir}" = xNONE -o -z "${packagedir}"; then
2151 { { echo "$as_me:$LINENO: error: not found, exiting!" >&5
2152 echo "$as_me: error: not found, exiting!" >&2;}
2153 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: ${packagedir}" >&5
2156 echo "${ECHO_T}${packagedir}" >&6; }
2164 PLAT_LISP=prv-emacs.el
2168 if test "X${packagedir}" = Xno
2171 { echo "$as_me:$LINENO: checking where lisp files go" >&5
2172 echo $ECHO_N "checking where lisp files go... $ECHO_C" >&6; }
2174 # Check whether --with-lispdir was given.
2175 if test "${with_lispdir+set}" = set; then
2176 withval=$with_lispdir; lispdir="${withval}"
2179 if test "X${lispdir}" = X; then
2180 if test "X${packagedir}" = Xno; then
2181 # Test paths relative to prefixes
2182 for currentprefix in '${datadir}/'${EMACS_FLAVOR} '${libdir}/'${EMACS_FLAVOR} \
2183 "${emacsprefix}/share/${EMACS_FLAVOR}" \
2184 '${datadir}' '${libdir}' "${emacsprefix}"
2186 expprefix="${currentprefix}"
2187 __ac_tmp_oldprefix__="${prefix}"
2188 __ac_tmp_oldexec_prefix__="$exec_prefix"
2189 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2190 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2191 while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2192 eval "expprefix=`sed ${__ac_tmp__} <<EOF
2195 `";; *) break ;; esac; done
2196 prefix="${__ac_tmp_oldprefix__}"
2197 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2200 (let (reldir (dirs load-path))
2201 (dolist (name (list \"${EMACS_FLAVOR}/site-lisp\" \"${EMACS_FLAVOR}/site-packages\"
2202 \"site-lisp\" \"site-packages\") \"NONE\")
2205 (setq dir (directory-file-name dir))
2206 (file-name-absolute-p dir)
2207 (file-directory-p dir)
2208 (not (string-match \"\\\\\`\\\\.\\\\.\"
2209 (setq reldir (file-relative-name dir expanded))))
2210 (not (file-name-absolute-p reldir))
2211 (let ((name name) (dir dir))
2212 (while (and dir name
2213 (string= (file-name-nondirectory dir)
2214 (file-name-nondirectory name))
2215 (setq dir (file-name-directory dir)
2216 name (file-name-directory name))
2218 (setq dir (directory-file-name dir)
2219 name (directory-file-name name)))))
2222 (if (string= reldir \".\") (directory-file-name prefix)
2223 (concat (file-name-as-directory prefix)
2225 OUTPUT=./conftest-$$
2226 echo "${EMACS}" -batch -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" >& 5 2>&1
2227 "${EMACS}" -batch -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" >& 5 2>&1
2228 lispdir="`cat ${OUTPUT}`"
2229 echo "=> ${lispdir}" >& 5 2>&1
2232 if test "$lispdir" != NONE; then break; fi; done
2233 if test "${lispdir}" = "NONE"; then
2235 { { echo "$as_me:$LINENO: error: Cannot locate lisp directory,
2236 use --with-lispdir, --datadir, or possibly --prefix to rectify this" >&5
2237 echo "$as_me: error: Cannot locate lisp directory,
2238 use --with-lispdir, --datadir, or possibly --prefix to rectify this" >&2;}
2239 { (exit 1); exit 1; }; }
2243 lispdir="${packagedir}/lisp"
2246 { echo "$as_me:$LINENO: result: ${lispdir}" >&5
2247 echo "${ECHO_T}${lispdir}" >&6; }
2250 { echo "$as_me:$LINENO: checking what file to use for preview startup" >&5
2251 echo $ECHO_N "checking what file to use for preview startup... $ECHO_C" >&6; }
2253 # Check whether --with-previewstartfile was given.
2254 if test "${with_previewstartfile+set}" = set; then
2255 withval=$with_previewstartfile; previewstartfile="${withval}"
2257 _tmpdir_="${lispdir}"
2258 __ac_tmp_oldprefix__="${prefix}"
2259 __ac_tmp_oldexec_prefix__="$exec_prefix"
2260 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2261 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2262 while :;do case "$_tmpdir_" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2263 eval "_tmpdir_=`sed ${__ac_tmp__} <<EOF
2266 `";; *) break ;; esac; done
2267 prefix="${__ac_tmp_oldprefix__}"
2268 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2269 if test -d "${_tmpdir_}/site-start.d"
2271 previewstartfile="${lispdir}/site-start.d/preview-latex.el"
2273 previewstartfile="${lispdir}/preview-latex.el"
2277 { echo "$as_me:$LINENO: result: ${previewstartfile}" >&5
2278 echo "${ECHO_T}${previewstartfile}" >&6; }
2279 test "X$packagelispdir" = X && packagelispdir="${lispdir}/preview"
2280 test "X$packagedatadir" = X && packagedatadir="${packagelispdir}"
2282 #lispdir is only used for determining relative files.
2283 lispdir="${packagedir}"
2284 test "X$packagelispdir" = X && packagelispdir="${packagedir}/lisp/preview"
2285 previewstartfile="${packagelispdir}"/auto-autoloads.el
2286 test "X$packagedatadir" = X && packagedatadir="${packagedir}/etc/preview"
2291 { echo "$as_me:$LINENO: checking where the package lisp files go" >&5
2292 echo $ECHO_N "checking where the package lisp files go... $ECHO_C" >&6; }
2294 # Check whether --with-packagelispdir was given.
2295 if test "${with_packagelispdir+set}" = set; then
2296 withval=$with_packagelispdir; packagelispdir="${withval}"
2300 tmpdir="${packagelispdir}"
2301 __ac_tmp_oldprefix__="${prefix}"
2302 __ac_tmp_oldexec_prefix__="$exec_prefix"
2303 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2304 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2305 while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2306 eval "tmpdir=`sed ${__ac_tmp__} <<EOF
2309 `";; *) break ;; esac; done
2310 prefix="${__ac_tmp_oldprefix__}"
2311 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2312 explispdir="${lispdir}"
2313 __ac_tmp_oldprefix__="${prefix}"
2314 __ac_tmp_oldexec_prefix__="$exec_prefix"
2315 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2316 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2317 while :;do case "$explispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2318 eval "explispdir=`sed ${__ac_tmp__} <<EOF
2321 `";; *) break ;; esac; done
2322 prefix="${__ac_tmp_oldprefix__}"
2323 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2324 expstartup="${previewstartfile}"
2325 __ac_tmp_oldprefix__="${prefix}"
2326 __ac_tmp_oldexec_prefix__="$exec_prefix"
2327 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2328 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2329 while :;do case "$expstartup" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2330 eval "expstartup=`sed ${__ac_tmp__} <<EOF
2333 `";; *) break ;; esac; done
2334 prefix="${__ac_tmp_oldprefix__}"
2335 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2337 elisp="(progn (setq path (directory-file-name path))
2339 (not (string= (car load-path) (directory-file-name (car load-path)))))
2340 (setq path (file-name-as-directory path)))
2341 (setq path (expand-file-name path lispdir))
2342 (setq startupdir (file-name-directory (expand-file-name startup lispdir)))
2344 (if (or (string-match \"\\\\\`\\\\.\\\\.\"
2345 (setq relname (file-relative-name startupdir lispdir)))
2346 (file-name-absolute-p relname)
2347 (string-match \"\\\\\`\\\\.\\\\.\"
2348 (setq relname (file-relative-name path lispdir)))
2349 (file-name-absolute-p relname))
2350 (concat path target)
2353 ,(file-relative-name (concat path target) startupdir)
2354 (file-name-directory load-file-name)))
2355 ((string= path startupdir)
2356 '(file-name-directory load-file-name))
2357 ((string= path (directory-file-name startupdir))
2358 '(directory-file-name (file-name-directory load-file-name)))
2361 ,(file-relative-name path startupdir)
2362 (file-name-directory load-file-name)))))))"
2363 OUTPUT=./conftest-$$
2364 echo "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" >& 5 2>&1
2365 "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" >& 5 2>&1
2366 lisppackagelispdir="`cat ${OUTPUT}`"
2367 echo "=> ${lisppackagelispdir}" >& 5 2>&1
2372 { echo "$as_me:$LINENO: result: ${packagelispdir}" >&5
2373 echo "${ECHO_T}${packagelispdir}" >&6; }
2375 { echo "$as_me:$LINENO: checking where the data files go" >&5
2376 echo $ECHO_N "checking where the data files go... $ECHO_C" >&6; }
2378 # Check whether --with-packagedatadir was given.
2379 if test "${with_packagedatadir+set}" = set; then
2380 withval=$with_packagedatadir; packagedatadir="${withval}"
2384 tmpdir="${packagedatadir}"
2385 __ac_tmp_oldprefix__="${prefix}"
2386 __ac_tmp_oldexec_prefix__="$exec_prefix"
2387 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2388 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2389 while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2390 eval "tmpdir=`sed ${__ac_tmp__} <<EOF
2393 `";; *) break ;; esac; done
2394 prefix="${__ac_tmp_oldprefix__}"
2395 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2396 explispdir="${lispdir}"
2397 __ac_tmp_oldprefix__="${prefix}"
2398 __ac_tmp_oldexec_prefix__="$exec_prefix"
2399 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2400 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2401 while :;do case "$explispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2402 eval "explispdir=`sed ${__ac_tmp__} <<EOF
2405 `";; *) break ;; esac; done
2406 prefix="${__ac_tmp_oldprefix__}"
2407 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2408 expstartup="${previewstartfile}"
2409 __ac_tmp_oldprefix__="${prefix}"
2410 __ac_tmp_oldexec_prefix__="$exec_prefix"
2411 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2412 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2413 while :;do case "$expstartup" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2414 eval "expstartup=`sed ${__ac_tmp__} <<EOF
2417 `";; *) break ;; esac; done
2418 prefix="${__ac_tmp_oldprefix__}"
2419 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2421 elisp="(progn (setq path (directory-file-name path))
2423 (not (string= (car load-path) (directory-file-name (car load-path)))))
2424 (setq path (file-name-as-directory path)))
2425 (setq path (expand-file-name path lispdir))
2426 (setq startupdir (file-name-directory (expand-file-name startup lispdir)))
2428 (if (or (string-match \"\\\\\`\\\\.\\\\.\"
2429 (setq relname (file-relative-name startupdir lispdir)))
2430 (file-name-absolute-p relname)
2431 (string-match \"\\\\\`\\\\.\\\\.\"
2432 (setq relname (file-relative-name path lispdir)))
2433 (file-name-absolute-p relname))
2434 (concat path target)
2437 ,(file-relative-name (concat path target) startupdir)
2438 (file-name-directory load-file-name)))
2439 ((string= path startupdir)
2440 '(file-name-directory load-file-name))
2441 ((string= path (directory-file-name startupdir))
2442 '(directory-file-name (file-name-directory load-file-name)))
2445 ,(file-relative-name path startupdir)
2446 (file-name-directory load-file-name)))))))"
2447 OUTPUT=./conftest-$$
2448 echo "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" >& 5 2>&1
2449 "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" >& 5 2>&1
2450 lisppackagedatadir="`cat ${OUTPUT}`"
2451 echo "=> ${lisppackagedatadir}" >& 5 2>&1
2456 { echo "$as_me:$LINENO: result: ${packagedatadir}" >&5
2457 echo "${ECHO_T}${packagedatadir}" >&6; }
2463 { echo "$as_me:$LINENO: checking for the location of AUCTeX's tex-site.el" >&5
2464 echo $ECHO_N "checking for the location of AUCTeX's tex-site.el... $ECHO_C" >&6; }
2466 # Check whether --with-tex-site was given.
2467 if test "${with_tex_site+set}" = set; then
2468 withval=$with_tex_site; auctexdir="${withval}" ;
2469 __ac_tmp_oldprefix__="${prefix}"
2470 __ac_tmp_oldexec_prefix__="$exec_prefix"
2471 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2472 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2473 while :;do case "$withval" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2474 eval "withval=`sed ${__ac_tmp__} <<EOF
2477 `";; *) break ;; esac; done
2478 prefix="${__ac_tmp_oldprefix__}"
2479 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2480 if test ! -d "${withval}" ; then
2481 { { echo "$as_me:$LINENO: error: --with-tex-site=${auctexdir}: Directory does not exist" >&5
2482 echo "$as_me: error: --with-tex-site=${auctexdir}: Directory does not exist" >&2;}
2483 { (exit 1); exit 1; }; }
2488 if test -z "${auctexdir}" ; then
2489 if test "${EMACS_cv_ACCEPTABLE_AUCTEX+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 elisp="(condition-case nil
2495 (directory-file-name (file-name-directory
2496 (locate-library \"tex-site\")))
2498 OUTPUT=./conftest-$$
2499 echo "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
2500 "${EMACS}" -batch -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
2501 EMACS_cv_ACCEPTABLE_AUCTEX="`cat ${OUTPUT}`"
2502 echo "=> ${EMACS_cv_ACCEPTABLE_AUCTEX}" >& 5 2>&1
2505 if test -z "${EMACS_cv_ACCEPTABLE_AUCTEX}" ; then
2506 { { echo "$as_me:$LINENO: error: Can't find AUCTeX! Please install it!
2507 Check the PROBLEMS file for details." >&5
2508 echo "$as_me: error: Can't find AUCTeX! Please install it!
2509 Check the PROBLEMS file for details." >&2;}
2510 { (exit 1); exit 1; }; }
2515 auctexdir="${EMACS_cv_ACCEPTABLE_AUCTEX}"
2517 { echo "$as_me:$LINENO: result: ${auctexdir}" >&5
2518 echo "${ECHO_T}${auctexdir}" >&6; }
2524 for ac_prog in gs GSWIN32C.EXE
2526 # Extract the first word of "$ac_prog", so it can be a program name with args.
2527 set dummy $ac_prog; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_GS+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$GS"; then
2534 ac_cv_prog_GS="$GS" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_GS="$ac_prog"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 if test -n "$GS"; then
2555 { echo "$as_me:$LINENO: result: $GS" >&5
2556 echo "${ECHO_T}$GS" >&6; }
2558 { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2563 test -n "$GS" && break
2565 test -n "$GS" || GS="NONE"
2569 elisp="(if (member dir (list \"NONE\" (if (eq system-type 'windows-nt) \"GSWIN32C.EXE\" \"gs\"))) \"\" \`(defvar preview-gs-command ,dir))"
2570 OUTPUT=./conftest-$$
2571 echo "${EMACS}" -batch -no-site-file -eval "(let* ((dir(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${GS}" >& 5 2>&1
2572 "${EMACS}" -batch -no-site-file -eval "(let* ((dir(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${GS}" >& 5 2>&1
2573 lispGS="`cat ${OUTPUT}`"
2574 echo "=> ${lispGS}" >& 5 2>&1
2581 # Extract the first word of "latex", so it can be a program name with args.
2582 set dummy latex; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_path_LATEX+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX="NONE"
2612 LATEX=$ac_cv_path_LATEX
2613 if test -n "$LATEX"; then
2614 { echo "$as_me:$LINENO: result: $LATEX" >&5
2615 echo "${ECHO_T}$LATEX" >&6; }
2617 { echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6; }
2622 if test "${LATEX}"x = NONEx ; then
2623 { { echo "$as_me:$LINENO: error: LaTeX not found, aborting!
2624 You must install LaTeX for preview to work." >&5
2625 echo "$as_me: error: LaTeX not found, aborting!
2626 You must install LaTeX for preview to work." >&2;}
2627 { (exit 1); exit 1; }; }
2631 # Extract the first word of "pdflatex", so it can be a program name with args.
2632 set dummy pdflatex; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_path_PDFLATEX+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 PDFLATEX=$ac_cv_path_PDFLATEX
2662 if test -n "$PDFLATEX"; then
2663 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
2664 echo "${ECHO_T}$PDFLATEX" >&6; }
2666 { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2672 # Determine which latex-style components to install
2673 # To match .sty, .def, .cfg, but _not_ .drv
2674 TEXMFGEN=`sed -n 's/^%<installer>.*file[{]\\([^}.]*\\.[sdc][tef][yfg]\\)[}].*/\\1/p' latex/preview.dtx`
2675 # Replace newlines with spaces.
2676 TEXMFGEN="`echo ${TEXMFGEN}`"
2680 # Extract the first word of "tex", so it can be a program name with args.
2681 set dummy tex; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_path_TEX+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 ac_cv_path_TEX="$TEX" # Let the user override the test with a path.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_path_TEX="$as_dir/$ac_word$ac_exec_ext"
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 test -z "$ac_cv_path_TEX" && ac_cv_path_TEX="NONE"
2712 if test -n "$TEX"; then
2713 { echo "$as_me:$LINENO: result: $TEX" >&5
2714 echo "${ECHO_T}$TEX" >&6; }
2716 { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2721 if test "${TEX}"x = NONEx ; then
2722 { { echo "$as_me:$LINENO: error: NONE" >&5
2723 echo "$as_me: error: NONE" >&2;}
2724 { (exit 1); exit 1; }; }
2730 # Check whether --with-texmf-dir was given.
2731 if test "${with_texmf_dir+set}" = set; then
2732 withval=$with_texmf_dir; texmfdir="${withval}" ;
2733 if test "x${texmfdir}" = xno
2735 previewtexmfdir="${packagedatadir}/latex"
2736 previewdocdir="${packagedatadir}/doc"
2738 __ac_tmp_oldprefix__="${prefix}"
2739 __ac_tmp_oldexec_prefix__="$exec_prefix"
2740 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2741 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2742 while :;do case "$withval" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2743 eval "withval=`sed ${__ac_tmp__} <<EOF
2746 `";; *) break ;; esac; done
2747 prefix="${__ac_tmp_oldprefix__}"
2748 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2749 if test ! -d "${withval}" ; then
2750 { { echo "$as_me:$LINENO: error: --with-texmf-dir=\"${texmfdir}\": Directory does not exist" >&5
2751 echo "$as_me: error: --with-texmf-dir=\"${texmfdir}\": Directory does not exist" >&2;}
2752 { (exit 1); exit 1; }; }
2754 previewtexmfdir="${texmfdir}/tex/latex/preview"
2755 previewdocdir="${texmfdir}/doc/latex/styles"
2762 # Check whether --with-tex-dir was given.
2763 if test "${with_tex_dir+set}" = set; then
2764 withval=$with_tex_dir; previewtexmfdir="${withval}" ;
2765 __ac_tmp_oldprefix__="${prefix}"
2766 __ac_tmp_oldexec_prefix__="$exec_prefix"
2767 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2768 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2769 while :;do case "$withval" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2770 eval "withval=`sed ${__ac_tmp__} <<EOF
2773 `";; *) break ;; esac; done
2774 prefix="${__ac_tmp_oldprefix__}"
2775 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2776 if test ! -d "${withval}" ; then
2777 { { echo "$as_me:$LINENO: error: --with-tex-dir=\"${previewtexmfdir}\": Directory does not exist" >&5
2778 echo "$as_me: error: --with-tex-dir=\"${previewtexmfdir}\": Directory does not exist" >&2;}
2779 { (exit 1); exit 1; }; }
2786 # Check whether --with-doc-dir was given.
2787 if test "${with_doc_dir+set}" = set; then
2788 withval=$with_doc_dir; previewdocdir="${withval}" ;
2789 __ac_tmp_oldprefix__="${prefix}"
2790 __ac_tmp_oldexec_prefix__="$exec_prefix"
2791 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2792 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2793 while :;do case "$withval" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2794 eval "withval=`sed ${__ac_tmp__} <<EOF
2797 `";; *) break ;; esac; done
2798 prefix="${__ac_tmp_oldprefix__}"
2799 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2800 if test ! -d "${withval}" ; then
2801 { { echo "$as_me:$LINENO: error: --with-doc-dir=\"${previewdocdir}\": Directory does not exist" >&5
2802 echo "$as_me: error: --with-doc-dir=\"${previewdocdir}\": Directory does not exist" >&2;}
2803 { (exit 1); exit 1; }; }
2809 # First check for docstrip.cfg information -- removed. Too high
2810 # likelihood to pick up a user preference instead of a system setting.
2813 # kpsepath -n latex tex
2814 # and then go for the following in its output:
2815 # a) first path component in datadir/prefix ending in tex/latex// (strip trailing
2816 # // and leading !!): "Searching for TDS-compliant directory." Install
2817 # in preview subdirectory.
2818 # b) first absolute path component ending in // "Searching for directory
2819 # hierarchy" Install in preview subdirectory.
2820 # c) anything absolute. Install both files directly there.
2822 if test "x${texmfdir}" != xno ; then
2823 if test "x${previewtexmfdir}" = x ; then
2825 { echo "$as_me:$LINENO: checking for prefix from kpsepath" >&5
2826 echo $ECHO_N "checking for prefix from kpsepath... $ECHO_C" >&6; }
2830 elisp="(condition-case nil (let*
2831 ((prefix (directory-file-name (file-name-directory (executable-find cmd))))
2832 (parent (directory-file-name (file-name-directory prefix))))
2833 (if (string= (file-name-nondirectory prefix) \"bin\")
2834 (setq prefix parent)
2835 (if (string= (file-name-nondirectory parent) \"bin\")
2836 (setq prefix (directory-file-name (file-name-directory parent)))))
2837 prefix) (error "NONE"))"
2838 OUTPUT=./conftest-$$
2839 echo "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" kpsepath >& 5 2>&1
2840 "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" kpsepath >& 5 2>&1
2841 texprefix="`cat ${OUTPUT}`"
2842 echo "=> ${texprefix}" >& 5 2>&1
2846 if test "x${texprefix}" != "xNONE"
2849 { echo "$as_me:$LINENO: result: \"${texprefix}\"" >&5
2850 echo "${ECHO_T}\"${texprefix}\"" >&6; }
2852 { echo "$as_me:$LINENO: checking for TDS-compliant directory" >&5
2853 echo $ECHO_N "checking for TDS-compliant directory... $ECHO_C" >&6; }
2855 pathoutput="`kpsepath -n latex tex`"
2857 for currentprefix in '${datadir}/texmf' "${texprefix}/share/texmf-local" "${texprefix}/share/texmf" "${texprefix}/texmf-local" "${texprefix}/texmf"
2859 expprefix="${currentprefix}"
2860 __ac_tmp_oldprefix__="${prefix}"
2861 __ac_tmp_oldexec_prefix__="$exec_prefix"
2862 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2863 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2864 while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2865 eval "expprefix=`sed ${__ac_tmp__} <<EOF
2868 `";; *) break ;; esac; done
2869 prefix="${__ac_tmp_oldprefix__}"
2870 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2873 (let (reldir (dirs (mapcar (lambda(x)
2874 (and (string-match \"\\\\\`!*\\\\(.*\\\\)/tex/latex//+\\\\'\" x)
2875 (match-string 1 x)))
2876 (append (split-string pathoutput \";\")
2877 (split-string pathoutput \":\")))))
2878 (dolist (name (list nil) \"NONE\")
2881 (setq dir (directory-file-name dir))
2882 (file-name-absolute-p dir)
2883 (file-directory-p dir)
2884 (not (string-match \"\\\\\`\\\\.\\\\.\"
2885 (setq reldir (file-relative-name dir expanded))))
2886 (not (file-name-absolute-p reldir))
2887 (let ((name name) (dir dir))
2888 (while (and dir name
2889 (string= (file-name-nondirectory dir)
2890 (file-name-nondirectory name))
2891 (setq dir (file-name-directory dir)
2892 name (file-name-directory name))
2894 (setq dir (directory-file-name dir)
2895 name (directory-file-name name)))))
2898 (if (string= reldir \".\") (directory-file-name prefix)
2899 (concat (file-name-as-directory prefix)
2901 OUTPUT=./conftest-$$
2902 echo "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
2903 "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
2904 texmfdir="`cat ${OUTPUT}`"
2905 echo "=> ${texmfdir}" >& 5 2>&1
2908 if test "$texmfdir" != NONE; then break; fi; done
2910 if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then
2911 previewdocdir="${texmfdir}/doc/latex/styles"
2912 previewtexmfdir="${texmfdir}/tex/latex/preview"
2915 if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then
2917 { echo "$as_me:$LINENO: result: no" >&5
2918 echo "${ECHO_T}no" >&6; }
2919 { echo "$as_me:$LINENO: checking for TeX directory hierarchy" >&5
2920 echo $ECHO_N "checking for TeX directory hierarchy... $ECHO_C" >&6; }
2922 for currentprefix in '${datadir}/texmf' "${texprefix}/share/texmf-local" "${texprefix}/share/texmf" "${texprefix}/texmf-local" "${texprefix}/texmf" '${datadir}' "${texprefix}/share" "${texprefix}"
2924 expprefix="${currentprefix}"
2925 __ac_tmp_oldprefix__="${prefix}"
2926 __ac_tmp_oldexec_prefix__="$exec_prefix"
2927 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2928 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2929 while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2930 eval "expprefix=`sed ${__ac_tmp__} <<EOF
2933 `";; *) break ;; esac; done
2934 prefix="${__ac_tmp_oldprefix__}"
2935 exec_prefix="${__ac_tmp_oldexec_prefix__}"
2938 (let (reldir (dirs (mapcar (lambda(x)
2939 (and (string-match \"\\\\\`!*\\\\(.*[^/]\\\\)//+\\\\'\" x)
2940 (match-string 1 x)))
2941 (append (split-string pathoutput \";\")
2942 (split-string pathoutput \":\")))))
2943 (dolist (name (list nil) \"NONE\")
2946 (setq dir (directory-file-name dir))
2947 (file-name-absolute-p dir)
2948 (file-directory-p dir)
2949 (not (string-match \"\\\\\`\\\\.\\\\.\"
2950 (setq reldir (file-relative-name dir expanded))))
2951 (not (file-name-absolute-p reldir))
2952 (let ((name name) (dir dir))
2953 (while (and dir name
2954 (string= (file-name-nondirectory dir)
2955 (file-name-nondirectory name))
2956 (setq dir (file-name-directory dir)
2957 name (file-name-directory name))
2959 (setq dir (directory-file-name dir)
2960 name (directory-file-name name)))))
2963 (if (string= reldir \".\") (directory-file-name prefix)
2964 (concat (file-name-as-directory prefix)
2966 OUTPUT=./conftest-$$
2967 echo "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
2968 "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
2969 texmfdir="`cat ${OUTPUT}`"
2970 echo "=> ${texmfdir}" >& 5 2>&1
2973 if test "$texmfdir" != NONE; then break; fi; done
2975 if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then
2976 previewtexmfdir="${texmfdir}/preview"
2977 previewdocdir="${texmfdir}/preview"
2981 if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then
2983 { echo "$as_me:$LINENO: result: no" >&5
2984 echo "${ECHO_T}no" >&6; }
2985 { echo "$as_me:$LINENO: checking for TeX input directory" >&5
2986 echo $ECHO_N "checking for TeX input directory... $ECHO_C" >&6; }
2988 for currentprefix in '${datadir}' "${texprefix}/share" "${texprefix}"
2990 expprefix="${currentprefix}"
2991 __ac_tmp_oldprefix__="${prefix}"
2992 __ac_tmp_oldexec_prefix__="$exec_prefix"
2993 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
2994 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
2995 while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
2996 eval "expprefix=`sed ${__ac_tmp__} <<EOF
2999 `";; *) break ;; esac; done
3000 prefix="${__ac_tmp_oldprefix__}"
3001 exec_prefix="${__ac_tmp_oldexec_prefix__}"
3004 (let (reldir (dirs (mapcar (lambda(x)
3005 (and (string-match \"\\\\\`!*\\\\(.*[^/]\\\\)/?\\\\'\" x)
3006 (match-string 1 x)))
3007 (append (split-string pathoutput \";\")
3008 (split-string pathoutput \":\")))))
3009 (dolist (name (list nil) \"NONE\")
3012 (setq dir (directory-file-name dir))
3013 (file-name-absolute-p dir)
3014 (file-directory-p dir)
3015 (not (string-match \"\\\\\`\\\\.\\\\.\"
3016 (setq reldir (file-relative-name dir expanded))))
3017 (not (file-name-absolute-p reldir))
3018 (let ((name name) (dir dir))
3019 (while (and dir name
3020 (string= (file-name-nondirectory dir)
3021 (file-name-nondirectory name))
3022 (setq dir (file-name-directory dir)
3023 name (file-name-directory name))
3025 (setq dir (directory-file-name dir)
3026 name (directory-file-name name)))))
3029 (if (string= reldir \".\") (directory-file-name prefix)
3030 (concat (file-name-as-directory prefix)
3032 OUTPUT=./conftest-$$
3033 echo "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
3034 "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
3035 texmfdir="`cat ${OUTPUT}`"
3036 echo "=> ${texmfdir}" >& 5 2>&1
3039 if test "$texmfdir" != NONE; then break; fi; done
3041 if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then
3042 previewtexmfdir="${texmfdir}"
3043 previewdocdir="${texmfdir}"
3048 if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then
3050 { echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6; }
3052 { { echo "$as_me:$LINENO: error: Cannot find the texmf directory!
3053 Please use --with-texmf-dir=dir to specify where the preview tex files go" >&5
3054 echo "$as_me: error: Cannot find the texmf directory!
3055 Please use --with-texmf-dir=dir to specify where the preview tex files go" >&2;}
3056 { (exit 1); exit 1; }; }
3059 { echo "$as_me:$LINENO: result: ${texmfdir}" >&5
3060 echo "${ECHO_T}${texmfdir}" >&6; }
3064 echo Preview will be placed in ${previewtexmfdir}
3065 echo Preview docs will be placed in ${previewdocdir}
3070 if test "x${texmfdir}" = "xno"
3072 packagetexstyles="${packagedatadir}/latex"
3074 tmpdir="${packagetexstyles}"
3075 __ac_tmp_oldprefix__="${prefix}"
3076 __ac_tmp_oldexec_prefix__="$exec_prefix"
3077 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
3078 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
3079 while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
3080 eval "tmpdir=`sed ${__ac_tmp__} <<EOF
3083 `";; *) break ;; esac; done
3084 prefix="${__ac_tmp_oldprefix__}"
3085 exec_prefix="${__ac_tmp_oldexec_prefix__}"
3086 explispdir="${lispdir}"
3087 __ac_tmp_oldprefix__="${prefix}"
3088 __ac_tmp_oldexec_prefix__="$exec_prefix"
3089 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
3090 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
3091 while :;do case "$explispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
3092 eval "explispdir=`sed ${__ac_tmp__} <<EOF
3095 `";; *) break ;; esac; done
3096 prefix="${__ac_tmp_oldprefix__}"
3097 exec_prefix="${__ac_tmp_oldexec_prefix__}"
3098 expstartup="${previewstartfile}"
3099 __ac_tmp_oldprefix__="${prefix}"
3100 __ac_tmp_oldexec_prefix__="$exec_prefix"
3101 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
3102 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
3103 while :;do case "$expstartup" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
3104 eval "expstartup=`sed ${__ac_tmp__} <<EOF
3107 `";; *) break ;; esac; done
3108 prefix="${__ac_tmp_oldprefix__}"
3109 exec_prefix="${__ac_tmp_oldexec_prefix__}"
3111 elisp="(progn (setq path (directory-file-name path))
3113 (not (string= (car load-path) (directory-file-name (car load-path)))))
3114 (setq path (file-name-as-directory path)))
3115 (setq path (expand-file-name path lispdir))
3116 (setq startupdir (file-name-directory (expand-file-name startup lispdir)))
3118 (if (or (string-match \"\\\\\`\\\\.\\\\.\"
3119 (setq relname (file-relative-name startupdir lispdir)))
3120 (file-name-absolute-p relname)
3121 (string-match \"\\\\\`\\\\.\\\\.\"
3122 (setq relname (file-relative-name path lispdir)))
3123 (file-name-absolute-p relname))
3124 (concat path target)
3127 ,(file-relative-name (concat path target) startupdir)
3128 (file-name-directory load-file-name)))
3129 ((string= path startupdir)
3130 '(file-name-directory load-file-name))
3131 ((string= path (directory-file-name startupdir))
3132 '(directory-file-name (file-name-directory load-file-name)))
3135 ,(file-relative-name path startupdir)
3136 (file-name-directory load-file-name)))))))"
3137 OUTPUT=./conftest-$$
3138 echo "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" >& 5 2>&1
3139 "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" >& 5 2>&1
3140 lisppackagetexstyles="`cat ${OUTPUT}`"
3141 echo "=> ${lisppackagetexstyles}" >& 5 2>&1
3146 lisppackagetexstyles="(defvar preview-TeX-style-dir ${lisppackagetexstyles})"
3147 test "X${TEXHASH}" = X && TEXHASH=:
3149 lisppackagetexstyles=
3153 # Be very careful about assuming things about the available hash programs
3154 # MiKTeX comes with a braindead link to mktexlsr, apparently, so first
3155 # try the regular utility from them.
3158 if test "X${TEXHASH}" = "X"
3160 # Extract the first word of "texhash", so it can be a program name with args.
3161 set dummy texhash; ac_word=$2
3162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3164 if test "${ac_cv_path_TEXHASH+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 ac_cv_path_TEXHASH="$TEXHASH" # Let the user override the test with a path.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_path_TEXHASH="$as_dir/$ac_word$ac_exec_ext"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 TEXHASH=$ac_cv_path_TEXHASH
3191 if test -n "$TEXHASH"; then
3192 { echo "$as_me:$LINENO: result: $TEXHASH" >&5
3193 echo "${ECHO_T}$TEXHASH" >&6; }
3195 { echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6; }
3200 # Extract the first word of "initexmf", so it can be a program name with args.
3201 set dummy initexmf; ac_word=$2
3202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3204 if test "${ac_cv_prog_TEXHASH+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 if test -n "$TEXHASH"; then
3208 ac_cv_prog_TEXHASH="$TEXHASH" # Let the user override the test.
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_TEXHASH="initexmf -u"
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 TEXHASH=$ac_cv_prog_TEXHASH
3228 if test -n "$TEXHASH"; then
3229 { echo "$as_me:$LINENO: result: $TEXHASH" >&5
3230 echo "${ECHO_T}$TEXHASH" >&6; }
3232 { echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6; }
3237 if test "X${TEXHASH}" = X
3239 for ac_prog in mktexlsr MakeTeXls-R
3241 # Extract the first word of "$ac_prog", so it can be a program name with args.
3242 set dummy $ac_prog; ac_word=$2
3243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3245 if test "${ac_cv_path_TEXHASH+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 ac_cv_path_TEXHASH="$TEXHASH" # Let the user override the test with a path.
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_path_TEXHASH="$as_dir/$ac_word$ac_exec_ext"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 TEXHASH=$ac_cv_path_TEXHASH
3272 if test -n "$TEXHASH"; then
3273 { echo "$as_me:$LINENO: result: $TEXHASH" >&5
3274 echo "${ECHO_T}$TEXHASH" >&6; }
3276 { echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6; }
3281 test -n "$TEXHASH" && break
3283 test -n "$TEXHASH" || TEXHASH=":"
3288 { echo "$as_me:$LINENO: checking for glaring installation conflicts" >&5
3289 echo $ECHO_N "checking for glaring installation conflicts... $ECHO_C" >&6; }
3290 exppackagelispdir="$packagelispdir"
3291 __ac_tmp_oldprefix__="${prefix}"
3292 __ac_tmp_oldexec_prefix__="$exec_prefix"
3293 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
3294 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
3295 while :;do case "$exppackagelispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
3296 eval "exppackagelispdir=`sed ${__ac_tmp__} <<EOF
3299 `";; *) break ;; esac; done
3300 prefix="${__ac_tmp_oldprefix__}"
3301 exec_prefix="${__ac_tmp_oldexec_prefix__}"
3302 exppreviewstartfile="$previewstartfile"
3303 __ac_tmp_oldprefix__="${prefix}"
3304 __ac_tmp_oldexec_prefix__="$exec_prefix"
3305 test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
3306 test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
3307 while :;do case "$exppreviewstartfile" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
3308 eval "exppreviewstartfile=`sed ${__ac_tmp__} <<EOF
3309 $exppreviewstartfile
3311 `";; *) break ;; esac; done
3312 prefix="${__ac_tmp_oldprefix__}"
3313 exec_prefix="${__ac_tmp_oldexec_prefix__}"
3318 (and (setq tmp (locate-library \"preview.elc\"))
3319 (not (string= (file-truename tmp)
3320 (file-truename (expand-file-name \"preview.elc\"
3322 (format \"Conflicting previous installation in \`%s' found!\n\"
3323 (file-name-directory tmp)))
3324 (and (setq tmp (locate-library \"preview-latex.el\"))
3325 (not (string= (file-truename tmp)
3326 (file-truename previewstartfile)))
3327 (format \"Conflicting previous startup file \`%s' found!\n\" tmp)))"
3328 OUTPUT=./conftest-$$
3329 echo "${EMACS}" -batch -eval "(let* ((packagelispdir(pop command-line-args-left)) (previewstartfile(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${exppackagelispdir}" "${exppreviewstartfile}" >& 5 2>&1
3330 "${EMACS}" -batch -eval "(let* ((packagelispdir(pop command-line-args-left)) (previewstartfile(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${exppackagelispdir}" "${exppreviewstartfile}" >& 5 2>&1
3331 shadows="`cat ${OUTPUT}`"
3332 echo "=> ${shadows}" >& 5 2>&1
3335 if test "NONE${shadows}" != NONE
3337 conflictsmsg="Conflicts with previous installations have been detected.
3338 Please fix them before continuing.
3340 { echo "$as_me:$LINENO: result: ouch!
3342 echo "${ECHO_T}ouch!
3344 { echo "$as_me:$LINENO: WARNING: ${shadows}
3346 echo "$as_me: WARNING: ${shadows}
3350 { echo "$as_me:$LINENO: result: probably none" >&5
3351 echo "${ECHO_T}probably none" >&6; }
3355 texmfdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3359 prefix="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3363 exec_prefix="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3367 libdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3371 previewtexmfdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3375 previewdocdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3379 packagedir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3383 packagelispdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3387 previewstartfile="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3391 lispdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3395 packagedatadir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3399 auctexdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3403 datadir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3407 GS="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3411 TEXHASH="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3415 EMACS="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3419 TEX="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3423 LATEX="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3427 PDFLATEX="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
3432 ac_config_files="$ac_config_files Makefile auto.el latex/Makefile"
3434 cat >confcache <<\_ACEOF
3435 # This file is a shell script that caches the results of configure
3436 # tests run on this system so they can be shared between configure
3437 # scripts and configure runs, see configure's option --config-cache.
3438 # It is not useful on other systems. If it contains results you don't
3439 # want to keep, you may remove or edit it.
3441 # config.status only pays attention to the cache file if you give it
3442 # the --recheck option to rerun configure.
3444 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3445 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3450 # The following way of writing the cache mishandles newlines in values,
3451 # but we know of no workaround that is simple, portable, and efficient.
3452 # So, we kill variables containing newlines.
3453 # Ultrix sh set writes to stderr and can't be redirected directly,
3454 # and sets the high bit in the cache file unless we assign to the vars.
3456 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3457 eval ac_val=\$$ac_var
3461 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3462 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3465 _ | IFS | as_nl) ;; #(
3466 *) $as_unset $ac_var ;;
3472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3473 *${as_nl}ac_space=\ *)
3474 # `set' does not quote correctly, so add quotes (double-quote
3475 # substitution turns \\\\ into \\, and sed turns \\ into \).
3478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3481 # `set' quotes correctly as required by POSIX, so do not add quotes.
3482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3496 if test -w "$cache_file"; then
3497 test "x$cache_file" != "x/dev/null" &&
3498 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3499 echo "$as_me: updating cache $cache_file" >&6;}
3500 cat confcache >$cache_file
3502 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3503 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3508 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3509 # Let make expand exec_prefix.
3510 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3512 # Transform confdefs.h into DEFS.
3513 # Protect against shell expansion while executing Makefile rules.
3514 # Protect against Makefile macro expansion.
3516 # If the first sed substitution is executed (which looks for macros that
3517 # take arguments), then branch to the quote section. Otherwise,
3518 # look for a macro that doesn't take arguments.
3522 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3524 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3528 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3541 DEFS=`sed -n "$ac_script" confdefs.h`
3546 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3547 # 1. Remove the extension, and $U if already installed.
3548 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3549 ac_i=`echo "$ac_i" | sed "$ac_script"`
3550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3551 # will be set to the directory where LIBOBJS objects are built.
3552 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3553 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3557 LTLIBOBJS=$ac_ltlibobjs
3561 : ${CONFIG_STATUS=./config.status}
3562 ac_clean_files_save=$ac_clean_files
3563 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3564 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3565 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3566 cat >$CONFIG_STATUS <<_ACEOF
3568 # Generated by $as_me.
3569 # Run this file to recreate the current configuration.
3570 # Compiler output produced by configure, useful for debugging
3571 # configure, is in config.log if it exists.
3576 SHELL=\${CONFIG_SHELL-$SHELL}
3579 cat >>$CONFIG_STATUS <<\_ACEOF
3580 ## --------------------- ##
3581 ## M4sh Initialization. ##
3582 ## --------------------- ##
3584 # Be more Bourne compatible
3585 DUALCASE=1; export DUALCASE # for MKS sh
3586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3589 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3590 # is contrary to our usage. Disable this feature.
3591 alias -g '${1+"$@"}'='"$@"'
3592 setopt NO_GLOB_SUBST
3594 case `(set -o) 2>/dev/null` in
3595 *posix*) set -o posix ;;
3604 # Avoid depending upon Character Ranges.
3605 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3606 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3607 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3608 as_cr_digits='0123456789'
3609 as_cr_alnum=$as_cr_Letters$as_cr_digits
3611 # The user is always right.
3612 if test "${PATH_SEPARATOR+set}" != set; then
3613 echo "#! /bin/sh" >conf$$.sh
3614 echo "exit 0" >>conf$$.sh
3616 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3624 # Support unset when possible.
3625 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3633 # We need space, tab and new line, in precisely that order. Quoting is
3634 # there to prevent editors from complaining about space-tab.
3635 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3636 # splitting by setting IFS to empty value.)
3641 # Find who we are. Look in the path if we contain no directory separator.
3643 *[\\/]* ) as_myself=$0 ;;
3644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir=.
3649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3655 # We did not find ourselves, most probably we were run as `sh COMMAND'
3656 # in which case we are not to be found in the path.
3657 if test "x$as_myself" = x; then
3660 if test ! -f "$as_myself"; then
3661 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3662 { (exit 1); exit 1; }
3665 # Work around bugs in pre-3.0 UWIN ksh.
3666 for as_var in ENV MAIL MAILPATH
3667 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3675 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3676 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3677 LC_TELEPHONE LC_TIME
3679 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3680 eval $as_var=C; export $as_var
3682 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3686 # Required to use basename.
3687 if expr a : '\(a\)' >/dev/null 2>&1 &&
3688 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3694 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3695 as_basename=basename
3701 # Name of the executable.
3702 as_me=`$as_basename -- "$0" ||
3703 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3704 X"$0" : 'X\(//\)$' \| \
3705 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3707 sed '/^.*\/\([^/][^/]*\)\/*$/{
3728 test "x$as_lineno_1" != "x$as_lineno_2" &&
3729 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3731 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3732 # uniformly replaced by the line number. The first 'sed' inserts a
3733 # line-number line after each line using $LINENO; the second 'sed'
3734 # does the real work. The second script uses 'N' to pair each
3735 # line-number line with the line containing $LINENO, and appends
3736 # trailing '-' during substitution so that $LINENO is not a special
3738 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3739 # scripts with optimization help from Paolo Bonzini. Blame Lee
3740 # E. McMahon (1931-1989) for sed's syntax. :-)
3752 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3756 chmod +x "$as_me.lineno" ||
3757 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3758 { (exit 1); exit 1; }; }
3760 # Don't try to exec as it changes $[0], causing all sort of problems
3761 # (the dirname of $[0] is not the place where we might find the
3762 # original and so on. Autoconf is especially sensitive to this).
3764 # Exit status is that of the last command.
3769 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3775 ECHO_C= ECHO_N= ECHO_T=
3778 case `echo 'x\c'` in
3779 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3786 if expr a : '\(a\)' >/dev/null 2>&1 &&
3787 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3793 rm -f conf$$ conf$$.exe conf$$.file
3794 if test -d conf$$.dir; then
3795 rm -f conf$$.dir/conf$$.file
3801 if ln -s conf$$.file conf$$ 2>/dev/null; then
3803 # ... but there are two gotchas:
3804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3806 # In both cases, we have to default to `cp -p'.
3807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3809 elif ln conf$$.file conf$$ 2>/dev/null; then
3814 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3815 rmdir conf$$.dir 2>/dev/null
3817 if mkdir -p . 2>/dev/null; then
3820 test -d ./-p && rmdir ./-p
3824 if test -x / >/dev/null 2>&1; then
3827 if ls -dL / >/dev/null 2>&1; then
3834 if test -d "$1"; then
3840 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3841 ???[sx]*):;;*)false;;esac;fi
3845 as_executable_p=$as_test_x
3847 # Sed expression to map a string onto a valid CPP name.
3848 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3850 # Sed expression to map a string onto a valid variable name.
3851 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3856 # Save the log message, to keep $[0] and so on meaningful, and to
3857 # report actual input values of CONFIG_FILES etc. instead of their
3858 # values after options handling.
3860 This file was extended by preview-latex $as_me 11.84, which was
3861 generated by GNU Autoconf 2.61. Invocation command line was
3863 CONFIG_FILES = $CONFIG_FILES
3864 CONFIG_HEADERS = $CONFIG_HEADERS
3865 CONFIG_LINKS = $CONFIG_LINKS
3866 CONFIG_COMMANDS = $CONFIG_COMMANDS
3869 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3874 cat >>$CONFIG_STATUS <<_ACEOF
3875 # Files that config.status was made for.
3876 config_files="$ac_config_files"
3880 cat >>$CONFIG_STATUS <<\_ACEOF
3882 \`$as_me' instantiates files from templates according to the
3883 current configuration.
3885 Usage: $0 [OPTIONS] [FILE]...
3887 -h, --help print this help, then exit
3888 -V, --version print version number and configuration settings, then exit
3889 -q, --quiet do not print progress messages
3890 -d, --debug don't remove temporary files
3891 --recheck update $as_me by reconfiguring in the same conditions
3892 --file=FILE[:TEMPLATE]
3893 instantiate the configuration file FILE
3895 Configuration files:
3898 Report bugs to <bug-autoconf@gnu.org>."
3901 cat >>$CONFIG_STATUS <<_ACEOF
3903 preview-latex config.status 11.84
3904 configured by $0, generated by GNU Autoconf 2.61,
3905 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3907 Copyright (C) 2006 Free Software Foundation, Inc.
3908 This config.status script is free software; the Free Software Foundation
3909 gives unlimited permission to copy, distribute and modify it."
3916 cat >>$CONFIG_STATUS <<\_ACEOF
3917 # If no file are specified by the user, then we need to provide default
3918 # value. By we need to know if files were specified by the user.
3924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3925 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3936 # Handling of the options.
3937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3939 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3940 echo "$ac_cs_version"; exit ;;
3941 --debug | --debu | --deb | --de | --d | -d )
3943 --file | --fil | --fi | --f )
3945 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3946 ac_need_defaults=false;;
3947 --he | --h | --help | --hel | -h )
3948 echo "$ac_cs_usage"; exit ;;
3949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3954 -*) { echo "$as_me: error: unrecognized option: $1
3955 Try \`$0 --help' for more information." >&2
3956 { (exit 1); exit 1; }; } ;;
3958 *) ac_config_targets="$ac_config_targets $1"
3959 ac_need_defaults=false ;;
3965 ac_configure_extra_args=
3967 if $ac_cs_silent; then
3969 ac_configure_extra_args="$ac_configure_extra_args --silent"
3973 cat >>$CONFIG_STATUS <<_ACEOF
3974 if \$ac_cs_recheck; then
3975 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3978 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3982 cat >>$CONFIG_STATUS <<\_ACEOF
3986 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3987 ## Running $as_me. ##
3993 cat >>$CONFIG_STATUS <<_ACEOF
3996 cat >>$CONFIG_STATUS <<\_ACEOF
3998 # Handling of arguments.
3999 for ac_config_target in $ac_config_targets
4001 case $ac_config_target in
4002 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4003 "auto.el") CONFIG_FILES="$CONFIG_FILES auto.el" ;;
4004 "latex/Makefile") CONFIG_FILES="$CONFIG_FILES latex/Makefile" ;;
4006 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4007 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4008 { (exit 1); exit 1; }; };;
4013 # If the user did not use the arguments to specify the items to instantiate,
4014 # then the envvar interface is used. Set only those that are not.
4015 # We use the long form for the default assignment because of an extremely
4016 # bizarre bug on SunOS 4.1.3.
4017 if $ac_need_defaults; then
4018 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4021 # Have a temporary directory for convenience. Make it in the build tree
4022 # simply because there is no reason against having it here, and in addition,
4023 # creating and moving files from /tmp can sometimes cause problems.
4024 # Hook for its removal unless debugging.
4025 # Note that there is a small window in which the directory will not be cleaned:
4026 # after its creation but before its name has been assigned to `$tmp'.
4030 trap 'exit_status=$?
4031 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4033 trap '{ (exit 1); exit 1; }' 1 2 13 15
4035 # Create a (secure) tmp directory for tmp files.
4038 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4039 test -n "$tmp" && test -d "$tmp"
4042 tmp=./conf$$-$RANDOM
4043 (umask 077 && mkdir "$tmp")
4046 echo "$me: cannot create a temporary directory in ." >&2
4047 { (exit 1); exit 1; }
4051 # Set up the sed scripts for CONFIG_FILES section.
4054 # No need to generate the scripts if there are no CONFIG_FILES.
4055 # This happens for instance when ./config.status config.h
4056 if test -n "$CONFIG_FILES"; then
4063 for ac_last_try in false false false false false :; do
4064 cat >conf$$subs.sed <<_ACEOF
4065 SHELL!$SHELL$ac_delim
4066 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4067 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4068 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4069 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4070 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4071 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4072 exec_prefix!$exec_prefix$ac_delim
4073 prefix!$prefix$ac_delim
4074 program_transform_name!$program_transform_name$ac_delim
4075 bindir!$bindir$ac_delim
4076 sbindir!$sbindir$ac_delim
4077 libexecdir!$libexecdir$ac_delim
4078 datarootdir!$datarootdir$ac_delim
4079 datadir!$datadir$ac_delim
4080 sysconfdir!$sysconfdir$ac_delim
4081 sharedstatedir!$sharedstatedir$ac_delim
4082 localstatedir!$localstatedir$ac_delim
4083 includedir!$includedir$ac_delim
4084 oldincludedir!$oldincludedir$ac_delim
4085 docdir!$docdir$ac_delim
4086 infodir!$infodir$ac_delim
4087 htmldir!$htmldir$ac_delim
4088 dvidir!$dvidir$ac_delim
4089 pdfdir!$pdfdir$ac_delim
4090 psdir!$psdir$ac_delim
4091 libdir!$libdir$ac_delim
4092 localedir!$localedir$ac_delim
4093 mandir!$mandir$ac_delim
4095 ECHO_C!$ECHO_C$ac_delim
4096 ECHO_N!$ECHO_N$ac_delim
4097 ECHO_T!$ECHO_T$ac_delim
4099 build_alias!$build_alias$ac_delim
4100 host_alias!$host_alias$ac_delim
4101 target_alias!$target_alias$ac_delim
4102 SET_MAKE!$SET_MAKE$ac_delim
4103 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
4104 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
4105 INSTALL_DATA!$INSTALL_DATA$ac_delim
4106 EMACS!$EMACS$ac_delim
4107 XEMACS!$XEMACS$ac_delim
4108 EMACS_FLAVOR!$EMACS_FLAVOR$ac_delim
4109 packagedir!$packagedir$ac_delim
4110 lispdir!$lispdir$ac_delim
4111 previewstartfile!$previewstartfile$ac_delim
4112 lisppackagelispdir!$lisppackagelispdir$ac_delim
4113 packagelispdir!$packagelispdir$ac_delim
4114 lisppackagedatadir!$lisppackagedatadir$ac_delim
4115 packagedatadir!$packagedatadir$ac_delim
4116 PLAT_LISP!$PLAT_LISP$ac_delim
4117 auctexdir!$auctexdir$ac_delim
4119 lispGS!$lispGS$ac_delim
4120 LATEX!$LATEX$ac_delim
4121 PDFLATEX!$PDFLATEX$ac_delim
4122 TEXMFGEN!$TEXMFGEN$ac_delim
4124 texmfdir!$texmfdir$ac_delim
4125 previewtexmfdir!$previewtexmfdir$ac_delim
4126 previewdocdir!$previewdocdir$ac_delim
4127 lisppackagetexstyles!$lisppackagetexstyles$ac_delim
4128 packagetexstyles!$packagetexstyles$ac_delim
4129 TEXHASH!$TEXHASH$ac_delim
4130 LIBOBJS!$LIBOBJS$ac_delim
4131 LTLIBOBJS!$LTLIBOBJS$ac_delim
4134 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
4136 elif $ac_last_try; then
4137 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4138 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4139 { (exit 1); exit 1; }; }
4141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4145 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4146 if test -n "$ac_eof"; then
4147 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4148 ac_eof=`expr $ac_eof + 1`
4151 cat >>$CONFIG_STATUS <<_ACEOF
4152 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4156 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4157 s/^/s,@/; s/!/@,|#_!!_#|/
4160 s/'"$ac_delim"'$/,g/; t
4162 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4163 ' >>$CONFIG_STATUS <conf$$subs.sed
4164 rm -f conf$$subs.sed
4165 cat >>$CONFIG_STATUS <<_ACEOF
4172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4174 # trailing colons and then remove the whole line if VPATH becomes empty
4175 # (actually we leave an empty line to preserve line numbers).
4176 if test "x$srcdir" = x.; then
4177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4181 s/^\([^=]*=[ ]*\):*/\1/
4187 cat >>$CONFIG_STATUS <<\_ACEOF
4188 fi # test -n "$CONFIG_FILES"
4191 for ac_tag in :F $CONFIG_FILES
4194 :[FHLC]) ac_mode=$ac_tag; continue;;
4196 case $ac_mode$ac_tag in
4198 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4199 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4200 { (exit 1); exit 1; }; };;
4201 :[FH]-) ac_tag=-:-;;
4202 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4219 -) ac_f="$tmp/stdin";;
4220 *) # Look for the file first in the build tree, then in the source tree
4221 # (if the path is not absolute). The absolute path cannot be DOS-style,
4222 # because $ac_f cannot contain `:'.
4226 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4228 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4229 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4230 { (exit 1); exit 1; }; };;
4232 ac_file_inputs="$ac_file_inputs $ac_f"
4235 # Let's still pretend it is `configure' which instantiates (i.e., don't
4236 # use $as_me), people would be surprised to read:
4237 # /* config.h. Generated by config.status. */
4238 configure_input="Generated from "`IFS=:
4239 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4240 if test x"$ac_file" != x-; then
4241 configure_input="$ac_file. $configure_input"
4242 { echo "$as_me:$LINENO: creating $ac_file" >&5
4243 echo "$as_me: creating $ac_file" >&6;}
4247 *:-:* | *:-) cat >"$tmp/stdin";;
4252 ac_dir=`$as_dirname -- "$ac_file" ||
4253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4254 X"$ac_file" : 'X\(//\)[^/]' \| \
4255 X"$ac_file" : 'X\(//\)$' \| \
4256 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4277 -*) as_dir=./$as_dir;;
4279 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4283 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4284 *) as_qdir=$as_dir;;
4286 as_dirs="'$as_qdir' $as_dirs"
4287 as_dir=`$as_dirname -- "$as_dir" ||
4288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4289 X"$as_dir" : 'X\(//\)[^/]' \| \
4290 X"$as_dir" : 'X\(//\)$' \| \
4291 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4310 test -d "$as_dir" && break
4312 test -z "$as_dirs" || eval "mkdir $as_dirs"
4313 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4314 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4315 { (exit 1); exit 1; }; }; }
4319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4322 # A ".." for each directory in $ac_dir_suffix.
4323 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4324 case $ac_top_builddir_sub in
4325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4329 ac_abs_top_builddir=$ac_pwd
4330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4331 # for backward compatibility:
4332 ac_top_builddir=$ac_top_build_prefix
4335 .) # We are building in place.
4337 ac_top_srcdir=$ac_top_builddir_sub
4338 ac_abs_top_srcdir=$ac_pwd ;;
4339 [\\/]* | ?:[\\/]* ) # Absolute name.
4340 ac_srcdir=$srcdir$ac_dir_suffix;
4341 ac_top_srcdir=$srcdir
4342 ac_abs_top_srcdir=$srcdir ;;
4344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4345 ac_top_srcdir=$ac_top_build_prefix$srcdir
4346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4358 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4359 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4363 cat >>$CONFIG_STATUS <<\_ACEOF
4364 # If the template does not know about datarootdir, expand it.
4365 # FIXME: This hack should be removed a few years after 2.60.
4366 ac_datarootdir_hack=; ac_datarootdir_seen=
4368 case `sed -n '/datarootdir/ {
4377 ' $ac_file_inputs` in
4378 *datarootdir*) ac_datarootdir_seen=yes;;
4379 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4380 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4381 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4383 cat >>$CONFIG_STATUS <<_ACEOF
4384 ac_datarootdir_hack='
4385 s&@datadir@&$datadir&g
4386 s&@docdir@&$docdir&g
4387 s&@infodir@&$infodir&g
4388 s&@localedir@&$localedir&g
4389 s&@mandir@&$mandir&g
4390 s&\\\${datarootdir}&$datarootdir&g' ;;
4394 # Neutralize VPATH when `$srcdir' = `.'.
4395 # Shell code in configure.ac might set extrasub.
4396 # FIXME: do we really want to maintain this feature?
4397 cat >>$CONFIG_STATUS <<_ACEOF
4401 cat >>$CONFIG_STATUS <<\_ACEOF
4403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4404 s&@configure_input@&$configure_input&;t t
4405 s&@top_builddir@&$ac_top_builddir_sub&;t t
4406 s&@srcdir@&$ac_srcdir&;t t
4407 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4408 s&@top_srcdir@&$ac_top_srcdir&;t t
4409 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4410 s&@builddir@&$ac_builddir&;t t
4411 s&@abs_builddir@&$ac_abs_builddir&;t t
4412 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4413 s&@INSTALL@&$ac_INSTALL&;t t
4414 $ac_datarootdir_hack
4415 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4417 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4418 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4419 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4420 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4421 which seems to be undefined. Please make sure it is defined." >&5
4422 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4423 which seems to be undefined. Please make sure it is defined." >&2;}
4427 -) cat "$tmp/out"; rm -f "$tmp/out";;
4428 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4439 { (exit 0); exit 0; }
4441 chmod +x $CONFIG_STATUS
4442 ac_clean_files=$ac_clean_files_save
4445 # configure is writing to config.log, and then calls config.status.
4446 # config.status does its own redirection, appending to config.log.
4447 # Unfortunately, on DOS this fails, as config.log is still kept open
4448 # by configure, so config.status won't be able to write to it; its
4449 # output is simply discarded. So we exec the FD to /dev/null,
4450 # effectively closing config.log, so it can be properly (re)opened and
4451 # appended to by config.status. When coming back to configure, we
4452 # need to make the FD available again.
4453 if test "$no_create" != yes; then
4455 ac_config_status_args=
4456 test "$silent" = yes &&
4457 ac_config_status_args="$ac_config_status_args --quiet"
4459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4462 # would make configure fail if this is the last instruction.
4463 $ac_cs_success || { (exit 1); exit 1; }
4468 Congratulations! Configuration of preview is complete.