Skip to content

Commit d779f9b

Browse files
committed
ompi_setup_java.m4: fix unquoted shell variable
Using the unquoted shell variable resulted in an error if the variable was empty. Signed-off-by: Jeff Squyres <jeff@squyres.com>
1 parent 124922b commit d779f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/ompi_setup_java.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ AC_DEFUN([_OMPI_SETUP_JAVA],[
8383
[ompi_java_dir=`/usr/libexec/java_home`],
8484
[ompi_java_dir=/System/Library/Frameworks/JavaVM.framework/Versions/Current])
8585
AC_MSG_CHECKING([for Java in OS X/macOS locations])
86-
AS_IF([test -d $ompi_java_dir],
86+
AS_IF([test -d "$ompi_java_dir"],
8787
[AC_MSG_RESULT([found ($ompi_java_dir)])
8888
ompi_java_found=1
8989
if test -d "$ompi_java_dir/Headers" && test -d "$ompi_java_dir/Commands"; then

0 commit comments

Comments
 (0)