]> sourceware.org Git - automake.git/commitdiff
m4 fixes
authorTom Tromey <tromey@redhat.com>
Sat, 24 Aug 1996 16:20:52 +0000 (16:20 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 24 Aug 1996 16:20:52 +0000 (16:20 +0000)
28 files changed:
ChangeLog
Makefile.am
Makefile.in
THANKS
TODO
acinstall [new file with mode: 0755]
lib/acinstall [new file with mode: 0755]
lib/am/Makefile.am
m4/AM_C_PROTOTYPES.m4
m4/AM_FEATURE_CTYPE.m4
m4/AM_FEATURE_ERRNO.m4
m4/AM_FEATURE_EXIT.m4
m4/AM_FUNC_FNMATCH.m4
m4/AM_FUNC_STRTOD.m4
m4/AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL.m4
m4/AM_INIT_AUTOMAKE.m4
m4/AM_MAINTAINER_MODE.m4
m4/AM_PATH_LISPDIR.m4
m4/AM_PROG_CC_STDC.m4
m4/AM_PROG_INSTALL.m4
m4/AM_PROG_LIBTOOL.m4
m4/AM_SYSTEM_HEADER.m4
m4/AM_SYS_POSIX_TERMIOS.m4
m4/AM_TYPE_PTRDIFF_T.m4
m4/AM_WITH_DMALLOC.m4
m4/AM_WITH_REGEX.m4
m4/Makefile.am
m4/Makefile.in

index 64743d9070baa53e387c8a5c32f5d27d67353e98..ba7105effc6402344adb610803a2e0d5fc83cbb9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+Sat Aug 24 09:30:46 1996  Tom Tromey  <tromey@creche.cygnus.com>
+
+       * acinstall: New file.
+
+       * m4/AM_INIT_AUTOMAKE.m4: Define PACKAGE and VERSION.
+
+       * m4/AM_WITH_REGEX.m4: New version from François Pinard.
+
+       * m4/AM_TYPE_PTRDIFF_T.m4: Use am_cv, not ac_cv.
+       * m4/AM_C_PROTOTYPES.m4: Ditto.
+       * m4/AM_FUNC_STRTOD.m4: Ditto.
+       * m4/AM_PROG_CC_STDC.m4: Ditto.
+       * m4/AM_PROG_LIBTOOL.m4: Ditto.
+
+Fri Aug 23 22:23:50 1996  Tom Tromey  <tromey@creche.cygnus.com>
+
+       * m4/Makefile.am (m4datadir): New macro
+       (m4data_DATA): Renamed.
+
+       * Makefile.am (cvs-dist): Depend on distcheck target.
+
 Mon Aug 19 15:37:32 1996  Tom Tromey  <tromey@creche.cygnus.com>
 
        * automake.in (initialize_global_constants): [common_files]
index 7bfaa1e2333666c0597057da0995d1c10e2f1e78..2f0e4a92edc764e7320d07f63da92ae5d7d2b559 100644 (file)
@@ -22,7 +22,7 @@ ansi2knr.1 aclocal.m4 lisp.am lisp-clean.am
 
 ## These must all be executable when installed.
 pkgdata_SCRIPTS = config.guess config.sub install-sh interlock mdate-sh \
-mkinstalldirs elisp-comp ylwrap
+mkinstalldirs elisp-comp ylwrap acinstall
 
 # The following requires a fixed version of the Emacs 19.30 etags.
 ETAGS_ARGS = automake.in aclocal.in --lang=none \
@@ -70,7 +70,7 @@ maintainer-check: automake aclocal
 
 # Tag before making distribution.  Also, don't make a distribution if
 # checks fail.  Also, make sure the NEWS file is up-to-date.
-cvs-dist: maintainer-check
+cvs-dist: maintainer-check distcheck
        @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
          echo "NEWS not updated; not releasing" 1>&2; \
          exit 1;                               \
index 7b60ddff1c13aedca48c8b44b93cb4b76b95a79d..f8a169f4b219397239259db9fea1249fb8d4040c 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.1c from Makefile.am
+# Makefile.in generated automatically by automake 1.1d from Makefile.am
 
 # Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
 # This Makefile.in is free software; the Free Software Foundation
@@ -59,7 +59,7 @@ programs-clean.am data-clean.am COPYING INSTALL texinfo.tex ansi2knr.c \
 ansi2knr.1 aclocal.m4 lisp.am lisp-clean.am
 
 pkgdata_SCRIPTS = config.guess config.sub install-sh interlock mdate-sh \
-mkinstalldirs elisp-comp ylwrap
+mkinstalldirs elisp-comp ylwrap acinstall
 
 # The following requires a fixed version of the Emacs 19.30 etags.
 ETAGS_ARGS = automake.in aclocal.in --lang=none \
@@ -73,7 +73,7 @@ SCRIPTS = $(bin_SCRIPTS) $(pkgdata_SCRIPTS)
 
 MAKEINFO = makeinfo
 TEXI2DVI = texi2dvi
-INFOS = automake.info automake.info-[0-9] automake.info-[0-9][0-9]
+INFOS = automake.info[-0-9]*
 INFO_DEPS = automake.info
 DVIS = automake.dvi
 TEXINFOS = automake.texi
@@ -83,8 +83,8 @@ DATA = $(pkgdata_DATA)
 DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
 Makefile.in NEWS README THANKS TODO aclocal.in aclocal.m4 ansi2knr.1 \
 ansi2knr.c automake.in config.guess config.sub configure configure.in \
-elisp-comp install-sh mdate-sh mkinstalldirs stamp-vti texinfo.tex \
-version.texi
+elisp-comp install-sh interlock mdate-sh mkinstalldirs stamp-vti \
+texinfo.tex version.texi ylwrap
 
 
 PACKAGE = @PACKAGE@
@@ -184,6 +184,13 @@ automake.dvi: automake.texi version.texi
 .texi.dvi:
        TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
 
+.texinfo.info:
+       cd $(srcdir) \
+         && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
+
+.texinfo.dvi:
+       TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
+
 install-info: $(INFO_DEPS)
        $(mkinstalldirs) $(infodir)
        for file in $(INFO_DEPS); do \
@@ -445,7 +452,7 @@ maintainer-check: automake aclocal
 
 # Tag before making distribution.  Also, don't make a distribution if
 # checks fail.  Also, make sure the NEWS file is up-to-date.
-cvs-dist: maintainer-check
+cvs-dist: maintainer-check distcheck
        @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
          echo "NEWS not updated; not releasing" 1>&2; \
          exit 1;                               \
@@ -460,7 +467,7 @@ cvs-diff:
        cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
            > $(PACKAGE)-$$prevno-$(VERSION).diff
 .SUFFIXES:
-.SUFFIXES: .texi .info .dvi
+.SUFFIXES: .texi .texinfo .info .dvi
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/THANKS b/THANKS
index 888c4c5f2765966bac154dea60da9c74a49e50ab..44b58291da2fa4d9228d8449351002a547ae64f8 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -24,4 +24,5 @@ Markku Rossi <mtr@ngs.fi>
 Noah Friedman <friedman@gnu.ai.mit.edu>
 Nyul Laszlo <nyul@sol.cc.u-szeged.hu>
 Thomas Morgan <tmorgan@pobox.com>
+Tom Tromey <tromey@cygnus.com>
 Ulrich Drepper <drepper@gnu.ai.mit.edu>
diff --git a/TODO b/TODO
index 3777b3798e5a0ba97ee80927311998e0a7a32381..b0bf9631033864a246bb8583b709aafd52cfcc67 100644 (file)
--- a/TODO
+++ b/TODO
@@ -4,6 +4,11 @@ Priorities for release:
 !! Must fix require_file stuff.  It is really gross, and I don't
    understand it any more.
 
+!! remove autosystem-specific macros
+!! should write autoconf-style doc entries for each m4 macro
+
+should put inverse of @MAINT@ before `.PHONY: configure'
+
 * some options must be turned off when --gnu or higher
   eg no-installinfo
 
@@ -56,6 +61,13 @@ files, which means rewriting so that the Makefile.am contents aren't
 copied into the output immediately.  This feature is probably required
 to fully support libtool ("grody compilation issue")
 
+Henrik Frystyk Nielsen says:
+Henrik> 4) Flags like --include-deps are lost when you make changes to
+Henrik> Makefile.am files and automake is run automatically. It would
+Henrik> be nice to keep these flags as I now have to redo everything
+Henrik> manually.
+... what about other options here too?
+
 Think about: maybe "make check" should just bomb if error occurs?
 Then user must use "make -k check".  This is probably more natural.
 
diff --git a/acinstall b/acinstall
new file mode 100755 (executable)
index 0000000..e77fdf5
--- /dev/null
+++ b/acinstall
@@ -0,0 +1,35 @@
+#! /bin/sh
+
+# Install an aclocal-style M4 file.  A script is needed to do this
+# because we want to do serial-number checking; newer versions of
+# macro files should always be preferred.
+
+# Usage:
+#  acinstall file directory installprogram [install-args]...
+
+file="$1"
+dir="$2"
+shift
+shift
+
+localserial="`grep '^# serial' $file | sed -e 's/^# serial //g'`"
+if test -z "$localserial"; then
+   echo "acinstall: no serial number in $file" 1>&2
+   exit 1
+fi
+
+# Maybe if the installed file has no serial number we should just
+# assume it is ancient.
+instserial="`grep '^# serial' $dir/$file | sed -e 's/^# serial //g'`"
+if test -z "$instserial"; then
+   echo "acinstall: no serial number in $dir/$file" 1>&2
+   exit 1
+fi
+
+if test $localserial -lt $instserial; then
+   # Installed file is newer.
+   exit 0
+fi
+
+# Install the file.
+$* $file $dir/$file
diff --git a/lib/acinstall b/lib/acinstall
new file mode 100755 (executable)
index 0000000..e77fdf5
--- /dev/null
@@ -0,0 +1,35 @@
+#! /bin/sh
+
+# Install an aclocal-style M4 file.  A script is needed to do this
+# because we want to do serial-number checking; newer versions of
+# macro files should always be preferred.
+
+# Usage:
+#  acinstall file directory installprogram [install-args]...
+
+file="$1"
+dir="$2"
+shift
+shift
+
+localserial="`grep '^# serial' $file | sed -e 's/^# serial //g'`"
+if test -z "$localserial"; then
+   echo "acinstall: no serial number in $file" 1>&2
+   exit 1
+fi
+
+# Maybe if the installed file has no serial number we should just
+# assume it is ancient.
+instserial="`grep '^# serial' $dir/$file | sed -e 's/^# serial //g'`"
+if test -z "$instserial"; then
+   echo "acinstall: no serial number in $dir/$file" 1>&2
+   exit 1
+fi
+
+if test $localserial -lt $instserial; then
+   # Installed file is newer.
+   exit 0
+fi
+
+# Install the file.
+$* $file $dir/$file
index 7bfaa1e2333666c0597057da0995d1c10e2f1e78..2f0e4a92edc764e7320d07f63da92ae5d7d2b559 100644 (file)
@@ -22,7 +22,7 @@ ansi2knr.1 aclocal.m4 lisp.am lisp-clean.am
 
 ## These must all be executable when installed.
 pkgdata_SCRIPTS = config.guess config.sub install-sh interlock mdate-sh \
-mkinstalldirs elisp-comp ylwrap
+mkinstalldirs elisp-comp ylwrap acinstall
 
 # The following requires a fixed version of the Emacs 19.30 etags.
 ETAGS_ARGS = automake.in aclocal.in --lang=none \
@@ -70,7 +70,7 @@ maintainer-check: automake aclocal
 
 # Tag before making distribution.  Also, don't make a distribution if
 # checks fail.  Also, make sure the NEWS file is up-to-date.
-cvs-dist: maintainer-check
+cvs-dist: maintainer-check distcheck
        @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
          echo "NEWS not updated; not releasing" 1>&2; \
          exit 1;                               \
index 549b97435ee2dad2d66379c7b74d661193181c06..5c82294eb3f559ddf64be5f827104e5ca209c981 100644 (file)
@@ -3,11 +3,13 @@
 ## From Franc,ois Pinard           ##
 ## ------------------------------- ##
 
+# serial 1
+
 AC_DEFUN(AM_C_PROTOTYPES,
 [AC_REQUIRE([AM_PROG_CC_STDC])
 AC_BEFORE([$0], [AC_C_INLINE])
 AC_MSG_CHECKING([for function prototypes])
-if test "$ac_cv_prog_cc_stdc" != no; then
+if test "$am_cv_prog_cc_stdc" != no; then
   AC_MSG_RESULT(yes)
   AC_DEFINE(PROTOTYPES)
   U= ANSI2KNR=
index a5cb4ff2d7ac700d24262cc365eb50341192b8b2..9ca09ff553f7e45ba14711b4b145e448ae8d6d80 100644 (file)
@@ -1,5 +1,11 @@
-dnl Use this in conjunction with autosystem to get working ctype-style
-dnl macros.
+## -------------------------- ##
+## Use in conjunction with    ##
+## autosystem to get working  ##
+## ctype-style macros         ##
+## Tom Tromey                 ##
+## -------------------------- ##
+
+# serial 1
 
 AC_DEFUN([AM_FEATURE_CTYPE],
 AC_REQUIRE([AC_HEADER_STDC]))
index 240ac5ca6951cf66fc4c3bb4de9545552bbafcea..47158375f40be2f991eac7e4256465aa9b299064 100644 (file)
@@ -1,4 +1,7 @@
 dnl Use this in conjunction with autosystem to get `errno'.
 dnl Doesn't actually require any definition; it just assumes that
 dnl <errno.h> exists.
+
+# serial 1
+
 AC_DEFUN([AM_FEATURE_ERRNO])
index f2faf7e7f0769c28a043eb8a9b2116ef9c48ba70..3bd37a9033acf446853d598a7aac113ae4d3cf9f 100644 (file)
@@ -2,4 +2,7 @@ dnl Use this in conjunction with autosystem to get `exit',
 dnl EXIT_SUCCESS, and EXIT_FAILURE.
 dnl Doesn't actually require any definition; it just assumes that
 dnl <stdlib.h> exists.
+
+# serial 1
+
 AC_DEFUN([AM_FEATURE_EXIT])
index d280b90ebbb395cbc57bcbe7955d3a8436ea8f17..2ab15f2df0a9fd49f87371e7c2fb7767d7340af5 100644 (file)
@@ -2,6 +2,8 @@
 ## Check for a working fnmatch ##
 ## --------------------------- ##
 
+# serial 1
+
 # @defmac AC_FUNC_FNMATCH
 # @maindex FUNC_FNMATCH
 # @ovindex LIBOBJS
index af74bdc6916940f215ea0cd3dd76082b43f54b16..681ac39e06a68fca555c28b72d2878f340c12936 100644 (file)
@@ -1,6 +1,9 @@
 dnl From Jim Meyering.
+
+# serial 1
+
 AC_DEFUN(AM_FUNC_STRTOD,
-[AC_CACHE_CHECK(for working strtod, ac_cv_func_strtod,
+[AC_CACHE_CHECK(for working strtod, am_cv_func_strtod,
 [AC_TRY_RUN([
 double strtod ();
 int
@@ -27,12 +30,12 @@ main()
   }
   exit (0);
 }
-], ac_cv_func_strtod=yes, ac_cv_func_strtod=no, ac_cv_func_strtod=no)])
-test $ac_cv_func_strtod = no && LIBOBJS="$LIBOBJS strtod.o"
+], 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
-if test $ac_cv_func_strtod = no; then
+if test $am_cv_func_strtod = no; then
   AC_CHECK_FUNCS(pow)
-  if test $ac_cv_func_pow = no; then
+  if test $am_cv_func_pow = no; then
     AC_CHECK_LIB(m, pow)
   fi
 fi
index 6d5f837bba7d9282b764951b4272f9d1c3d79d35..163e512bd8db8dd026e5cc53315f3240d16a2338 100644 (file)
@@ -1,5 +1,7 @@
 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],
index 340a57cb4f71148041fe4660589002f0d186666e..4825742fd730a6e9422a154d5c63bf771fcfd2f9 100644 (file)
@@ -2,6 +2,8 @@
 # some checks are only needed if your package does certain things.
 # But this isn't really a big deal.
 
+# serial 1
+
 dnl Usage:
 dnl AM_INIT_AUTOMAKE(package,version)
 
@@ -9,7 +11,9 @@ AC_DEFUN(AM_INIT_AUTOMAKE,
 [AC_REQUIRE([AM_PROG_INSTALL])
 PACKAGE=[$1]
 AC_SUBST(PACKAGE)
+AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
 VERSION=[$2]
 AC_SUBST(VERSION)
+AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
 AC_ARG_PROGRAM
 AC_PROG_MAKE_SET])
index 4a9f1919f8f4da761c9afc35c237226f7e477d22..5d9a7658b4294ba799d5e80ad488b9e0ea522950 100644 (file)
@@ -1,5 +1,8 @@
 # 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
index 4fbe0985ef373e92be6f44d0d9128c32cf26e6cb..d223cb840653179f0f6a16861bf4beac67502b13 100644 (file)
@@ -2,6 +2,9 @@
 ## Emacs LISP file handling
 ## From Ulrich Drepper
 ## ------------------------
+
+# serial 1
+
 AC_DEFUN(AM_PATH_LISPDIR,
  [AC_PATH_PROG(EMACS, emacs xemacs, no)
   if test $EMACS != "no"; then
index 7ef64025c5497e10596cb9e306f2b69d7c75fd29..70c769129226531d7912bfcf968018df2d60ccaf 100644 (file)
@@ -3,6 +3,8 @@
 ## From Franc,ois Pinard                     ##
 ## ----------------------------------------- ##
 
+# serial 1
+
 # @defmac AC_PROG_CC_STDC
 # @maindex PROG_CC_STDC
 # @ovindex CC
@@ -14,7 +16,7 @@
 #
 # If you use this macro, you should check after calling it whether the C
 # compiler has been set to accept ANSI C; if not, the shell variable
-# @code{ac_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
+# @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
 # code in ANSI C, you can make an un-ANSIfied copy of it by using the
 # program @code{ansi2knr}, which comes with Ghostscript.
 # @end defmac
@@ -22,8 +24,8 @@
 AC_DEFUN(AM_PROG_CC_STDC,
 [AC_REQUIRE([AC_PROG_CC])
 AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
-AC_CACHE_VAL(ac_cv_prog_cc_stdc,
-[ac_cv_prog_cc_stdc=no
+AC_CACHE_VAL(am_cv_prog_cc_stdc,
+[am_cv_prog_cc_stdc=no
 ac_save_CC="$CC"
 # Don't try gcc -ansi; that turns off useful extensions and
 # breaks some systems' header files.
@@ -44,13 +46,13 @@ choke me
 int test (int i, double x);
 struct s1 {int (*f) (int a);};
 struct s2 {int (*f) (double a);};],
-[ac_cv_prog_cc_stdc="$ac_arg"; break])
+[am_cv_prog_cc_stdc="$ac_arg"; break])
 done
 CC="$ac_save_CC"
 ])
-AC_MSG_RESULT($ac_cv_prog_cc_stdc)
-case "x$ac_cv_prog_cc_stdc" in
+AC_MSG_RESULT($am_cv_prog_cc_stdc)
+case "x$am_cv_prog_cc_stdc" in
   x|xno) ;;
-  *) CC="$CC $ac_cv_prog_cc_stdc" ;;
+  *) CC="$CC $am_cv_prog_cc_stdc" ;;
 esac
 ])
index b82b47eb3221008728aecdc7517bd4b0d95f5894..75831fac2d6fcb4f5a949d85aefa1ec9b2e763af 100644 (file)
@@ -4,6 +4,8 @@
 ## From Franc,ois Pinard                                     ##
 ## --------------------------------------------------------- ##
 
+# serial 1
+
 AC_DEFUN(AM_PROG_INSTALL,
 [AC_REQUIRE([AC_PROG_INSTALL])
 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL} -m 755'
index d52db6f814a2fb52842f73ea148a9363160ab09a..92146415a6c84ca3de0ef22d3b3f5757e6038160 100644 (file)
@@ -3,6 +3,8 @@
 ## From Gord Matzigkeit                                      ##
 ## --------------------------------------------------------- ##
 
+# serial 1
+
 AC_DEFUN(AM_PROG_LIBTOOL,
 [AC_REQUIRE([AC_CANONICAL_HOST])
 AC_REQUIRE([AC_PROG_CC])
@@ -85,6 +87,6 @@ esac
 # Holy mackerel, what a command line!
 CC="$CC" LD="$LD" RANLIB="$RANLIB" OBJTYPES="$OBJTYPES" \
 $srcdir/libtool --host="$host" --libdir="$am_prog_libtool_libdir" --no-validate-host \
---with-gcc="$ac_cv_prog_gcc" $am_prog_libtool_flags \
+--with-gcc="$am_cv_prog_gcc" $am_prog_libtool_flags \
 configure || AC_MSG_ERROR([libtool configure failed])
 ])
index c4f20a5dfd179c3f9420425c6c31a23444ca0fc6..3f6d584d346fc2b106b88a9316ddbefc91826159 100644 (file)
@@ -1 +1,3 @@
+# serial 1
+
 AC_DEFUN([AM_SYSTEM_HEADER])
index 2eb3bd973a34fb7798d5e8619f5f4a96d4107a6c..1eb31d1e3bb39d5ee47bfada81f6c02b371f764f 100644 (file)
@@ -1,5 +1,7 @@
 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>
index ab633a1e114b0bad561b550049e61209f3714264..85bf4aceb871506beb94a5660f68c5f5239d3b0b 100644 (file)
@@ -1,10 +1,12 @@
 # From Ulrich Drepper.
 
+# serial 1
+
 AC_DEFUN(AM_TYPE_PTRDIFF_T,
-  [AC_CACHE_CHECK([for ptrdiff_t], ac_cv_type_ptrdiff_t,
+  [AC_CACHE_CHECK([for ptrdiff_t], am_cv_type_ptrdiff_t,
      [AC_TRY_COMPILE([#include <stddef.h>], [ptrdiff_t p],
-                    ac_cv_type_ptrdiff_t=yes, ac_cv_type_ptrdiff_t=no)])
-   if test $ac_cv_type_ptrdiff_t = yes; then
+                    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
 ])
index bfd064a5a245e206c604d3f2fa9257f39ba7cd1a..365ef8039ad346dc3b01a12abf91a076b8ce6b59 100644 (file)
@@ -3,6 +3,8 @@
 ## From Franc,ois Pinard               ##
 ## ----------------------------------- ##
 
+# serial 1
+
 AC_DEFUN(AM_WITH_DMALLOC,
 [AC_MSG_CHECKING(if malloc debugging is wanted)
 AC_ARG_WITH(dmalloc,
index e1249e526aefb22d4cd5150f7a3bee34be1f7a73..3d15c75fd6d09978b21432c5999ec94547f7f361 100644 (file)
@@ -1,29 +1,30 @@
 ## --------------------------------- ##
 ## Check if --with-regex was given.  ##
-## From Franc,ois Pinard             ##
 ## --------------------------------- ##
 
-# 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 package will use the older regex.  Else, a check is
-# made to see if rx is already installed, as with newer Linux'es.
+# 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.
+# 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 rx or regex is wanted)
+[AC_MSG_CHECKING(which of GNU rx or gawk's regex is wanted)
 AC_ARG_WITH(regex,
-[  --with-regex            use older regex in lieu of GNU rx for matching],
-[if test "$withval" = yes; then
-  ac_with_regex=1
+[  --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)
   LIBOBJS="$LIBOBJS regex.o"
-fi])
-if test -z "$ac_with_regex"; then
+else
   AC_MSG_RESULT(rx)
   AC_CHECK_FUNC(re_rx_search, , [LIBOBJS="$LIBOBJS rx.o"])
 fi
index 47b1e845cf99499459b9b5ae15ca061034fb27a7..f54074b925fa4a463cbf2845044ecbe7ba392d95 100644 (file)
@@ -3,7 +3,8 @@
 AUTOMAKE_OPTIONS = gnits
 MAINT_CHARSET = latin1
 
-pkgdata_DATA = AM_C_PROTOTYPES.m4 AM_FEATURE_CTYPE.m4 \
+m4datadir = $(datadir)/aclocal
+m4data_DATA = AM_C_PROTOTYPES.m4 AM_FEATURE_CTYPE.m4 \
 AM_FEATURE_ERRNO.m4 AM_FEATURE_EXIT.m4 AM_FUNC_FNMATCH.m4 \
 AM_MAINTAINER_MODE.m4 AM_PATH_LISPDIR.m4 AM_PROG_CC_STDC.m4 \
 AM_PROG_INSTALL.m4 AM_PROG_LIBTOOL.m4 AM_SYSTEM_HEADER.m4 \
index 8b4be72a45c10ea19f42f681974bf87070717350..9fb1ce954d284640d062b176cb1c9ce5edae083c 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.1c from Makefile.am
+# Makefile.in generated automatically by automake 1.1d from Makefile.am
 
 # Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
 # This Makefile.in is free software; the Free Software Foundation
@@ -41,7 +41,8 @@ transform = @program_transform_name@
 AUTOMAKE_OPTIONS = gnits
 MAINT_CHARSET = latin1
 
-pkgdata_DATA = AM_C_PROTOTYPES.m4 AM_FEATURE_CTYPE.m4 \
+m4datadir = $(datadir)/aclocal
+m4data_DATA = AM_C_PROTOTYPES.m4 AM_FEATURE_CTYPE.m4 \
 AM_FEATURE_ERRNO.m4 AM_FEATURE_EXIT.m4 AM_FUNC_FNMATCH.m4 \
 AM_MAINTAINER_MODE.m4 AM_PATH_LISPDIR.m4 AM_PROG_CC_STDC.m4 \
 AM_PROG_INSTALL.m4 AM_PROG_LIBTOOL.m4 AM_SYSTEM_HEADER.m4 \
@@ -51,7 +52,7 @@ AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL.m4 \
 AM_SYS_POSIX_TERMIOS.m4
 mkinstalldirs = $(top_srcdir)/mkinstalldirs
 CONFIG_CLEAN_FILES = 
-DATA = $(pkgdata_DATA)
+DATA = $(m4data_DATA)
 
 DIST_COMMON = Makefile.am Makefile.in
 
@@ -74,19 +75,19 @@ $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in
 Makefile: $(top_builddir)/config.status Makefile.in
        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
 
-install-pkgdataDATA: $(pkgdata_DATA)
-       $(mkinstalldirs) $(pkgdatadir)
-       list="$(pkgdata_DATA)"; for p in $$list; do \
+install-m4dataDATA: $(m4data_DATA)
+       $(mkinstalldirs) $(m4datadir)
+       list="$(m4data_DATA)"; for p in $$list; do \
          if test -f $(srcdir)/$$p; then \
-           $(INSTALL_DATA) $(srcdir)/$$p $(pkgdatadir)/$$p; \
+           $(INSTALL_DATA) $(srcdir)/$$p $(m4datadir)/$$p; \
          else if test -f $$p; then \
-           $(INSTALL_DATA) $$p $(pkgdatadir)/$$p; \
+           $(INSTALL_DATA) $$p $(m4datadir)/$$p; \
          fi; fi; \
        done
 
-uninstall-pkgdataDATA:
-       list="$(pkgdata_DATA)"; for p in $$list; do \
-         rm -f $(pkgdatadir)/$$p; \
+uninstall-m4dataDATA:
+       list="$(m4data_DATA)"; for p in $$list; do \
+         rm -f $(m4datadir)/$$p; \
        done
 tags: TAGS
 TAGS:
@@ -111,19 +112,19 @@ installcheck:
 
 install-exec: 
 
-install-data: install-pkgdataDATA
+install-data: install-m4dataDATA
 
 install: install-exec install-data all
        @:
 
-uninstall: uninstall-pkgdataDATA
+uninstall: uninstall-m4dataDATA
 
 all: $(DATA) Makefile
 
 install-strip:
        $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
 installdirs:
-       $(mkinstalldirs)  $(pkgdatadir)
+       $(mkinstalldirs)  $(m4datadir)
 
 
 mostlyclean-generic:
@@ -151,7 +152,7 @@ maintainer-clean:  maintainer-clean-generic distclean
        @echo "This command is intended for maintainers to use;"
        @echo "it deletes files that may require special tools to rebuild."
 
-.PHONY: default uninstall-pkgdataDATA install-pkgdataDATA tags distdir \
+.PHONY: default uninstall-m4dataDATA install-m4dataDATA tags distdir \
 info dvi check installcheck install-exec install-data install uninstall \
 all installdirs mostlyclean-generic distclean-generic clean-generic \
 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
This page took 0.069134 seconds and 5 git commands to generate.