summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-06-14 16:48:06 +0000
committerMartin Baulig <martin@src.gnome.org>1998-06-14 16:48:06 +0000
commit0acb49721611dfbf95181f2521b410ea9c1c5d3c (patch)
tree719eca01473cb9046460c6271f0a3fd80a7b1c0c
parent58707dac42579bf31aeb6ae05d0243bfaad86ccf (diff)
downloadlibgtop-0acb49721611dfbf95181f2521b410ea9c1c5d3c.tar.gz
New tag.
1998-06-14 Martin Baulig <martin@home-of-linux.org> * acconfig.h (HAVE_XAUTH): New tag. * configure.in: Added check for `HAVE_XAUTH'.
-rw-r--r--ChangeLog13
-rw-r--r--acconfig.h2
-rw-r--r--configure.in27
3 files changed, 42 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b9adf39..54ccf0af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@
1998-06-14 Martin Baulig <martin@home-of-linux.org>
+ * acconfig.h (HAVE_XAUTH): New tag.
+
+ * configure.in: Added check for `HAVE_XAUTH'.
+
+ * sysdeps/common/error.c (glibtop_warn_r): New function -
+ same as `glibtop_error_r', but doesn't call `exit'.
+ (glibtop_error_io_r, glibtop_warn_io_r): New functions,
+ display `strerror (errno)' together with message.
+
+ * include/glibtop/global.h (TIME_WITH_SYS_TIME): including
+ correct headers; (HAVE_UNISTD_H): Added conditional.
+ Added `#include <sys/param.h>' and `#include <sys/stat.h>'.
+
* acconfig.h (HAVE_LINUX_TABLE): New tag.
* lib/lib.awk: New file.
diff --git a/acconfig.h b/acconfig.h
index 1a9da99c..17419302 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -35,3 +35,5 @@
#undef NEED_LIBGTOP
#undef HAVE_LINUX_TABLE
+
+#undef HAVE_XAUTH
diff --git a/configure.in b/configure.in
index e64f7da0..ec1eaa5d 100644
--- a/configure.in
+++ b/configure.in
@@ -13,6 +13,8 @@ AC_PROG_CC
AC_STDC_HEADERS
AC_ARG_PROGRAM
+AC_PROG_AWK
+
AC_CHECK_TOOL(CC,gcc)
AC_CHECK_TOOL(RANLIB,ranlib)
AC_CHECK_TOOL(AS,as)
@@ -100,6 +102,30 @@ AC_CHECK_FUNCS(getcwd gettimeofday getwd putenv strdup strtoul uname)
ALL_LINGUAS="fr"
AM_GNU_GETTEXT
+AC_PATH_XTRA
+
+dnl The construct foo=`echo $w1 $w2 $w3` fails on some systems if $w1 = -e or -n
+dnl So we use the following instead.
+dnl XE_SPACE(var, words)
+define([XE_SPACE],[
+T=""
+for W in $2; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
+$1="$T"
+])dnl
+
+dnl Autodetect Xauth
+dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs
+test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
+test -z "$with_xauth" && { AC_CHECK_HEADER(X11/Xauth.h, ,with_xauth=no) }
+test -z "$with_xauth" && { AC_CHECK_LIB(Xau, XauGetAuthByAddr,[:],with_xauth=no, $X_LIBS) }
+test -z "$with_xauth" && with_xauth=yes
+if test "$with_xauth" = "yes"; then
+ AC_DEFINE(HAVE_XAUTH)
+ XE_SPACE(libs_xauth, $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS)
+fi
+AC_SUBST(libs_xauth)
+
+
CFLAGS="$CFLAGS -D_IN_LIBGTOP"
AC_SUBST(CFLAGS)
@@ -219,6 +245,7 @@ sysdeps/kernel/Makefile
src/Makefile
src/server/Makefile
src/proxy/Makefile
+src/daemon/Makefile
lib/Makefile
examples/Makefile
support/Makefile