summaryrefslogtreecommitdiff
path: root/Build/source/utils/chktex/configure
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-05-07 16:10:20 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-05-07 16:10:20 +0000
commit4a0e95f1014b13c4e182b923d2f0e046499ecdbf (patch)
treec99f2c5433e4e6409370ee6385c9596c57f81774 /Build/source/utils/chktex/configure
parentc86e94c1b5dc658db3ab0062cbe95e69bafc32d4 (diff)
chktex doc
git-svn-id: svn://tug.org/texlive/trunk@18145 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/chktex/configure')
-rwxr-xr-xBuild/source/utils/chktex/configure52
1 files changed, 50 insertions, 2 deletions
diff --git a/Build/source/utils/chktex/configure b/Build/source/utils/chktex/configure
index ba7c4762fbe..64fd69c7f2b 100755
--- a/Build/source/utils/chktex/configure
+++ b/Build/source/utils/chktex/configure
@@ -600,9 +600,11 @@ LTLIBOBJS
LIBOBJS
PERL5
CHKTEX_TREE
+PDF_DEPEND
EGREP
GREP
CPP
+PDFLATEX
LN_S
WARNING_CFLAGS
am__fastdepCC_FALSE
@@ -3762,6 +3764,49 @@ else
$as_echo "no, using $LN_S" >&6; }
fi
+for ac_prog in pdflatex
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_PDFLATEX+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$PDFLATEX"; then
+ ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_PDFLATEX="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+PDFLATEX=$ac_cv_prog_PDFLATEX
+if test -n "$PDFLATEX"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
+$as_echo "$PDFLATEX" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$PDFLATEX" && break
+done
+test -n "$PDFLATEX" || PDFLATEX="no"
+
@@ -4504,6 +4549,9 @@ fi
done
+test "x$enable_maintainer_mode" = xyes && PDF_DEPEND=ChkTeX.tex
+
+
ac_config_headers="$ac_config_headers config.h"
@@ -4517,7 +4565,7 @@ PERL5='/usr/bin/env perl'
ac_config_files="$ac_config_files Makefile"
-ac_config_files="$ac_config_files ChkTeX.tex:chktex-1.6.4/ChkTeX.tex.in"
+ac_config_files="$ac_config_files chktex-1.6.4/ChkTeX.tex"
ac_config_files="$ac_config_files deweb.pl:chktex-1.6.4/deweb.in"
@@ -5239,7 +5287,7 @@ do
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
- "ChkTeX.tex") CONFIG_FILES="$CONFIG_FILES ChkTeX.tex:chktex-1.6.4/ChkTeX.tex.in" ;;
+ "chktex-1.6.4/ChkTeX.tex") CONFIG_FILES="$CONFIG_FILES chktex-1.6.4/ChkTeX.tex" ;;
"deweb.pl") CONFIG_FILES="$CONFIG_FILES deweb.pl:chktex-1.6.4/deweb.in" ;;
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;