]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_PATH_PROG_VERSION_GREP): removed in favour of the
authorGary V. Vaughan <gary@gnu.org>
Thu, 7 Oct 1999 15:40:07 +0000 (15:40 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 7 Oct 1999 15:40:07 +0000 (15:40 +0000)
more general AC_PATH_PROG_GREP_OUTPUT.
(AC_PATH_TOOL_VERSION_GREP): removed in favour of the more general
AC_PATH_TOOL_GREP_OUTPUT.
(AC_PROG_LIBTOOL):  Search for a working find program in the
user's PATH using the new macros.

ChangeLog
libtool.m4

index 0094fbbd70c895078580cc24f111d9999c5d668b..cbe3eb6f77ab9e9bae4c2c65c48201d4ff0f1bc8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+1999-10-07  Gary V. Vaughan  <gary@oranda.demon.co.uk>
+
+       * libtool.m4 (AC_PATH_PROG_VERSION_GREP): removed in favour of the 
+       more general AC_PATH_PROG_GREP_OUTPUT.
+       (AC_PATH_TOOL_VERSION_GREP): removed in favour of the more general 
+       AC_PATH_TOOL_GREP_OUTPUT.
+       (AC_PROG_LIBTOOL):  Search for a working find program in the
+       user's PATH using the new macros.
+       
 1999-10-06  Gary V. Vaughan  <gary@oranda.demon.co.uk>
 
        * NEWS: updtaed.
index bf7cbdbb88d8601a9f1cc87941cf72479eee165a..31338be1d094ca0779ad508f9ba72a45893ce759 100644 (file)
@@ -21,7 +21,7 @@
 ## configuration script generated by Autoconf, you may include it under
 ## the same distribution terms that you use for the rest of that program.
 
-# serial 41 AC_PROG_LIBTOOL
+# serial 42 AC_PROG_LIBTOOL
 AC_DEFUN(AC_PROG_LIBTOOL,
 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
@@ -70,7 +70,10 @@ dnl
 
 AC_CHECK_TOOL(RANLIB, ranlib, :)
 AC_CHECK_TOOL(STRIP, strip, :)
-AC_PATH_TOOL_VERSION_GREP(FILE, file, file, :, "/usr/bin:$PATH")
+
+echo 'This is only a test.' > conftest.txt
+AC_PATH_TOOL_GREP_OUTPUT(FILE, file conftest.txt, text, :, "/usr/bin:$PATH")
+rm -rf conftest*
 
 # Check for any special flags to pass to ltconfig.
 libtool_flags="--cache-file=$cache_file"
@@ -267,10 +270,10 @@ AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 AC_ENABLE_FAST_INSTALL(no)])
 
 
-# AC_PATH_PROG_VERSION_GREP - look for a particular expression in the output
-#                             generated by $PROG --version
-dnl  AC_PATH_PROG_VERSION_GREP(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND[, PATH]])
-AC_DEFUN(AC_PATH_PROG_VERSION_GREP,
+# AC_PATH_PROG_GREP_OUTPUT - look for a particular expression in the output
+#                             generated by $PROG
+dnl  AC_PATH_PROG_GREP_OUTPUT(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND[, PATH]])
+AC_DEFUN(AC_PATH_PROG_GREP_OUTPUT,
 [# Extract the first word of "$2", so it can be a program name with args.
 set dummy $2; ac_word=[$]2
 AC_MSG_CHECKING([for $ac_word])
@@ -290,7 +293,7 @@ dnl not every word.  This closes a longstanding sh security hole.
   ac_dummy="ifelse([$5], , $PATH, [$5])"
   for ac_dir in $ac_dummy; do
     test -z "$ac_dir" && ac_dir=.
-    if $ac_dir/$2 --version 2>/dev/null | grep $3 >/dev/null 2>&1; then
+    if eval '$ac_dir/$2' 2>&1 | grep $3 >/dev/null 2>&1; then
       ac_cv_path_$1="$ac_dir/$ac_word"
       break
     fi
@@ -311,17 +314,17 @@ AC_SUBST($1)dnl
 ])
 
 
-# AC_PATH_TOOL_VERSION_GREP - Try AC_PATH_PROG_VERSION_GREP with target 
+# AC_PATH_TOOL_GREP_OUTPUT - Try AC_PATH_PROG_GREP_OUTPUT with target 
 #                             prefix when cross-compiling
-dnl AC_PATH_TOOL_VERSION_GREP(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND [, PATH]])
-AC_DEFUN(AC_PATH_TOOL_VERSION_GREP,
+dnl AC_PATH_TOOL_GREP_OUTPUT(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND [, PATH]])
+AC_DEFUN(AC_PATH_TOOL_GREP_OUTPUT,
 [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
-AC_PATH_PROG_VERSION_GREP($1, ${ac_tool_prefix}$2, $3, 
+AC_PATH_PROG_GREP_OUTPUT($1, ${ac_tool_prefix}$2, $3, 
                          ifelse([$4], , [$2], ), $5)
 ifelse([$4], , , [
   if test -z "$ac_cv_prog_$1"; then
     if test -n "$ac_tool_prefix"; then
-      AC_PATH_PROG_VERSION_GREP($1, $2, $3, $2, $5)
+      AC_PATH_PROG_GREP_OUTPUT($1, $2, $3, $2, $5)
     else
       $1="$4"
     fi