summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
Diffstat (limited to 'macros')
-rw-r--r--macros/.cvsignore4
-rw-r--r--macros/ChangeLog636
-rw-r--r--macros/Makefile.am27
-rw-r--r--macros/aclocal-include.m410
-rw-r--r--macros/autogen.sh122
-rw-r--r--macros/compiler-flags.m488
-rw-r--r--macros/curses.m4318
-rw-r--r--macros/gnome-fileutils.m4414
-rw-r--r--macros/gnome-ghttp-check.m414
-rw-r--r--macros/gnome-gnorba-check.m435
-rw-r--r--macros/gnome-guile-checks.m4118
-rw-r--r--macros/gnome-libgtop-check.m4155
-rw-r--r--macros/gnome-libgtop-sysdeps.m4249
-rw-r--r--macros/gnome-objc-checks.m468
-rw-r--r--macros/gnome-orbit-check.m433
-rw-r--r--macros/gnome-pthread-check.m47
-rw-r--r--macros/gnome-support.m486
-rw-r--r--macros/gnome-undelfs.m420
-rw-r--r--macros/gnome-vfs.m480
-rw-r--r--macros/gnome-x-checks.m481
-rw-r--r--macros/gnome-xml-check.m430
-rw-r--r--macros/gnome.m4100
-rw-r--r--macros/linger.m428
-rw-r--r--macros/need-declaration.m442
24 files changed, 0 insertions, 2765 deletions
diff --git a/macros/.cvsignore b/macros/.cvsignore
deleted file mode 100644
index 1a58525e..00000000
--- a/macros/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile.in
-Makefile
-macros.dep
-
diff --git a/macros/ChangeLog b/macros/ChangeLog
deleted file mode 100644
index ec8d3a44..00000000
--- a/macros/ChangeLog
+++ /dev/null
@@ -1,636 +0,0 @@
-1998-12-03 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-sysdeps.m4 (GLIBTOP_LINUX_VERSION_CODE):
- Define this to be the same as LINUX_VERSION_CODE either from
- <linux/version.h> or from the running kernel.
-
-1998-12-02 Raja R Harinath <harinath@cs.umn.edu>
-
- * autogen.sh: "Improve" indentation and messages somewhat.
-
-1998-12-01 Jeff Garzik <jgarzik@pobox.com>
-
- * autogen.sh:
- Platform fixes. grep -q is not portable, do not use.
-
-1998-12-01 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
-
- * autogen.sh: Run gettextize if needed.
- : Run libtoolize only if configure.in has "^AM_PROG_LIBTOOL".
-
-1998-11-30 Jeff Garzik <jgarzik@pobox.com>
-
- * gnome.m4: Re-arranged tests such that "--without-gnome" is
- fully supported. Not only is the logic now correct, programs
- can test "want_gnome=yes/no" for the results of this arg.
-
-1998-11-27 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4: All parts of GNOME will now require
- LibGTop >= 0.29.0 which is the latest version from CVS.
-
-1998-11-20 James Henstridge <james@daa.com.au>
-
- * gnome.m4(GNOME_INIT_HOOK): Changed the call to GNOME_GNORBA_CHECK
- to GNOME_GNORBA_HOOK([],$2). Before if you specified that the
- macro should not exit on errors, and you didn't have ORBit, the
- script would fail anyway.
-
-1998-11-17 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-sysdeps.m4: We need to check for <net/if_var.h>
- and conditionally include it before <net/if_isppp.h> in the code
- that check for I4B to make it work on FreeBSD 3.0.
-
-1998-10-25 Marius Vollmer <mvo@zagadka.ping.de>
-
- * gnome-guile-checks.m4: Add GUILE_LIBS to LIBS when checking
- whether guile works. Adding them to LDFLAGS does not work on all
- systems. (Thanks to Rusty Chris Holleman)
-
-1998-11-12 Andrew T. Veliath <andrewtv@usa.net>
-
- * gnome-orbit-check.m4: Remove AC_DEFINE(HAVE_ORBIT). Add
- AM_CONDITIONAL for HAVE_ORBIT. gnome-gnorba-check.m4: Same with
- HAVE_GNORBA. Change GNOME_ORBIT_HOOK and GNOME_GNORBA_HOOK to use
- AC_CACHE_CHECK, setting both gnome_cv_orbit_found and
- gnome_cv_gnorba_found.
-
- * gnome.m4: (GNOME_INIT_HOOK): Add GNOME_GNORBA_CHECK if
- gnome-config is found. New GNOMEGNORBA_LIBS library variable
- (GNOMEGNORBA_LIBS is a superset of GNOMEUI_LIBS). Update
- GNOME_LIBDIR and GNOME_INCLUDEDIR to to include the required
- Gnorba info, if it is in a different location.
-
- * Makefile.am (MACROS): Add gnome-gnorba-check.m4 to Makefile.
-
- * gnome-gnorba-check.m4: New file.
-
-1998-11-12 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4 (vsnprintf): Remove easy-vsnprintf hack -- it
- doesn't work for Solaris 2.5 binaries running on Solaris 2.6.
- From Frederic Devernay <devernay@istar.fr>.
-
-1998-11-06 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4: Fix stupid type (sterror_r -> strerror_r).
-
-1998-11-04 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4 (need_gnome_support): Set this unconditionally
- to `yes'. We'll soon be losing this variable.
-
-1998-10-20 Andrew Veliath <andrewtv@usa.net>
-
- * gnome-orbit-check.m4 (GNOME_ORBIT_HOOK): Add ORBIT_IDL
- detection; fix failure flag.
-
-1998-10-12 Martin Baulig <martin@home-of-linux.org>
-
- * compiler-flags.m4 (warnCFLAGS): Added `-Wno-unused'.
-
-1998-10-11 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-sysdeps.m4 (libgtop_postinstall): Use `:' instead
- of the empty string if there is nothing to do since the empty string
- is no valid shell sytax.
-
-1998-10-11 Marius Vollmer <mvo@zagadka.ping.de>
-
- * gnome-guile-checks.m4: Check for "guile-config" and then for
- "build-guile", if guile-config couldn't be found. Do not
- explicitely include output from "info libdir", it is already
- included in "link". Use "compile" instead of "info includedir". Do
- not include "1.2" in error message when Guile can't be found at
- all.
-
-1998-10-11 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4 (GNOME_INIT_LIBGTOP): Added optional
- third parameter which is the `script-if-enabled' parameter of
- the GNOME_LIBGTOP_HOOOK.
-
-1998-10-05 Karl Eichwalder <ke@suse.de>
-
- * gnome-xml-check.m4: Fix typo while signaling the error.
-
-1998-10-05 Raja R Harinath <harinath@cs.umn.edu>
-
- * compiler-flags.m4 (warnCFLAGS): Remove `-W'.
- (warn-unused): Remove.
-
-1998-10-01 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-sysdeps.m4 (libgtop_postinstall):
- Added `AC_SUBST(libgtop_postinstall)'. This is used in
- `src/daemon/Makefile.am' to make the server suid root or
- sgid kmem if required.
-
-1998-09-28 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4: Make it accept libgtop >= 0.25.0 again.
-
- * gnome-libgtop-sysdeps.m4: Make the default not to build the
- LibGTop examples.
-
- * compiler-flags.m4 (--enable-warn-unused): New configure parameter
- to add `-Wunused' to the warning flags.
-
-1998-09-27 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4: Make it require libgtop >= 0.26.2.
-
-1998-09-24 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-ghttp-check.m4: Add checks for -lsocket -lnsl.
-
-1998-09-18 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4: Remove commented out code.
-
-1998-09-12 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-sysdeps.m4: Added (AC_SUBST): `libgtop_have_sysinfo'.
-
-1998-09-09 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * gnome-libgtop-sysdeps.m4: Added check for SMP support.
- (--with-libgtop-smp): New parameter, default is to enable
- it only if you're running configure on a SMP system.
- Added (AC_DEFINE): `HAVE_LIBGTOP_SMP' if enabled.
- (LIBGTOP_SMP): New automake conditional.
-
-1998-09-02 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4: Remove check for `canonicalize_file_name'.
-
-1998-09-02 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-support.m4: Check for canonicalize_file_name () and
- realpath () and add `canonicalize.o' to LIBOBJS if required.
-
-1998-08-30 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4: Added (AC_SUBST): `LIBGTOP_VERSION_CODE'.
- Added (AC_DEFINE_UNQUOTED): `LIBGTOP_VERSION', `LIBGTOP_VERSION_CODE',
- `LIBGTOP_{MAJOR,MINOR,MICRO,SERVER}_VERSION'.
-
-1998-08-29 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4: Make it require libgtop >= 0.26.0.
- Added (AC_SUBST): `LIBGTOP_INTERFACE_AGE' and `LIBGTOP_BINARY_AGE'.
-
-1998-08-27 Christopher Blizzard <blizzard@appliedtheory.com>
-
- * gnome-ghttp-check.m4: Umm...I think this works better. Doesn't
- break anything anyway.
- Oooo...it actually works now. Forgot a ,
-
-1998-08-26 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4 (GNOME_INIT_LIBGTOP): Make it work
- with a brain-dead /bin/sh and a brain-dead /bin/test.
-
- * gnome-libgtop-check.m4 (GNOME_INIT_LIBGTOP): Use `AC_MSG_WARN'
- if LibGTop cannot be found and the `fail' argument is not given.
-
-1998-08-24 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-support.m4 (GCC_NEED_DECLARATIONS): Added `setreuid',
- `setregid' and `getpagesize'.
- (AC_TYPE_UID_T): New check.
-
-1998-08-24 Christopher Blizzard <blizzard@appliedtheory.com>
-
- * Makefile.am (MACROS): Add gnome-ghttp-check.m4 to the Makefile.
-
-1998-08-23 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4 (GNOME_INIT_LIBGTOP): You can give
- this macro two parameters: the required version number and
- an optional `fail' argument to make it fail if LibGTop is
- not found.
-
-1998-08-22 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-guile-checks.m4: Added check for `-lnsl' and `-lsocket'
- if `build-guile' cannot be found.
-
-1998-08-20 Raja R Harinath <harinath@cs.umn.edu>
-
- * compiler-flags.m4: New file. Defines the
- GNOME_COMPILER_WARNINGS macro.
- * autogen.sh (conf_flags): Add `--enable-compile-warnings' to list
- of flags passed to `configure'.
- * Makefile.am (MACROS): Add compiler-flags.m4.
-
-1998-08-18 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4: make it require libgtop >= 0.25.0.
- Added (AC_SUBST): `LIBGTOP_MICRO_VERSION' and `LIBGTOP_EXTRA_LIBS'.
-
-1998-08-17 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4: Completely rewrote this file. It
- uses now the `libgtop-config' script and also checks for
- correct libgtop version.
-
-1998-08-06 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-sysdeps.m4: Added `freebsd' directory.
-
-1998-08-04 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-x-checks.m4: Define USE_DEVGTK unconditionally to `true'.
-
-1998-08-04 Stuart Parmenter <pavlov@innerx.net>
-
- * gnome-x-checks.m4: (AM_PATH_GTK) make it require GTK >= 1.1.1
- dnl'd the dev_gtk since they will have to anyways.
-
-1998-08-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
-
- * gnome.m4: (GNOME_INIT_HOOK): Call $1 also, if `gnome-config' is
- found and used
-
-1998-08-02 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome.m4 (GNOME_CONFIG): Use the `gnome-config' program if it
- exists.
-
-1998-08-01 Raja R Harinath <harinath@cs.umn.edu>
-
- * Makefile.am (EXTRA_DIST): Remove `macros.dep'.
-
-1998-07-30 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4 (GNOME_LIBGTOP_TYPES): New macro.
- Checks for `u_int64_t' and `int64_t'.
-
-1998-07-29 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4: Added (AC_SUBST):
- `LIBGTOP_NAMES_LIBS', `LIBGTOP_NAMES_INCS',
- `LIBGTOP_GUILE_LIBS', `LIBGTOP_GUILE_NAMES_LIBS',
- `LIBGTOP_MAJOR_VERSION', `LIBGTOP_MINOR_VERSION',
- `LIBGTOP_VERSION'.
-
- * gnome-libgtop-sysdeps.m4 (libgtop_sysdeps_dir):
- Added `AC_SUBST(libgtop_sysdeps_dir)'.
-
-1998-07-29 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4: Check for functions that `error.c' looks for.
-
-1998-07-29 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-fileutils.m4 (AM_FUNC_ERROR_AT_LINE): Removed.
-
- * gnome-support.m4 (AM_FUNC_ERROR_AT_LINE): New check.
-
-1998-07-27 Federico Mena Quintero <federico@nuclecu.unam.mx>
-
- * gnome-x-checks.m4: Changed Gtk version test to use
- GTK_HAVE_FEATURES_1_1_0.
-
-Sun Jul 26 13:59:53 EDT 1998 Daniel Veillard <Daniel.Veillard@w3.org>
-
- * Makefile.am (MACROS): Added gnome-xml-check.m4
- * gnome-xml-check.m4: New file.
-
-1998-07-24 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4: No longer requiring
- `GNOME_LIBGTOP_SYSDEPS'.
-
-Fri Jul 24 00:45:38 1998 Tom Tromey <tromey@cygnus.com>
-
- * Makefile.am (MACROS): Added linger.m4.
- * linger.m4: New file.
-
-Thu Jul 23 22:41:23 1998 Tom Tromey <tromey@cygnus.com>
-
- * Makefile.am (MACROS): Added gnome-undelfs.m4, gnome-vfs.m4.
- * gnome-undelfs.m4: New file.
- * gnome-vfs.m4: New file.
-
-1998-07-22 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-fileutils.m4: Added some reasonable defaults to allow
- cross compiling; removed `mountlist.o' and `fsusage.o' from
- LIBOBJS.
-
-Tue Jul 21 23:44:53 1998 Tom Tromey <tromey@cygnus.com>
-
- * gnome-guile-checks.m4: If no build-guile, link against readline
- before termcap.
-
-1998-07-15 Raja R Harinath <harinath@cs.umn.edu>
-
- * Makefile.am (MACROS): Add `need-declaration.m4'.
-
- * gnome-support.m4 (AC_REPLACE_FUNCS): Add memmove, strtod,
- strtol, strtoul.
- (GCC_NEED_DECLARATIONS): New check. Check whether `gethostname'
- needs to be declared.
-
- * need-declaration.m4: New file. Stolen from EGCS.
-
-1998-07-13 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4 (AC_REPLACE_FUNCS): Add check for `mkstemp'.
-
-Wed Jul 1 13:50:39 1998 Scott D. Heavner <sdh@po.cwru.edu>
-
- * curses.m4: add some docs and start using with tcd
-
-1998-06-29 Raja R Harinath <harinath@cs.umn.edu>
-
- * Makefile.am (MACROS): Add all the `.m4' files here.
-
-Mon Jun 29 11:12:04 1998 Scott D. Heavner <sdh@po.cwru.edu>
-
- * curses.m4: Need AC_SUBST(CURSES_INCLUDEDIR) not CURSES_INCLUDES
-
-Mon Jun 29 10:35:22 1998 Scott D. Heavner <sdh@po.cwru.edu>
-
- * curses.m4: rm conftext* should read rm conftest*, was leaving
- conftest.c files around.
-
-1998-06-27 Christopher Blizzard <blizzard@foo.appliedtheory.com>
-
- * gnome-objc-checks.m4: Use egcs if it's available. The gcc that
- ships with RedHat 5.1 doesn't do objc, egcs does.
-
-Fri Jun 26 14:36:08 1998 Scott D. Heavner <sdh@po.cwru.edu>
-
- * curses.m4 (AC_CHECK_CURSES): New check. mangled out of mc's
- configure.in
-
-1998-06-24 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-fileutils.m4 (AM_FUNC_ERROR_AT_LINE): New check.
- (vprintf): New check.
- (ftruncate.c): Remove check.
- This needs to be further cleaned up to only list what is
- needed for gdiskfree.
- * Makefile.am (MACROS): Add gnome-fileutils.m4.
-
-1998-06-14 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-sysdeps.m4 (LINUX_TABLE): New automake conditional;
- also defines HAVE_LINUX_TABLE.
-
-1998-06-13 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-sysdeps.m4: Added check for the table ()
- system call in the linux kernel.
-
-1998-06-11 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-x-checks.m4 (USE_DEVGTK): Use AC_EGREP_CPP rather than
- AC_CHECK_HEADER. AC_CHECK_HEADER is fooled by warnings.
-
- * gnome-support.m4 (AC_PROG_AWK): Look for awk.
- (CROSS_COMPILING): Remove conditional.
-
-Wed Jun 10 14:19:39 EDT 1998 Gregory McLean <gregm@comstar.net>
-
- * gnome-x-checks.m4: More tweeks to make building against gtk 1.0
- and gtk1.1 less painful.
-
-1998-06-08 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-support.m4 (CROSS_COMPILING): New automake conditional;
- (need_gnome_support): added `AC_SUBST(need_gnome_support)'.
-
-1998-06-07 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-guile-checks.m4 (GNOME_CHECK_GUILE): When
- cross-compiling, we now check for `$host_alias-buile-guile'.
-
-1998-06-03 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-guile-checks.m4 (GNOME_CHECK_GUILE): Looks also
- in $GNOME_LIBDIR; added failflag: GNOME_CHECK_GUILE(fail)
- will abort if guile cannot be found.
-
-1998-05-23 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-sysdeps.m4 (GNOME_LIBGTOP_HOOK):
- (libgtop_use_machine_h): Set this to true on SunOS.
-
-1998-05-22 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * gnome-fileutils.m4 (GNOME_FILEUTILS_CHECKS): New file.
- Imported from `configure.in' in GNU fileutils 3.16. It does
- all the checks that are needed for the diskusage applet.
-
-1998-05-22 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-check.m4 (GNOME_LIBGTOP_HOOK): New file.
- Checks whether libgtop is installed and reads its `libgtopConf.sh'
- file if it can be found. Defines HAVE_LIBGTOP on success and
- provides HAVE_LIBGTOP automake conditional.
-
-1998-05-21 Martin Baulig <martin@home-of-linux.org>
-
- * gnome-libgtop-sysdeps.m4 (GNOME_LIBGTOP_SYSDEPS): New file.
- (libgtop_sysdeps_dir): sysdeps directory libgtop uses.
- (libgtop_use_machine_h): define HAVE_GLIBTOP_MACHINE_H if this
- is `yes'.
- (libgtop_need_server): we only need the libgtop server, when
- this has a value of `yes'. Defines NEED_LIBGTOP and NEED_LIBGTOP
- automake conditional.
-
-1998-05-19 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4 (strerror): New check.
- (sys_errlist): Check for this variable, needed for `strerror'.
- (program_invocation_name, program_invocation_short_name): Change
- method used to check for these.
-
-1998-05-09 Raja R Harinath <harinath@cs.umn.edu>
-
- * autogen.sh: Remove simple-minded check for `gtk+'.
-
-Fri Apr 24 16:43:38 1998 Owen Taylor <otaylor@gtk.org>
-
- * autogen.sh: Pass the results of the environment variable
- ACLOCAL_FLAGS to aclocal. This allows, for instance,
-
- ACLOCAL_FLAGS="-I /home/owen/share/aclocal/" autogen.sh
-
-Sun Apr 19 01:35:53 EDT 1998 Gregory McLean <gregm@comstar.net>
-
- * gnome-x-checks.m4: Updated the gtk check to check for 1.0.0.
-
-1998-04-08 Raja R Harinath <harinath@cs.umn.edu>
-
- * autogen.sh: Update to list newer versions of packages.
- * gnome-support.m4: Add `scandir' to AC_REPLACE_FUNCS.
- Also run AC_HEADER_DIRENT.
-
-1998-03-31 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4 (AC_REPLACE_FUNCS): Look for vasprintf.
-
-Thu Mar 19 23:23:30 1998 Tom Tromey <tromey@cygnus.com>
-
- * gnome.m4: An empty true branch of an `if' statement is not valid
- sh syntax. If GNOME_INIT_HOOK argument $1 is empty, use ":"
- instead.
-
-1998-03-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
-
- * gnome.m4 (GNOME_INIT_HOOK): Provide a way to hook some code to
- execute; Accept a probe mode.
-
- (GNOME_INIT): Define in terms of GNOME_INIT_HOOK.
-
-Thu Mar 19 00:17:46 1998 Tom Tromey <tromey@cygnus.com>
-
- * gnome-support.m4: Cache results of check for
- program_invocation_short_name, program_invocation_name. Check to
- make sure argp functions are in a library.
-
- * gnome-support.m4: Cache results of argp check.
-
-Sun Mar 15 15:54:43 1998 Owen Taylor <owt1@cornell.edu>
-
- * gnome-x-checks.m4: Replaced checks for X and GTK
- with AM_PATH_GTK. x_include, X_LIBS, etc, variables no longer
- defined.
-
-1998-03-12 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4: Add a check for <linewrap.h> -- this enables
- some optimizations when compiling `argp'.
-
-Mon Mar 9 19:32:42 1998 Tom Tromey <tromey@cygnus.com>
-
- * gnome-support.m4: Build vsnprintf.o, not vsnprint.o.
-
-1998-03-09 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4: Add check for `vsnprintf'.
-
-Sun Mar 8 17:04:28 1998 Tom Tromey <tromey@cygnus.com>
-
- * gnome-support.m4: Set need_gnome_support shell variable. Define
- BUILD_GNOME_SUPPORT automake conditional. Define LTLIBOBJS. Look
- for argp_domain element in struct argp.
-
-Sat Mar 7 00:04:22 1998 Tom Tromey <tromey@cygnus.com>
-
- * gnome-support.m4 (GNOME_SUPPORT_CHECKS): Add argp-pvh.o to
- LIBOBJS.
-
- * gnome-support.m4 (GNOME_SUPPORT_CHECKS): Check for strnlen().
-
-Wed Mar 4 01:02:55 1998 Tom Tromey <tromey@cygnus.com>
-
- * gnome-support.m4 (GNOME_SUPPORT_CHECKS): Check for argp code,
- strndup, program_invocation_name, program_invocation_short_name.
-
-Mon Mar 2 15:27:44 1998 Tom Tromey <tromey@cygnus.com>
-
- * gnome-x-checks.m4 (GNOME_X_CHECKS): Also check for SMlib.h; some
- Solaris systems have -lSM but not SMlib.h.
-
-Sun Mar 1 17:49:42 1998 Tom Tromey <tromey@cygnus.com>
-
- * gnome.m4 (GNOME_INIT): Changed spacing so --help output looks
- right.
-
-Fri Feb 27 10:05:34 1998 Tom Tromey <tromey@cygnus.com>
-
- * gnome-objc-checks.m4 (GNOME_CHECK_OBJC): Set OBJECTIVE_C shell
- variable.
-
-1998-02-26 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-x-checks.m4 (CPPFLAGS): Put $X_CFLAGS here, not in
- $CFLAGS.
- (GNOME_HAVE_SM): New var. `true' if we have libSM, `false'
- otherwise.
-
-1998-02-19 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome.m4: Remove `GNOME_CHECK_GNOME'.
-
-1998-02-18 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4 (GNOME_SUPPORT_CHECKS): Replace `strcasecmp' if
- necessary.
-
-1998-02-15 Raja R Harinath <harinath@cs.umn.edu>
-
- * Makefile.am (MACROS): Add `gnome-pthread-check.m4'.
- * gnome-pthread-check.m4: New file. Moved pthread check from
- gnome-x-checks.m4 to here.
- * gnome-objc-checks.m4: Use `gnome-pthread-check'.
- (OBJC_LIBS): New config var.
- * gnome-x-checks.m4: Add `AC_DEFINE(HAVE_LIBSM)' if `-lSM' is
- already part of `$x_libs'.
- Move pthread check to new file.
-
-Sat Feb 14 12:45:35 1998 Tom Tromey <tromey@cygnus.com>
-
- * Makefile.am (macros.dep): Use single quotes, not double quotes.
- Otherwise bash will interpret `$(...)' incorrectly.
- (EXTRA_DIST): Include macros.dep in distribution.
-
-1998-02-14 Raja R Harinath <harinath@cs.umn.edu>
-
- * Makefile.am (macros.dep): Put back doubled `$'. We want the
- expansion to occur in the including Makefile, not here.
- Otherwise, there will be an extra `../' in the rule.
-
-Sat Feb 14 17:41:28 KST 1998 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
-
- * autogen.sh: multilple aclocal -I directories.
-
-Sat Feb 14 01:09:37 1998 Tom Tromey <tromey@cygnus.com>
-
- * Makefile.am (macros.dep): Removed extra `$' from rule.
-
- * gnome-x-checks.m4: Only check for -lSM if not already in
- x_libs.
-
-1998-02-13 Raja R Harinath <harinath@cs.umn.edu>
-
- * Makefile.am (EXTRA_DIST): Add `autogen.sh'.
-
- * gnome-objc-checks.m4 (GNOME_INIT_OBJC): Solaris /bin/sh doesn't
- understand `test -e'.
-
- * autogen.sh: New file.
-
- * gnome.m4 (GNOME_INIT): Look for gnomeConf.sh in $libdir, where
- the installation actually installs it.
-
- * Makefile.am (macros.dep): New maintainer rule for handling
- automatic rebuilding of aclocal.m4 if any of the macros change.
- (MACROS): New variable. List of all `m4' macros in this
- directory.
-
-1998-02-12 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome-support.m4: New file. Defines GNOME_SUPPORT_CHECKS for
- libsupport.a support.
-
-1998-02-10 Raja R Harinath <harinath@cs.umn.edu>
-
- * gnome.m4: New file. Moved AC_CHECK_GNOME from `configure.in' to
- here, and renamed macro to GNOME_CHECK_GNOME.
- * gnome-x-checks.m4: Likewise, move and renaming AC_GNOME_X_CHECKS
- to GNOME_X_CHECKS.
-
- * aclocal-include.m4: New file. Defines AM_ACLOCAL_INCLUDE macro
- to provide extra search directories to `aclocal'.
-
-*Local Variables:
-*backup-inhibited: t
-*End:
diff --git a/macros/Makefile.am b/macros/Makefile.am
deleted file mode 100644
index 712e2556..00000000
--- a/macros/Makefile.am
+++ /dev/null
@@ -1,27 +0,0 @@
-## Please update this variable if any new macros are created
-MACROS= \
- aclocal-include.m4 \
- compiler-flags.m4 \
- curses.m4 \
- gnome-fileutils.m4 \
- gnome-ghttp-check.m4 \
- gnome-gnorba-check.m4 \
- gnome-guile-checks.m4 \
- gnome-libgtop-check.m4 \
- gnome-libgtop-sysdeps.m4 \
- gnome-objc-checks.m4 \
- gnome-pthread-check.m4 \
- gnome-support.m4 \
- gnome-undelfs.m4 \
- gnome-vfs.m4 \
- gnome-x-checks.m4 \
- gnome-xml-check.m4 \
- gnome.m4 \
- linger.m4 \
- need-declaration.m4
-
-EXTRA_DIST=$(MACROS) autogen.sh
-MAINTAINERCLEANFILES=macros.dep
-
-@MAINT@macros.dep: Makefile.am
-@MAINT@ @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=macros/%)' > $@
diff --git a/macros/aclocal-include.m4 b/macros/aclocal-include.m4
deleted file mode 100644
index c58c767d..00000000
--- a/macros/aclocal-include.m4
+++ /dev/null
@@ -1,10 +0,0 @@
-# aclocal-include.m4
-#
-# This macro adds the name macrodir to the set of directories
-# that `aclocal' searches for macros.
-
-# serial 1
-
-dnl AM_ACLOCAL_INCLUDE(macrodir)
-AC_DEFUN([AM_ACLOCAL_INCLUDE],
-[ACLOCAL="$ACLOCAL -I $1"])
diff --git a/macros/autogen.sh b/macros/autogen.sh
deleted file mode 100644
index 782f69de..00000000
--- a/macros/autogen.sh
+++ /dev/null
@@ -1,122 +0,0 @@
-#!/bin/sh
-# Run this to generate all the initial makefiles, etc.
-
-DIE=0
-
-(autoconf --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`autoconf' installed to compile Gnome."
- echo "Download the appropriate package for your distribution,"
- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
- DIE=1
-}
-
-(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
- (libtool --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`libtool' installed to compile Gnome."
- echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2.tar.gz"
- echo "(or a newer version if it is available)"
- DIE=1
- }
-}
-
-grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
- grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
- (gettext --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`gettext' installed to compile Gnome."
- echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
- echo "(or a newer version if it is available)"
- DIE=1
- }
-}
-
-(automake --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`automake' installed to compile Gnome."
- echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
- echo "(or a newer version if it is available)"
- DIE=1
- NO_AUTOMAKE=yes
-}
-
-
-# if no automake, don't bother testing for aclocal
-test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: Missing \`aclocal'. The version of \`automake'"
- echo "installed doesn't appear recent enough."
- echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
- echo "(or a newer version if it is available)"
- DIE=1
-}
-
-if test "$DIE" -eq 1; then
- exit 1
-fi
-
-if test -z "$*"; then
- echo "**Warning**: I am going to run \`configure' with no arguments."
- echo "If you wish to pass any to it, please specify them on the"
- echo \`$0\'" command line."
- echo
-fi
-
-case $CC in
-xlc )
- am_opt=--include-deps;;
-esac
-
-for coin in `find $srcdir -name configure.in -print`
-do
- dr=`dirname $coin`
- if test -f $i/NO-AUTO-GEN; then
- echo skipping $dr -- flagged as no auto-gen
- else
- echo processing $dr
- macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
- ( cd $dr
- aclocalinclude="$ACLOCAL_FLAGS"
- for k in $macrodirs; do
- if test -d $k; then
- aclocalinclude="$aclocalinclude -I $k"
- ##else
- ## echo "**Warning**: No such directory \`$k'. Ignored."
- fi
- done
- if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then
- if grep "sed.*POTFILES" configure.in >/dev/null; then
- : do nothing -- we still have an old unmodified configure.in
- else
- echo "Running gettextize... Ignore non-fatal messages."
- echo "no" | gettextize --force
- fi
- fi
- if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
- echo "Running libtoolize..."
- libtoolize --force
- fi
- echo "Running aclocal $aclocalinclude ..."
- aclocal $aclocalinclude
- if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
- echo "Running autoheader..."
- autoheader
- fi
- echo "Running automake --gnu $am_opt ..."
- automake --add-missing --gnu $am_opt
- echo "Running autoconf ..."
- autoconf
- )
- fi
-done
-
-conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
-
-if test x$NOCONFIGURE = x; then
- echo Running $srcdir/configure $conf_flags "$@" ...
- $srcdir/configure $conf_flags "$@" \
- && echo Now type \`make\' to compile $PKG_NAME
-else
- echo Skipping configure process.
-fi
diff --git a/macros/compiler-flags.m4 b/macros/compiler-flags.m4
deleted file mode 100644
index 07f85c15..00000000
--- a/macros/compiler-flags.m4
+++ /dev/null
@@ -1,88 +0,0 @@
-dnl GNOME_COMPILE_WARNINGS
-dnl Turn on many useful compiler warnings
-dnl For now, only works on GCC
-AC_DEFUN([GNOME_COMPILE_WARNINGS],[
- AC_ARG_ENABLE(compile-warnings,
- [ --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings.],,enable_compile_warnings=minimum)
-
- AC_MSG_CHECKING(what warning flags to pass to the C compiler)
- warnCFLAGS=
- if test "x$enable_compile_warnings" != "xno"; then
- if test "x$GCC" = "xyes"; then
- case " $CFLAGS " in
- *[\ \ ]-Wall[\ \ ]*) ;;
- *) warnCFLAGS="-Wall -Wno-unused" ;;
- esac
-
- ## -W is not all that useful. And it cannot be controlled
- ## with individual -Wno-xxx flags, unlike -Wall
- if test "x$enable_compile_warnings" = "xyes"; then
- warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
- fi
- fi
- fi
- AC_MSG_RESULT($warnCFLAGS)
-
- AC_ARG_ENABLE(iso-c,
- [ --enable-iso-c Try to warn if code is not ISO C ],,
- enable_iso_c=no)
-
- AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
- complCFLAGS=
- if test "x$enable_iso_c" != "xno"; then
- if test "x$GCC" = "xyes"; then
- case " $CFLAGS " in
- *[\ \ ]-ansi[\ \ ]*) ;;
- *) complCFLAGS="$complCFLAGS -ansi" ;;
- esac
-
- case " $CFLAGS " in
- *[\ \ ]-pedantic[\ \ ]*) ;;
- *) complCFLAGS="$complCFLAGS -pedantic" ;;
- esac
- fi
- fi
- AC_MSG_RESULT($complCFLAGS)
- CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
-])
-
-dnl For C++, do basically the same thing.
-
-AC_DEFUN([GNOME_CXX_WARNINGS],[
- AC_ARG_ENABLE(cxx-warnings,
- [ --enable-cxx-warnings=[no/minimum/yes] Turn on compiler warnings.],,enable_cxx_warnings=minimum)
-
- AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
- warnCXXFLAGS=
- if test "x$enable_cxx_warnings" != "xno"; then
- if test "x$GCC" = "xyes"; then
- case " $CXXFLAGS " in
- *[\ \ ]-Wall[\ \ ]*) ;;
- *) warnCXXFLAGS="-Wall -Wno-unused" ;;
- esac
-
- ## -W is not all that useful. And it cannot be controlled
- ## with individual -Wno-xxx flags, unlike -Wall
- if test "x$enable_cxx_warnings" = "xyes"; then
- warnCXXFLAGS="$warnCXXFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wshadow -Woverloaded-virtual"
- fi
- fi
- fi
- AC_MSG_RESULT($warnCXXFLAGS)
-
- AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
- complCFLAGS=
- if test "x$GCC" = "xyes"; then
- case " $CXXFLAGS " in
- *[\ \ ]-ansi[\ \ ]*) ;;
- *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
- esac
-
- case " $CXXFLAGS " in
- *[\ \ ]-pedantic[\ \ ]*) ;;
- *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
- esac
- fi
- AC_MSG_RESULT($complCXXFLAGS)
- CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
-])
diff --git a/macros/curses.m4 b/macros/curses.m4
deleted file mode 100644
index 3dd4ffaa..00000000
--- a/macros/curses.m4
+++ /dev/null
@@ -1,318 +0,0 @@
-dnl Curses detection: Munged from Midnight Commander's configure.in
-dnl
-dnl What it does:
-dnl =============
-dnl
-dnl - Determine which version of curses is installed on your system
-dnl and set the -I/-L/-l compiler entries and add a few preprocessor
-dnl symbols
-dnl - Do an AC_SUBST on the CURSES_INCLUDEDIR and CURSES_LIBS so that
-dnl @CURSES_INCLUDEDIR@ and @CURSES_LIBS@ will be available in
-dnl Makefile.in's
-dnl - Modify the following configure variables (these are the only
-dnl curses.m4 variables you can access from within configure.in)
-dnl CURSES_INCLUDEDIR - contains -I's and possibly -DRENAMED_CURSES if
-dnl an ncurses.h that's been renamed to curses.h
-dnl is found.
-dnl CURSES_LIBS - sets -L and -l's appropriately
-dnl CFLAGS - if --with-sco, add -D_SVID3
-dnl has_curses - exports result of tests to rest of configure
-dnl
-dnl Usage:
-dnl ======
-dnl 1) Add lines indicated below to acconfig.h
-dnl 2) call AC_CHECK_CURSES after AC_PROG_CC in your configure.in
-dnl 3) Instead of #include <curses.h> you should use the following to
-dnl properly locate ncurses or curses header file
-dnl
-dnl #if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
-dnl #include <ncurses.h>
-dnl #else
-dnl #include <curses.h>
-dnl #endif
-dnl
-dnl 4) Make sure to add @CURSES_INCLUDEDIR@ to your preprocessor flags
-dnl 5) Make sure to add @CURSES_LIBS@ to your linker flags or LIBS
-dnl
-dnl Notes with automake:
-dnl - call AM_CONDITIONAL(HAS_CURSES, test "$has_curses" = true) from
-dnl configure.in
-dnl - your Makefile.am can look something like this
-dnl -----------------------------------------------
-dnl INCLUDES= blah blah blah $(CURSES_INCLUDEDIR)
-dnl if HAS_CURSES
-dnl CURSES_TARGETS=name_of_curses_prog
-dnl endif
-dnl bin_PROGRAMS = other_programs $(CURSES_TARGETS)
-dnl other_programs_SOURCES = blah blah blah
-dnl name_of_curses_prog_SOURCES = blah blah blah
-dnl other_programs_LDADD = blah
-dnl name_of_curses_prog_LDADD = blah $(CURSES_LIBS)
-dnl -----------------------------------------------
-dnl
-dnl
-dnl The following lines should be added to acconfig.h:
-dnl ==================================================
-dnl
-dnl /*=== Curses version detection defines ===*/
-dnl /* Found some version of curses that we're going to use */
-dnl #undef HAS_CURSES
-dnl
-dnl /* Use SunOS SysV curses? */
-dnl #undef USE_SUNOS_CURSES
-dnl
-dnl /* Use old BSD curses - not used right now */
-dnl #undef USE_BSD_CURSES
-dnl
-dnl /* Use SystemV curses? */
-dnl #undef USE_SYSV_CURSES
-dnl
-dnl /* Use Ncurses? */
-dnl #undef USE_NCURSES
-dnl
-dnl /* If you Curses does not have color define this one */
-dnl #undef NO_COLOR_CURSES
-dnl
-dnl /* Define if you want to turn on SCO-specific code */
-dnl #undef SCO_FLAVOR
-dnl
-dnl /* Set to reflect version of ncurses *
-dnl * 0 = version 1.*
-dnl * 1 = version 1.9.9g
-dnl * 2 = version 4.0/4.1 */
-dnl #undef NCURSES_970530
-dnl
-dnl /*=== End new stuff for acconfig.h ===*/
-dnl
-
-
-AC_DEFUN(AC_CHECK_CURSES,[
- search_ncurses=true
- screen_manager=""
- has_curses=false
-
- CFLAGS=${CFLAGS--O}
-
- AC_SUBST(CURSES_LIBS)
- AC_SUBST(CURSES_INCLUDEDIR)
-
- AC_ARG_WITH(sco,
- [ --with-sco Use this to turn on SCO-specific code],[
- if test x$withval = xyes; then
- AC_DEFINE(SCO_FLAVOR)
- CFLAGS="$CFLAGS -D_SVID3"
- fi
- ])
-
- AC_ARG_WITH(sunos-curses,
- [ --with-sunos-curses Used to force SunOS 4.x curses],[
- if test x$withval = xyes; then
- AC_USE_SUNOS_CURSES
- fi
- ])
-
- AC_ARG_WITH(osf1-curses,
- [ --with-osf1-curses Used to force OSF/1 curses],[
- if test x$withval = xyes; then
- AC_USE_OSF1_CURSES
- fi
- ])
-
- AC_ARG_WITH(vcurses,
- [ --with-vcurses[=incdir] Used to force SysV curses],
- if test x$withval != xyes; then
- CURSES_INCLUDEDIR="-I$withval"
- fi
- AC_USE_SYSV_CURSES
- )
-
- AC_ARG_WITH(ncurses,
- [ --with-ncurses[=dir] Compile with ncurses/locate base dir],
- if test x$withval = xno ; then
- search_ncurses=false
- elif test x$withval != xyes ; then
- CURSES_LIBS="$LIBS -L$withval/lib -lncurses"
- CURSES_INCLUDEDIR="-I$withval/include"
- search_ncurses=false
- screen_manager="ncurses"
- AC_DEFINE(USE_NCURSES)
- AC_DEFINE(HAS_CURSES)
- has_curses=true
- fi
- )
-
- if $search_ncurses
- then
- AC_SEARCH_NCURSES()
- fi
-
-
-])
-
-
-AC_DEFUN(AC_USE_SUNOS_CURSES, [
- search_ncurses=false
- screen_manager="SunOS 4.x /usr/5include curses"
- AC_MSG_RESULT(Using SunOS 4.x /usr/5include curses)
- AC_DEFINE(USE_SUNOS_CURSES)
- AC_DEFINE(HAS_CURSES)
- has_curses=true
- AC_DEFINE(NO_COLOR_CURSES)
- AC_DEFINE(USE_SYSV_CURSES)
- CURSES_INCLUDEDIR="-I/usr/5include"
- CURSES_LIBS="/usr/5lib/libcurses.a /usr/5lib/libtermcap.a"
- AC_MSG_RESULT(Please note that some screen refreshs may fail)
-])
-
-AC_DEFUN(AC_USE_OSF1_CURSES, [
- AC_MSG_RESULT(Using OSF1 curses)
- search_ncurses=false
- screen_manager="OSF1 curses"
- AC_DEFINE(HAS_CURSES)
- has_curses=true
- AC_DEFINE(NO_COLOR_CURSES)
- AC_DEFINE(USE_SYSV_CURSES)
- CURSES_LIBS="-lcurses"
-])
-
-AC_DEFUN(AC_USE_SYSV_CURSES, [
- AC_MSG_RESULT(Using SysV curses)
- AC_DEFINE(HAS_CURSES)
- has_curses=true
- AC_DEFINE(USE_SYSV_CURSES)
- search_ncurses=false
- screen_manager="SysV/curses"
- CURSES_LIBS="-lcurses"
-])
-
-dnl AC_ARG_WITH(bsd-curses,
-dnl [--with-bsd-curses Used to compile with bsd curses, not very fancy],
-dnl search_ncurses=false
-dnl screen_manager="Ultrix/cursesX"
-dnl if test $system = ULTRIX
-dnl then
-dnl THIS_CURSES=cursesX
-dnl else
-dnl THIS_CURSES=curses
-dnl fi
-dnl
-dnl CURSES_LIBS="-l$THIS_CURSES -ltermcap"
-dnl AC_DEFINE(HAS_CURSES)
-dnl has_curses=true
-dnl AC_DEFINE(USE_BSD_CURSES)
-dnl AC_MSG_RESULT(Please note that some screen refreshs may fail)
-dnl AC_WARN(Use of the bsdcurses extension has some)
-dnl AC_WARN(display/input problems.)
-dnl AC_WARN(Reconsider using xcurses)
-dnl)
-
-
-dnl
-dnl Parameters: directory filename cureses_LIBS curses_INCLUDEDIR nicename
-dnl
-AC_DEFUN(AC_NCURSES, [
- if $search_ncurses
- then
- if test -f $1/$2
- then
- AC_MSG_RESULT(Found ncurses on $1/$2)
- CURSES_LIBS="$3"
- CURSES_INCLUDEDIR="$4"
- search_ncurses=false
- screen_manager=$5
- AC_DEFINE(HAS_CURSES)
- has_curses=true
- AC_DEFINE(USE_NCURSES)
- fi
- fi
-])
-
-AC_DEFUN(AC_SEARCH_NCURSES, [
- AC_CHECKING("location of ncurses.h file")
-
- AC_NCURSES(/usr/include, ncurses.h, -lncurses,, "ncurses on /usr/include")
- AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, "ncurses on /usr/include/ncurses")
- AC_NCURSES(/usr/local/include, ncurses.h, -L/usr/local/lib -lncurses, -I/usr/local/include, "ncurses on /usr/local")
- AC_NCURSES(/usr/local/include/ncurses, ncurses.h, -L/usr/local/lib -L/usr/local/lib/ncurses -lncurses, -I/usr/local/include/ncurses, "ncurses on /usr/local/include/ncurses")
-
- AC_NCURSES(/usr/local/include/ncurses, curses.h, -L/usr/local/lib -lncurses, -I/usr/local/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/local/.../ncurses")
-
- AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses")
-
- dnl
- dnl We couldn't find ncurses, try SysV curses
- dnl
- if $search_ncurses
- then
- AC_EGREP_HEADER(init_color, /usr/include/curses.h,
- AC_USE_SYSV_CURSES)
- AC_EGREP_CPP(USE_NCURSES,[
-#include <curses.h>
-#ifdef __NCURSES_H
-#undef USE_NCURSES
-USE_NCURSES
-#endif
-],[
- CURSES_INCLUDEDIR="$CURSES_INCLUDEDIR -DRENAMED_NCURSES"
- AC_DEFINE(HAS_CURSES)
- has_curses=true
- AC_DEFINE(USE_NCURSES)
- search_ncurses=false
- screen_manager="ncurses installed as curses"
-])
- fi
-
- dnl
- dnl Try SunOS 4.x /usr/5{lib,include} ncurses
- dnl The flags USE_SUNOS_CURSES, USE_BSD_CURSES and BUGGY_CURSES
- dnl should be replaced by a more fine grained selection routine
- dnl
- if $search_ncurses
- then
- if test -f /usr/5include/curses.h
- then
- AC_USE_SUNOS_CURSES
- fi
- else
- # check for ncurses version, to properly ifdef mouse-fix
- AC_MSG_CHECKING(for ncurses version)
- ncurses_version=unknown
-cat > conftest.$ac_ext <<EOF
-[#]line __oline__ "configure"
-#include "confdefs.h"
-#ifdef RENAMED_NCURSES
-#include <curses.h>
-#else
-#include <ncurses.h>
-#endif
-#undef VERSION
-VERSION:NCURSES_VERSION
-EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |
- egrep "VERSION:" >conftest.out 2>&1; then
-changequote(,)dnl
- ncurses_version=`cat conftest.out|sed -e 's/^[^"]*"//' -e 's/".*//'`
-changequote([,])dnl
- fi
- rm -rf conftest*
- AC_MSG_RESULT($ncurses_version)
- case "$ncurses_version" in
-changequote(,)dnl
- 4.[01])
-changequote([,])dnl
- AC_DEFINE(NCURSES_970530,2)
- ;;
- 1.9.9g)
- AC_DEFINE(NCURSES_970530,1)
- ;;
- 1*)
- AC_DEFINE(NCURSES_970530,0)
- ;;
- esac
- fi
-])
-
-
-
-
-
diff --git a/macros/gnome-fileutils.m4 b/macros/gnome-fileutils.m4
deleted file mode 100644
index 7c11a785..00000000
--- a/macros/gnome-fileutils.m4
+++ /dev/null
@@ -1,414 +0,0 @@
-dnl
-dnl GNOME_FILEUTILS_CHECKS
-dnl
-dnl checks that are needed for the diskusage applet.
-dnl
-
-AC_DEFUN([GNOME_FILEUTILS_CHECKS],
-[
-AC_CHECK_HEADERS(fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
-mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
-sys/filsys.h sys/fs_types.h sys/fs/s5param.h)
-
-AC_CHECK_FUNCS(bcopy endgrent endpwent fchdir ftime ftruncate \
-getcwd getmntinfo gettimeofday isascii lchown \
-listmntent memcpy mkfifo strchr strerror strrchr vprintf)
-
-dnl Set some defaults when cross-compiling
-
-if test x$cross_compiling = xyes ; then
- case "$host_os" in
- linux*)
- fu_cv_sys_mounted_getmntent1=yes
- fu_cv_sys_stat_statfs2_bsize=yes
- ;;
- sunos*)
- fu_cv_sys_stat_statfs4=yes
- ;;
- freebsd*)
- fu_cv_sys_stat_statfs2_bsize=yes
- ;;
- osf*)
- fu_cv_sys_stat_statfs3_osf1=yes
- ;;
- esac
-fi
-
-# Determine how to get the list of mounted filesystems.
-list_mounted_fs=
-
-# If the getmntent function is available but not in the standard library,
-# make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
-AC_FUNC_GETMNTENT
-
-# This test must precede the ones for getmntent because Unicos-9 is
-# reported to have the getmntent function, but its support is incompatible
-# with other getmntent implementations.
-
-# NOTE: Normally, I wouldn't use a check for system type as I've done for
-# `CRAY' below since that goes against the whole autoconf philosophy. But
-# I think there is too great a chance that some non-Cray system has a
-# function named listmntent to risk the false positive.
-
-if test -z "$list_mounted_fs"; then
-# Cray UNICOS 9
-AC_MSG_CHECKING([for listmntent of Cray/Unicos-9])
-AC_CACHE_VAL(fu_cv_sys_mounted_cray_listmntent,
-[fu_cv_sys_mounted_cray_listmntent=no
-AC_EGREP_CPP(yes,
-[#ifdef _CRAY
-yes
-#endif
-], [test $ac_cv_func_listmntent = yes \
-&& fu_cv_sys_mounted_cray_listmntent=yes]
-)
-]
-)
-AC_MSG_RESULT($fu_cv_sys_mounted_cray_listmntent)
-if test $fu_cv_sys_mounted_cray_listmntent = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_LISTMNTENT)
-fi
-fi
-
-if test $ac_cv_func_getmntent = yes; then
-
-# This system has the getmntent function.
-# Determine whether it's the one-argument variant or the two-argument one.
-
-if test -z "$list_mounted_fs"; then
-# 4.3BSD, SunOS, HP-UX, Dynix, Irix
-AC_MSG_CHECKING([for one-argument getmntent function])
-AC_CACHE_VAL(fu_cv_sys_mounted_getmntent1,
-[test $ac_cv_header_mntent_h = yes \
-&& fu_cv_sys_mounted_getmntent1=yes \
-|| fu_cv_sys_mounted_getmntent1=no])
-AC_MSG_RESULT($fu_cv_sys_mounted_getmntent1)
-if test $fu_cv_sys_mounted_getmntent1 = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_GETMNTENT1)
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-# SVR4
-AC_MSG_CHECKING([for two-argument getmntent function])
-AC_CACHE_VAL(fu_cv_sys_mounted_getmntent2,
-[AC_EGREP_HEADER(getmntent, sys/mnttab.h,
-fu_cv_sys_mounted_getmntent2=yes,
-fu_cv_sys_mounted_getmntent2=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_getmntent2)
-if test $fu_cv_sys_mounted_getmntent2 = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_GETMNTENT2)
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-AC_MSG_ERROR([could not determine how to read list of mounted filesystems])
-fi
-
-fi
-
-if test -z "$list_mounted_fs"; then
-# DEC Alpha running OSF/1.
-AC_MSG_CHECKING([for getfsstat function])
-AC_CACHE_VAL(fu_cv_sys_mounted_getsstat,
-[AC_TRY_LINK([
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fs_types.h>],
-[struct statfs *stats;
-int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); ],
-fu_cv_sys_mounted_getsstat=yes,
-fu_cv_sys_mounted_getsstat=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_getsstat)
-if test $fu_cv_sys_mounted_getsstat = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_GETFSSTAT)
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-# AIX.
-AC_MSG_CHECKING([for mntctl function and struct vmount])
-AC_CACHE_VAL(fu_cv_sys_mounted_vmount,
-[AC_TRY_CPP([#include <fshelp.h>],
-fu_cv_sys_mounted_vmount=yes,
-fu_cv_sys_mounted_vmount=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_vmount)
-if test $fu_cv_sys_mounted_vmount = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_VMOUNT)
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-# SVR3
-AC_MSG_CHECKING([for FIXME existence of three headers])
-AC_CACHE_VAL(fu_cv_sys_mounted_fread_fstyp,
-[AC_TRY_CPP([
-#include <sys/statfs.h>
-#include <sys/fstyp.h>
-#include <mnttab.h>],
-fu_cv_sys_mounted_fread_fstyp=yes,
-fu_cv_sys_mounted_fread_fstyp=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_fread_fstyp)
-if test $fu_cv_sys_mounted_fread_fstyp = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_FREAD_FSTYP)
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-# 4.4BSD and DEC OSF/1.
-AC_MSG_CHECKING([for getmntinfo function])
-AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo,
-[
-ok=
-if test $ac_cv_func_getmntinfo = yes; then
-AC_EGREP_HEADER(f_type;, sys/mount.h,
-ok=yes)
-fi
-test -n "$ok" \
-&& fu_cv_sys_mounted_getmntinfo=yes \
-|| fu_cv_sys_mounted_getmntinfo=no
-])
-AC_MSG_RESULT($fu_cv_sys_mounted_getmntinfo)
-if test $fu_cv_sys_mounted_getmntinfo = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_GETMNTINFO)
-fi
-fi
-
-# FIXME: add a test for netbsd-1.1 here
-
-if test -z "$list_mounted_fs"; then
-# Ultrix
-AC_MSG_CHECKING([for getmnt function])
-AC_CACHE_VAL(fu_cv_sys_mounted_getmnt,
-[AC_TRY_CPP([
-#include <sys/fs_types.h>
-#include <sys/mount.h>],
-fu_cv_sys_mounted_getmnt=yes,
-fu_cv_sys_mounted_getmnt=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_getmnt)
-if test $fu_cv_sys_mounted_getmnt = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_GETMNT)
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-# SVR2
-AC_MSG_CHECKING([whether it is possible to resort to fread on /etc/mnttab])
-AC_CACHE_VAL(fu_cv_sys_mounted_fread,
-[AC_TRY_CPP([#include <mnttab.h>],
-fu_cv_sys_mounted_fread=yes,
-fu_cv_sys_mounted_fread=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_fread)
-if test $fu_cv_sys_mounted_fread = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_FREAD)
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-AC_MSG_ERROR([could not determine how to read list of mounted filesystems])
-# FIXME -- no need to abort building the whole package
-# Can't build mountlist.c or anything that needs its functions
-fi
-
-AC_CHECKING(how to get filesystem space usage)
-space=no
-
-# Perform only the link test since it seems there are no variants of the
-# statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
-# because that got a false positive on SCO OSR5. Adding the declaration
-# of a `struct statvfs' causes this test to fail (as it should) on such
-# systems. That system is reported to work fine with STAT_STATFS4 which
-# is what it gets when this test fails.
-if test $space = no; then
-# SVR4
-AC_CACHE_CHECK([statvfs function (SVR4)], fu_cv_sys_stat_statvfs,
-[AC_TRY_LINK([#include <sys/types.h>
-#include <sys/statvfs.h>],
-[struct statvfs fsd; statvfs (0, &fsd);],
-fu_cv_sys_stat_statvfs=yes,
-fu_cv_sys_stat_statvfs=no)])
-if test $fu_cv_sys_stat_statvfs = yes; then
-space=yes
-AC_DEFINE(STAT_STATVFS)
-fi
-fi
-
-if test $space = no; then
-# DEC Alpha running OSF/1
-AC_MSG_CHECKING([for 3-argument statfs function (DEC OSF/1)])
-AC_CACHE_VAL(fu_cv_sys_stat_statfs3_osf1,
-[AC_TRY_RUN([
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-main ()
-{
-struct statfs fsd;
-fsd.f_fsize = 0;
-exit (statfs (".", &fsd, sizeof (struct statfs)));
-}],
-fu_cv_sys_stat_statfs3_osf1=yes,
-fu_cv_sys_stat_statfs3_osf1=no,
-fu_cv_sys_stat_statfs3_osf1=no)])
-AC_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
-if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
-space=yes
-AC_DEFINE(STAT_STATFS3_OSF1)
-fi
-fi
-
-if test $space = no; then
-# AIX
-AC_MSG_CHECKING([for two-argument statfs with statfs.bsize dnl
-member (AIX, 4.3BSD)])
-AC_CACHE_VAL(fu_cv_sys_stat_statfs2_bsize,
-[AC_TRY_RUN([
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-#ifdef HAVE_SYS_MOUNT_H
-#include <sys/mount.h>
-#endif
-#ifdef HAVE_SYS_VFS_H
-#include <sys/vfs.h>
-#endif
-main ()
-{
-struct statfs fsd;
-fsd.f_bsize = 0;
-exit (statfs (".", &fsd));
-}],
-fu_cv_sys_stat_statfs2_bsize=yes,
-fu_cv_sys_stat_statfs2_bsize=no,
-fu_cv_sys_stat_statfs2_bsize=no)])
-AC_MSG_RESULT($fu_cv_sys_stat_statfs2_bsize)
-if test $fu_cv_sys_stat_statfs2_bsize = yes; then
-space=yes
-AC_DEFINE(STAT_STATFS2_BSIZE)
-fi
-fi
-
-if test $space = no; then
-# SVR3
-AC_MSG_CHECKING([for four-argument statfs (AIX-3.2.5, SVR3)])
-AC_CACHE_VAL(fu_cv_sys_stat_statfs4,
-[AC_TRY_RUN([#include <sys/types.h>
-#include <sys/statfs.h>
-main ()
-{
-struct statfs fsd;
-exit (statfs (".", &fsd, sizeof fsd, 0));
-}],
-fu_cv_sys_stat_statfs4=yes,
-fu_cv_sys_stat_statfs4=no,
-fu_cv_sys_stat_statfs4=no)])
-AC_MSG_RESULT($fu_cv_sys_stat_statfs4)
-if test $fu_cv_sys_stat_statfs4 = yes; then
-space=yes
-AC_DEFINE(STAT_STATFS4)
-fi
-fi
-
-if test $space = no; then
-# 4.4BSD and NetBSD
-AC_MSG_CHECKING([for two-argument statfs with statfs.fsize dnl
-member (4.4BSD and NetBSD)])
-AC_CACHE_VAL(fu_cv_sys_stat_statfs2_fsize,
-[AC_TRY_RUN([#include <sys/types.h>
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-#ifdef HAVE_SYS_MOUNT_H
-#include <sys/mount.h>
-#endif
-main ()
-{
-struct statfs fsd;
-fsd.f_fsize = 0;
-exit (statfs (".", &fsd));
-}],
-fu_cv_sys_stat_statfs2_fsize=yes,
-fu_cv_sys_stat_statfs2_fsize=no,
-fu_cv_sys_stat_statfs2_fsize=no)])
-AC_MSG_RESULT($fu_cv_sys_stat_statfs2_fsize)
-if test $fu_cv_sys_stat_statfs2_fsize = yes; then
-space=yes
-AC_DEFINE(STAT_STATFS2_FSIZE)
-fi
-fi
-
-if test $space = no; then
-# Ultrix
-AC_MSG_CHECKING([for two-argument statfs with struct fs_data (Ultrix)])
-AC_CACHE_VAL(fu_cv_sys_stat_fs_data,
-[AC_TRY_RUN([#include <sys/types.h>
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-#ifdef HAVE_SYS_MOUNT_H
-#include <sys/mount.h>
-#endif
-#ifdef HAVE_SYS_FS_TYPES_H
-#include <sys/fs_types.h>
-#endif
-main ()
-{
-struct fs_data fsd;
-/* Ultrix's statfs returns 1 for success,
-0 for not mounted, -1 for failure. */
-exit (statfs (".", &fsd) != 1);
-}],
-fu_cv_sys_stat_fs_data=yes,
-fu_cv_sys_stat_fs_data=no,
-fu_cv_sys_stat_fs_data=no)])
-AC_MSG_RESULT($fu_cv_sys_stat_fs_data)
-if test $fu_cv_sys_stat_fs_data = yes; then
-space=yes
-AC_DEFINE(STAT_STATFS2_FS_DATA)
-fi
-fi
-
-if test $space = no; then
-# SVR2
-AC_TRY_CPP([#include <sys/filsys.h>],
-AC_DEFINE(STAT_READ_FILSYS) space=yes)
-fi
-
-if test -n "$list_mounted_fs" && test $space != no; then
-DF_PROG="df"
-# LIBOBJS="$LIBOBJS fsusage.o"
-# LIBOBJS="$LIBOBJS mountlist.o"
-fi
-
-# Check for SunOS statfs brokenness wrt partitions 2GB and larger.
-# If <sys/vfs.h> exists and struct statfs has a member named f_spare,
-# enable the work-around code in fsusage.c.
-AC_MSG_CHECKING([for statfs that truncates block counts])
-AC_CACHE_VAL(fu_cv_sys_truncating_statfs,
-[AC_TRY_COMPILE([
-#if !defined(sun) && !defined(__sun)
-choke -- this is a workaround for a Sun-specific problem
-#endif
-#include <sys/types.h>
-#include <sys/vfs.h>],
-[struct statfs t; long c = *(t.f_spare);],
-fu_cv_sys_truncating_statfs=yes,
-fu_cv_sys_truncating_statfs=no,
-)])
-if test $fu_cv_sys_truncating_statfs = yes; then
-AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS)
-fi
-AC_MSG_RESULT($fu_cv_sys_truncating_statfs)
-
-AC_CHECKING(for AFS)
-test -d /afs && AC_DEFINE(AFS)
-])
diff --git a/macros/gnome-ghttp-check.m4 b/macros/gnome-ghttp-check.m4
deleted file mode 100644
index 1fc85783..00000000
--- a/macros/gnome-ghttp-check.m4
+++ /dev/null
@@ -1,14 +0,0 @@
-AC_DEFUN([GNOME_GHTTP_CHECK],[
- AC_REQUIRE([GNOME_INIT_HOOK])
- GHTTP_LIB=
- AC_CHECK_FUNC(connect,,[
- AC_CHECK_LIB(socket,connect,
- GHTTP_LIB="-lsocket $GHTTP_LIB",,$GHTTP_LIB)])
- AC_CHECK_FUNC(gethostbyname,,[
- AC_CHECK_LIB(nsl,gethostbyname,
- GHTTP_LIB="-lnsl $GHTTP_LIB",,$GHTTP_LIB)])
- AC_CHECK_LIB(ghttp, ghttp_request_new,
- GHTTP_LIB="-lghttp $GHTTP_LIB",,-L$gnome_prefix $GHTTP_LIB)
- AC_SUBST(GHTTP_LIB)
- AC_PROVIDE([GNOME_GHTTP_CHECK])
-])
diff --git a/macros/gnome-gnorba-check.m4 b/macros/gnome-gnorba-check.m4
deleted file mode 100644
index dbac0a6c..00000000
--- a/macros/gnome-gnorba-check.m4
+++ /dev/null
@@ -1,35 +0,0 @@
-dnl
-dnl GNOME_GNORBA_HOOK (script-if-gnorba-found, failflag)
-dnl
-dnl if failflag is "failure" it aborts if gnorba is not found.
-dnl
-
-AC_DEFUN([GNOME_GNORBA_HOOK],[
- GNOME_ORBIT_HOOK([],$2)
- AC_CACHE_CHECK([for gnorba libraries],gnome_cv_gnorba_found,[
- gnome_cv_gnorba_found=no
- if test x$gnome_cv_orbit_found = xyes; then
- GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
- GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
- if test -n "$GNORBA_LIBS"; then
- gnome_cv_gnorba_found=yes
- fi
- fi
- ])
- AM_CONDITIONAL(HAVE_GNORBA, test x$gnome_cv_gnorba_found = xyes)
- if test x$gnome_cv_orbit_found = xyes; then
- $1
- GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
- GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
- AC_SUBST(GNORBA_CFLAGS)
- AC_SUBST(GNORBA_LIBS)
- else
- if test x$2 = xfailure; then
- AC_MSG_ERROR(gnorba library not installed or installation problem)
- fi
- fi
-])
-
-AC_DEFUN([GNOME_GNORBA_CHECK], [
- GNOME_GNORBA_HOOK([],failure)
-])
diff --git a/macros/gnome-guile-checks.m4 b/macros/gnome-guile-checks.m4
deleted file mode 100644
index eeef5989..00000000
--- a/macros/gnome-guile-checks.m4
+++ /dev/null
@@ -1,118 +0,0 @@
-dnl
-dnl GNOME_CHECK_GUILE (failflag)
-dnl
-dnl if failflag is "fail" then GNOME_CHECK_GUILE will abort if guile is not found.
-dnl
-
-AC_DEFUN([GNOME_CHECK_GUILE],
-[
- saved_ldflags="$LDFLAGS"
- saved_cppflags="$CPPFLAGS"
- LDFLAGS="$LDFLAGS $GNOME_LIBDIR"
-
- AC_CHECK_LIB(qthreads,main,[
- QTTHREADS_LIB="-lqthreads"
- ],[
- AC_CHECK_LIB(qt, qt_null, QTTHREADS_LIB="-lqt")
- ],$LIBS)
- AC_SUBST(QTTHREADS_LIB)
-
- AC_CHECK_LIB(termcap,main,TERMCAP_LIB="-ltermcap")
- AC_CHECK_LIB(readline,main,READLINE_LIB="-lreadline",,$TERMCAP_LIB)
-
- AC_SUBST(TERMCAP_LIB)
- AC_SUBST(READLINE_LIB)
-
- if test "x$cross_compiling" = "xyes" ; then
- name_build_guile="$target_alias-guile-config"
- else
- name_build_guile="guile-config"
- fi
-
- AC_CHECK_PROG(BUILD_GUILE, $name_build_guile, yes, no)
-
- if test "x$BUILD_GUILE" = "xyes"; then
- AC_MSG_CHECKING(whether $name_build_guile works)
- if test x`$name_build_guile --version >/dev/null 2>&1 || \
- echo no` = xno; then
- BUILD_GUILE=no
- fi
- AC_MSG_RESULT($BUILD_GUILE)
- else
-
- if test "x$cross_compiling" = "xyes" ; then
- name_build_guile="$target_alias-build-guile"
- else
- name_build_guile="build-guile"
- fi
-
- AC_CHECK_PROG(BUILD_GUILE, $name_build_guile, yes, no)
-
- if test "x$BUILD_GUILE" = "xyes"; then
- AC_MSG_CHECKING(whether $name_build_guile works)
- if test x`$name_build_guile --version >/dev/null 2>&1 || \
- echo no` = xno; then
- BUILD_GUILE=no
- fi
- AC_MSG_RESULT($BUILD_GUILE)
- fi
- fi
-
- AC_CHECK_LIB(m, sin)
-
- if test "x$BUILD_GUILE" = "xyes"; then
- AC_MSG_CHECKING(for guile libraries)
- GUILE_LIBS="`$name_build_guile link`"
- AC_MSG_RESULT($GUILE_LIBS)
- AC_MSG_CHECKING(for guile headers)
- GUILE_INCS="`$name_build_guile compile`"
- AC_MSG_RESULT($GUILE_INCS)
- else
- GUILE_LIBS="$GNOME_LIBDIR"
- GUILE_INCS="$GNOME_INCLUDEDIR"
- AC_CHECK_LIB(rx, main, GUILE_LIBS="-lrx $GUILE_LIBS")
- AC_CHECK_LIB(qt, main, GUILE_LIBS="-lqt $GUILE_LIBS")
- AC_CHECK_LIB(dl, dlopen, GUILE_LIBS="-ldl $GUILE_LIBS")
- AC_CHECK_LIB(nsl, t_accept, GUILE_LIBS="$GUILE_LIBS -lnsl")
- AC_CHECK_LIB(socket, socket, GUILE_LIBS="$GUILE_LIBS -lsocket")
- GUILE_LIBS="-lguile $GUILE_LIBS $QTTHREADS_LIB $READLINE_LIB $TERMCAP_LIB"
- fi
-
- AC_SUBST(GUILE_LIBS)
- AC_SUBST(GUILE_INCS)
-
- saved_LIBS="$LIBS"
- LIBS="$LIBS $GUILE_LIBS"
- CPPFLAGS="$saved_cppflags $GUILE_INCS"
-
- AC_MSG_CHECKING(whether guile works)
- AC_TRY_LINK([
- #include <libguile.h>
- #include <guile/gh.h>
- ],[
- gh_eval_str("(newline)");
- scm_boot_guile(0,NULL,NULL,NULL);
- ],[
- ac_cv_guile_found=yes
- AC_DEFINE(HAVE_GUILE)
- ],[
- ac_cv_guile_found=no
- ])
- AC_MSG_RESULT($ac_cv_guile_found)
-
- if test x$ac_cv_guile_found = xno ; then
- if test x$1 = xfail ; then
- AC_MSG_ERROR(Can not find Guile on this system)
- else
- AC_MSG_WARN(Can not find Guile on this system)
- fi
- ac_cv_guile_found=no
- fi
-
- LIBS="$saved_LIBS"
- LDFLAGS="$saved_ldflags"
- CPPFLAGS="$saved_cppflags"
-
- AC_SUBST(GUILE_LIBS)
- AM_CONDITIONAL(GUILE, test x$ac_cv_guile_found = xyes)
-])
diff --git a/macros/gnome-libgtop-check.m4 b/macros/gnome-libgtop-check.m4
deleted file mode 100644
index adb49006..00000000
--- a/macros/gnome-libgtop-check.m4
+++ /dev/null
@@ -1,155 +0,0 @@
-dnl
-dnl GNOME_LIBGTOP_TYPES
-dnl
-dnl some typechecks for libgtop.
-dnl
-
-AC_DEFUN([GNOME_LIBGTOP_TYPES],
-[
- AC_CHECK_TYPE(u_int64_t, unsigned long long int)
- AC_CHECK_TYPE(int64_t, long long int)
-])
-
-dnl
-dnl GNOME_LIBGTOP_HOOK (minversion, script-if-libgtop-enabled, failflag)
-dnl
-dnl if failflag is "fail" then GNOME_LIBGTOP_HOOK will abort if LibGTop
-dnl is not found.
-dnl
-
-AC_DEFUN([GNOME_LIBGTOP_HOOK],
-[
- AC_REQUIRE([GNOME_LIBGTOP_TYPES])
-
- AC_SUBST(LIBGTOP_LIBDIR)
- AC_SUBST(LIBGTOP_INCLUDEDIR)
- AC_SUBST(LIBGTOP_EXTRA_LIBS)
- AC_SUBST(LIBGTOP_LIBS)
- AC_SUBST(LIBGTOP_INCS)
- AC_SUBST(LIBGTOP_NAMES_LIBS)
- AC_SUBST(LIBGTOP_NAMES_INCS)
- AC_SUBST(LIBGTOP_GUILE_INCS)
- AC_SUBST(LIBGTOP_GUILE_LIBS)
- AC_SUBST(LIBGTOP_GUILE_NAMES_INCS)
- AC_SUBST(LIBGTOP_GUILE_NAMES_LIBS)
- AC_SUBST(LIBGTOP_MAJOR_VERSION)
- AC_SUBST(LIBGTOP_MINOR_VERSION)
- AC_SUBST(LIBGTOP_MICRO_VERSION)
- AC_SUBST(LIBGTOP_VERSION)
- AC_SUBST(LIBGTOP_VERSION_CODE)
- AC_SUBST(LIBGTOP_SERVER_VERSION)
- AC_SUBST(LIBGTOP_INTERFACE_AGE)
- AC_SUBST(LIBGTOP_BINARY_AGE)
- AC_SUBST(LIBGTOP_BINDIR)
- AC_SUBST(LIBGTOP_SERVER)
-
- dnl Get the cflags and libraries from the libgtop-config script
- dnl
- AC_ARG_WITH(libgtop,
- [ --with-libgtop=PFX Prefix where LIBGTOP is installed (optional)],
- libgtop_config_prefix="$withval", libgtop_config_prefix="")
- AC_ARG_WITH(libgtop-exec,
- [ --with-libgtop-exec=PFX Exec prefix where LIBGTOP is installed (optional)],
- libgtop_config_exec_prefix="$withval", libgtop_config_exec_prefix="")
-
- if test x$libgtop_config_exec_prefix != x ; then
- libgtop_config_args="$libgtop_config_args --exec-prefix=$libgtop_config_exec_prefix"
- if test x${LIBGTOP_CONFIG+set} != xset ; then
- LIBGTOP_CONFIG=$libgtop_config_exec_prefix/bin/libgtop-config
- fi
- fi
- if test x$libgtop_config_prefix != x ; then
- libgtop_config_args="$libgtop_config_args --prefix=$libgtop_config_prefix"
- if test x${LIBGTOP_CONFIG+set} != xset ; then
- LIBGTOP_CONFIG=$libgtop_config_prefix/bin/libgtop-config
- fi
- fi
-
- AC_PATH_PROG(LIBGTOP_CONFIG, libgtop-config, no)
- dnl IMPORTANT NOTICE:
- dnl If you increase this number here, this means that *ALL*
- dnl modules will require the new version, even if they explicitly
- dnl give a lower number in their `configure.in' !!!
- real_min_libgtop_version=0.29.0
- min_libgtop_version=ifelse([$1], ,$real_min_libgtop_version,$1)
- dnl I know, the following code looks really ugly, but if you want
- dnl to make changes, please test it with a brain-dead /bin/sh and
- dnl with a brain-dead /bin/test (not all shells/tests support the
- dnl `<' operator to compare strings, that's why I convert everything
- dnl into numbers and test them).
- min_libgtop_major=`echo $min_libgtop_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- min_libgtop_minor=`echo $min_libgtop_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- min_libgtop_micro=`echo $min_libgtop_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- test x$min_libgtop_micro = x && min_libgtop_micro=0
- real_min_libgtop_major=`echo $real_min_libgtop_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- real_min_libgtop_minor=`echo $real_min_libgtop_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- real_min_libgtop_micro=`echo $real_min_libgtop_version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- test x$real_min_libgtop_micro = x && real_min_libgtop_micro=0
- dnl You cannot require a version less then $real_min_libgtop_version,
- dnl so you don't need to update each `configure.in' when it's increased.
- if test $real_min_libgtop_major -gt $min_libgtop_major ; then
- min_libgtop_major=$real_min_libgtop_major
- min_libgtop_minor=$real_min_libgtop_minor
- min_libgtop_micro=$real_min_libgtop_micro
- elif test $real_min_libgtop_major = $min_libgtop_major ; then
- if test $real_min_libgtop_minor -gt $min_libgtop_minor ; then
- min_libgtop_minor=$real_min_libgtop_minor
- min_libgtop_micro=$real_min_libgtop_micro
- elif test $real_min_libgtop_minor = $min_libgtop_minor ; then
- if test $real_min_libgtop_micro -gt $min_libgtop_micro ; then
- min_libgtop_micro=$real_min_libgtop_micro
- fi
- fi
- fi
- min_libgtop_version="$min_libgtop_major.$min_libgtop_minor.$min_libgtop_micro"
- AC_MSG_CHECKING(for libgtop - version >= $min_libgtop_version)
- no_libgtop=""
- if test "$LIBGTOP_CONFIG" = "no" ; then
- no_libgtop=yes
- else
- configfile=`$LIBGTOP_CONFIG --config`
- libgtop_major_version=`$LIBGTOP_CONFIG --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- libgtop_minor_version=`$LIBGTOP_CONFIG --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- libgtop_micro_version=`$LIBGTOP_CONFIG --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- test $libgtop_major_version != $min_libgtop_major && no_libgtop=yes
- test $libgtop_minor_version -lt $min_libgtop_minor && no_libgtop=yes
- if test $libgtop_minor_version = $min_libgtop_minor ; then
- test $libgtop_micro_version -lt $min_libgtop_micro && no_libgtop=yes
- fi
- . $configfile
- fi
- if test x$no_libgtop = x ; then
- AC_DEFINE(HAVE_LIBGTOP)
- AC_DEFINE_UNQUOTED(LIBGTOP_VERSION, "$LIBGTOP_VERSION")
- AC_DEFINE_UNQUOTED(LIBGTOP_VERSION_CODE, $LIBGTOP_VERSION_CODE)
- AC_DEFINE_UNQUOTED(LIBGTOP_MAJOR_VERSION, $LIBGTOP_MAJOR_VERSION)
- AC_DEFINE_UNQUOTED(LIBGTOP_MINOR_VERSION, $LIBGTOP_MINOR_VERSION)
- AC_DEFINE_UNQUOTED(LIBGTOP_MICRO_VERSION, $LIBGTOP_MICRO_VERSION)
- AC_DEFINE_UNQUOTED(LIBGTOP_SERVER_VERSION, $LIBGTOP_SERVER_VERSION)
- AC_MSG_RESULT(yes)
- dnl Note that an empty true branch is not valid sh syntax.
- ifelse([$2], [], :, [$2])
- else
- AC_MSG_RESULT(no)
- if test "x$3" = "xfail"; then
- AC_MSG_ERROR(LibGTop >= $min_libgtop_version not found)
- else
- AC_MSG_WARN(LibGTop >= $min_libgtop_version not found)
- fi
- fi
-
- AM_CONDITIONAL(HAVE_LIBGTOP, test x$no_libgtop != xyes)
-])
-
-AC_DEFUN([GNOME_INIT_LIBGTOP],[
- GNOME_LIBGTOP_HOOK($1,[ifelse([$3], [], :, [$3])],$2)
-])
diff --git a/macros/gnome-libgtop-sysdeps.m4 b/macros/gnome-libgtop-sysdeps.m4
deleted file mode 100644
index 82c50c0c..00000000
--- a/macros/gnome-libgtop-sysdeps.m4
+++ /dev/null
@@ -1,249 +0,0 @@
-dnl This file is intended for use both internally in libgtop and in every program
-dnl that wants to use it.
-dnl
-dnl It defines the following variables:
-dnl
-dnl * 'libgtop_sysdeps_dir' - sysdeps dir for libgtop.
-dnl * 'libgtop_use_machine_h' - some of system dependend parts of libgtop provide
-dnl their own header file. In this case we need to
-dnl define 'HAVE_GLIBTOP_MACHINE_H'.
-dnl * 'libgtop_need_server' - is the server really needed? Defines 'NEED_LIBGTOP'
-dnl if true; defines conditional 'NEED_LIBGTOP'.
-
-AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
- AC_REQUIRE([AC_CANONICAL_HOST])
-
- AC_SUBST(libgtop_sysdeps_dir)
- AC_SUBST(libgtop_use_machine_h)
- AC_SUBST(libgtop_need_server)
-
- AC_ARG_WITH(libgtop-examples,
- [ --with-libgtop-examples Build the libgtop examples (default=no)],[
- build_examples="$withval"], [build_examples=no])
-
- AM_CONDITIONAL(EXAMPLES, test x"$build_examples" = xyes)
-
-
- AC_ARG_WITH(libgtop-smp,
- [ --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)
- 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)
- AC_MSG_RESULT($libgtop_smp)
- fi
-
- if test $libgtop_smp = yes ; then
- AC_DEFINE(HAVE_LIBGTOP_SMP)
- fi
-
- AM_CONDITIONAL(LIBGTOP_SMP, test $libgtop_smp = yes)
-
- AC_MSG_CHECKING(for libgtop sysdeps directory)
-
- case "$host_os" in
- linux*)
- if test x$linux_table = xyes ; then
- libgtop_sysdeps_dir=kernel
- libgtop_use_machine_h=no
- else
- libgtop_sysdeps_dir=linux
- libgtop_use_machine_h=no
- libgtop_have_sysinfo=yes
- fi
- libgtop_need_server=no
- ;;
- sunos4*)
- libgtop_sysdeps_dir=sun4
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- ;;
- osf*)
- libgtop_sysdeps_dir=osf1
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- ;;
- freebsd*)
- libgtop_sysdeps_dir=freebsd
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
- ;;
- *)
- libgtop_sysdeps_dir=stub
- libgtop_use_machine_h=no
- libgtop_need_server=no
- ;;
- esac
-
- test -z "$libgtop_postinstall" && libgtop_postinstall=:
-
- AC_MSG_RESULT($libgtop_sysdeps_dir)
-
- AC_SUBST(libgtop_sysdeps_dir)
- AC_SUBST(libgtop_postinstall)
- AC_SUBST(libgtop_have_sysinfo)
-
- case "$host_os" in
- *bsd*)
- AC_CHECK_HEADERS(net/if_var.h)
- AC_MSG_CHECKING([for I4B])
- AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <sys/socket.h>
-
-#include <net/if.h>
-#include <net/if_types.h>
-
-#ifdef HAVE_NET_IF_VAR_H
-#include <net/if_var.h>
-#endif
-
-#include <net/netisr.h>
-#include <net/route.h>
-
-#ifdef __FreeBSD__
-#include <net/if_sppp.h>
-#else
-#include <i4b/sppp/if_sppp.h>
-#endif
-],[
- size_t size = sizeof (struct sppp);
-], have_i4b=yes, have_i4b=no)
- AC_MSG_RESULT($have_i4b)
- if test x$have_i4b = xyes; then
- AC_DEFINE(HAVE_I4B)
- AC_MSG_CHECKING([for I4B accounting])
- AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <sys/socket.h>
-
-#include <net/if.h>
-#include <net/if_types.h>
-
-#ifdef HAVE_NET_IF_VAR_H
-#include <net/if_var.h>
-#endif
-
-#include <net/netisr.h>
-#include <net/route.h>
-
-#ifdef __FreeBSD__
-#include <net/if_sppp.h>
-#else
-#include <i4b/sppp/if_sppp.h>
-#endif
-
-#include <machine/i4b_acct.h>
-],[
- size_t size = sizeof (struct i4bisppp_softc);
-], have_i4b_acct=yes, have_i4b_acct=no)
- AC_MSG_RESULT($have_i4b_acct)
- if test x$have_i4b_acct = xyes ; then
- AC_DEFINE(HAVE_I4B_ACCT)
- else
- AC_WARN([
-*** I4B accounting disabled - you won't get any PPP statistics.
-*** Read "misc/i4b_acct.txt" in the LibGTop source directory
-*** to see how to enable it.])
- fi
- fi
- ;;
- linux*)
- AC_ARG_WITH(linux-table,
- [ --with-linux-table Use the table () function from Martin Baulig],[
- linux_table="$withval"],[linux_table=auto])
- if test $linux_table = yes ; then
- AC_CHECK_HEADER(linux/table.h, linux_table=yes, linux_table=no)
- elif test $linux_table = auto ; then
- AC_MSG_CHECKING(for table function in Linux Kernel)
- AC_TRY_RUN([
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <unistd.h>
-#include <linux/unistd.h>
-#include <linux/table.h>
-
-#include <syscall.h>
-
-static inline _syscall3 (int, table, int, type, union table *, tbl, const void *, param);
-
-int
-main (void)
-{
- union table tbl;
- int ret;
-
- ret = table (TABLE_VERSION, NULL, NULL);
-
- if (ret == -1)
- exit (-errno);
-
- exit (ret < 1 ? ret : 0);
-}
-], linux_table=yes, linux_table=no, linux_table=no)
- AC_MSG_RESULT($linux_table)
- fi
- if test $linux_table = yes ; then
- AC_DEFINE(HAVE_LINUX_TABLE)
- fi
- AM_CONDITIONAL(LINUX_TABLE, test $linux_table = yes)
-
- 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/'`
- os_version_expr="$os_major_version 65536 * $os_minor_version 256 * + $os_micro_version + p q"
-
- AC_CHECK_HEADERS(linux/version.h, have_linux_version_h=yes,
- have_linux_version_h=no)
-
- if test x$have_linux_version_h = xyes ; then
- version_code=`cat /usr/include/linux/version.h | \
- grep \#define | grep LINUX_VERSION_CODE`
- os_version_code=`echo $version_code | \
- sed 's/^.*LINUX_VERSION_CODE[[ \t]]*\([[0-9]]*\).*$/\1/'`
- else
- os_version_code=`echo "$os_version_expr" | dc`
- fi
-
- AC_MSG_CHECKING(for Linux kernel version code)
- AC_DEFINE_UNQUOTED(GLIBTOP_LINUX_VERSION_CODE, $os_version_code)
- AC_MSG_RESULT($os_version_code)
- ;;
- esac
-
- AC_MSG_CHECKING(for machine.h in libgtop sysdeps dir)
- AC_MSG_RESULT($libgtop_use_machine_h)
-
- AC_MSG_CHECKING(whether we need libgtop)
- AC_MSG_RESULT($libgtop_need_server)
-
- if test x$libgtop_need_server = xyes ; then
- AC_DEFINE(NEED_LIBGTOP)
- fi
-
- if test x$libgtop_use_machine_h = xyes ; then
- AC_DEFINE(HAVE_GLIBTOP_MACHINE_H)
- fi
-
- AM_CONDITIONAL(NEED_LIBGTOP, test x$libgtop_need_server = xyes)
-])
-
diff --git a/macros/gnome-objc-checks.m4 b/macros/gnome-objc-checks.m4
deleted file mode 100644
index 609a9df1..00000000
--- a/macros/gnome-objc-checks.m4
+++ /dev/null
@@ -1,68 +0,0 @@
-AC_DEFUN([GNOME_CHECK_OBJC],
-[
-dnl Look for an ObjC compiler.
-dnl FIXME: extend list of possible names of ObjC compilers.
- AC_CHECK_PROGS(OBJC, $OBJC egcs, "")
- if test "x$OBJC" = "x" ; then
- AC_CHECK_PROGS(OBJC, $OBJC gcc, "")
- fi
-
- AC_REQUIRE([GNOME_PTHREAD_CHECK])
-
- OBJC_LIBS="-lobjc $PTHREAD_LIB"
- AC_CHECK_FUNC(sched_yield,,[
- AC_CHECK_LIB(posix4,sched_yield,
- OBJC_LIBS="$OBJC_LIBS -lposix4",, $OBJC_LIBS)])
- AC_SUBST(OBJC_LIBS)
-
- AC_CACHE_CHECK([if Objective C compiler ($OBJC) works],
- ac_cv_prog_objc_works, [
- if test -n "$OBJC"; then
- cat > conftest.m <<EOF
-#include <objc/Object.h>
-@interface myRandomObj : Object
-{
-}
-@end
-@implementation myRandomObj
-@end
-int main () {
- /* No, you are not seeing double. Remember that square brackets
- are the autoconf m4 quotes. */
- id myid = [[myRandomObj alloc]];
- [[myid free]];
- return 0;
-}
-EOF
-
- $OBJC -o conftest $LDFLAGS conftest.m $OBJC_LIBS 1>&AC_FD_CC 2>&1
- result=$?
- rm -f conftest*
-
- if test $result -eq 0; then
- ac_cv_prog_objc_works=yes
- fi
- else
- ac_cv_prog_objc_works=no
- fi
- ])
-
- AM_CONDITIONAL(OBJECTIVE_C, test x$ac_cv_prog_objc_works = xyes)
- dnl Also set the shell variable OBJECTIVE_C to "yes" or "no".
- OBJECTIVE_C=$ac_cv_prog_objc_works
-])
-
-AC_DEFUN([GNOME_INIT_OBJC],
-[
- AC_MSG_CHECKING(for obGnomeConf.sh file in $gnome_prefix)
- if test -f $gnome_prefix/obGnomeConf.sh; then
- . $gnome_prefix/obGnomeConf.sh
- AC_MSG_RESULT(found)
- else
- AC_MSG_RESULT(not found)
- AC_MSG_WARN(Could not find the obGnomeConf.sh file that is generated by gnome-objc install)
- fi
- AC_SUBST(OBGNOME_INCLUDEDIR)
- AC_SUBST(OBGNOME_LIBS)
- AC_SUBST(OBGTK_LIBS)
-])
diff --git a/macros/gnome-orbit-check.m4 b/macros/gnome-orbit-check.m4
deleted file mode 100644
index 54bf33aa..00000000
--- a/macros/gnome-orbit-check.m4
+++ /dev/null
@@ -1,33 +0,0 @@
-dnl
-dnl GNOME_ORBIT_HOOK (script-if-orbit-found, failflag)
-dnl
-dnl if failflag is "failure" it aborts if orbit is not found.
-dnl
-
-AC_DEFUN([GNOME_ORBIT_HOOK],[
- AC_PATH_PROG(ORBIT_CONFIG,orbit-config,no)
- AC_PATH_PROG(ORBIT_IDL,orbit-idl,no)
- AC_CACHE_CHECK([for working ORBit environment],gnome_cv_orbit_found,[
- if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
- gnome_cv_orbit_found=no
- else
- gnome_cv_orbit_found=yes
- fi
- ])
- AM_CONDITIONAL(HAVE_ORBIT, test x$gnome_cv_orbit_found = xyes)
- if test x$gnome_cv_orbit_found = xyes; then
- $1
- ORBIT_CFLAGS=`orbit-config --cflags client server`
- ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
- AC_SUBST(ORBIT_CFLAGS)
- AC_SUBST(ORBIT_LIBS)
- else
- if test x$2 = xfailure; then
- AC_MSG_ERROR(ORBit not installed or installation problem)
- fi
- fi
-])
-
-AC_DEFUN([GNOME_ORBIT_CHECK], [
- GNOME_ORBIT_HOOK([],failure)
-])
diff --git a/macros/gnome-pthread-check.m4 b/macros/gnome-pthread-check.m4
deleted file mode 100644
index d7fec3fb..00000000
--- a/macros/gnome-pthread-check.m4
+++ /dev/null
@@ -1,7 +0,0 @@
-AC_DEFUN([GNOME_PTHREAD_CHECK],[
- PTHREAD_LIB=""
- AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
- [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r")])
- AC_SUBST(PTHREAD_LIB)
- AC_PROVIDE([GNOME_PTHREAD_CHECK])
-])
diff --git a/macros/gnome-support.m4 b/macros/gnome-support.m4
deleted file mode 100644
index 458b6109..00000000
--- a/macros/gnome-support.m4
+++ /dev/null
@@ -1,86 +0,0 @@
-dnl GNOME_SUPPORT_CHECKS
-dnl Check for various support functions needed by the standard
-dnl Gnome libraries. Sets LIBOBJS, might define some macros.
-dnl This should only be used when building the Gnome libs;
-dnl Gnome clients should not need this macro.
-AC_DEFUN([GNOME_SUPPORT_CHECKS],[
- # we need an `awk' to build `gnomesupport.h'
- AC_REQUIRE([AC_PROG_AWK])
-
- # this should go away soon
- need_gnome_support=yes
-
- save_LIBOBJS="$LIBOBJS"
- LIBOBJS=
-
- AC_CHECK_FUNCS(getopt_long,,LIBOBJS="$LIBOBJS getopt.o getopt1.o")
-
- # We check for argp_domain because we use it, and it appears only in
- # very recent versions of the argp library.
- AC_CACHE_CHECK([for working argp code], gnome_cv_argp, [
- AC_TRY_COMPILE([#include <argp.h>], [
- struct argp foo;
- extern char *foo2;
- foo.argp_domain = foo2;],
- gnome_cv_argp=yes,
- gnome_cv_argp=no)
-
- # It is possible to have the argp headers installed but not have
- # the code in the C library. At least, there have been reports of
- # this happening. So we check for this case explicitly.
- if test "$gnome_cv_argp" = yes; then
- AC_CHECK_FUNC(argp_parse,,gnome_cv_argp=no)
- fi])
-
- if test "$gnome_cv_argp" = no; then
- LIBOBJS="$LIBOBJS argp-ba.o argp-eexst.o argp-fmtstream.o argp-fs-xinl.o argp-help.o argp-parse.o argp-pv.o argp-pvh.o argp-xinl.o"
- fi
-
- # This header enables some optimizations inside argp.
- AC_CHECK_HEADERS(linewrap.h)
- # for `scandir'
- AC_HEADER_DIRENT
-
- # copied from `configure.in' of `libiberty'
- vars="program_invocation_short_name program_invocation_name sys_errlist"
- for v in $vars; do
- AC_MSG_CHECKING([for $v])
- AC_CACHE_VAL(gnome_cv_var_$v,
- [AC_TRY_LINK([int *p;], [extern int $v; p = &$v;],
- [eval "gnome_cv_var_$v=yes"],
- [eval "gnome_cv_var_$v=no"])])
- if eval "test \"`echo '$gnome_cv_var_'$v`\" = yes"; then
- AC_MSG_RESULT(yes)
- n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- AC_DEFINE_UNQUOTED($n)
- else
- AC_MSG_RESULT(no)
- fi
- done
-
- AC_REPLACE_FUNCS(memmove mkstemp scandir strcasecmp strerror strndup strnlen)
- AC_REPLACE_FUNCS(strtok_r strtod strtol strtoul vasprintf vsnprintf)
-
- AC_CHECK_FUNCS(realpath,,LIBOBJS="$LIBOBJS canonicalize.o")
-
- # to include `error.c' error.c has some HAVE_* checks
- AC_CHECK_FUNCS(vprintf doprnt strerror_r)
- AM_FUNC_ERROR_AT_LINE
-
- # This is required if we declare setreuid () and setregid ().
- AC_TYPE_UID_T
-
- # see if we need to declare some functions. Solaris is notorious for
- # putting functions into the `libc' but not listing them in the headers
- AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h)
- GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize)
-
- # Turn our LIBOBJS into libtool objects. This is gross, but it
- # requires changes to autoconf before it goes away.
- LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
- AC_SUBST(need_gnome_support)
- AC_SUBST(LTLIBOBJS)
-
- LIBOBJS="$save_LIBOBJS"
- AM_CONDITIONAL(BUILD_GNOME_SUPPORT, test "$need_gnome_support" = yes)
-])
diff --git a/macros/gnome-undelfs.m4 b/macros/gnome-undelfs.m4
deleted file mode 100644
index c8ea6f4b..00000000
--- a/macros/gnome-undelfs.m4
+++ /dev/null
@@ -1,20 +0,0 @@
-dnl GNOME_UNDELFS_CHECKS
-dnl Check for ext2fs undel support.
-dnl Set shell variable ext2fs_undel to "yes" if we have it,
-dnl "no" otherwise. May define USE_EXT2FSLIB for cpp.
-dnl Will set EXT2FS_UNDEL_LIBS to required libraries.
-
-AC_DEFUN([GNOME_UNDELFS_CHECKS], [
- AC_CHECK_HEADERS(ext2fs/ext2fs.h linux/ext2_fs.h)
- ext2fs_undel=no
- EXT2FS_UNDEL_LIBS=
- if test x$ac_cv_header_ext2fs_ext2fs_h = xyes
- then
- if test x$ac_cv_header_linux_ext2_fs_h = xyes
- then
- AC_DEFINE(USE_EXT2FSLIB)
- ext2fs_undel=yes
- EXT2FS_UNDEL_LIBS="-lext2fs -lcom_err"
- fi
- fi
-])
diff --git a/macros/gnome-vfs.m4 b/macros/gnome-vfs.m4
deleted file mode 100644
index 84600769..00000000
--- a/macros/gnome-vfs.m4
+++ /dev/null
@@ -1,80 +0,0 @@
-dnl GNOME_VFS_CHECKS
-dnl Check for various functions needed by libvfs.
-dnl This has various effects:
-dnl Sets GNOME_VFS_LIBS to libraries required
-dnl Sets termnet to true or false depending on whether it is required.
-dnl If yes, defines USE_TERMNET.
-dnl Sets vfs_flags to "pretty" list of vfs implementations we include.
-dnl Calls AC_SUBST(mcserv), which is either empty or "mcserv".
-
-AC_DEFUN([GNOME_VFS_CHECKS],[
- dnl FIXME: network checks should probably be in their own macro.
- AC_CHECK_LIB(nsl, t_accept)
- AC_CHECK_LIB(socket, socket)
-
- have_socket=no
- AC_CHECK_FUNCS(socket, have_socket=yes)
- if test $have_socket = no; then
- # socket is not in the default libraries. See if it's in some other.
- for lib in bsd socket inet; do
- AC_CHECK_LIB($lib, socket, [
- LIBS="$LIBS -l$lib"
- have_socket=yes
- AC_DEFINE(HAVE_SOCKET)
- break])
- done
- fi
-
- have_gethostbyname=no
- AC_CHECK_FUNC(gethostbyname, have_gethostbyname=yes)
- if test $have_gethostbyname = no; then
- # gethostbyname is not in the default libraries. See if it's in some other.
- for lib in bsd socket inet; do
- AC_CHECK_LIB($lib, gethostbyname, [LIBS="$LIBS -l$lib"; have_gethostbyname=yes; break])
- done
- fi
-
-
- vfs_flags="tarfs"
- use_net_code=false
- if test $have_socket = yes; then
- AC_STRUCT_LINGER
- AC_CHECK_FUNCS(pmap_set, , [
- AC_CHECK_LIB(rpc, pmap_set, [
- LIBS="-lrpc $LIBS"
- AC_DEFINE(HAVE_PMAP_SET)
- ])])
- AC_CHECK_FUNCS(pmap_getport pmap_getmaps rresvport)
- dnl add for source routing support setsockopt
- AC_CHECK_HEADERS(rpc/pmap_clnt.h)
- vfs_flags="$vfs_flags, mcfs, ftpfs, fish"
- use_net_code=true
- fi
-
- dnl
- dnl The termnet support
- dnl
- termnet=false
- AC_ARG_WITH(termnet,
- [--with-termnet If you want a termified net support],[
- if test x$withval = xyes; then
- AC_DEFINE(USE_TERMNET)
- termnet=true
- fi
- ])
-
- TERMNET=""
- AC_DEFINE(USE_VFS)
- if $use_net_code; then
- AC_DEFINE(USE_NETCODE)
- fi
- mcserv=
- if test $have_socket = yes; then
- mcserv="mcserv"
- if $termnet; then
- TERMNET="-ltermnet"
- fi
- fi
- AC_SUBST(TERMNET)
- AC_SUBST(mcserv)
-])
diff --git a/macros/gnome-x-checks.m4 b/macros/gnome-x-checks.m4
deleted file mode 100644
index 7109b411..00000000
--- a/macros/gnome-x-checks.m4
+++ /dev/null
@@ -1,81 +0,0 @@
-dnl GNOME_X_CHECKS
-dnl
-dnl Basic X11 related checks for X11. At the end, the following will be
-dnl defined/changed:
-dnl GTK_{CFLAGS,LIBS} From AM_PATH_GTK
-dnl CPPFLAGS Will include $X_CFLAGS
-dnl GNOME_HAVE_SM `true' or `false' depending on whether session
-dnl management is available. It is available if
-dnl both -lSM and X11/SM/SMlib.h exist. (Some
-dnl Solaris boxes have the library but not the header)
-dnl XPM_LIBS -lXpm if Xpm library is present, otherwise ""
-dnl
-dnl The following configure cache variables are defined (but not used):
-dnl gnome_cv_passdown_{x_libs,X_LIBS,X_CFLAGS}
-dnl
-AC_DEFUN([GNOME_X_CHECKS],
-[
- AM_PATH_GTK(1.1.5,,AC_MSG_ERROR(GTK not installed, or gtk-config not in path))
-
- dnl Hope that GTK_CFLAGS have only -I and -D. Otherwise, we could
- dnl test -z "$x_includes" || CPPFLAGS="$CPPFLAGS -I$x_includes"
- dnl
- dnl Use CPPFLAGS instead of CFLAGS because AC_CHECK_HEADERS uses
- dnl CPPFLAGS, not CFLAGS
- CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
-
- saved_ldflags="$LDFLAGS"
- LDFLAGS="$LDFLAGS $GTK_LIBS"
-
- gnome_cv_passdown_x_libs="$GTK_LIBS"
- gnome_cv_passdown_X_LIBS="$GTK_LIBS"
- gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"
- gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"
-
- LDFLAGS="$saved_ldflags $GTK_LIBS"
-
-dnl We are requiring GTK >= 1.1.1, which means this will be fine anyhow.
- USE_DEVGTK=true
-
-dnl AC_MSG_CHECKING([whether to use features from (unstable) GTK+ 1.1.x])
-dnl AC_EGREP_CPP(answer_affirmatively,
-dnl [#include <gtk/gtkfeatures.h>
-dnl #ifdef GTK_HAVE_FEATURES_1_1_0
-dnl answer_affirmatively
-dnl #endif
-dnl ], dev_gtk=yes, dev_gtk=no)
-dnl if test "$dev_gtk" = "yes"; then
-dnl USE_DEVGTK=true
-dnl fi
-dnl AC_MSG_RESULT("$dev_gtk")
-
- GNOME_HAVE_SM=true
- case "$GTK_LIBS" in
- *-lSM*)
- dnl Already found it.
- ;;
- *)
- dnl Assume that if we have -lSM then we also have -lICE.
- AC_CHECK_LIB(SM, SmcSaveYourselfDone,
- [GTK_LIBS="-lSM -lICE $GTK_LIBS"],GNOME_HAVE_SM=false,
- $x_libs -lICE)
- ;;
- esac
-
- if test "$GNOME_HAVE_SM" = true; then
- AC_CHECK_HEADERS(X11/SM/SMlib.h,,GNOME_HAVE_SM=false)
- fi
-
- if test "$GNOME_HAVE_SM" = true; then
- AC_DEFINE(HAVE_LIBSM)
- fi
-
- XPM_LIBS=""
- AC_CHECK_LIB(Xpm, XpmFreeXpmImage, [XPM_LIBS="-lXpm"], , $x_libs)
- AC_SUBST(XPM_LIBS)
-
- AC_REQUIRE([GNOME_PTHREAD_CHECK])
- LDFLAGS="$saved_ldflags"
-
- AC_PROVIDE([GNOME_X_CHECKS])
-])
diff --git a/macros/gnome-xml-check.m4 b/macros/gnome-xml-check.m4
deleted file mode 100644
index 5d379d16..00000000
--- a/macros/gnome-xml-check.m4
+++ /dev/null
@@ -1,30 +0,0 @@
-dnl
-dnl GNOME_XML_HOOK (script-if-xml-found, failflag)
-dnl
-dnl If failflag is "failure", script aborts due to lack of XML
-dnl
-dnl Check for availability of the libxml library
-dnl the XML parser uses libz if available too
-dnl
-
-AC_DEFUN([GNOME_XML_HOOK],[
- AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
- if test "$GNOME_CONFIG" = no; then
- if test x$2 = xfailure; then
- AC_MSG_ERROR(Could not find gnome-config)
- fi
- fi
- AC_CHECK_LIB(xml, xmlNewDoc, [
- $1
- AC_SUBST(GNOME_XML_LIB)
- GNOME_XML_LIB=`gnome-config --libs xml`
- ], [
- if test x$2 = xfailure; then
- AC_MSG_ERROR(Could not link sample xml program)
- fi
- ], `gnome-config --libs xml`)
-])
-
-AC_DEFUN([GNOME_XML_CHECK], [
- GNOME_XML_HOOK([],failure)
-])
diff --git a/macros/gnome.m4 b/macros/gnome.m4
deleted file mode 100644
index 331a1903..00000000
--- a/macros/gnome.m4
+++ /dev/null
@@ -1,100 +0,0 @@
-dnl
-dnl GNOME_INIT_HOOK (script-if-gnome-enabled, failflag)
-dnl
-dnl if failflag is "fail" then GNOME_INIT_HOOK will abort if gnomeConf.sh
-dnl is not found.
-dnl
-
-AC_DEFUN([GNOME_INIT_HOOK],
-[
- AC_SUBST(GNOME_LIBS)
- AC_SUBST(GNOMEUI_LIBS)
- AC_SUBST(GNOMEGNORBA_LIBS)
- AC_SUBST(GTKXMHTML_LIBS)
- AC_SUBST(GNOME_LIBDIR)
- AC_SUBST(GNOME_INCLUDEDIR)
-
- AC_ARG_WITH(gnome-includes,
- [ --with-gnome-includes Specify location of GNOME headers],[
- CFLAGS="$CFLAGS -I$withval"
- ])
-
- AC_ARG_WITH(gnome-libs,
- [ --with-gnome-libs Specify location of GNOME libs],[
- LDFLAGS="$LDFLAGS -L$withval"
- gnome_prefix=$withval
- ])
-
- AC_ARG_WITH(gnome,
- [ --with-gnome Specify prefix for GNOME files],
- if test x$withval = xyes; then
- want_gnome=yes
- dnl Note that an empty true branch is not
- dnl valid sh syntax.
- ifelse([$1], [], :, [$1])
- else
- if test "x$withval" = xno; then
- want_gnome=no
- else
- want_gnome=yes
- LDFLAGS="$LDFLAGS -L$withval/lib"
- CFLAGS="$CFLAGS -I$withval/include"
- gnome_prefix=$withval/lib
- fi
- fi,
- want_gnome=yes)
-
- if test "x$want_gnome" = xyes; then
-
- AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
- if test "$GNOME_CONFIG" = "no"; then
- no_gnome_config="yes"
- else
- AC_MSG_CHECKING(if $GNOME_CONFIG works)
- if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
- AC_MSG_RESULT(yes)
- GNOME_GNORBA_HOOK([],$2)
- GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
- GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
- GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
- GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
- GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
- GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
- $1
- else
- AC_MSG_RESULT(no)
- no_gnome_config="yes"
- fi
- fi
-
- if test x$exec_prefix = xNONE; then
- if test x$prefix = xNONE; then
- gnome_prefix=$ac_default_prefix/lib
- else
- gnome_prefix=$prefix/lib
- fi
- else
- gnome_prefix=`eval echo \`echo $libdir\``
- fi
-
- if test "$no_gnome_config" = "yes"; then
- AC_MSG_CHECKING(for gnomeConf.sh file in $gnome_prefix)
- if test -f $gnome_prefix/gnomeConf.sh; then
- AC_MSG_RESULT(found)
- echo "loading gnome configuration from" \
- "$gnome_prefix/gnomeConf.sh"
- . $gnome_prefix/gnomeConf.sh
- $1
- else
- AC_MSG_RESULT(not found)
- if test x$2 = xfail; then
- AC_MSG_ERROR(Could not find the gnomeConf.sh file that is generated by gnome-libs install)
- fi
- fi
- fi
- fi
-])
-
-AC_DEFUN([GNOME_INIT],[
- GNOME_INIT_HOOK([],fail)
-])
diff --git a/macros/linger.m4 b/macros/linger.m4
deleted file mode 100644
index dfa7c8ae..00000000
--- a/macros/linger.m4
+++ /dev/null
@@ -1,28 +0,0 @@
-dnl
-dnl Check for struct linger
-dnl
-AC_DEFUN(AC_STRUCT_LINGER, [
-av_struct_linger=no
-AC_MSG_CHECKING(struct linger is available)
-AC_TRY_RUN([
-#include <sys/types.h>
-#include <sys/socket.h>
-
-struct linger li;
-
-main ()
-{
- li.l_onoff = 1;
- li.l_linger = 120;
- exit (0);
-}
-],[
-AC_DEFINE(HAVE_STRUCT_LINGER)
-av_struct_linger=yes
-],[
-av_struct_linger=no
-],[
-av_struct_linger=no
-])
-AC_MSG_RESULT($av_struct_linger)
-])
diff --git a/macros/need-declaration.m4 b/macros/need-declaration.m4
deleted file mode 100644
index d5b7bc66..00000000
--- a/macros/need-declaration.m4
+++ /dev/null
@@ -1,42 +0,0 @@
-dnl See whether we need a declaration for a function.
-dnl GCC_NEED_DECLARATION(FUNCTION [, EXTRA-HEADER-FILES])
-AC_DEFUN(GCC_NEED_DECLARATION,
-[AC_MSG_CHECKING([whether $1 must be declared])
-AC_CACHE_VAL(gcc_cv_decl_needed_$1,
-[AC_TRY_COMPILE([
-#include <stdio.h>
-#ifdef HAVE_STRING_H
-#include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#endif
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-$2],
-[char *(*pfn) = (char *(*)) $1],
-eval "gcc_cv_decl_needed_$1=no", eval "gcc_cv_decl_needed_$1=yes")])
-if eval "test \"`echo '$gcc_cv_decl_needed_'$1`\" = yes"; then
- AC_MSG_RESULT(yes)
- gcc_need_declarations="$gcc_need_declarations $1"
- gcc_tr_decl=NEED_DECLARATION_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- AC_DEFINE_UNQUOTED($gcc_tr_decl)
-else
- AC_MSG_RESULT(no)
-fi
-])dnl
-
-dnl Check multiple functions to see whether each needs a declaration.
-dnl GCC_NEED_DECLARATIONS(FUNCTION... [, EXTRA-HEADER-FILES])
-AC_DEFUN(GCC_NEED_DECLARATIONS,
-[for ac_func in $1
-do
-GCC_NEED_DECLARATION($ac_func, $2)
-done
-]
-)