[svn-r27509] Fixed check for perl: tested--h5committest

This commit is contained in:
Scot Breitenfeld 2015-08-14 17:21:11 -05:00
parent d3e931c772
commit b79070ac8d
2 changed files with 5 additions and 5 deletions

6
configure vendored
View File

@ -3025,7 +3025,7 @@ do
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_PERL=""
ac_cv_prog_PERL="true"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
@ -3033,7 +3033,7 @@ done
done
IFS=$as_save_IFS
test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="$PATH"
test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
fi
fi
PERL=$ac_cv_prog_PERL
@ -3046,7 +3046,7 @@ $as_echo "no" >&6; }
fi
if test "x$PERL" = "xfalse"; then
if test "x$PERL" != "xtrue"; then
as_fn_error $? "*** Perl is required for installing HDF5, but Perl could not be found!" "$LINENO" 5
fi

View File

@ -33,8 +33,8 @@ AC_INIT([HDF5], [1.9.227], [help@hdfgroup.org])
## Requirement #1: Check if Perl is installed.
##
AC_SUBST([PERL]) PERL=""
AC_CHECK_PROG([PERL], [perl],, [$PATH])
if test "x$PERL" = "xfalse"; then
AC_CHECK_PROG([PERL], [perl], true, false, [$PATH])
if test "x$PERL" != "xtrue"; then
AC_MSG_ERROR([*** Perl is required for installing HDF5, but Perl could not be found!])
fi