diff options
author | Martin Baulig <martin@home-of-linux.org> | 1999-01-06 19:55:04 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1999-01-06 19:55:04 +0000 |
commit | 3b270123eb7458fd436d96d92011114b47c60093 (patch) | |
tree | e29b285bc43f2d1d34eadca55c81f9824d6c397d | |
parent | a66b6cc86d9e7865d6805e981dfa476025c2a1f9 (diff) | |
download | libgtop-3b270123eb7458fd436d96d92011114b47c60093.tar.gz |
Always enable SMP support for Linux.
1999-01-06 Martin Baulig <martin@home-of-linux.org>
* libgtop-sysdeps.m4: Always enable SMP support for Linux.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | libgtop-sysdeps.m4 | 22 |
2 files changed, 12 insertions, 14 deletions
@@ -1,3 +1,7 @@ +1999-01-06 Martin Baulig <martin@home-of-linux.org> + + * libgtop-sysdeps.m4: Always enable SMP support for Linux. + 1999-01-03 Martin Baulig <martin@home-of-linux.org> Released LibGTop 0.99.2. diff --git a/libgtop-sysdeps.m4 b/libgtop-sysdeps.m4 index 8fe066cc..a055e53a 100644 --- a/libgtop-sysdeps.m4 +++ b/libgtop-sysdeps.m4 @@ -87,20 +87,14 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[ if test $libgtop_smp = auto ; then AC_MSG_CHECKING(whether to enable SMP support) - AC_TRY_RUN([ -#include <sys/utsname.h> -#include <string.h> - -int -main (void) -{ - struct utsname name; - - if (uname (&name)) exit (1); - - exit (strstr (name.version, "SMP") ? 0 : 1); -} -], libgtop_smp=yes, libgtop_smp=no, libgtop_smp=no) + case "$host_os" in + linux*) + libgtop_smp=yes + ;; + *) + libgtop_smp=no + ;; + esac AC_MSG_RESULT($libgtop_smp) fi |