* m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
+2001-10-05 Akim Demaille <akim@epita.fr>
+
+ * Makefile.am, config/Makefile.am, lib/emacs/Makefile.am,
+ * m4/Makefile.am, man/Makefile.am: Add/adjust MAINTAINERCLEANFILES.
+
+2001-10-05 Akim Demaille <akim@epita.fr>
+
+ * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): New, extracted from...
+ (AS_SHELL_SANITIZE): here. Use it.
+ (_AS_LINENO_PREPARE): Preserve the exit status of $0.lineno.
+ From Paul Eggert.
+
2001-10-04 Akim Demaille <akim@epita.fr>
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Use a portable
AMTAR = @AMTAR@
AWK = @AWK@
+MAINTAINERCLEANFILES = COPYING INSTALL configure
+
## -------------------- ##
## Forwarding targets. ##
## -------------------- ##
AMTAR = @AMTAR@
AWK = @AWK@
+MAINTAINERCLEANFILES = COPYING INSTALL configure
+
pkgdata_DATA = INSTALL
MAKEINFO = @MAKEINFO@ --no-headers --no-validate --no-split
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
clean: clean-recursive
clean-am: clean-generic mostlyclean-am
+## Process this file with automake to create Makefile.in -*-Makefile-*-
+
+## Makefile for Autoconf.
+## Copyright 2001 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.
+
EXTRA_DIST = move-if-change prev-version.txt
+
+MAINTAINERCLEANFILES = config.guess config.sub install-sh mdate-sh missing \
+ mkinstalldirs texinfo.tex
VERSION = @VERSION@
EXTRA_DIST = move-if-change prev-version.txt
+
+MAINTAINERCLEANFILES = config.guess config.sub install-sh mdate-sh missing \
+ mkinstalldirs texinfo.tex
+
subdir = config
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_CLEAN_FILES =
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
clean: clean-am
clean-am: clean-generic mostlyclean-am
## 02111-1307, USA.
dist_lisp_LISP = autoconf-mode.el autotest-mode.el
+MAINTAINERCLEANFILES = elisp-comp
VERSION = @VERSION@
dist_lisp_LISP = autoconf-mode.el autotest-mode.el
+MAINTAINERCLEANFILES = elisp-comp
subdir = lib/emacs
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_CLEAN_FILES =
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
clean: clean-am
clean-am: clean-generic clean-lisp mostlyclean-am
## 1. Sanitizing the shell. ##
## ------------------------- ##
+
# AS_SHELL_SANITIZE
# -----------------
# Try to be as Bourne and/or POSIX as possible.
# Name of the executable.
as_me=`AS_BASENAME($[0])`
-# If LINENO is not supported by the shell, produce a version of this
-# script where LINENO is hard coded. Rewrite if not up to date only.
-# Comparing LINENO against _oline_ is not a good solution, since in
-# the case of embedded executables (such as config.status within
-# configure) you'd compare LINENO wrt config.status vs. _oline_ vs
-# configure. Hence a useless rewrite (not to mention the risk of
-# ``infinite'' rewrites. Merely check that LINENO is incremented
-# between two lines, which is a property guaranteed for _oline_, hence
-# it protects us from repetitive rewrites. Be sure to have a test
-# that does detect non LINENO support...
-as_lineno_1=$LINENO
-as_lineno_2=$LINENO
-as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
-if test "x$as_lineno_1" = "x$as_lineno_2" ||
- test "x$as_lineno_3" != "x$as_lineno_2";
- then
- # Find who we are.
- case $[0] in
- *[[\\/]]* | ?:[[\\/]]* ) as_myself=$[0] ;;
- *) _AS_PATH_WALK([],
- [test -r "$as_dir/$[0]" && as_myself=$as_dir/$[0] && break])
- ;;
- esac
- if test ! -f $as_myself; then
- AS_ERROR([cannot find myself; rerun with an absolute path])
- fi
- if test ! -f $as_me.lineno ||
- test x`ls -1dt $as_me.lineno $as_myself 2>/dev/null | sed 1q` \
- != x$as_me.lineno; then
- # Be sure to write the pattern so that it doesn't replace itself:
- # it must not match itself.
- awk <$as_myself '
- /[[$]]LINENO/ { printf "%d:", NR }
- { print }
- ' |
- sed ['/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/'] \
- >$as_me.lineno
- chmod +x $as_me.lineno
- fi
-
- # Don't try to exec as it changes $[0], causing all sort of problems
- # (the dirname of $[0] is not the place where we might find the
- # original and so on. Autoconf is especially sensible to this).
- . ./$as_me.lineno
- exit 0
-fi
+# Rewrite early.
+_AS_LINENO_PREPARE
_AS_CR_PREPARE
_AS_ECHO_N_PREPARE
])# _AS_EXPR_PREPARE
+# _AS_LINENO_PREPARE
+# ------------------
+# If LINENO is not supported by the shell, produce a version of this
+# script where LINENO is hard coded. Rewrite if not up to date only.
+# Comparing LINENO against _oline_ is not a good solution, since in
+# the case of embedded executables (such as config.status within
+# configure) you'd compare LINENO wrt config.status vs. _oline_ vs
+# configure. Hence a useless rewrite (not to mention the risk of
+# ``infinite'' rewrites. Merely check that LINENO is incremented
+# between two lines, which is a property guaranteed for _oline_, hence
+# it protects us from repetitive rewrites. Be sure to have a test
+# that does detect non LINENO support...
+m4_define([_AS_LINENO_PREPARE],
+[as_lineno_1=$LINENO
+as_lineno_2=$LINENO
+as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+if test "x$as_lineno_1" = "x$as_lineno_2" ||
+ test "x$as_lineno_3" != "x$as_lineno_2";
+ then
+ # Find who we are.
+ case $[0] in
+ *[[\\/]]* | ?:[[\\/]]* ) as_myself=$[0] ;;
+ *) _AS_PATH_WALK([],
+ [test -r "$as_dir/$[0]" && as_myself=$as_dir/$[0] && break])
+ ;;
+ esac
+ if test ! -f $as_myself; then
+ AS_ERROR([cannot find myself; rerun with an absolute path])
+ fi
+ if test ! -f $as_me.lineno ||
+ test x`ls -1dt $as_me.lineno $as_myself 2>/dev/null | sed 1q` \
+ != x$as_me.lineno; then
+ # Be sure to write the pattern so that it doesn't replace itself:
+ # it must not match itself.
+ awk <$as_myself '
+ /[[$]]LINENO/ { printf "%d:", NR }
+ { print }
+ ' |
+ sed ['/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/'] \
+ >$as_me.lineno
+ chmod +x $as_me.lineno
+ fi
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensible to this).
+ . ./$as_me.lineno
+ # Exit status is that of the last command.
+ exit
+fi
+])# _AS_LINENO_PREPARE
+
+
# _AS_LN_S_PREPARE
# ----------------
# Don't use conftest.sym to avoid filename issues on DJGPP, where this
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
-EXTRA_DIST = \
+GENERIC_MACROS = \
auxdir.m4 \
cond.m4 \
depend.m4 \
init.m4 \
install-sh.m4 \
-m4.m4 \
lispdir.m4 \
missing.m4 \
sanity.m4 \
strip.m4
+
+SPECIFIC_MACROS = \
+m4.m4
+
+EXTRA_DIST = $(GENERIC_MACROS) $(SPECIFIC_MACROS)
+MAINTAINERCLEANFILES = $(GENERIC_MACROS)
PERL = @PERL@
VERSION = @VERSION@
-EXTRA_DIST = \
+GENERIC_MACROS = \
auxdir.m4 \
cond.m4 \
depend.m4 \
init.m4 \
install-sh.m4 \
-m4.m4 \
lispdir.m4 \
missing.m4 \
sanity.m4 \
strip.m4
+
+SPECIFIC_MACROS = \
+m4.m4
+
+
+EXTRA_DIST = $(GENERIC_MACROS) $(SPECIFIC_MACROS)
+MAINTAINERCLEANFILES = $(GENERIC_MACROS)
subdir = m4
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_CLEAN_FILES =
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
clean: clean-am
clean-am: clean-generic mostlyclean-am
autoscan.x autom4te.x config.guess.x config.sub.x
EXTRA_DIST = $(man_aux) common.x
-MAINTAINERCLEANFILES = $(man_MANS)
+MAINTAINERCLEANFILES = $(dist_man_MANS)
# Depend on configure.ac to get version number changes.
common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x
EXTRA_DIST = $(man_aux) common.x
-MAINTAINERCLEANFILES = $(man_MANS)
+MAINTAINERCLEANFILES = $(dist_man_MANS)
# Depend on configure.ac to get version number changes.
common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x