1
1

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.
Этот коммит содержится в:
Ralph Castain 2011-03-25 20:55:57 +00:00
родитель 53346a9c1a
Коммит 5bfb01c6c8

Просмотреть файл

@ -1,6 +1,6 @@
# -*- shell-script -*-
#
# Copyright (c) 2009-2010 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2009-2011 Cisco Systems, Inc. All rights reserved.
#
# $COPYRIGHT$
#
@ -16,18 +16,13 @@ AC_DEFUN([MCA_opal_sysinfo_linux_PRIORITY], [60])
AC_DEFUN([MCA_opal_sysinfo_linux_CONFIG],[
AC_CONFIG_FILES([opal/mca/sysinfo/linux/Makefile])
case "${host}" in
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
AC_REQUIRE([OPAL_CHECK_OS_FLAVORS])
AS_IF([test "$sysinfo_linux_happy" = "yes"],
[$1],
[$2])
AC_MSG_CHECKING([if we are on Linux])
# If we are on Linux, then we're happy.
AS_IF(["$opal_found_linux" = "yes"],
[AC_MSG_RESULT([yes])
$1],
[AC_MSG_RESULT([no])
$2])
])