]> sourceware.org Git - automake.git/commitdiff
* configure.in: Check for 'tex'.
authorAlexandre Duret-Lutz <adl@gnu.org>
Wed, 25 Sep 2002 18:46:41 +0000 (18:46 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Wed, 25 Sep 2002 18:46:41 +0000 (18:46 +0000)
* tests/defs.in: Handle required=tex using configure's result.
Reported by Patrick Welche.

ChangeLog
Makefile.in
configure
configure.in
lib/Automake/Makefile.in
lib/Makefile.in
lib/am/Makefile.in
m4/Makefile.in
tests/Makefile.in
tests/defs.in

index 06c506401c1cad8fb82e065e6f587c38fd2089ce..f8f990557b5ab721e4d4767569bbd7fdc7155d9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2002-09-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
+       * configure.in: Check for 'tex'.
+       * tests/defs.in: Handle required=tex using configure's result.
+       Reported by Patrick Welche.
+
        * Makefile.am (mdate-sh): Remove.
        * mdate-sh: Delete.
        Suggested by Akim Demaille.
index 5a991638f8930247a6dace8290669454ad1ca61b..e5293297f53a59ed58531220f8e487dac1ba4da7 100644 (file)
@@ -68,6 +68,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEX = @TEX@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 bindir = @bindir@
index 6d6f66a385e32cc0aec15c743cff18592bbf2ab6..0612c4615dd661cab103c3174d83731fa7520409 100755 (executable)
--- a/configure
+++ b/configure
@@ -270,7 +270,7 @@ PACKAGE_STRING='GNU Automake 1.6g'
 PACKAGE_BUGREPORT='bug-automake@gnu.org'
 
 ac_unique_file="automake.in"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE APIVERSION pkgvdatadir PERL LN EGREP FGREP LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE APIVERSION pkgvdatadir PERL TEX LN EGREP FGREP LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 
 # Initialize some variables set by options.
@@ -1632,6 +1632,43 @@ echo "$as_me: error: perl 5.005 or better is required" >&2;}
    { (exit 1); exit 1; }; }
 }
 
+# The test suite will skip some tests if tex is absent.
+# Extract the first word of "tex", so it can be a program name with args.
+set dummy tex; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_TEX+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$TEX"; then
+  ac_cv_prog_TEX="$TEX" # 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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_TEX="tex"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+TEX=$ac_cv_prog_TEX
+if test -n "$TEX"; then
+  echo "$as_me:$LINENO: result: $TEX" >&5
+echo "${ECHO_T}$TEX" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+
 # Test for Autoconf.  We run Autoconf in a subdirectory to ease
 # deletion of any files created (such as those added to
 # autom4te.cache).
@@ -2346,6 +2383,7 @@ s,@SET_MAKE@,$SET_MAKE,;t t
 s,@APIVERSION@,$APIVERSION,;t t
 s,@pkgvdatadir@,$pkgvdatadir,;t t
 s,@PERL@,$PERL,;t t
+s,@TEX@,$TEX,;t t
 s,@LN@,$LN,;t t
 s,@EGREP@,$EGREP,;t t
 s,@FGREP@,$FGREP,;t t
index fb319dbfef3c5269c5d429d039831a56719b0c06..ac7b69dec4faf5b90d819fa420726931e14a7100 100644 (file)
@@ -53,6 +53,9 @@ $PERL -e 'require 5.005;' || {
    AC_MSG_ERROR([perl 5.005 or better is required])
 }
 
+# The test suite will skip some tests if tex is absent.
+AC_CHECK_PROG([TEX], [tex], [tex])
+
 # Test for Autoconf.  We run Autoconf in a subdirectory to ease
 # deletion of any files created (such as those added to
 # autom4te.cache).
index be5d9b959ffffe2ba53c4a5b50f1193e26cc63f8..57ef6b6ab3572a42555c3afbc2f2df0ca559ee0b 100644 (file)
@@ -68,6 +68,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEX = @TEX@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 bindir = @bindir@
index dd0f569ddd9bc0105f215d0deb97e381b3aee2b8..557e8400abe7f49d2885e1c876ff69118b387a4e 100644 (file)
@@ -68,6 +68,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEX = @TEX@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 bindir = @bindir@
index 90562415c124c5c7cd60958444113204120e0ecd..0e4ee2522a349c1c6d88ebaafa556f3497463e9c 100644 (file)
@@ -68,6 +68,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEX = @TEX@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 bindir = @bindir@
index d57c6793e59819b6c21b98554910c15310320a99..caf32d12c86dd3d844dc0e14b2f3e653f3c0555c 100644 (file)
@@ -68,6 +68,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEX = @TEX@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 bindir = @bindir@
index 110ae8aea77e3e51166c2bbb05f2d1f805e45543..0f9964b5f0c2022621ab02dce4e552deb28137a0 100644 (file)
@@ -68,6 +68,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEX = @TEX@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 bindir = @bindir@
index 747e1477941e77535f934d64439bdc5b80374230..6a8d5fca8a9b82d6f449a5e168015c74f724c086 100644 (file)
@@ -102,6 +102,11 @@ then
        rm -f $priv_check_temp
        test $overwrite_status = 0 && exit 77
        ;;
+      tex)
+        # No all versions of Tex support `--version', so we use
+        # a configure check.
+        test -n "@TEX@" || exit 77
+       ;;
       # Generic case: the tool must support --version.
       *)
        echo "$me: running $tool --version"
This page took 0.045169 seconds and 5 git commands to generate.