summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-03-21 03:14:53 +0000
committerJim Meyering <jim@meyering.net>1997-03-21 03:14:53 +0000
commite328e25bd1bb3670ca53634f5788bc5139162d2c (patch)
tree91ac99a5f9e95509a615c9469c0ff024ba8afbb0
parentbf435650e102ed1a36e79171cb2e9eb67a8640e7 (diff)
downloadcoreutils-e328e25bd1bb3670ca53634f5788bc5139162d2c.tar.xz
.
-rw-r--r--m4/dmalloc.m421
-rw-r--r--m4/error.m413
-rw-r--r--m4/header.m412
-rw-r--r--m4/install.m413
-rw-r--r--m4/lispdir.m438
-rw-r--r--m4/maintainer.m422
-rw-r--r--m4/obstack.m415
-rw-r--r--m4/ptrdiff.m412
-rw-r--r--m4/regex.m437
-rw-r--r--m4/strtod.m469
-rw-r--r--m4/termios.m414
-rw-r--r--m4/winsz.m435
12 files changed, 0 insertions, 301 deletions
diff --git a/m4/dmalloc.m4 b/m4/dmalloc.m4
deleted file mode 100644
index 365ef8039..000000000
--- a/m4/dmalloc.m4
+++ /dev/null
@@ -1,21 +0,0 @@
-## ----------------------------------- ##
-## Check if --with-dmalloc was given. ##
-## From Franc,ois Pinard ##
-## ----------------------------------- ##
-
-# serial 1
-
-AC_DEFUN(AM_WITH_DMALLOC,
-[AC_MSG_CHECKING(if malloc debugging is wanted)
-AC_ARG_WITH(dmalloc,
-[ --with-dmalloc use dmalloc, as in
- ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz],
-[if test "$withval" = yes; then
- AC_MSG_RESULT(yes)
- AC_DEFINE(WITH_DMALLOC)
- LIBS="$LIBS -ldmalloc"
- LDFLAGS="$LDFLAGS -g"
-else
- AC_MSG_RESULT(no)
-fi], [AC_MSG_RESULT(no)])
-])
diff --git a/m4/error.m4 b/m4/error.m4
deleted file mode 100644
index eac272a50..000000000
--- a/m4/error.m4
+++ /dev/null
@@ -1,13 +0,0 @@
-dnl From Jim Meyering. Use this if you use the GNU error.[ch].
-dnl FIXME: Migrate into libit
-
-AC_DEFUN(AM_FUNC_ERROR_AT_LINE,
-[AC_CACHE_CHECK([for error_at_line], am_cv_lib_error_at_line,
- [AC_TRY_LINK([],[error_at_line(0, 0, "", 0, "");],
- am_cv_lib_error_at_line=yes,
- am_cv_lib_error_at_line=no)])
- if test $am_cv_lib_error_at_line = no; then
- LIBOBJS="$LIBOBJS error.o"
- fi
- AC_SUBST(LIBOBJS)dnl
-])
diff --git a/m4/header.m4 b/m4/header.m4
deleted file mode 100644
index 3a408e105..000000000
--- a/m4/header.m4
+++ /dev/null
@@ -1,12 +0,0 @@
-# Like AC_CONFIG_HEADER, but automatically create stamp file.
-
-AC_DEFUN(AM_CONFIG_HEADER,
-[AC_PREREQ([2.12])
-AC_CONFIG_HEADER([$1])
-dnl When config.status generates a header, we must update the stamp-h file.
-dnl This file resides in the same directory as the config header
-dnl that is generated. We must strip everything past the first ":",
-dnl and everything past the last "/".
-AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
-test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl
-changequote([,]))])
diff --git a/m4/install.m4 b/m4/install.m4
deleted file mode 100644
index 78b049217..000000000
--- a/m4/install.m4
+++ /dev/null
@@ -1,13 +0,0 @@
-## --------------------------------------------------------- ##
-## Use AC_PROG_INSTALL, supplementing it with INSTALL_SCRIPT ##
-## substitution. ##
-## From Franc,ois Pinard ##
-## --------------------------------------------------------- ##
-
-# serial 1
-
-AC_DEFUN(AM_PROG_INSTALL,
-[AC_REQUIRE([AC_PROG_INSTALL])
-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
-AC_SUBST(INSTALL_SCRIPT)dnl
-])
diff --git a/m4/lispdir.m4 b/m4/lispdir.m4
deleted file mode 100644
index b04a17ca9..000000000
--- a/m4/lispdir.m4
+++ /dev/null
@@ -1,38 +0,0 @@
-## ------------------------
-## Emacs LISP file handling
-## From Ulrich Drepper
-## ------------------------
-
-# serial 1
-
-AC_DEFUN(AM_PATH_LISPDIR,
- [# If set to t, that means we are running in a shell under Emacs.
- # If you have an Emacs named "t", then use the full path.
- test "$EMACS" = t && EMACS=
- AC_PATH_PROG(EMACS, emacs xemacs, no)
- if test $EMACS != "no"; then
- AC_MSG_CHECKING([where .elc files should go])
- dnl Set default value
- lispdir="\$(datadir)/emacs/site-lisp"
- if test "x$prefix" = "xNONE"; then
- if test -d $ac_default_prefix/share/emacs/site-lisp; then
- lispdir="\$(prefix)/share/emacs/site-lisp"
- else
- if test -d $ac_default_prefix/lib/emacs/site-lisp; then
- lispdir="\$(prefix)/lib/emacs/site-lisp"
- fi
- fi
- else
- if test -d $prefix/share/emacs/site-lisp; then
- lispdir="\$(prefix)/share/emacs/site-lisp"
- else
- if test -d $prefix/lib/emacs/site-lisp; then
- lispdir="\$(prefix)/lib/emacs/site-lisp"
- fi
- fi
- fi
- AC_MSG_RESULT($lispdir)
- ELCFILES="\$(ELCFILES)"
- fi
- AC_SUBST(lispdir)
- AC_SUBST(ELCFILES)])
diff --git a/m4/maintainer.m4 b/m4/maintainer.m4
deleted file mode 100644
index 5d9a7658b..000000000
--- a/m4/maintainer.m4
+++ /dev/null
@@ -1,22 +0,0 @@
-# Add --enable-maintainer-mode option to configure.
-# From Jim Meyering
-
-# serial 1
-
-AC_DEFUN(AM_MAINTAINER_MODE,
-[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
- dnl maintainer-mode is disabled by default
- AC_ARG_ENABLE(maintainer-mode,
-[ --enable-maintainer-mode enable make rules and dependencies not useful
- (and sometimes confusing) to the casual installer],
- USE_MAINTAINER_MODE=$enableval,
- USE_MAINTAINER_MODE=no)
- AC_MSG_RESULT($USE_MAINTAINER_MODE)
- if test $USE_MAINTAINER_MODE = yes; then
- MAINT=
- else
- MAINT='#M#'
- fi
- AC_SUBST(MAINT)dnl
-]
-)
diff --git a/m4/obstack.m4 b/m4/obstack.m4
deleted file mode 100644
index b702aee43..000000000
--- a/m4/obstack.m4
+++ /dev/null
@@ -1,15 +0,0 @@
-dnl From Jim Meyering.
-dnl FIXME: migrate into libit.
-
-AC_DEFUN(AM_FUNC_OBSTACK,
-[AC_CACHE_CHECK([for obstacks], am_cv_func_obstack,
- [AC_TRY_LINK([#include "obstack.h"],
- [struct obstack *mem;obstack_free(mem,(char *) 0)],
- am_cv_func_obstack=yes,
- am_cv_func_obstack=no)])
- if test $am_cv_func_obstack = yes; then
- AC_DEFINE(HAVE_OBSTACK)
- else
- LIBOBJS="$LIBOBJS obstack.o"
- fi
-])
diff --git a/m4/ptrdiff.m4 b/m4/ptrdiff.m4
deleted file mode 100644
index 85bf4aceb..000000000
--- a/m4/ptrdiff.m4
+++ /dev/null
@@ -1,12 +0,0 @@
-# From Ulrich Drepper.
-
-# serial 1
-
-AC_DEFUN(AM_TYPE_PTRDIFF_T,
- [AC_CACHE_CHECK([for ptrdiff_t], am_cv_type_ptrdiff_t,
- [AC_TRY_COMPILE([#include <stddef.h>], [ptrdiff_t p],
- am_cv_type_ptrdiff_t=yes, am_cv_type_ptrdiff_t=no)])
- if test $am_cv_type_ptrdiff_t = yes; then
- AC_DEFINE(HAVE_PTRDIFF_T)
- fi
-])
diff --git a/m4/regex.m4 b/m4/regex.m4
deleted file mode 100644
index 007b16636..000000000
--- a/m4/regex.m4
+++ /dev/null
@@ -1,37 +0,0 @@
-## --------------------------------- ##
-## Check if --with-regex was given. ##
-## --------------------------------- ##
-
-# serial 1
-
-# The idea is to distribute rx.[hc] and regex.[hc] together, for a while.
-# The WITH_REGEX symbol (which should also be documented in acconfig.h)
-# is used to decide which of regex.h or rx.h should be included in the
-# application. If `./configure --with-regex' is given (the default), the
-# package will use gawk's regex. If `./configure --without-regex', a
-# check is made to see if rx is already installed, as with newer Linux'es.
-# If not found, the package will use the rx from the distribution.
-# If found, the package will use the system's rx which, on Linux at least,
-# will result in a smaller executable file.
-
-AC_DEFUN(AM_WITH_REGEX,
-[AC_MSG_CHECKING(which of GNU rx or gawk's regex is wanted)
-AC_ARG_WITH(regex,
-[ --without-regex use GNU rx in lieu of gawk's regex for matching],
-[test "$withval" = yes && am_with_regex=1],
-[am_with_regex=1])
-if test -n "$am_with_regex"; then
- AC_MSG_RESULT(regex)
- AC_DEFINE(WITH_REGEX)
- AC_CACHE_CHECK([for GNU regex in libc], am_cv_gnu_regex,
- AC_TRY_LINK([], [extern int re_max_failures; re_max_failures = 1],
- am_cv_gnu_regex=yes, am_cv_gnu_regex=no))
- if test $am_cv_gnu_regex = no; then
- LIBOBJS="$LIBOBJS regex.o"
- fi
-else
- AC_MSG_RESULT(rx)
- AC_CHECK_FUNC(re_rx_search, , [LIBOBJS="$LIBOBJS rx.o"])
-fi
-AC_SUBST(LIBOBJS)dnl
-])
diff --git a/m4/strtod.m4 b/m4/strtod.m4
deleted file mode 100644
index 8aaf4b793..000000000
--- a/m4/strtod.m4
+++ /dev/null
@@ -1,69 +0,0 @@
-## Copyright (C) 1996 Free Software Foundation, Inc.
-
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-## 02111-1307, USA.
-
-## From Jim Meyering.
-
-## serial 1
-
-## @defmac AC_FUNC_STRTOD
-## @maindex FUNC_STRTOD
-## @ovindex LIBOBJS
-## If the @code{strtod} function is not available, or does not work
-## correctly (like the one on SunOS 5.4), add @samp{strtod.o} to output
-## variable @code{LIBOBJS}.
-## @end defmac
-
-AC_DEFUN(AM_FUNC_STRTOD,
-[AC_CACHE_CHECK(for working strtod, am_cv_func_strtod,
-[AC_TRY_RUN([
-double strtod ();
-int
-main()
-{
- {
- /* Some versions of Linux strtod mis-parse strings with leading '+'. */
- char *string = " +69";
- char *term;
- double value;
- value = strtod (string, &term);
- if (value != 69 || term != (string + 4))
- exit (1);
- }
-
- {
- /* Under Solaris 2.4, strtod returns the wrong value for the
- terminating character under some conditions. */
- char *string = "NaN";
- char *term;
- strtod (string, &term);
- if (term != string && *(term - 1) == 0)
- exit (1);
- }
- exit (0);
-}
-], am_cv_func_strtod=yes, am_cv_func_strtod=no, am_cv_func_strtod=no)])
-test $am_cv_func_strtod = no && LIBOBJS="$LIBOBJS strtod.o"
-AC_SUBST(LIBOBJS)dnl
-am_cv_func_strtod_needs_libm=no
-if test $am_cv_func_strtod = no; then
- AC_CHECK_FUNCS(pow)
- if test $ac_cv_func_pow = no; then
- AC_CHECK_LIB(m, pow, [am_cv_func_strtod_needs_libm=yes],
- [AC_MSG_WARN(can't find library containing definition of pow)])
- fi
-fi
-])
diff --git a/m4/termios.m4 b/m4/termios.m4
deleted file mode 100644
index 1eb31d1e3..000000000
--- a/m4/termios.m4
+++ /dev/null
@@ -1,14 +0,0 @@
-dnl From Jim Meyering.
-
-# serial 1
-
-AC_DEFUN(AM_SYS_POSIX_TERMIOS,
-[AC_CACHE_CHECK([POSIX termios], am_cv_sys_posix_termios,
- [AC_TRY_LINK([#include <sys/types.h>
-#include <unistd.h>
-#include <termios.h>],
- [/* SunOS 4.0.3 has termios.h but not the library calls. */
- tcgetattr(0, 0);],
- am_cv_sys_posix_termios=yes,
- am_cv_sys_posix_termios=no)])
-])
diff --git a/m4/winsz.m4 b/m4/winsz.m4
deleted file mode 100644
index 163e512bd..000000000
--- a/m4/winsz.m4
+++ /dev/null
@@ -1,35 +0,0 @@
-dnl From Jim Meyering.
-
-# serial 1
-
-AC_DEFUN(AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL,
-[AC_REQUIRE([AM_SYS_POSIX_TERMIOS])
- AC_CACHE_CHECK([whether use of TIOCGWINSZ requires sys/ioctl.h],
- am_cv_sys_tiocgwinsz_needs_sys_ioctl_h,
- [am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
-
- gwinsz_in_termios_h=no
- if test $am_cv_sys_posix_termios = yes; then
- AC_EGREP_CPP([yes],
- [#include <sys/types.h>
-# include <termios.h>
-# ifdef TIOCGWINSZ
- yes
-# endif
- ], gwinsz_in_termios_h=yes)
- fi
-
- if test $gwinsz_in_termios_h = no; then
- AC_EGREP_CPP([yes],
- [#include <sys/types.h>
-# include <sys/ioctl.h>
-# ifdef TIOCGWINSZ
- yes
-# endif
- ], am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes)
- fi
- ])
- if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
- AC_DEFINE(GWINSZ_IN_SYS_IOCTL)
- fi
-])