mirror of
git://git.sv.gnu.org/autoconf
synced 2025-03-19 14:40:24 +08:00
Start a new series of tests which check the semantics.
* acgeneral.m4 (AC_CHECK_MEMBER): It is not smart to define ac_Foo, and use AC_Foo. Got rid of AC_Member_Aggregate and AC_Member_Member which were complicating more than simplifying. (AC_CHECK_DECLS): Use m4 lists. (AC_CHECK_TYPES): A comma was missing. * autoheader.m4: (AC_CHECK_DECLS): Use m4 lists. * doc/autoconf.texi (Generic Declarations): AC_CHECK_DELCS uses m4 lists. * tests/semantics.m4: New file. Collection of semantical tests: verify that the tests are positive and negative when appropriate. Test AC_CHECK_MEMBERS, AC_CHECK_DECLS and AC_CHECK_TYPES.
This commit is contained in:
parent
afd5637353
commit
3c2a8f9b09
16
ChangeLog
16
ChangeLog
@ -1,3 +1,19 @@
|
||||
2000-02-07 Akim Demaille <akim@epita.fr>
|
||||
|
||||
Start a new series of tests which check the semantics.
|
||||
|
||||
* acgeneral.m4 (AC_CHECK_MEMBER): It is not smart to define
|
||||
ac_Foo, and use AC_Foo. Got rid of AC_Member_Aggregate and
|
||||
AC_Member_Member which were complicating more than simplifying.
|
||||
(AC_CHECK_DECLS): Use m4 lists.
|
||||
(AC_CHECK_TYPES): A comma was missing.
|
||||
* autoheader.m4: (AC_CHECK_DECLS): Use m4 lists.
|
||||
* doc/autoconf.texi (Generic Declarations): AC_CHECK_DELCS uses m4
|
||||
lists.
|
||||
* tests/semantics.m4: New file. Collection of semantical tests:
|
||||
verify that the tests are positive and negative when appropriate.
|
||||
Test AC_CHECK_MEMBERS, AC_CHECK_DECLS and AC_CHECK_TYPES.
|
||||
|
||||
2000-02-04 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* tests/Makefile.am (macros.m4): Fix the sed snippet.
|
||||
|
227
Makefile.in
227
Makefile.in
@ -1,4 +1,4 @@
|
||||
# Makefile.in generated automatically by automake 1.4a from Makefile.am
|
||||
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
@ -10,6 +10,7 @@
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
@ -45,10 +46,9 @@ AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_FLAG =
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
@ -57,8 +57,6 @@ POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
|
||||
@SET_MAKE@
|
||||
AWK = @AWK@
|
||||
HELP2MAN = @HELP2MAN@
|
||||
M4 = @M4@
|
||||
@ -66,7 +64,6 @@ PERL = @PERL@
|
||||
PERLSCRIPTS = @PERLSCRIPTS@
|
||||
standards_texi = @standards_texi@
|
||||
|
||||
|
||||
AUTOMAKE_OPTIONS = check-news 1.4
|
||||
|
||||
SUBDIRS = . m4 man tests
|
||||
@ -84,9 +81,7 @@ EXTRA_SCRIPTS = autoscan
|
||||
# s/nodistpackageDATA/nodist_pkgdata_DATA/
|
||||
# and adapt dependencies once we use a more recent Automake
|
||||
|
||||
distpkgdataDATA = \
|
||||
acfunctions acheaders acidentifiers acmakevars acprograms \
|
||||
acgeneral.m4 acoldnames.m4 acspecific.m4 autoconf.m4 autoheader.m4
|
||||
distpkgdataDATA = acfunctions acheaders acidentifiers acmakevars acprograms acgeneral.m4 acoldnames.m4 acspecific.m4 autoconf.m4 autoheader.m4
|
||||
|
||||
|
||||
nodistpkgdataDATA = autoconf.m4f autoheader.m4f acversion.m4
|
||||
@ -98,57 +93,44 @@ autoconf_TEXINFOS = install.texi
|
||||
standards_TEXINFOS = make-stds.texi
|
||||
|
||||
OLDCHANGELOGS = ChangeLog.0 ChangeLog.1
|
||||
EXTRA_DIST = $(OLDCHANGELOGS) \
|
||||
autoconf.sh autoheader.sh autoreconf.sh autoupdate.sh \
|
||||
ifnames.sh autoscan.pl INSTALL.txt \
|
||||
$(distpkgdataDATA)
|
||||
EXTRA_DIST = $(OLDCHANGELOGS) autoconf.sh autoheader.sh autoreconf.sh autoupdate.sh ifnames.sh autoscan.pl INSTALL.txt $(distpkgdataDATA)
|
||||
|
||||
|
||||
# Files that should be removed, but which Automake does not know.
|
||||
# There are texi2dvi files, frozen files, and the scripts.
|
||||
CLEANFILES = autoconf.cvs autoconf.ev autoconf.evs autoconf.ma autoconf.mas \
|
||||
autoconf.ov autoconf.ovs autoconf.m4f autoheader.m4f $(bin_SCRIPTS)
|
||||
CLEANFILES = autoconf.cvs autoconf.ev autoconf.evs autoconf.ma autoconf.mas autoconf.ov autoconf.ovs autoconf.m4f autoheader.m4f $(bin_SCRIPTS)
|
||||
|
||||
|
||||
# The scripts.
|
||||
|
||||
editsh = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e \
|
||||
's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g' \
|
||||
-e 's,@''SHELL''@,$(SHELL),g' \
|
||||
-e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
||||
editsh = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g' -e 's,@''SHELL''@,$(SHELL),g' -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
||||
|
||||
editpl = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''PERL''@,$(PERL),g' \
|
||||
-e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
||||
editpl = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''PERL''@,$(PERL),g' -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
||||
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_CLEAN_FILES = acversion.m4
|
||||
SCRIPTS = $(bin_SCRIPTS)
|
||||
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_SOURCES =
|
||||
TEXI2DVI = texi2dvi
|
||||
INFO_DEPS = autoconf.info standards.info
|
||||
DVIS = autoconf.dvi standards.dvi
|
||||
TEXINFOS = autoconf.texi standards.texi
|
||||
DATA = $(pkgdata_DATA)
|
||||
|
||||
DIST_COMMON = README $(autoconf_TEXINFOS) $(pkgdata_DATA) \
|
||||
$(standards_TEXINFOS) AUTHORS COPYING ChangeLog INSTALL Makefile.am \
|
||||
Makefile.in NEWS THANKS TODO aclocal.m4 acversion.m4.in config.guess \
|
||||
config.sub configure configure.in depcomp install-sh mdate-sh missing \
|
||||
mkinstalldirs stamp-vti texinfo.tex version.texi
|
||||
DIST_COMMON = README $(autoconf_TEXINFOS) $(standards_TEXINFOS) AUTHORS \
|
||||
COPYING ChangeLog INSTALL Makefile.am Makefile.in NEWS THANKS TODO \
|
||||
aclocal.m4 acversion.m4.in config.guess config.sub configure \
|
||||
configure.in install-sh mdate-sh missing mkinstalldirs stamp-vti \
|
||||
texinfo.tex version.texi
|
||||
|
||||
|
||||
PACKAGE = @PACKAGE@
|
||||
VERSION = @VERSION@
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
@ -172,22 +154,19 @@ install-binSCRIPTS: $(bin_SCRIPTS)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||
@list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||
f="`echo $$p|sed '$(transform)'`"; \
|
||||
if test -f $$p; then \
|
||||
echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/$$f"; \
|
||||
$(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/$$f; \
|
||||
elif test -f $(srcdir)/$$p; then \
|
||||
echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/$$f"; \
|
||||
$(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/$$f; \
|
||||
else :; fi; \
|
||||
echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
|
||||
$(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||
else if test -f $(srcdir)/$$p; then \
|
||||
echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
|
||||
$(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||
else :; fi; fi; \
|
||||
done
|
||||
|
||||
uninstall-binSCRIPTS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||
f="`echo $$p|sed '$(transform)'`"; \
|
||||
echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
|
||||
rm -f $(DESTDIR)$(bindir)/$$f; \
|
||||
list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||
done
|
||||
|
||||
$(srcdir)/version.texi: stamp-vti
|
||||
@ -229,7 +208,7 @@ DVIPS = dvips
|
||||
&& $(MAKEINFO) `echo $< | sed 's,.*/,,'`
|
||||
|
||||
.texi.dvi:
|
||||
TEXINPUTS=$(srcdir):$$TEXINPUTS \
|
||||
TEXINPUTS=.:$$TEXINPUTS \
|
||||
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
||||
|
||||
.texi:
|
||||
@ -248,7 +227,7 @@ DVIPS = dvips
|
||||
&& $(MAKEINFO) `echo $< | sed 's,.*/,,'`
|
||||
|
||||
.texinfo.dvi:
|
||||
TEXINPUTS=$(srcdir):$$TEXINPUTS \
|
||||
TEXINPUTS=.:$$TEXINPUTS \
|
||||
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
||||
|
||||
.txi.info:
|
||||
@ -257,7 +236,7 @@ DVIPS = dvips
|
||||
&& $(MAKEINFO) `echo $< | sed 's,.*/,,'`
|
||||
|
||||
.txi.dvi:
|
||||
TEXINPUTS=$(srcdir):$$TEXINPUTS \
|
||||
TEXINPUTS=.:$$TEXINPUTS \
|
||||
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
||||
|
||||
.txi:
|
||||
@ -273,7 +252,7 @@ install-info-am: $(INFO_DEPS)
|
||||
@list='$(INFO_DEPS)'; \
|
||||
for file in $$list; do \
|
||||
d=$(srcdir); \
|
||||
for ifile in `CDPATH=: && cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
|
||||
for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
|
||||
if test -f $$d/$$ifile; then \
|
||||
echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
|
||||
$(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
|
||||
@ -292,26 +271,24 @@ install-info-am: $(INFO_DEPS)
|
||||
uninstall-info:
|
||||
$(PRE_UNINSTALL)
|
||||
@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
|
||||
list='$(INFO_DEPS)'; \
|
||||
for file in $$list; do \
|
||||
echo " install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file"; \
|
||||
install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file; \
|
||||
done; \
|
||||
else :; fi
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(INFO_DEPS)'; \
|
||||
ii=yes; \
|
||||
else ii=; fi; \
|
||||
list='$(INFO_DEPS)'; \
|
||||
for file in $$list; do \
|
||||
(if cd $(DESTDIR)$(infodir); then \
|
||||
echo " rm -f $$file $$file-[0-9] $$file-[0-9][0-9])"; \
|
||||
rm -f $$file $$file-[0-9] $$file-[0-9][0-9]; \
|
||||
else :; fi); \
|
||||
test -z "$ii" \
|
||||
|| install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
|
||||
done
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(INFO_DEPS)'; \
|
||||
for file in $$list; do \
|
||||
(cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
|
||||
done
|
||||
|
||||
dist-info: $(INFO_DEPS)
|
||||
list='$(INFO_DEPS)'; \
|
||||
for base in $$list; do \
|
||||
d=$(srcdir); \
|
||||
for file in `CDPATH=: && cd $$d && eval echo $$base*`; do \
|
||||
for file in `cd $$d && eval echo $$base*`; do \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file; \
|
||||
@ -320,16 +297,15 @@ dist-info: $(INFO_DEPS)
|
||||
|
||||
mostlyclean-aminfo:
|
||||
-rm -f autoconf.aux autoconf.cp autoconf.cps autoconf.dvi autoconf.fn \
|
||||
autoconf.fns autoconf.pgs autoconf.ky autoconf.kys \
|
||||
autoconf.ps autoconf.log autoconf.pg autoconf.toc autoconf.tp \
|
||||
autoconf.fns autoconf.ky autoconf.kys autoconf.ps \
|
||||
autoconf.log autoconf.pg autoconf.toc autoconf.tp \
|
||||
autoconf.tps autoconf.vr autoconf.vrs autoconf.op autoconf.tr \
|
||||
autoconf.cv autoconf.cn autoconf.cm autoconf.ov standards.aux \
|
||||
standards.cp standards.cps standards.dvi standards.fn \
|
||||
standards.fns standards.pgs standards.ky standards.kys \
|
||||
standards.ps standards.log standards.pg standards.toc \
|
||||
standards.tp standards.tps standards.vr standards.vrs \
|
||||
standards.op standards.tr standards.cv standards.cn \
|
||||
standards.cm standards.ov
|
||||
autoconf.cv autoconf.cn standards.aux standards.cp \
|
||||
standards.cps standards.dvi standards.fn standards.fns \
|
||||
standards.ky standards.kys standards.ps standards.log \
|
||||
standards.pg standards.toc standards.tp standards.tps \
|
||||
standards.vr standards.vrs standards.op standards.tr \
|
||||
standards.cv standards.cn
|
||||
|
||||
clean-aminfo:
|
||||
|
||||
@ -347,18 +323,19 @@ install-pkgdataDATA: $(pkgdata_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
|
||||
@list='$(pkgdata_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
|
||||
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f"; \
|
||||
$(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f; \
|
||||
if test -f $(srcdir)/$$p; then \
|
||||
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p"; \
|
||||
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p; \
|
||||
else if test -f $$p; then \
|
||||
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p"; \
|
||||
$(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p; \
|
||||
fi; fi; \
|
||||
done
|
||||
|
||||
uninstall-pkgdataDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(pkgdata_DATA)'; for p in $$list; do \
|
||||
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
echo " rm -f $(DESTDIR)$(pkgdatadir)/$$f"; \
|
||||
rm -f $(DESTDIR)$(pkgdatadir)/$$f; \
|
||||
list='$(pkgdata_DATA)'; for p in $$list; do \
|
||||
rm -f $(DESTDIR)$(pkgdatadir)/$$p; \
|
||||
done
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
@ -368,6 +345,8 @@ uninstall-pkgdataDATA:
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
all-recursive install-data-recursive install-exec-recursive \
|
||||
installdirs-recursive install-recursive uninstall-recursive \
|
||||
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||
@ -395,7 +374,7 @@ maintainer-clean-recursive:
|
||||
dot_seen=no; \
|
||||
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
rev="$$subdir $$rev"; \
|
||||
if test "$$subdir" = "."; then dot_seen=yes; else :; fi; \
|
||||
test "$$subdir" = "." && dot_seen=yes; \
|
||||
done; \
|
||||
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
@ -416,17 +395,15 @@ tags-recursive:
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -f$$here/ID $$unique $(LISP)
|
||||
here=`pwd` && cd $(srcdir) \
|
||||
&& mkid -f$$here/ID $$unique $(LISP)
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
@ -434,14 +411,12 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||
|| etags $(ETAGS_ARGS) $$tags $$unique $(LISP)
|
||||
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
|
||||
|
||||
mostlyclean-tags:
|
||||
|
||||
@ -455,64 +430,54 @@ maintainer-clean-tags:
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
|
||||
mkdir $(distdir)/=build
|
||||
mkdir $(distdir)/=inst
|
||||
chmod a-w $(distdir)
|
||||
dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \
|
||||
&& cd $(distdir)/=build \
|
||||
dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
||||
cd $(distdir)/=build \
|
||||
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& test `find $$dc_install_base -type f -print | wc -l` -le 1 \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distclean \
|
||||
&& rm -f $(distdir).tar.gz \
|
||||
&& test `find . -type f -print | wc -l` -eq 0
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist
|
||||
-rm -rf $(distdir)
|
||||
@banner="$(distdir).tar.gz is ready for distribution"; \
|
||||
dashes=`echo "$$banner" | sed s/./=/g`; \
|
||||
echo "$$dashes"; \
|
||||
echo "$$banner"; \
|
||||
echo "$$dashes"
|
||||
dist: distdir
|
||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r $(distdir)
|
||||
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
-chmod -R a+r $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
dist-all: distdir
|
||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r $(distdir)
|
||||
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
-chmod -R a+r $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
distdir: $(DISTFILES)
|
||||
@if sed 15q $(srcdir)/NEWS | fgrep -e "$(VERSION)" > /dev/null; then :; else \
|
||||
echo "NEWS not updated; not releasing" 1>&2; \
|
||||
exit 1; \
|
||||
fi
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
mkdir $(distdir)
|
||||
-chmod 777 $(distdir)
|
||||
here=`cd $(top_builddir) && pwd`; \
|
||||
top_distdir=`cd $(distdir) && pwd`; \
|
||||
distdir=`cd $(distdir) && pwd`; \
|
||||
cd $(top_srcdir) \
|
||||
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pR $$d/$$file $(distdir); \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
@ -524,6 +489,7 @@ distdir: $(DISTFILES)
|
||||
test -d $(distdir)/$$subdir \
|
||||
|| mkdir $(distdir)/$$subdir \
|
||||
|| exit 1; \
|
||||
chmod 777 $(distdir)/$$subdir; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
@ -553,7 +519,7 @@ uninstall: uninstall-recursive
|
||||
all-am: Makefile $(INFO_DEPS) $(SCRIPTS) $(DATA)
|
||||
all-redirect: all-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(infodir) \
|
||||
@ -570,7 +536,6 @@ distclean-generic:
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
-rm -f Makefile.in
|
||||
mostlyclean-am: mostlyclean-vti mostlyclean-aminfo mostlyclean-tags \
|
||||
mostlyclean-generic
|
||||
|
||||
@ -600,8 +565,7 @@ maintainer-clean: maintainer-clean-recursive
|
||||
distclean-vti clean-vti maintainer-clean-vti install-info-am \
|
||||
uninstall-info mostlyclean-aminfo distclean-aminfo clean-aminfo \
|
||||
maintainer-clean-aminfo uninstall-pkgdataDATA install-pkgdataDATA \
|
||||
install-recursive uninstall-recursive install-data-recursive \
|
||||
uninstall-data-recursive install-exec-recursive \
|
||||
install-data-recursive uninstall-data-recursive install-exec-recursive \
|
||||
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
|
||||
all-recursive check-recursive installcheck-recursive info-recursive \
|
||||
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
|
||||
@ -609,10 +573,9 @@ maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
||||
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
|
||||
install-exec install-data-am install-data install-am install \
|
||||
uninstall-am uninstall all-redirect all-am all install-strip \
|
||||
installdirs-am installdirs mostlyclean-generic distclean-generic \
|
||||
clean-generic maintainer-clean-generic clean mostlyclean distclean \
|
||||
maintainer-clean
|
||||
uninstall-am uninstall all-redirect all-am all installdirs-am \
|
||||
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# INSTALL is a special case. Automake seems to have a single name space
|
||||
|
33
acgeneral.m4
33
acgeneral.m4
@ -2213,18 +2213,16 @@ AC_VAR_IF_INDIR([$1],
|
||||
[AC_FATAL([$0: requires manifest arguments])])
|
||||
ifelse(regexp([$1], [\.]), -1,
|
||||
[AC_FATAL([$0: Did not see any dot in `$1'])])dnl
|
||||
pushdef(AC_Member_Aggregate, [patsubst([$1], [\.[^.]*])])dnl
|
||||
pushdef(AC_Member_Member, [patsubst([$1], [.*\.])])dnl
|
||||
AC_CACHE_CHECK([for $1], ac_Member,
|
||||
[AC_TRY_COMPILE(AC_INCLUDES_DEFAULT([$4]),
|
||||
ac_Member_Aggregate foo;
|
||||
foo.ac_Member_Member;,
|
||||
dnl AGGREGATE foo;
|
||||
patsubst([$1], [\.[^.]*]) foo;
|
||||
dnl foo.MEMBER;
|
||||
foo.patsubst([$1], [.*\.]);,
|
||||
AC_VAR_SET(ac_Member, yes),
|
||||
AC_VAR_SET(ac_Member, no))])
|
||||
AC_SHELL_IFELSE(test AC_VAR_GET(ac_Member) = yes,
|
||||
[$2], [$3])dnl
|
||||
popdef([AC_Member_Member])dnl
|
||||
popdef([AC_Member_Aggregate])dnl
|
||||
AC_VAR_POPDEF([ac_Member])dnl
|
||||
])dnl AC_CHECK_MEMBER
|
||||
|
||||
@ -2846,7 +2844,8 @@ dnl -----------------------------------------------------------------------
|
||||
AC_DEFUN(AC_CHECK_HEADER,
|
||||
[AC_VAR_PUSHDEF([ac_Header], [ac_cv_header_$1])dnl
|
||||
AC_CACHE_CHECK([for $1], ac_Header,
|
||||
[AC_TRY_CPP([#include <$1>],
|
||||
[AC_TRY_CPP([#include <$1>
|
||||
],
|
||||
AC_VAR_SET(ac_Header, yes), AC_VAR_SET(ac_Header, no))])
|
||||
AC_SHELL_IFELSE(test AC_VAR_GET(ac_Header) = yes,
|
||||
[$2], [$3])dnl
|
||||
@ -2881,7 +2880,7 @@ AC_CACHE_VAL(ac_var,
|
||||
[if test "$cross_compiling" = yes; then
|
||||
AC_WARNING([Cannot check for file existence when cross compiling])dnl
|
||||
AC_MSG_ERROR([Cannot check for file existence when cross compiling])
|
||||
fi
|
||||
fi
|
||||
if test -r "[$1]"; then
|
||||
AC_VAR_SET(ac_var, yes)
|
||||
else
|
||||
@ -2935,7 +2934,7 @@ dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
|
||||
dnl [INCLUDES])
|
||||
dnl --------------------------------------------------------
|
||||
AC_DEFUN([AC_CHECK_DECLS],
|
||||
[AC_FOREACH([AC_Symbol], [$1],
|
||||
[m4_foreach([AC_Symbol], [$1],
|
||||
[AC_SPECIALIZE([AC_CHECK_DECL], AC_Symbol,
|
||||
[$2],
|
||||
[AC_DEFINE_UNQUOTED(AC_TR_CPP([NEED_]AC_Symbol[_DECL]))
|
||||
@ -2947,8 +2946,8 @@ $3],
|
||||
dnl ### Checking for library functions
|
||||
|
||||
|
||||
dnl AC_CHECK_FUNC(FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
dnl ------------------------------------------------------------------
|
||||
dnl AC_CHECK_FUNC(FUNCTION, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
||||
dnl -----------------------------------------------------------------
|
||||
AC_DEFUN(AC_CHECK_FUNC,
|
||||
[AC_VAR_PUSHDEF([ac_var], [ac_cv_func_$1])dnl
|
||||
AC_CACHE_CHECK([for $1], ac_var,
|
||||
@ -2999,6 +2998,7 @@ done
|
||||
|
||||
|
||||
dnl AC_REPLACE_FUNCS(FUNCTION...)
|
||||
dnl -----------------------------
|
||||
AC_DEFUN(AC_REPLACE_FUNCS,
|
||||
[AC_CHECK_FUNCS([$1], , [LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"])
|
||||
AC_SUBST(LIBOBJS)dnl
|
||||
@ -3056,9 +3056,9 @@ AC_DEFUN(AC_CHECK_TYPE_INTERNAL,
|
||||
AC_VAR_PUSHDEF([ac_Type], [ac_cv_type_$1])dnl
|
||||
AC_CACHE_CHECK([for $1], ac_Type,
|
||||
[AC_TRY_COMPILE(AC_INCLUDES_DEFAULT([$4]),
|
||||
[$1 foo;],
|
||||
AC_VAR_SET(ac_Type, yes),
|
||||
AC_VAR_SET(ac_Type, no))])
|
||||
[$1 foo;],
|
||||
AC_VAR_SET(ac_Type, yes),
|
||||
AC_VAR_SET(ac_Type, no))])
|
||||
AC_SHELL_IFELSE(test AC_VAR_GET(ac_Type) = yes,
|
||||
[$2], [$3])dnl
|
||||
AC_VAR_POPDEF([ac_Type])dnl
|
||||
@ -3074,7 +3074,7 @@ AC_DEFUN(AC_CHECK_TYPES,
|
||||
[m4_foreach([AC_Type], [$1],
|
||||
[AC_SPECIALIZE([AC_CHECK_TYPE_INTERNAL], AC_Type,
|
||||
[AC_DEFINE_UNQUOTED(AC_TR_CPP(HAVE_[]AC_Type))
|
||||
$2]
|
||||
$2],
|
||||
[$3],
|
||||
[$4])])])
|
||||
|
||||
@ -3092,8 +3092,11 @@ AC_DEFUN(AC_CHECK_TYPE,
|
||||
])dnl AC_CHECK_TYPE
|
||||
|
||||
|
||||
|
||||
|
||||
dnl ### Creating output files
|
||||
|
||||
|
||||
dnl AC_CONFIG_IF_MEMBER(DEST[:SOURCE], LIST, ACTION-IF-TRUE, ACTION-IF-FALSE)
|
||||
dnl -------------------------------------------------------------------------
|
||||
dnl If DEST is member of LIST, expand to ACTION-IF-TRUE, else ACTION-IF-FALSE.
|
||||
|
@ -2635,15 +2635,21 @@ r-value, not if it is really declared, because it is much safer to avoid
|
||||
introducing extra declarations when not needed.
|
||||
@end defmac
|
||||
|
||||
@defmac AC_CHECK_DECLS (@var{symbol}, @ovar{action-if-found}, @ovar{action-if-not-found}, @ovar{includes})
|
||||
@defmac AC_CHECK_DECLS ((@var{symbol}, @dots{}), @ovar{action-if-found}, @ovar{action-if-not-found}, @ovar{includes})
|
||||
@maindex CHECK_DECLS
|
||||
@cvindex NEED_@var{symbol}_DECL
|
||||
For each given @var{symbol} (whitespace-separated), define
|
||||
For each given @var{symbol} (comma separated list), define
|
||||
@code{NEED_@var{symbol}_DECL} (in all capitals) if @var{symbol} has to
|
||||
be declared to be used as an r-value. If @var{action-if-not-found} is
|
||||
given, it is additional shell code to execute when one of the function
|
||||
declarations is needed, otherwise @var{action-if-found} is executed.
|
||||
|
||||
This macro uses an m4 list as first argument:
|
||||
@example
|
||||
AC_CHECK_DECLS((strlen))
|
||||
AC_CHECK_DECLS((malloc, realloc, calloc, free))
|
||||
@end example
|
||||
|
||||
This macro does not define @code{HAVE_@var{symbol}_DECL} on purpose.
|
||||
The following code
|
||||
@example
|
||||
|
@ -153,7 +153,7 @@ AH_DEFUN([AC_CHECK_HEADERS], [AH_CHECK_HEADERS($@)])
|
||||
AH_DEFUN([AC_CHECK_HEADERS_DIRENT], [AH_CHECK_HEADERS($@)])
|
||||
|
||||
AH_DEFUN([AC_CHECK_DECLS],
|
||||
[AC_FOREACH([AC_Symbol], [$1],
|
||||
[m4_foreach([AC_Symbol], [$1],
|
||||
[AH_TEMPLATE(AC_TR_CPP([NEED_]AC_Symbol[_DECL]),
|
||||
[Define if you need the declaration of `]AC_Symbol['.])
|
||||
# Success
|
||||
|
227
doc/Makefile.in
227
doc/Makefile.in
@ -1,4 +1,4 @@
|
||||
# Makefile.in generated automatically by automake 1.4a from Makefile.am
|
||||
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
@ -10,6 +10,7 @@
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
@ -45,10 +46,9 @@ AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_FLAG =
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
@ -57,8 +57,6 @@ POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
|
||||
@SET_MAKE@
|
||||
AWK = @AWK@
|
||||
HELP2MAN = @HELP2MAN@
|
||||
M4 = @M4@
|
||||
@ -66,7 +64,6 @@ PERL = @PERL@
|
||||
PERLSCRIPTS = @PERLSCRIPTS@
|
||||
standards_texi = @standards_texi@
|
||||
|
||||
|
||||
AUTOMAKE_OPTIONS = check-news 1.4
|
||||
|
||||
SUBDIRS = . m4 man tests
|
||||
@ -84,9 +81,7 @@ EXTRA_SCRIPTS = autoscan
|
||||
# s/nodistpackageDATA/nodist_pkgdata_DATA/
|
||||
# and adapt dependencies once we use a more recent Automake
|
||||
|
||||
distpkgdataDATA = \
|
||||
acfunctions acheaders acidentifiers acmakevars acprograms \
|
||||
acgeneral.m4 acoldnames.m4 acspecific.m4 autoconf.m4 autoheader.m4
|
||||
distpkgdataDATA = acfunctions acheaders acidentifiers acmakevars acprograms acgeneral.m4 acoldnames.m4 acspecific.m4 autoconf.m4 autoheader.m4
|
||||
|
||||
|
||||
nodistpkgdataDATA = autoconf.m4f autoheader.m4f acversion.m4
|
||||
@ -98,57 +93,44 @@ autoconf_TEXINFOS = install.texi
|
||||
standards_TEXINFOS = make-stds.texi
|
||||
|
||||
OLDCHANGELOGS = ChangeLog.0 ChangeLog.1
|
||||
EXTRA_DIST = $(OLDCHANGELOGS) \
|
||||
autoconf.sh autoheader.sh autoreconf.sh autoupdate.sh \
|
||||
ifnames.sh autoscan.pl INSTALL.txt \
|
||||
$(distpkgdataDATA)
|
||||
EXTRA_DIST = $(OLDCHANGELOGS) autoconf.sh autoheader.sh autoreconf.sh autoupdate.sh ifnames.sh autoscan.pl INSTALL.txt $(distpkgdataDATA)
|
||||
|
||||
|
||||
# Files that should be removed, but which Automake does not know.
|
||||
# There are texi2dvi files, frozen files, and the scripts.
|
||||
CLEANFILES = autoconf.cvs autoconf.ev autoconf.evs autoconf.ma autoconf.mas \
|
||||
autoconf.ov autoconf.ovs autoconf.m4f autoheader.m4f $(bin_SCRIPTS)
|
||||
CLEANFILES = autoconf.cvs autoconf.ev autoconf.evs autoconf.ma autoconf.mas autoconf.ov autoconf.ovs autoconf.m4f autoheader.m4f $(bin_SCRIPTS)
|
||||
|
||||
|
||||
# The scripts.
|
||||
|
||||
editsh = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e \
|
||||
's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g' \
|
||||
-e 's,@''SHELL''@,$(SHELL),g' \
|
||||
-e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
||||
editsh = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g' -e 's,@''SHELL''@,$(SHELL),g' -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
||||
|
||||
editpl = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''PERL''@,$(PERL),g' \
|
||||
-e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
||||
editpl = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''PERL''@,$(PERL),g' -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
||||
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_CLEAN_FILES = acversion.m4
|
||||
SCRIPTS = $(bin_SCRIPTS)
|
||||
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_SOURCES =
|
||||
TEXI2DVI = texi2dvi
|
||||
INFO_DEPS = autoconf.info standards.info
|
||||
DVIS = autoconf.dvi standards.dvi
|
||||
TEXINFOS = autoconf.texi standards.texi
|
||||
DATA = $(pkgdata_DATA)
|
||||
|
||||
DIST_COMMON = README $(autoconf_TEXINFOS) $(pkgdata_DATA) \
|
||||
$(standards_TEXINFOS) AUTHORS COPYING ChangeLog INSTALL Makefile.am \
|
||||
Makefile.in NEWS THANKS TODO aclocal.m4 acversion.m4.in config.guess \
|
||||
config.sub configure configure.in depcomp install-sh mdate-sh missing \
|
||||
mkinstalldirs stamp-vti texinfo.tex version.texi
|
||||
DIST_COMMON = README $(autoconf_TEXINFOS) $(standards_TEXINFOS) AUTHORS \
|
||||
COPYING ChangeLog INSTALL Makefile.am Makefile.in NEWS THANKS TODO \
|
||||
aclocal.m4 acversion.m4.in config.guess config.sub configure \
|
||||
configure.in install-sh mdate-sh missing mkinstalldirs stamp-vti \
|
||||
texinfo.tex version.texi
|
||||
|
||||
|
||||
PACKAGE = @PACKAGE@
|
||||
VERSION = @VERSION@
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
@ -172,22 +154,19 @@ install-binSCRIPTS: $(bin_SCRIPTS)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||
@list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||
f="`echo $$p|sed '$(transform)'`"; \
|
||||
if test -f $$p; then \
|
||||
echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/$$f"; \
|
||||
$(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/$$f; \
|
||||
elif test -f $(srcdir)/$$p; then \
|
||||
echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/$$f"; \
|
||||
$(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/$$f; \
|
||||
else :; fi; \
|
||||
echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
|
||||
$(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||
else if test -f $(srcdir)/$$p; then \
|
||||
echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
|
||||
$(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||
else :; fi; fi; \
|
||||
done
|
||||
|
||||
uninstall-binSCRIPTS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||
f="`echo $$p|sed '$(transform)'`"; \
|
||||
echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
|
||||
rm -f $(DESTDIR)$(bindir)/$$f; \
|
||||
list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||
done
|
||||
|
||||
$(srcdir)/version.texi: stamp-vti
|
||||
@ -229,7 +208,7 @@ DVIPS = dvips
|
||||
&& $(MAKEINFO) `echo $< | sed 's,.*/,,'`
|
||||
|
||||
.texi.dvi:
|
||||
TEXINPUTS=$(srcdir):$$TEXINPUTS \
|
||||
TEXINPUTS=.:$$TEXINPUTS \
|
||||
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
||||
|
||||
.texi:
|
||||
@ -248,7 +227,7 @@ DVIPS = dvips
|
||||
&& $(MAKEINFO) `echo $< | sed 's,.*/,,'`
|
||||
|
||||
.texinfo.dvi:
|
||||
TEXINPUTS=$(srcdir):$$TEXINPUTS \
|
||||
TEXINPUTS=.:$$TEXINPUTS \
|
||||
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
||||
|
||||
.txi.info:
|
||||
@ -257,7 +236,7 @@ DVIPS = dvips
|
||||
&& $(MAKEINFO) `echo $< | sed 's,.*/,,'`
|
||||
|
||||
.txi.dvi:
|
||||
TEXINPUTS=$(srcdir):$$TEXINPUTS \
|
||||
TEXINPUTS=.:$$TEXINPUTS \
|
||||
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
|
||||
|
||||
.txi:
|
||||
@ -273,7 +252,7 @@ install-info-am: $(INFO_DEPS)
|
||||
@list='$(INFO_DEPS)'; \
|
||||
for file in $$list; do \
|
||||
d=$(srcdir); \
|
||||
for ifile in `CDPATH=: && cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
|
||||
for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
|
||||
if test -f $$d/$$ifile; then \
|
||||
echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
|
||||
$(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
|
||||
@ -292,26 +271,24 @@ install-info-am: $(INFO_DEPS)
|
||||
uninstall-info:
|
||||
$(PRE_UNINSTALL)
|
||||
@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
|
||||
list='$(INFO_DEPS)'; \
|
||||
for file in $$list; do \
|
||||
echo " install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file"; \
|
||||
install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file; \
|
||||
done; \
|
||||
else :; fi
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(INFO_DEPS)'; \
|
||||
ii=yes; \
|
||||
else ii=; fi; \
|
||||
list='$(INFO_DEPS)'; \
|
||||
for file in $$list; do \
|
||||
(if cd $(DESTDIR)$(infodir); then \
|
||||
echo " rm -f $$file $$file-[0-9] $$file-[0-9][0-9])"; \
|
||||
rm -f $$file $$file-[0-9] $$file-[0-9][0-9]; \
|
||||
else :; fi); \
|
||||
test -z "$ii" \
|
||||
|| install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
|
||||
done
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(INFO_DEPS)'; \
|
||||
for file in $$list; do \
|
||||
(cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
|
||||
done
|
||||
|
||||
dist-info: $(INFO_DEPS)
|
||||
list='$(INFO_DEPS)'; \
|
||||
for base in $$list; do \
|
||||
d=$(srcdir); \
|
||||
for file in `CDPATH=: && cd $$d && eval echo $$base*`; do \
|
||||
for file in `cd $$d && eval echo $$base*`; do \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file; \
|
||||
@ -320,16 +297,15 @@ dist-info: $(INFO_DEPS)
|
||||
|
||||
mostlyclean-aminfo:
|
||||
-rm -f autoconf.aux autoconf.cp autoconf.cps autoconf.dvi autoconf.fn \
|
||||
autoconf.fns autoconf.pgs autoconf.ky autoconf.kys \
|
||||
autoconf.ps autoconf.log autoconf.pg autoconf.toc autoconf.tp \
|
||||
autoconf.fns autoconf.ky autoconf.kys autoconf.ps \
|
||||
autoconf.log autoconf.pg autoconf.toc autoconf.tp \
|
||||
autoconf.tps autoconf.vr autoconf.vrs autoconf.op autoconf.tr \
|
||||
autoconf.cv autoconf.cn autoconf.cm autoconf.ov standards.aux \
|
||||
standards.cp standards.cps standards.dvi standards.fn \
|
||||
standards.fns standards.pgs standards.ky standards.kys \
|
||||
standards.ps standards.log standards.pg standards.toc \
|
||||
standards.tp standards.tps standards.vr standards.vrs \
|
||||
standards.op standards.tr standards.cv standards.cn \
|
||||
standards.cm standards.ov
|
||||
autoconf.cv autoconf.cn standards.aux standards.cp \
|
||||
standards.cps standards.dvi standards.fn standards.fns \
|
||||
standards.ky standards.kys standards.ps standards.log \
|
||||
standards.pg standards.toc standards.tp standards.tps \
|
||||
standards.vr standards.vrs standards.op standards.tr \
|
||||
standards.cv standards.cn
|
||||
|
||||
clean-aminfo:
|
||||
|
||||
@ -347,18 +323,19 @@ install-pkgdataDATA: $(pkgdata_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
|
||||
@list='$(pkgdata_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
|
||||
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f"; \
|
||||
$(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f; \
|
||||
if test -f $(srcdir)/$$p; then \
|
||||
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p"; \
|
||||
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p; \
|
||||
else if test -f $$p; then \
|
||||
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p"; \
|
||||
$(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p; \
|
||||
fi; fi; \
|
||||
done
|
||||
|
||||
uninstall-pkgdataDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(pkgdata_DATA)'; for p in $$list; do \
|
||||
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
echo " rm -f $(DESTDIR)$(pkgdatadir)/$$f"; \
|
||||
rm -f $(DESTDIR)$(pkgdatadir)/$$f; \
|
||||
list='$(pkgdata_DATA)'; for p in $$list; do \
|
||||
rm -f $(DESTDIR)$(pkgdatadir)/$$p; \
|
||||
done
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
@ -368,6 +345,8 @@ uninstall-pkgdataDATA:
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
all-recursive install-data-recursive install-exec-recursive \
|
||||
installdirs-recursive install-recursive uninstall-recursive \
|
||||
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||
@ -395,7 +374,7 @@ maintainer-clean-recursive:
|
||||
dot_seen=no; \
|
||||
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
rev="$$subdir $$rev"; \
|
||||
if test "$$subdir" = "."; then dot_seen=yes; else :; fi; \
|
||||
test "$$subdir" = "." && dot_seen=yes; \
|
||||
done; \
|
||||
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
@ -416,17 +395,15 @@ tags-recursive:
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -f$$here/ID $$unique $(LISP)
|
||||
here=`pwd` && cd $(srcdir) \
|
||||
&& mkid -f$$here/ID $$unique $(LISP)
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
@ -434,14 +411,12 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||
|| etags $(ETAGS_ARGS) $$tags $$unique $(LISP)
|
||||
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
|
||||
|
||||
mostlyclean-tags:
|
||||
|
||||
@ -455,64 +430,54 @@ maintainer-clean-tags:
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
|
||||
mkdir $(distdir)/=build
|
||||
mkdir $(distdir)/=inst
|
||||
chmod a-w $(distdir)
|
||||
dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \
|
||||
&& cd $(distdir)/=build \
|
||||
dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
||||
cd $(distdir)/=build \
|
||||
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& test `find $$dc_install_base -type f -print | wc -l` -le 1 \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distclean \
|
||||
&& rm -f $(distdir).tar.gz \
|
||||
&& test `find . -type f -print | wc -l` -eq 0
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist
|
||||
-rm -rf $(distdir)
|
||||
@banner="$(distdir).tar.gz is ready for distribution"; \
|
||||
dashes=`echo "$$banner" | sed s/./=/g`; \
|
||||
echo "$$dashes"; \
|
||||
echo "$$banner"; \
|
||||
echo "$$dashes"
|
||||
dist: distdir
|
||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r $(distdir)
|
||||
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
-chmod -R a+r $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
dist-all: distdir
|
||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r $(distdir)
|
||||
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
-chmod -R a+r $(distdir)
|
||||
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
distdir: $(DISTFILES)
|
||||
@if sed 15q $(srcdir)/NEWS | fgrep -e "$(VERSION)" > /dev/null; then :; else \
|
||||
echo "NEWS not updated; not releasing" 1>&2; \
|
||||
exit 1; \
|
||||
fi
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
-rm -rf $(distdir)
|
||||
mkdir $(distdir)
|
||||
-chmod 777 $(distdir)
|
||||
here=`cd $(top_builddir) && pwd`; \
|
||||
top_distdir=`cd $(distdir) && pwd`; \
|
||||
distdir=`cd $(distdir) && pwd`; \
|
||||
cd $(top_srcdir) \
|
||||
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pR $$d/$$file $(distdir); \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
@ -524,6 +489,7 @@ distdir: $(DISTFILES)
|
||||
test -d $(distdir)/$$subdir \
|
||||
|| mkdir $(distdir)/$$subdir \
|
||||
|| exit 1; \
|
||||
chmod 777 $(distdir)/$$subdir; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
@ -553,7 +519,7 @@ uninstall: uninstall-recursive
|
||||
all-am: Makefile $(INFO_DEPS) $(SCRIPTS) $(DATA)
|
||||
all-redirect: all-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(infodir) \
|
||||
@ -570,7 +536,6 @@ distclean-generic:
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
-rm -f Makefile.in
|
||||
mostlyclean-am: mostlyclean-vti mostlyclean-aminfo mostlyclean-tags \
|
||||
mostlyclean-generic
|
||||
|
||||
@ -600,8 +565,7 @@ maintainer-clean: maintainer-clean-recursive
|
||||
distclean-vti clean-vti maintainer-clean-vti install-info-am \
|
||||
uninstall-info mostlyclean-aminfo distclean-aminfo clean-aminfo \
|
||||
maintainer-clean-aminfo uninstall-pkgdataDATA install-pkgdataDATA \
|
||||
install-recursive uninstall-recursive install-data-recursive \
|
||||
uninstall-data-recursive install-exec-recursive \
|
||||
install-data-recursive uninstall-data-recursive install-exec-recursive \
|
||||
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
|
||||
all-recursive check-recursive installcheck-recursive info-recursive \
|
||||
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
|
||||
@ -609,10 +573,9 @@ maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
||||
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
|
||||
install-exec install-data-am install-data install-am install \
|
||||
uninstall-am uninstall all-redirect all-am all install-strip \
|
||||
installdirs-am installdirs mostlyclean-generic distclean-generic \
|
||||
clean-generic maintainer-clean-generic clean mostlyclean distclean \
|
||||
maintainer-clean
|
||||
uninstall-am uninstall all-redirect all-am all installdirs-am \
|
||||
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# INSTALL is a special case. Automake seems to have a single name space
|
||||
|
@ -2635,15 +2635,21 @@ r-value, not if it is really declared, because it is much safer to avoid
|
||||
introducing extra declarations when not needed.
|
||||
@end defmac
|
||||
|
||||
@defmac AC_CHECK_DECLS (@var{symbol}, @ovar{action-if-found}, @ovar{action-if-not-found}, @ovar{includes})
|
||||
@defmac AC_CHECK_DECLS ((@var{symbol}, @dots{}), @ovar{action-if-found}, @ovar{action-if-not-found}, @ovar{includes})
|
||||
@maindex CHECK_DECLS
|
||||
@cvindex NEED_@var{symbol}_DECL
|
||||
For each given @var{symbol} (whitespace-separated), define
|
||||
For each given @var{symbol} (comma separated list), define
|
||||
@code{NEED_@var{symbol}_DECL} (in all capitals) if @var{symbol} has to
|
||||
be declared to be used as an r-value. If @var{action-if-not-found} is
|
||||
given, it is additional shell code to execute when one of the function
|
||||
declarations is needed, otherwise @var{action-if-found} is executed.
|
||||
|
||||
This macro uses an m4 list as first argument:
|
||||
@example
|
||||
AC_CHECK_DECLS((strlen))
|
||||
AC_CHECK_DECLS((malloc, realloc, calloc, free))
|
||||
@end example
|
||||
|
||||
This macro does not define @code{HAVE_@var{symbol}_DECL} on purpose.
|
||||
The following code
|
||||
@example
|
||||
|
@ -2213,18 +2213,16 @@ AC_VAR_IF_INDIR([$1],
|
||||
[AC_FATAL([$0: requires manifest arguments])])
|
||||
ifelse(regexp([$1], [\.]), -1,
|
||||
[AC_FATAL([$0: Did not see any dot in `$1'])])dnl
|
||||
pushdef(AC_Member_Aggregate, [patsubst([$1], [\.[^.]*])])dnl
|
||||
pushdef(AC_Member_Member, [patsubst([$1], [.*\.])])dnl
|
||||
AC_CACHE_CHECK([for $1], ac_Member,
|
||||
[AC_TRY_COMPILE(AC_INCLUDES_DEFAULT([$4]),
|
||||
ac_Member_Aggregate foo;
|
||||
foo.ac_Member_Member;,
|
||||
dnl AGGREGATE foo;
|
||||
patsubst([$1], [\.[^.]*]) foo;
|
||||
dnl foo.MEMBER;
|
||||
foo.patsubst([$1], [.*\.]);,
|
||||
AC_VAR_SET(ac_Member, yes),
|
||||
AC_VAR_SET(ac_Member, no))])
|
||||
AC_SHELL_IFELSE(test AC_VAR_GET(ac_Member) = yes,
|
||||
[$2], [$3])dnl
|
||||
popdef([AC_Member_Member])dnl
|
||||
popdef([AC_Member_Aggregate])dnl
|
||||
AC_VAR_POPDEF([ac_Member])dnl
|
||||
])dnl AC_CHECK_MEMBER
|
||||
|
||||
@ -2846,7 +2844,8 @@ dnl -----------------------------------------------------------------------
|
||||
AC_DEFUN(AC_CHECK_HEADER,
|
||||
[AC_VAR_PUSHDEF([ac_Header], [ac_cv_header_$1])dnl
|
||||
AC_CACHE_CHECK([for $1], ac_Header,
|
||||
[AC_TRY_CPP([#include <$1>],
|
||||
[AC_TRY_CPP([#include <$1>
|
||||
],
|
||||
AC_VAR_SET(ac_Header, yes), AC_VAR_SET(ac_Header, no))])
|
||||
AC_SHELL_IFELSE(test AC_VAR_GET(ac_Header) = yes,
|
||||
[$2], [$3])dnl
|
||||
@ -2881,7 +2880,7 @@ AC_CACHE_VAL(ac_var,
|
||||
[if test "$cross_compiling" = yes; then
|
||||
AC_WARNING([Cannot check for file existence when cross compiling])dnl
|
||||
AC_MSG_ERROR([Cannot check for file existence when cross compiling])
|
||||
fi
|
||||
fi
|
||||
if test -r "[$1]"; then
|
||||
AC_VAR_SET(ac_var, yes)
|
||||
else
|
||||
@ -2935,7 +2934,7 @@ dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
|
||||
dnl [INCLUDES])
|
||||
dnl --------------------------------------------------------
|
||||
AC_DEFUN([AC_CHECK_DECLS],
|
||||
[AC_FOREACH([AC_Symbol], [$1],
|
||||
[m4_foreach([AC_Symbol], [$1],
|
||||
[AC_SPECIALIZE([AC_CHECK_DECL], AC_Symbol,
|
||||
[$2],
|
||||
[AC_DEFINE_UNQUOTED(AC_TR_CPP([NEED_]AC_Symbol[_DECL]))
|
||||
@ -2947,8 +2946,8 @@ $3],
|
||||
dnl ### Checking for library functions
|
||||
|
||||
|
||||
dnl AC_CHECK_FUNC(FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
dnl ------------------------------------------------------------------
|
||||
dnl AC_CHECK_FUNC(FUNCTION, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
||||
dnl -----------------------------------------------------------------
|
||||
AC_DEFUN(AC_CHECK_FUNC,
|
||||
[AC_VAR_PUSHDEF([ac_var], [ac_cv_func_$1])dnl
|
||||
AC_CACHE_CHECK([for $1], ac_var,
|
||||
@ -2999,6 +2998,7 @@ done
|
||||
|
||||
|
||||
dnl AC_REPLACE_FUNCS(FUNCTION...)
|
||||
dnl -----------------------------
|
||||
AC_DEFUN(AC_REPLACE_FUNCS,
|
||||
[AC_CHECK_FUNCS([$1], , [LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"])
|
||||
AC_SUBST(LIBOBJS)dnl
|
||||
@ -3056,9 +3056,9 @@ AC_DEFUN(AC_CHECK_TYPE_INTERNAL,
|
||||
AC_VAR_PUSHDEF([ac_Type], [ac_cv_type_$1])dnl
|
||||
AC_CACHE_CHECK([for $1], ac_Type,
|
||||
[AC_TRY_COMPILE(AC_INCLUDES_DEFAULT([$4]),
|
||||
[$1 foo;],
|
||||
AC_VAR_SET(ac_Type, yes),
|
||||
AC_VAR_SET(ac_Type, no))])
|
||||
[$1 foo;],
|
||||
AC_VAR_SET(ac_Type, yes),
|
||||
AC_VAR_SET(ac_Type, no))])
|
||||
AC_SHELL_IFELSE(test AC_VAR_GET(ac_Type) = yes,
|
||||
[$2], [$3])dnl
|
||||
AC_VAR_POPDEF([ac_Type])dnl
|
||||
@ -3074,7 +3074,7 @@ AC_DEFUN(AC_CHECK_TYPES,
|
||||
[m4_foreach([AC_Type], [$1],
|
||||
[AC_SPECIALIZE([AC_CHECK_TYPE_INTERNAL], AC_Type,
|
||||
[AC_DEFINE_UNQUOTED(AC_TR_CPP(HAVE_[]AC_Type))
|
||||
$2]
|
||||
$2],
|
||||
[$3],
|
||||
[$4])])])
|
||||
|
||||
@ -3092,8 +3092,11 @@ AC_DEFUN(AC_CHECK_TYPE,
|
||||
])dnl AC_CHECK_TYPE
|
||||
|
||||
|
||||
|
||||
|
||||
dnl ### Creating output files
|
||||
|
||||
|
||||
dnl AC_CONFIG_IF_MEMBER(DEST[:SOURCE], LIST, ACTION-IF-TRUE, ACTION-IF-FALSE)
|
||||
dnl -------------------------------------------------------------------------
|
||||
dnl If DEST is member of LIST, expand to ACTION-IF-TRUE, else ACTION-IF-FALSE.
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Makefile.in generated automatically by automake 1.4a from Makefile.am
|
||||
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
@ -10,6 +10,7 @@
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
@ -45,10 +46,9 @@ AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_FLAG =
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
@ -57,8 +57,6 @@ POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
|
||||
@SET_MAKE@
|
||||
AWK = @AWK@
|
||||
HELP2MAN = @HELP2MAN@
|
||||
M4 = @M4@
|
||||
@ -66,20 +64,18 @@ PERL = @PERL@
|
||||
PERLSCRIPTS = @PERLSCRIPTS@
|
||||
standards_texi = @standards_texi@
|
||||
|
||||
|
||||
EXTRA_DIST = init.m4 missing.m4 sanity.m4 atconfig.m4
|
||||
subdir = m4
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_CLEAN_FILES =
|
||||
DIST_SOURCES =
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
||||
PACKAGE = @PACKAGE@
|
||||
VERSION = @VERSION@
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
@ -96,11 +92,18 @@ TAGS:
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = m4
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
here=`cd $(top_builddir) && pwd`; \
|
||||
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||
distdir=`cd $(distdir) && pwd`; \
|
||||
cd $(top_srcdir) \
|
||||
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu m4/Makefile
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pR $$d/$$file $(distdir); \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
@ -129,7 +132,7 @@ uninstall: uninstall-am
|
||||
all-am: Makefile
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs:
|
||||
|
||||
|
||||
@ -142,7 +145,6 @@ distclean-generic:
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
-rm -f Makefile.in
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
@ -164,7 +166,7 @@ maintainer-clean: maintainer-clean-am
|
||||
.PHONY: tags distdir info-am info dvi-am dvi check check-am \
|
||||
installcheck-am installcheck install-exec-am install-exec \
|
||||
install-data-am install-data install-am install uninstall-am uninstall \
|
||||
all-redirect all-am all install-strip installdirs mostlyclean-generic \
|
||||
all-redirect all-am all installdirs mostlyclean-generic \
|
||||
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||
mostlyclean distclean maintainer-clean
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Makefile.in generated automatically by automake 1.4a from Makefile.am
|
||||
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
@ -10,6 +10,7 @@
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
@ -45,10 +46,9 @@ AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_FLAG =
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
@ -57,8 +57,6 @@ POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
|
||||
@SET_MAKE@
|
||||
AWK = @AWK@
|
||||
HELP2MAN = @HELP2MAN@
|
||||
M4 = @M4@
|
||||
@ -66,27 +64,18 @@ PERL = @PERL@
|
||||
PERLSCRIPTS = @PERLSCRIPTS@
|
||||
standards_texi = @standards_texi@
|
||||
|
||||
|
||||
man_MANS = autoconf.1 autoreconf.1 autoheader.1 autoupdate.1 ifnames.1 \
|
||||
autoscan.1
|
||||
man_MANS = autoconf.1 autoreconf.1 autoheader.1 autoupdate.1 ifnames.1 autoscan.1
|
||||
|
||||
|
||||
man_aux = autoconf.x autoreconf.x autoheader.x autoupdate.x ifnames.x \
|
||||
autoscan.x
|
||||
man_aux = autoconf.x autoreconf.x autoheader.x autoupdate.x ifnames.x autoscan.x
|
||||
|
||||
|
||||
EXTRA_DIST = $(man_MANS) $(man_aux) common.x
|
||||
MAINTAINERCLEANFILES = $(man_MANS)
|
||||
|
||||
SUFFIXES = .x .1
|
||||
subdir = man
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_CLEAN_FILES =
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_SOURCES =
|
||||
man1dir = $(mandir)/man1
|
||||
MANS = $(man_MANS)
|
||||
|
||||
@ -97,8 +86,9 @@ DIST_COMMON = Makefile.am Makefile.in
|
||||
PACKAGE = @PACKAGE@
|
||||
VERSION = @VERSION@
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
@ -124,7 +114,6 @@ install-man1:
|
||||
else file=$$i; fi; \
|
||||
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||
inst=`echo $$inst | sed -e 's/^.*\///'`; \
|
||||
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||
echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
|
||||
$(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
|
||||
@ -140,7 +129,6 @@ uninstall-man1:
|
||||
for i in $$list; do \
|
||||
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||
inst=`echo $$inst | sed -e 's/^.*\///'`; \
|
||||
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||
echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
|
||||
rm -f $(DESTDIR)$(man1dir)/$$inst; \
|
||||
@ -157,11 +145,18 @@ TAGS:
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = man
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
here=`cd $(top_builddir) && pwd`; \
|
||||
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||
distdir=`cd $(distdir) && pwd`; \
|
||||
cd $(top_srcdir) \
|
||||
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu man/Makefile
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pR $$d/$$file $(distdir); \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
@ -190,7 +185,7 @@ uninstall: uninstall-am
|
||||
all-am: Makefile $(MANS)
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs:
|
||||
$(mkinstalldirs) $(DESTDIR)$(mandir)/man1
|
||||
|
||||
@ -204,7 +199,6 @@ distclean-generic:
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
-rm -f Makefile.in
|
||||
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
@ -228,9 +222,8 @@ maintainer-clean: maintainer-clean-am
|
||||
distdir info-am info dvi-am dvi check check-am installcheck-am \
|
||||
installcheck install-exec-am install-exec install-data-am install-data \
|
||||
install-am install uninstall-am uninstall all-redirect all-am all \
|
||||
install-strip installdirs mostlyclean-generic distclean-generic \
|
||||
clean-generic maintainer-clean-generic clean mostlyclean distclean \
|
||||
maintainer-clean
|
||||
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# Depend on configure.in to get version number changes.
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
AUTOMAKE_OPTIONS = gnits
|
||||
|
||||
SUITE = syntax.m4
|
||||
SUITE = syntax.m4 semantics.m4
|
||||
|
||||
# We don't actually distribute the testsuite, since one only
|
||||
# needs m4 to build it, m4 being required anyway to install Autoconf.
|
||||
|
46
tests/semantics.m4
Normal file
46
tests/semantics.m4
Normal file
@ -0,0 +1,46 @@
|
||||
# -*- autoconf -*-
|
||||
|
||||
cat <<EOF
|
||||
|
||||
Checking the semantics of some macros.
|
||||
|
||||
EOF
|
||||
|
||||
dnl Check that AC_CHECK_MEMBERS performs the correct actions:
|
||||
dnl Must define HAVE_STRUCT_YES_YES, but not HAVE_STRUCT_YES_NO.
|
||||
AT_TEST_MACRO(AC_CHECK_MEMBERS,
|
||||
[AC_CHECK_MEMBERS((struct yes.yes, struct yes.no),,,
|
||||
[struct yes { int yes ;} ;])],
|
||||
[AT_CHECK([grep HAVE_STRUCT_YES_YES config.h],,
|
||||
[#define HAVE_STRUCT_YES_YES 1
|
||||
])
|
||||
AT_CHECK([grep HAVE_STRUCT_YES_NO config.h],,
|
||||
[/* #undef HAVE_STRUCT_YES_NO */
|
||||
])])
|
||||
|
||||
|
||||
dnl Check that AC_CHECK_TYPES performs the correct actions:
|
||||
dnl Must define HAVE_STRUCT_YES, but not HAVE_STRUCT_NO.
|
||||
AT_TEST_MACRO(AC_CHECK_TYPES,
|
||||
[AC_CHECK_TYPES((struct yes, struct no),,,
|
||||
[struct yes { int yes ;} ;])],
|
||||
[AT_CHECK([grep HAVE_STRUCT_YES config.h],,
|
||||
[#define HAVE_STRUCT_YES 1
|
||||
])
|
||||
AT_CHECK([grep HAVE_STRUCT_NO config.h],,
|
||||
[/* #undef HAVE_STRUCT_NO */
|
||||
])])
|
||||
|
||||
|
||||
|
||||
dnl Check that AC_CHECK_DECLS performs the correct actions:
|
||||
dnl Must define NEED_NO_DECL, but not NEED_YES_DECL.
|
||||
AT_TEST_MACRO(AC_CHECK_DECLS,
|
||||
[AC_CHECK_DECLS((yes, no),,,
|
||||
[int yes = 1;])],
|
||||
[AT_CHECK([grep NEED_YES_DECL config.h],,
|
||||
[/* #undef NEED_YES_DECL */
|
||||
])
|
||||
AT_CHECK([grep NEED_NO_DECL config.h],,
|
||||
[#define NEED_NO_DECL 1
|
||||
])])
|
@ -9,4 +9,36 @@
|
||||
|
||||
AT_INIT(autoconf)
|
||||
|
||||
dnl AT_TEST_MACRO(NAME-OF-THE-MACRO, [MACRO-USE], [ADDITIONAL-CMDS])
|
||||
dnl ----------------------------------------------------------------
|
||||
dnl Create a minimalist configure.in running the macro named
|
||||
dnl NAME-OF-THE-MACRO, check that autoconf runs on that script,
|
||||
dnl and that the shell runs correctly the configure.
|
||||
AT_DEFINE(AT_TEST_MACRO,
|
||||
[AT_SETUP($1)
|
||||
|
||||
# An extremely simple configure.in
|
||||
AT_DATA(configure.in,
|
||||
[AC_INIT
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
ifelse([$2],,[$1], [$2])
|
||||
AC_OUTPUT
|
||||
])
|
||||
|
||||
# FIXME: Here we just don't consider the stderr from Autoconf.
|
||||
# Maybe some day we could be more precise and filter out warnings.
|
||||
# The problem is that currently some warnings are spread on several
|
||||
# lines, so grepping -v warning is not enough.
|
||||
AT_CHECK([../autoconf -m ..], 0,, ignore)
|
||||
AT_CHECK([../autoheader -m ..], 0,, ignore)
|
||||
AT_CHECK([./configure], 0, ignore, ignore)
|
||||
$3
|
||||
AT_CLEANUP(configure config.status config.log config.cache config.h.in config.h)dnl
|
||||
])dnl AT_TEST_MACRO
|
||||
|
||||
|
||||
dnl Run semantics before, since there are little chances that syntax
|
||||
dnl fails.
|
||||
|
||||
AT_INCLUDE(semantics.m4)
|
||||
AT_INCLUDE(syntax.m4)
|
||||
|
@ -1,31 +1,5 @@
|
||||
# -*- autoconf -*-
|
||||
|
||||
dnl AT_TEST_MACRO(NAME-OF-THE-MACRO)
|
||||
dnl --------------------------------
|
||||
dnl Create a minimalist configure.in running the macro named
|
||||
dnl NAME-OF-THE-MACRO, check that autoconf runs on that script,
|
||||
dnl and that the shell runs correctly the configure.
|
||||
AT_DEFINE(AT_TEST_MACRO,
|
||||
[AT_SETUP($1)
|
||||
|
||||
# An extremely simple configure.in
|
||||
AT_DATA(configure.in,
|
||||
[AC_INIT
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
$1
|
||||
AC_OUTPUT
|
||||
])
|
||||
|
||||
# FIXME: Here we just don't consider the stderr from Autoconf.
|
||||
# Maybe some day we could be more precise and filter out warnings.
|
||||
# The problem is that currently some warnings are spread on several
|
||||
# lines, so grepping -v warning is not enough.
|
||||
AT_CHECK([../autoconf -m ..], 0,, ignore)
|
||||
AT_CHECK([../autoheader -m ..], 0,, ignore)
|
||||
AT_CHECK([./configure], 0, ignore, ignore)
|
||||
AT_CLEANUP(configure config.status config.log config.cache config.h.in config.h)dnl
|
||||
])dnl AT_TEST_MACRO
|
||||
|
||||
dnl TEST_MACRO(NAME-OF-THE-MACRO)
|
||||
dnl -----------------------------
|
||||
dnl Run AT_TEST_MACRO(NAME-OF-THE-MACRO) on selected macros only.
|
||||
@ -55,9 +29,5 @@ echo 'Syntax of macros and completeness of the header templates.'
|
||||
echo
|
||||
|
||||
AT_INCLUDE(macros.m4)
|
||||
|
||||
echo
|
||||
echo 'More specific tests.'
|
||||
echo
|
||||
|
||||
dnl That miserable test comes from the old DejaGNU testsuite.
|
||||
TEST_MACRO([AC_CHECK_SIZEOF(long *)])
|
||||
|
Loading…
x
Reference in New Issue
Block a user