summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@gmail.com>2015-03-05 23:43:29 +0100
committerBenoît Dejean <bdejean@gmail.com>2015-07-10 20:36:12 +0200
commitaa7f9df00eace40efcb5b2f7e8fb2f5f4ce5d43b (patch)
tree5ec657e012175f747b1365b1620eb5dba0bc12d8
parent4c4466292e7b0c86e8052634477abf4ac6330df1 (diff)
downloadlibgtop-aa7f9df00eace40efcb5b2f7e8fb2f5f4ce5d43b.tar.gz
Drop --with-libgtop-smp.
No code uses this switch.
-rw-r--r--configure.ac4
-rw-r--r--examples/second.c4
-rw-r--r--libgtop-sysdeps.m427
3 files changed, 0 insertions, 35 deletions
diff --git a/configure.ac b/configure.ac
index bbdda0f2..6d2370f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -278,10 +278,6 @@ if test x$libgtop_use_machine_h = xyes ; then
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_GLIBTOP_MACHINE_H"
fi
-if test x$libgtop_smp = xyes ; then
- LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SMP"
-fi
-
if test x$libgtop_have_sysinfo = xyes ; then
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SYSINFO"
fi
diff --git a/examples/second.c b/examples/second.c
index cd85e5bc..5cb2d1a4 100644
--- a/examples/second.c
+++ b/examples/second.c
@@ -42,14 +42,12 @@ output (pid_t pid)
char *args;
unsigned i;
-#if HAVE_LIBGTOP_SMP
unsigned long total;
double p_total, p_utime, p_stime;
double b_total, b_utime, b_stime;
double s_total, s_utime, s_stime;
double my_utime, my_stime;
unsigned int ncpu;
-#endif
printf ("\n");
@@ -158,7 +156,6 @@ output (pid_t pid)
printf ("\n");
-#if HAVE_LIBGTOP_SMP
ncpu = glibtop_global_server->ncpu;
glibtop_get_proc_time (&data.proc_time, pid);
@@ -231,7 +228,6 @@ output (pid_t pid)
s_utime * 100.0 / my_utime, s_stime * 100.0 / my_stime);
printf ("\n");
-#endif
}
int
diff --git a/libgtop-sysdeps.m4 b/libgtop-sysdeps.m4
index 747fc88b..8967f9af 100644
--- a/libgtop-sysdeps.m4
+++ b/libgtop-sysdeps.m4
@@ -31,33 +31,6 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
AM_CONDITIONAL(HACKER_MODE, test x"$hacker_mode" = xyes)
- AC_ARG_WITH(libgtop-smp,
- AS_HELP_STRING([--with-libgtop-smp],
- [Enable SMP support @<:@default-auto@:>@]),[
- libgtop_smp="$withval"],[libgtop_smp=auto])
-
- if test $libgtop_smp = auto ; then
- AC_MSG_CHECKING(whether to enable SMP support)
- case "$host_os" in
- linux*)
- libgtop_smp=yes
- ;;
- aix*)
- libgtop_smp=yes
- ;;
- *)
- libgtop_smp=no
- ;;
- esac
- AC_MSG_RESULT($libgtop_smp)
- fi
-
- if test $libgtop_smp = yes ; then
- AC_DEFINE(HAVE_LIBGTOP_SMP, 1, [Define if libgtop supports SMP])
- fi
-
- AM_CONDITIONAL(LIBGTOP_SMP, test $libgtop_smp = yes)
-
AC_MSG_CHECKING(for libgtop sysdeps directory)
case "$host_os" in