summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-08-14 22:21:11 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-08-14 22:21:11 (GMT)
commitb79070ac8d71114066669be2363a93972b56c112 (patch)
tree353a2d641f5894b8dd89f2c245bceb751a927bd5
parentd3e931c772a1fea1d8d0676dd6dd3fe95b000d9e (diff)
downloadhdf5-b79070ac8d71114066669be2363a93972b56c112.zip
hdf5-b79070ac8d71114066669be2363a93972b56c112.tar.gz
hdf5-b79070ac8d71114066669be2363a93972b56c112.tar.bz2
[svn-r27509] Fixed check for perl: tested--h5committest
-rwxr-xr-xconfigure6
-rw-r--r--configure.ac4
2 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index fe13186..0b34bba 100755
--- a/configure
+++ b/configure
@@ -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
diff --git a/configure.ac b/configure.ac
index c37a1c4..b4be127 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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