autoconf/autoheader.m4
Akim Demaille 5798545221 1999-09-21 Akim Demaille <akim@epita.fr>
* NEWS: Updated.
	* THANKS: Likewise.

	* acgeneral.m4 (AC_CHECK_HEADER): Use AC_VAR_*.
	(AC_CHECK_HEADERS): Adapted.

	* acgeneral.m4 (AC_TR): Remove, it is useless.
	(AC_TR_CPP): Updated version of formerly AC_TR_DEFINE, based on
	the model of AC_TR_SH.
	All callers changed.

	* autoconf.sh (Checking for Bugs): Remove the indirection that
	made the `sort -u' useless.

1999-09-21  Akim Demaille  <akim@epita.fr>

	* autoconf.sh (Last sed cmd): Change also @PND@ to `#', since this
	is also a symbol very hard to quote in m4.

	* acgeneral.m4 (AC_CHECK_LIB): Use AC_VAR_*.

	* acgeneral.m4: Use `m4_BUILTIN' instead of indirection via
 	`builtin'.

1999-09-21  Akim Demaille  <akim@epita.fr>

	* autoconf.texi	(Particular Structures): Move documentation of
	AC_HEADER_STAT and AC_HEADER_TIME from here...
	(Particular Headers): to here.
	(Declarations): New section.
	(Particular Headers): Move doc of AC_DECL_SYS_SIGLIST from here...
	(Particular Declarations): to here.

1999-09-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* acgeneral.m4 (AC_CHECK_FUNC_DECL, AC_CHECK_FUNC_DECLS): New
 	macros.

	* autoconf.texi (AC_CHECK_FUNC_DECL, AC_CHECK_FUNC_DECLS):
 	Document.

	* autoheader.m4: Add support for AC_CHECK_FUNC_DECLS.

	* autoheader.sh: Likewise.

1999-09-21  Akim Demaille  <akim@epita.fr>

	* acgeneral.m4 (AC_SHELL_IFELSE): New macro.
	(AC_VAR_IF_SET): Use it.
	(AC_CHECK_FUNC): Likewise.

	* Makefile.in (${srcdir}/configure): Use autoconf.sh to build
 	Autoconf's configure.  Before the building was performed running
 	m4 at hand, but much was not done (e.g., __oline__,
 	@BKL@... expansion)
1999-09-21 09:58:58 +00:00

130 lines
2.9 KiB
Plaintext

dnl Driver and redefinitions of some Autoconf macros for autoheader.
dnl This file is part of Autoconf.
dnl Copyright (C) 1994, 1995, 1999 Free Software Foundation, Inc.
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2, or (at your option)
dnl any later version.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
dnl 02111-1307, USA.
dnl
dnl Written by Roland McGrath.
dnl
include(acgeneral.m4)dnl
m4_include(acspecific.m4)dnl
m4_include(acoldnames.m4)dnl
dnl These are alternate definitions of some macros, which produce
dnl strings in the output marked with "@@@" so we can easily extract
dnl the information we want. The `#' at the end of the first line of
dnl each definition seems to be necessary to prevent m4 from eating
dnl the newline, which makes the @@@ not always be at the beginning of
dnl a line.
define([AC_CHECK_FUNCS], [#
@@@funcs="$funcs $1"@@@
ifelse([$2], , , [
# If it was found, we do:
$2
# If it was not found, we do:
$3
])
])
define([AC_CHECK_HEADERS], [#
@@@headers="$headers $1"@@@
ifelse([$2], , , [
# If it was found, we do:
$2
# If it was not found, we do:
$3
])
])
define([AC_CHECK_HEADERS_DIRENT], [#
@@@headers="$headers $1"@@@
])
define([AC_CHECK_LIB], [#
ifelse([$3], , [
@@@libs="$libs $1"@@@
], [
# If it was found, we do:
$3
# If it was not found, we do:
$4
])
])
define([AC_CHECK_DECLS], [#
ifelse([$3], , [
@@@decls="$decls $1"@@@
], [
# If it was found, we do:
$3
# If it was not found, we do:
$4
])
])
define([AC_HAVE_LIBRARY], [#
changequote(<<, >>)dnl
define(<<AC_LIB_NAME>>, dnl
patsubst(patsubst($1, <<lib\([^\.]*\)\.a>>, <<\1>>), <<-l>>, <<>>))dnl
changequote([, ])dnl
ifelse([$2], , [
@@@libs="$libs AC_LIB_NAME"@@@
], [
# If it was found, we do:
$2
# If it was not found, we do:
$3
])
])
define([AC_CHECK_SIZEOF], [#
@@@types="$types,$1"@@@
])
define([AC_CONFIG_HEADER], [#
define([AC_CONFIG_H], patsubst($1, [ .*$], []))dnl
@@@config_h=AC_CONFIG_H@@@
])
define([AC_DEFINE], [#
ifelse([$3],,[#
dnl Ignore CPP macro arguments.
@@@syms="$syms patsubst($1, [(.*$])"@@@
], [#
@@@verbatim="$verbatim
/* $3 */
#undef $1
"@@@
])])
define([AC_DEFINE_UNQUOTED], [#
ifelse([$3],,[#
dnl Ignore CPP macro arguments.
@@@syms="$syms patsubst($1, [(.*$])"@@@
], [#
@@@verbatim="$verbatim
/* $3 */
#undef $1
"@@@
])])
dnl Autoheader is not the right program to complain about cross-compiling
define([AC_TRY_RUN], [
$2
$3
$4])