summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-05-13 13:00:35 +0000
committerMartin Baulig <martin@src.gnome.org>1999-05-13 13:00:35 +0000
commitda58e7edb4bb419428463c97422371aad45a4456 (patch)
tree027cd551045a1387cd6f9ec717aa48e2261c8fa1
parente81b8ba479b36daf31bb160373d211885ba249af (diff)
downloadlibgtop-da58e7edb4bb419428463c97422371aad45a4456.tar.gz
Define this on Solaris; we use version codes like 270 for SunOS 5.7 and
1999-05-13 Martin Baulig <martin@home-of-linux.org> * libgtop-sysdeps.m4 (GLIBTOP_SOLARIS_RELEASE): Define this on Solaris; we use version codes like 270 for SunOS 5.7 and 251 for SunOS 2.5.1.
-rw-r--r--ChangeLog5
-rw-r--r--acconfig.h3
-rw-r--r--libgtop-sysdeps.m412
3 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2967dacf..3792d397 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-05-13 Martin Baulig <martin@home-of-linux.org>
+
+ * libgtop-sysdeps.m4 (GLIBTOP_SOLARIS_RELEASE): Define this on Solaris;
+ we use version codes like 270 for SunOS 5.7 and 251 for SunOS 2.5.1.
+
1999-05-12 Martin Baulig <martin@home-of-linux.org>
* glibtop-config.h: This is a new generated file which will be
diff --git a/acconfig.h b/acconfig.h
index 384cddc4..b70a05b1 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -156,6 +156,9 @@
*/
#undef GLIBTOP_LINUX_VERSION_CODE
+/* Solaris release code (eg. 251 for Solaris 2.5.1). */
+#undef GLIBTOP_SOLARIS_RELEASE
+
/* Define if you want to use LibGTop without GNOME. */
#undef WITHOUT_GNOME
diff --git a/libgtop-sysdeps.m4 b/libgtop-sysdeps.m4
index 763b5d2f..64719894 100644
--- a/libgtop-sysdeps.m4
+++ b/libgtop-sysdeps.m4
@@ -260,6 +260,18 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
AC_DEFINE_UNQUOTED(GLIBTOP_LINUX_VERSION_CODE, $os_version_code)
AC_MSG_RESULT($os_version_code)
;;
+ solaris*)
+ os_major_version=`uname -r | sed 's/\([[0-9]]*\).\([[0-9]]\)\.*\([[0-9]]*\)/\1/'`
+ os_minor_version=`uname -r | sed 's/\([[0-9]]*\).\([[0-9]]\)\.*\([[0-9]]*\)/\2/'`
+ os_micro_version=`uname -r | sed 's/\([[0-9]]*\).\([[0-9]]\)\.*\([[0-9]]*\)/\3/'`
+ test -z "$os_micro_version" && os_micro_version=0
+ os_version_expr="$os_major_version 100 * $os_minor_version 10 * + $os_micro_version + p q"
+ os_version_code=`echo "$os_version_expr" | dc`
+
+ AC_MSG_CHECKING(for Solaris release code)
+ AC_DEFINE_UNQUOTED(GLIBTOP_SOLARIS_RELEASE, $os_version_code)
+ AC_MSG_RESULT($os_version_code)
+ ;;
esac
AC_MSG_CHECKING(for machine.h in libgtop sysdeps dir)