findlinks, mklinks, mdw-setup: Spruce up style.
[cfd] / aclocal.glob
index 135f075..283f695 100644 (file)
@@ -1,6 +1,4 @@
-dnl -*-fundamental-*-                                    *@--GLOB-HEADER--@*
-dnl
-dnl $Id: aclocal.glob,v 1.18 2004/04/08 01:36:24 mdw Exp $
+dnl -*-autoconf-*-                                       *@--GLOB-HEADER--@*
 dnl
 dnl Common library of autoconf macros
 dnl
@@ -10,99 +8,69 @@ dnl
 dnl----- Licensing notice ---------------------------------------------------
 dnl
 dnl This file is part of the Common Files Distribution (`common')
-dnl 
+dnl
 dnl `Common' is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
 dnl the Free Software Foundation; either version 2 of the License, or
 dnl (at your option) any later version.
-dnl 
+dnl
 dnl `Common' is distributed in the hope that it will be useful,
 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
-dnl 
+dnl
 dnl You should have received a copy of the GNU General Public License
 dnl along with `common'; if not, write to the Free Software Foundation,
 dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 dnl *@--NOTICE--@* Common File Distribution
-dnl $Id: aclocal.glob,v 1.18 2004/04/08 01:36:24 mdw Exp $
-
-dnl --- *@-mdw_REQUIRE-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_REQUIRE(MACRO, ARGS...)
-dnl
-dnl Arguments: MACRO = name of a macro which should have been called
-dnl            ARGS = arguments to pass
-dnl
-dnl Use:       Like `AC_REQUIRE', only it handles arguments.
-
-AC_DEFUN([mdw_REQUIRE],
-[ifdef([AC_PROVIDE_$1], ,
-[AC_DIVERT_PUSH(builtin(eval, AC_DIVERSION_CURRENT - 1))dnl
-indir($@)
-AC_DIVERT_POP()dnl
-])])
 
-dnl --- *@-mdw_CURSES-@* ---
+dnl --- *@-mdw_AUTO_VERSION-@* ---
 dnl
 dnl Author:    Mark Wooding
 dnl
-dnl Synopsis:  mdw_CURSES
+dnl Synopsis:  mdw_AUTO_VERSION
 dnl
 dnl Arguments: ---
 dnl
-dnl Use:       Searches for a `curses' library (one of `ncurses' or
-dnl            `curses') using mdw_CHECK_MANYLIBS.  If one is found, the
-dnl            preprocessor macro HAVE_CURSES is defined, and a search is
-dnl            made for a `curses' header file (one of <ncurses.h>,
-dnl            <ncurses/ncurses.h> or <curses.h>) using AC_CHECK_HEADERS
-dnl            and the appropriate preprocessor symbol is defined.
-dnl            Finally, a check is made for the function `wresize' using
-dnl            AC_CHECK_FUNCS.
-
-AC_DEFUN([mdw_CURSES],
-[mdw_CHECK_MANYLIBS(newwin, ncurses curses, AC_DEFINE(HAVE_CURSES))
-if test $mdw_cv_lib_newwin != no; then
-AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h curses.h], [break])
-if test "$ac_cv_header_ncurses_h" = "no" &&
-   test "$ac_cv_header_ncurses_ncurses_h" = "no" &&
-   test "$ac_cv_header_curses_h" = "no"; then
-     AC_MSG_WARN([couldn't find a \`curses' header.  Assuming \`curses.h'.])
-     AC_DEFINE(HAVE_CURSES_H)
-fi
-AC_CHECK_FUNCS(wresize)
-fi])
+dnl Use:       Defines an m4 macro AUTO_VERSION which contains the current
+dnl            version number, worked out in some clever way.
+
+dnl AC_DEFUN([mdw_AUTO_VERSION], [nobody cares...])
+m4_define([mdw_AUTO_VERSION], [m4_define([AUTO_VERSION], m4_esyscmd([
+  if test -d .git && version=$(git describe --abbrev=4 2>/dev/null); then
+    case "$(git diff-index --name-only HEAD)" in
+      "") ;; *) version="$version+" ;;
+    esac
+  elif cat RELEASE 2>/dev/null; then
+    version=$(cat RELEASE)
+  elif test -f debian/changelog; then
+    version=$(sed -n '/^.*(\(.*\)).*$/ { s::\1:p; q; }' debian/changelog)
+  else
+    echo UNKNOWN
+  fi
+  echo -n $version
+]))])
 
-dnl --- *@-mdw_TYPE_SSIZE_T-@* ---
+dnl --- *@-mdw_LIBTOOL_VERSION_INFO-@* ---
 dnl
 dnl Author:    Mark Wooding
 dnl
-dnl Synopsis:  mdw_TYPE_SSIZE_T
+dnl Synopsis:  mdw_LIBTOOL_VERSION
 dnl
 dnl Arguments: ---
 dnl
-dnl Use:       Checks whether the Posix type `ssize_t' is defined.  If not,
-dnl            it defaults to `int'.
+dnl Use:       Decodes the PACKAGE_VERSION variable as a libtool
+dnl            version-info string.  Strictly speaking, this is very
+dnl            naughty.
 
-AC_DEFUN([mdw_TYPE_SSIZE_T],
-[AC_REQUIRE([AC_HEADER_STDC])
-AC_CACHE_CHECK(for ssize_t, mdw_cv_ssize_t,
-[AC_EGREP_CPP(ssize_t,
-[#include <sys/types.h>
-#if HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif],
-[mdw_cv_ssize_t=yes], [mdw_cv_ssize_t=no])])
-if test $mdw_cv_ssize_t = no; then
-  AC_DEFINE(ssize_t, int)
-fi])
+AC_DEFUN([mdw_LIBTOOL_VERSION_INFO], [
+  set -- $(echo $PACKAGE_VERSION |
+  sed 's:[^.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$]:\1 \2 \3:'
+  )
+  LIBTOOL_VERSION_INFO="$(expr $[]1 + $[]2):$[]3:$[]2"
+  AC_SUBST([LIBTOOL_VERSION_INFO])
+])
 
 dnl --- *@-mdw_DECL_ENVIRON-@* ---
 dnl
@@ -118,7 +86,7 @@ dnl          is defined as a preprocessor symbol.
 
 AC_DEFUN([mdw_DECL_ENVIRON],
 [AC_CACHE_CHECK([for declaration of \`environ'], mdw_cv_environ,
-[AC_EGREP_CPP(environ, 
+[AC_EGREP_CPP([\<environ\>],
 [#include <sys/types.h>
 #if HAVE_UNISTD_H
 #include <unistd.h>
@@ -128,436 +96,15 @@ AC_DEFUN([mdw_DECL_ENVIRON],
 #include <stddef.h>
 #endif], [mdw_cv_environ=yes], [mdw_cv_environ=no])])
 if test $mdw_cv_environ = yes; then
-  AC_DEFINE(DECL_ENVIRON)
-fi])
-
-dnl --- *@-mdw_CHECK_MANYLIBS-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_CHECK_MANYLIBS(FUNC, LIBS, [IF-FOUND], [IF-NOT-FOUND],
-dnl                    [INCLUDES], [ARGS])
-dnl
-dnl Arguments: FUNC = a function to try to find
-dnl            LIBS = a whitespace-separated list of libraries to search
-dnl            IF-FOUND = what to do when the function is found
-dnl            IF-NOT-FOUND = what to do when the function isn't found
-dnl            INCLUDES = other include files to add
-dnl            ARGS = arguments to pass the function
-dnl
-dnl Use:       Searches for a library which defines FUNC.  It first tries
-dnl            without any libraries; then it tries each library specified
-dnl            in LIBS in turn.  If it finds a match, it adds the
-dnl            appropriate library to `LIBS'.
-dnl
-dnl            This is particularly handy under DIREIX: if you link with
-dnl            `-lnsl' then you get non-NIS-aware versions of getpwnam and
-dnl            so on, which is clearly a Bad Thing.
-
-AC_DEFUN([mdw_CHECK_MANYLIBS],
-[AC_CACHE_CHECK([for library containing $1], [mdw_cv_lib_$1],
-[mdw_save_LIBS="$LIBS"
-mdw_cv_lib_$1="no"
-AC_TRY_LINK([$5], [$1($6)], [mdw_cv_lib_$1="none required"])
-test "$mdw_cv_lib_$1" = "no" && for i in $2; do
-LIBS="-l$i $mdw_save_LIBS"
-AC_TRY_LINK([$5], [$1($6)],
-[mdw_cv_lib_$1="-l$i"
-break])
-done
-LIBS="$mdw_save_LIBS"])
-if test "$mdw_cv_lib_$1" != "no"; then
-  test "$mdw_cv_lib_$1" = "none required" || LIBS="$mdw_cv_lib_$1 $LIBS"
-  $3
-else :
-  $4
-fi])
-
-dnl --- *@-mdw__PERL_VERSION-@* ---
-dnl
-dnl AC_DEFUN relies on `[', `]' being quotes, so I have to drop down a level.
-
-changequote(<<, >>)
-define([mdw__PERL_VERSION], <<$1 -e 'exit ($] < $2);' >&5 2>&5>>)
-changequote([, ])
-
-dnl --- *@-mdw_PROG_PERL-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_PROG_PERL(VERSION, [IF-FOUND], [IF-NOT-FOUND])
-dnl
-dnl Arguments: VERSION = version number of Perl required
-dnl            IF-FOUND = what to do if it's found
-dnl            IF-NOT-FOUND = what to do if it isn't
-dnl
-dnl Use:       Attempts to find a working version of Perl with a late
-dnl            enough version number.  It supplies an option `--with-perl'
-dnl            to allow the user to provide a Perl interpreter.  If one
-dnl            isn't provided explicitly, it searches for `perl' and `perl5'
-dnl            in the current PATH, asking them whether they have a late
-dnl            enough version number.  The path of the working Perl is
-dnl            put into the `PERL' environment variable; `AC_SUBST' is used
-dnl            to substitute its value into Perl scripts.  If there is no
-dnl            Perl to be found, the value of `PERL' is set to be `none'.
-
-AC_DEFUN([mdw_PROG_PERL],
-[AC_ARG_WITH([perl],
-[  --with-perl=PERL      specify path to Perl version $1 or newer],
-[PERL="$withval"],
-if test -z "$PERL"; then
-[AC_CACHE_CHECK([for Perl version $1 or later], mdw_cv_prog_perl,
-[mdw_cv_prog_perl="none"
-for p in `echo "$PATH:/usr/local/bin" | tr ":" " "`; do
-  case $p in /*) ;; *) p=`pwd`/$p ;; esac
-  if mdw__PERL_VERSION(["$p/perl"], $1); then
-    mdw_cv_prog_perl="$p/perl"
-    break
-  fi
-  if mdw__PERL_VERSION(["$p/perl5"], $1); then
-    mdw_cv_prog_perl="$p/perl5"
-    break
-  fi
-done])
-PERL="$mdw_cv_prog_perl"])
-fi
-
-AC_SUBST(PERL)dnl
-if test "$PERL" = "none"; then :
-  $3
-else :
-  $2
-fi])
-
-dnl --- *@-mdw_CHECK_PERL-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_CHECK_PERL(VERSION)
-dnl
-dnl Arguments: VERSION = version number of Perl required
-dnl
-dnl Use:       Verifies that the Perl interpreter in the `PERL' shell
-dnl            variable actually works and is of the right version.  If it's
-dnl            not, an error is raised and configuration is aborted.
-
-AC_DEFUN([mdw_CHECK_PERL],
-[mdw_REQUIRE([mdw_PROG_PERL], [$1])
-AC_MSG_CHECKING([whether Perl ($PERL) works])
-if test "$PERL" != "none" && mdw__PERL_VERSION("$PERL", $1); then
-  AC_MSG_RESULT([yes])
-else
-  AC_MSG_RESULT([no])
-  AC_MSG_ERROR([Perl version $1 or newer not found.
-If you have a recent enough Perl, and I just failed to find it, try using
-the --with-perl=PERL option to give me an explicit pathname.])
-fi])
-
-dnl --- *@-mdw_PERLLIB_CHECK-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_PERLLIB_CHECK(LIBRARY)
-dnl
-dnl Arguments: LIBRARY = name of a Perl library to check for
-dnl
-dnl Use:       Ensures that a Perl script can `use LIBRARY;'.  If it can,
-dnl            all's well and good; if it can't, `LIBRARY.pm' is added to
-dnl            the variable `NEEDED_PERLLIBS' and a line which adds 
-dnl            `pkgdatadir' to Perl's `@INC' array is placed in the
-dnl            variable `INC_PERLLIBS'; `AC_SUBST' is called for both of
-dnl            these variables.  It's expected that `NEEDED_PERLLIBS' will
-dnl            be used in the `Makefile.in' to decide which versions from
-dnl            the distribution need installing.
-dnl
-dnl            This macro isn't terribly useful in the general case.  It
-dnl            Also implicitly assumes that `$PERL' is Perl 5 or later.
-
-AC_DEFUN([mdw__PERLLIB_INIT],
-[AC_SUBST(INC_PERLLIBS)dnl
-AC_SUBST(NEEDED_PERLLIBS)dnl
-])
-
-AC_DEFUN([mdw_PERLLIB_CHECK],
-[AC_REQUIRE([mdw__PERLLIB_INIT])
-mdw_REQUIRE([mdw_CHECK_PERL], 5)
-AC_CACHE_CHECK([for Perl library $1], mdw_cv_perllib_$1,
-[if $PERL -e 'use $1;' >&5 2>&5; then
-  mdw_cv_perllib_$1="yes"
-else
-  mdw_cv_perllib_$1="no"
+  AC_DEFINE([DECL_ENVIRON], [1],
+            [Define if you have the `environ' vector of environment variables.])
 fi])
 
-if test "$mdw_cv_perllib_$1" = "no"; then
-  NEEDED_PERLLIBS="$NEEDED_PERLLIBS $1.pm"
-
-  # --- Deal with autoconf lossage ---
-  #
-  # It doesn't want to define `prefix' until rather later on, so I have
-  # to bodge it here.
-
-  if test -z "$INC_PERLLIBS"; then
-    mdw_old_prefix="$prefix"
-    test "$prefix" = "NONE" && prefix="$ac_default_prefix";
-    INC_PERLLIBS="BEGIN { push @INC, \"`eval echo $datadir/$PACKAGE`\"; }"
-    prefix="$mdw_old_prefix";
-  fi
-fi])
-
-dnl --- *@-mdw_GCC_FLAGS-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_GCC_FLAGS([FLAGS], [CFLAGS], [C++FLAGS])
-dnl
-dnl Arguments: FLAGS = GCC compiler flags to add (default is 
-dnl                    `-pedantic -Wall')
-dnl            CFLAGS = GCC C compiler flags to add (default is empty)
-dnl            C++FLAGS = GCC C++ compiler flags to add (default is
-dnl                    `-fhandle-exceptions').
-dnl
-dnl Use:       If the C compiler is GCC, add the compiler flags.
-
-AC_DEFUN([mdw_GCC_FLAGS],
-[if test "$GCC" = "yes"; then
-  CFLAGS="$CFLAGS ifelse([$1], [], [-pedantic -Wall], [$1])"
-  CFLAGS="$CFLAGS ifelse([$2], [], [], [$2])"
-fi
-if test "$GXX" = "yes"; then
-  CXXFLAGS="$CXXFLAGS ifelse([$1], [], [-pedantic -Wall], [$1])"
-  CXXFLAGS="$CXXFLAGS ifelse([$3], [], [-fhandle-exceptions], [$3])"
-fi])
-
-dnl --- *@-mdw_INIT_LIB-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_INIT_LIB(LIB, NAME, VERSION, [PACKAGE])
-dnl
-dnl Arguments: LIB = the name of the library (and the package)
-dnl            NAME = a presentable version of the library's name
-dnl            VERSION = version of the library
-dnl            PACKAGE = package name to pass on to AM_INIT_AUTOMAKE
-dnl
-dnl Use:       Sets up various useful variables.  This macro calls
-dnl            AM_INIT_AUTOMAKE, which might be considered useful.  It also
-dnl            provides variables for the use of `lib-config.in'.
-
-AC_DEFUN([mdw_INIT_LIB],
-[AM_INIT_AUTOMAKE(ifelse([$4], [], [$1], [$4]), [$3])
-LIBRARY="$1" AC_SUBST(LIBRARY)
-LIBNAME="$2" AC_SUBST(LIBNAME)])
-
-dnl --- *@-mdw_LIB_CONFIG-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_LIB_CONFIG(LIB, NAME, VERSION, IF-FOUND, IF-NOT-FOUND)
-dnl
-dnl Arguments: LIB = the name of the library (and its configuration program)
-dnl            NAME = a presentable version of the library's name
-dnl            VERSION = version of library required
-dnl            IF-FOUND = what to do if found
-dnl            IF-NOT-FOUND = what to do if not found  
-dnl
-dnl Use:       Configures a library client program, using a configuration
-dnl            script provided by the library maintainer.
-dnl
-dnl            The default version is 1.0.0pre0; the default action is to
-dnl            add everything to the CFLAGS and LIBS variables, and complain
-dnl            if the library couldn't be found.
-dnl
-dnl            The variable LIB_VERSION contains the version number of
-dnl            the library; LIB_CFLAGS is the C compiler flags required
-dnl            and LIB_LIBS is the linker flags.
-
-AC_DEFUN([mdw_LIB_CONFIG],
-[pushdef([upname], translit([$1], [a-z], [A-Z]))dnl
-AC_MSG_CHECKING([for $2 library])
-if $1-config --check $3 >/dev/null 2>&1; then
-  upname[]_VERSION=`$1-config --version`
-  upname[]_CFLAGS=`$1-config --cflags`
-  upname[]_LIBS=`$1-config --libs`
-  AC_SUBST(upname[]_VERSION)
-  AC_SUBST(upname[]_CFLAGS)
-  AC_SUBST(upname[]_LIBS)
-  ifelse([$4], [],
-  [CFLAGS="$CFLAGS $upname[]_CFLAGS"
-  LIBS="$upname[]_LIBS $LIBS"],
-  $4)
-  AC_MSG_RESULT([$upname[]_VERSION])
-else
-  ifelse([$5], [],
-  AC_MSG_ERROR([$2 library not found or too old.]),
-  $5)
-  AC_MSG_RESULT([not found])
-fi
-popdef([upname])])
-
-dnl --- *@-mdw_MLIB-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_MLIB(VERSION, IF-FOUND, IF-NOT-FOUND
-dnl
-dnl Arguments: VERSION = version of library required
-dnl            IF-FOUND = what to do if found
-dnl            IF-NOT-FOUND = what to do if not found  
-dnl
-dnl Use:       Configures an mLib client program.
-
-AC_DEFUN([mdw_MLIB], [mdw_LIB_CONFIG(mLib, mLib, $@)])
-
-dnl --- *@-mdw_MGLIB-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_MGLIB(VERSION, IF-FOUND, IF-NOT-FOUND
-dnl
-dnl Arguments: VERSION = version of library required
-dnl            IF-FOUND = what to do if found
-dnl            IF-NOT-FOUND = what to do if not found  
-dnl
-dnl Use:       Configures an mgLib client program.
-
-AC_DEFUN([mdw_MGLIB],
-[mdw_REQUIRE([mdw_MLIB], [1.6.0])
-mdw_LIB_CONFIG(mgLib, mgLib, $@)])
-
-dnl --- *@-mdw_CATACOMB-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_CATACOMB([VERSION], [IF-FOUND], [IF-NOT-FOUND])
-dnl
-dnl Arguments: VERSION = version of Catacomb required
-dnl            IF-FOUND = what to do if found
-dnl            IF-NOT-FOUND = what to do if not found  
-dnl
-dnl Use:       Configures the program as a Catacomb client.
-
-AC_DEFUN([mdw_CATACOMB],
-[mdw_REQUIRE([mdw_MLIB], [1.6.0])
-mdw_LIB_CONFIG(catacomb, Catacomb, $@)])
-
-dnl --- *@-mdw_PK-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_PK([VERSION], [IF-FOUND], [IF-NOT-FOUND])
-dnl
-dnl Arguments: VERSION = version of PK required
-dnl            IF-FOUND = what to do if found
-dnl            IF-NOT-FOUND = what to do if not found  
-dnl
-dnl Use:       Configures the program as a PK client.
-
-AC_DEFUN([mdw_PK],
-[mdw_REQUIRE([mdw_MLIB], [1.6.0])
-mdw_LIB_CONFIG(pk, PK, $@)])
-
-dnl --- *@-mdw_OPT_NDEBUG-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_OPT_NDEBUG
-dnl
-dnl Arguments: ---
-dnl
-dnl Use:       Turns on the `NDEBUG' flag, to disable useful things like
-dnl            assertions.
-
-AC_DEFUN([mdw_OPT_NDEBUG],
-[AC_ARG_ENABLE(debugging,
-[  --disable-debugging     spews vast swathes of useless information],
-[if test "$enableval" = "no"; then
-  AC_DEFINE(NDEBUG, 1)
-fi])])
-
-dnl --- *@-mdw_OPT_EFENCE-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_OPT_EFENCE
-dnl
-dnl Arguments: ---
-dnl
-dnl Use:       Links with the Electric Fence library.
-
-AC_DEFUN([mdw_OPT_EFENCE],
-[AC_ARG_WITH(electric-fence,
-[  --with-electric-fence   link programs with Electric Fence],
-[if test "$withval" = "yes"; then
-  AC_CHECK_LIB(efence, malloc)
-fi])])
-
-dnl --- *@-mdw_OPT_TRACE-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_OPT_TRACE
-dnl
-dnl Arguments: ---
-dnl
-dnl Use:       Turns on the `NTRACE' flag, to disable useful things like
-dnl            trace outputs.
-
-AC_DEFUN([mdw_OPT_TRACE],
-[AC_ARG_ENABLE(tracing,    
-[  --disable-tracing       disable output of trace information],
-[if test "$enableval" = "no"; then
-  AC_DEFINE(NTRACE, 1)
-fi])])
-
-dnl --- *@-mdw_OPT_mLib_TRACK-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_OPT_mLib_TRACK(PROGRAM)
-dnl
-dnl Arguments: PROGRAM = name of this program or package.
-dnl
-dnl Use:       Controls the unsupported mLib memory tracker.  The
-dnl            following are defined:
-dnl
-dnl              --enable-track          turns on malloc tracking
-dnl              --enable-blame-PROGRAM  tracks malloc contexts in PROGRAM
-dnl
-dnl            There must be  a separate `blame' option for each program,
-dnl            so that the various blame options in a hierarchy get
-dnl            propagated properly.  This is an obsolete feature from the
-dnl            days when mLib was provided as a subdirectory of other
-dnl            packages.
-
-AC_DEFUN([mdw_OPT_mLib_TRACK],
-[AC_REQUIRE([mdw_OPT_TRACE])
-AC_ARG_ENABLE(track,
-[  --enable-track          enable tracking of malloc and free],
-[AC_DEFINE(TRACK_ENABLE, 1)])
-AC_ARG_ENABLE(blame-$1,
-[  --enable-blame-$1
-                          track malloc contexts while in $1],
-[AC_DEFINE(TRACK_BLAME, 1)])])
-
-dnl --- *@-mdw_OPT_mLib_DEBUG-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_OPT_mLib_DEBUG(PROGRAM)
-dnl
-dnl Arguments: PROGRAM = name of this program or package.
-dnl
-dnl Use:       Provides all of the above debugging options.
-
-AC_DEFUN([mdw_OPT_mLib_DEBUG],
-[mdw_REQUIRE([mdw_OPT_NDEBUG])
-mdw_REQUIRE([mdw_OPT_mLib_TRACK], [$1])])
-
 dnl --- *@-mdw_DEFINE_PATHS-@*
 dnl
 dnl Author:    Mark Wooding
 dnl
-dnl Synopsis:  mdw_DEFINE_FILES(CODE)
+dnl Synopsis:  mdw_DEFINE_PATHS(CODE)
 dnl
 dnl Arguments: CODE = shell script code to execute
 dnl
@@ -592,37 +139,11 @@ case "$t" in dnl
 *) break;; dnl
 esac; done; dnl
 echo "$t"`])
-AC_DEFUN([mdw_DEFINE_PROG], [AC_DEFINE_UNQUOTED([$1], ["mdw_PROG([$2])"])])
-AC_DEFUN([mdw_DEFINE_PATH], [AC_DEFINE_UNQUOTED([$1], ["mdw_PATH([$2])"])])
-
-dnl --- *@-mdw_DIR_TEXMF-@* ---
-dnl
-dnl Author:    Mark Wooding
-dnl
-dnl Synopsis:  mdw_DIR_TEXMF
-dnl
-dnl Arguments: ---
-dnl
-dnl Use:       Sets the substitution `texmfdir' as a sensible TeX install
-dnl            tree.
-
-AC_DEFUN([mdw_DIR_TEXMF], [
-AC_ARG_WITH([texmfdir], 
-[  --with-texmfdir=DIR     set the TeX install directory to DIR],
-[texmfdir=$withval],
-[AC_MSG_CHECKING([where to put installed TeX files])
-mdw_DEFINE_PATHS([
-texmfdir='${datadir}/texmf'
-for d in \
-  '${datadir}/texmf' '${prefix}/lib/texmf' \
-  '${prefix}/texmf' '${libdir}/lib/texmf'; do
-  if test -d "mdw_PATH([$d])"; then
-    texmfdir=$d
-    break
-  fi
-done
-AC_MSG_RESULT([$texmfdir])])])
-AC_SUBST(texmfdir)])
+AC_DEFUN([mdw_DEFINE_PROG],
+         [AC_DEFINE_UNQUOTED([$1], ["mdw_PROG([$2])"],
+                             [Program name for $2.])])
+AC_DEFUN([mdw_DEFINE_PATH], [AC_DEFINE_UNQUOTED([$1], ["mdw_PATH([$2])"],
+                                                [Pathname for $2.])])
 
 dnl --- *@-mdw_MANEXT-@* ---
 dnl