Only build the linux component of sysinfo if linux is the operating system.
Thanks to Paul Hargrove for the suggestion. This commit was SVN r24576.
Этот коммит содержится в:
родитель
53346a9c1a
Коммит
5bfb01c6c8
@ -1,6 +1,6 @@
|
|||||||
# -*- shell-script -*-
|
# -*- shell-script -*-
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009-2010 Cisco Systems, Inc. All rights reserved.
|
# Copyright (c) 2009-2011 Cisco Systems, Inc. All rights reserved.
|
||||||
#
|
#
|
||||||
# $COPYRIGHT$
|
# $COPYRIGHT$
|
||||||
#
|
#
|
||||||
@ -16,18 +16,13 @@ AC_DEFUN([MCA_opal_sysinfo_linux_PRIORITY], [60])
|
|||||||
AC_DEFUN([MCA_opal_sysinfo_linux_CONFIG],[
|
AC_DEFUN([MCA_opal_sysinfo_linux_CONFIG],[
|
||||||
AC_CONFIG_FILES([opal/mca/sysinfo/linux/Makefile])
|
AC_CONFIG_FILES([opal/mca/sysinfo/linux/Makefile])
|
||||||
|
|
||||||
case "${host}" in
|
AC_REQUIRE([OPAL_CHECK_OS_FLAVORS])
|
||||||
i?86-*|x86_64*|ia64-*|powerpc-*|powerpc64-*|sparc*-*)
|
|
||||||
AS_IF([test -r "/proc/cpuinfo"],
|
|
||||||
[sysinfo_linux_happy="yes"],
|
|
||||||
[sysinfo_linux_happy="no"])
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
sysinfo_linux_happy="no"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AS_IF([test "$sysinfo_linux_happy" = "yes"],
|
AC_MSG_CHECKING([if we are on Linux])
|
||||||
[$1],
|
# If we are on Linux, then we're happy.
|
||||||
[$2])
|
AS_IF(["$opal_found_linux" = "yes"],
|
||||||
|
[AC_MSG_RESULT([yes])
|
||||||
|
$1],
|
||||||
|
[AC_MSG_RESULT([no])
|
||||||
|
$2])
|
||||||
])
|
])
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user