summaryrefslogtreecommitdiff
path: root/Build/source/utils/chktex/configure
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-01-10 11:21:44 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-01-10 11:21:44 +0000
commitae3abcea86067a9cdb6a426102b6eed17a2526c9 (patch)
tree9e028be9f3a60836686e09fa18d6730276281413 /Build/source/utils/chktex/configure
parenta1bd91439dbe73e115cbf969d04a229469c68db0 (diff)
install linked perl scripts
git-svn-id: svn://tug.org/texlive/trunk@21007 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/chktex/configure')
-rwxr-xr-xBuild/source/utils/chktex/configure51
1 files changed, 48 insertions, 3 deletions
diff --git a/Build/source/utils/chktex/configure b/Build/source/utils/chktex/configure
index 526c4486123..dc403357e09 100755
--- a/Build/source/utils/chktex/configure
+++ b/Build/source/utils/chktex/configure
@@ -608,6 +608,8 @@ LTLIBOBJS
LIBOBJS
PERL5
CHKTEX_TREE
+WIN32_WRAP_FALSE
+WIN32_WRAP_TRUE
WIN32_FALSE
WIN32_TRUE
PDF_DEPEND
@@ -3780,6 +3782,37 @@ else
$as_echo "no, using $LN_S" >&6; }
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ SET_MAKE=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
+
for ac_prog in pdflatex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -4624,6 +4657,14 @@ else
WIN32_FALSE=
fi
+ if test -r $srcdir/../../texk/texlive/w32_wrapper/runscript.exe; then
+ WIN32_WRAP_TRUE=
+ WIN32_WRAP_FALSE='#'
+else
+ WIN32_WRAP_TRUE='#'
+ WIN32_WRAP_FALSE=
+fi
+
CHKTEX_TREE=chktex-1.6.4
@@ -4634,7 +4675,7 @@ ac_config_files="$ac_config_files Makefile"
ac_config_files="$ac_config_files ChkTeX.tmp:chktex-1.6.4/ChkTeX.tex.in"
-ac_config_files="$ac_config_files deweb:chktex-1.6.4/deweb.in"
+ac_config_files="$ac_config_files deweb.pl:chktex-1.6.4/deweb.in"
cat >confcache <<\_ACEOF
@@ -4770,6 +4811,10 @@ if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
as_fn_error $? "conditional \"WIN32\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${WIN32_WRAP_TRUE}" && test -z "${WIN32_WRAP_FALSE}"; then
+ as_fn_error $? "conditional \"WIN32_WRAP\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
@@ -5378,7 +5423,7 @@ do
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"ChkTeX.tmp") CONFIG_FILES="$CONFIG_FILES ChkTeX.tmp:chktex-1.6.4/ChkTeX.tex.in" ;;
- "deweb") CONFIG_FILES="$CONFIG_FILES deweb:chktex-1.6.4/deweb.in" ;;
+ "deweb.pl") CONFIG_FILES="$CONFIG_FILES deweb.pl:chktex-1.6.4/deweb.in" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac
@@ -6069,7 +6114,7 @@ $as_echo X"$file" |
done
}
;;
- "deweb":F) chmod +x deweb ;;
+ "deweb.pl":F) chmod +x deweb.pl ;;
esac
done # for ac_tag