changeset 672:a09e9c9ca963

8011348: use of which in common/autoconf/autogen.sh is not portable Reviewed-by: erikj, katleman, mduigou
author tbell
date Tue, 09 Apr 2013 13:05:22 -0700
parents 2ef28c12d649
children 7fc358f59436
files common/autoconf/autogen.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/common/autoconf/autogen.sh	Tue Apr 09 09:45:48 2013 +0200
+++ b/common/autoconf/autogen.sh	Tue Apr 09 13:05:22 2013 -0700
@@ -43,8 +43,8 @@
 
 custom_hook=$custom_script_dir/custom-hook.m4
 
-AUTOCONF=$(which autoconf 2> /dev/null);
-AUTOCONF_267=$(which autoconf-2.67 2> /dev/null);
+AUTOCONF="`which autoconf 2> /dev/null | grep -v '^no autoconf in'`"
+AUTOCONF_267="`which autoconf-2.67 2> /dev/null | grep -v '^no autoconf-2.67 in'`"
 
 echo "Autoconf found: ${AUTOCONF}"
 echo "Autoconf-2.67 found: ${AUTOCONF_267}"