1313# Copyright (c) 2006 QLogic Corp. All rights reserved.
1414# Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
1515# Copyright (c) 2014 Intel Corporation. All rights reserved.
16+ # Copyright (c) 2015 Research Organization for Information Science
17+ # and Technology (RIST). All rights reserved.
1618# $COPYRIGHT$
1719#
1820# Additional copyrights may follow
@@ -40,9 +42,9 @@ AC_DEFUN([OMPI_CHECK_PSM2],[
4042 ompi_check_psm2_$1 _save_LIBS=" $LIBS "
4143
4244 AS_IF([test " $with_psm2 " != " no" ],
43- [AS_IF([test ! -z " $with_psm2 " -a " $with_psm2 " != " yes" ],
45+ [AS_IF([test ! -z " $with_psm2 " && test " $with_psm2 " != " yes" ],
4446 [ompi_check_psm2_dir= " $with_psm2 " ])
45- AS_IF([test ! -z " $with_psm2_libdir " -a " $with_psm2_libdir " != " yes" ],
47+ AS_IF([test ! -z " $with_psm2_libdir " && test " $with_psm2_libdir " != " yes" ],
4648 [ompi_check_psm2_libdir= " $with_psm2_libdir " ])
4749
4850 OPAL_CHECK_PACKAGE([$1 ],
@@ -60,13 +62,13 @@ AC_DEFUN([OMPI_CHECK_PSM2],[
6062 LDFLAGS=" $ompi_check_psm2_ $1 _save_LDFLAGS"
6163 LIBS=" $ompi_check_psm2_ $1 _save_LIBS"
6264
63- AS_IF([test " $ompi_check_psm2_happy " = " yes" -a " $enable_progress_threads " = " yes" ],
65+ AS_IF([test " $ompi_check_psm2_happy " = " yes" && test " $enable_progress_threads " = " yes" ],
6466 [AC_MSG_WARN([PSM2 driver does not currently support progress threads. Disabling MTL.])
6567 ompi_check_psm2_happy= " no" ])
6668
6769 AS_IF([test " $ompi_check_psm2_happy " = " yes" ],
6870 [$2 ],
69- [AS_IF([test ! -z " $with_psm2 " -a " $with_psm2 " != " no" ],
71+ [AS_IF([test ! -z " $with_psm2 " && test " $with_psm2 " != " no" ],
7072 [AC_MSG_ERROR([PSM2 support requested but not found. Aborting])])
7173 $3 ])
7274])
0 commit comments