hwloc/external/configure.m4: no need to unset
Instead, use a safe environment variable name (that is SCOPE_PUSHed and SCOPE_POPed).
Этот коммит содержится в:
родитель
24fe86b74f
Коммит
fadc3ad01a
9
opal/mca/hwloc/external/configure.m4
поставляемый
9
opal/mca/hwloc/external/configure.m4
поставляемый
@ -1,6 +1,6 @@
|
||||
# -*- shell-script -*-
|
||||
#
|
||||
# Copyright (c) 2009-2013 Cisco Systems, Inc. All rights reserved.
|
||||
# Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
|
||||
# Copyright (c) 2014 Research Organization for Information Science
|
||||
# and Technology (RIST). All rights reserved.
|
||||
#
|
||||
@ -169,8 +169,8 @@ AC_DEFUN([MCA_opal_hwloc_external_CONFIG],[
|
||||
|
||||
AC_MSG_CHECKING([if external hwloc version is 1.8 or greater])
|
||||
AS_IF([test "$opal_hwloc_dir" != ""],
|
||||
[CFLAGS_save=$CFLAGS
|
||||
CFLAGS="-I$opal_hwloc_dir/include $CFLAGS_save"])
|
||||
[opal_hwloc_external_CFLAGS_save=$CFLAGS
|
||||
CFLAGS="-I$opal_hwloc_dir/include $opal_hwloc_external_CFLAGS_save"])
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM([[#include <hwloc.h>]],
|
||||
[[
|
||||
@ -182,8 +182,7 @@ AC_DEFUN([MCA_opal_hwloc_external_CONFIG],[
|
||||
[AC_MSG_RESULT([no])
|
||||
AC_MSG_ERROR([Cannot continue])])
|
||||
AS_IF([test "$opal_hwloc_dir" != ""],
|
||||
[CFLAGS=$CFLAGS_save
|
||||
unset CFLAGS_save])
|
||||
[CFLAGS=$opal_hwloc_external_CFLAGS_save])
|
||||
$1],
|
||||
[$2])
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user