Assume presence of a config header in all files, to provoke

test failures on all systems.
* libltdl/lt__alloc.c: Likewise.
* libltdl/libltdl/lt__dirent.h: Likewise.
* libltdl/libltdl/lt__glibc.h: Likewise.
* libltdl/libltdl/lt__private.h: Likewise.
* libltdl/libltdl/lt__strl.h: Likewise.
* tests/recursive.at: Use AC_CONFIG_HEADERS.
* tests/nonrecursive.at: Likewise.  Invoke autoheader.
* HACKING: Adjust.
Report by Patrick Welche.
This commit is contained in:
Ralf Wildenhues 2006-10-26 20:39:04 +00:00
parent a68608ef1f
commit 8b77562fee
9 changed files with 43 additions and 41 deletions

View File

@ -1,3 +1,17 @@
2006-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Assume presence of a config header in all files, to provoke
test failures on all systems.
* libltdl/lt__alloc.c: Likewise.
* libltdl/libltdl/lt__dirent.h: Likewise.
* libltdl/libltdl/lt__glibc.h: Likewise.
* libltdl/libltdl/lt__private.h: Likewise.
* libltdl/libltdl/lt__strl.h: Likewise.
* tests/recursive.at: Use AC_CONFIG_HEADERS.
* tests/nonrecursive.at: Likewise. Invoke autoheader.
* HACKING: Adjust.
Report by Patrick Welche.
2006-10-24 Paul Eggert <eggert@cs.ucla.edu>,
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

12
HACKING
View File

@ -291,17 +291,13 @@ yyyy-mm-dd Name of Author <email@address> (tiny change)
to various system libc interfaces that differ between hosts supported
by libtool. Typically, the files that implement this layer begin:
#ifdef HAVE_CONFIG_H
# if defined(LT_CONFIG_H)
# include LT_CONFIG_H
# else
# include <config.h>
# endif
#if defined(LT_CONFIG_H)
# include LT_CONFIG_H
#else
# include <config.h>
#endif
#include "lt_system.h"
The `ifdef HAVE_CONFIG_H' helps facilitate code sharing with gnulib.
Or if they are installed headers that must work outside the libtool
source tree, simply:

View File

@ -30,12 +30,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
#if !defined(LT__DIRENT_H)
#define LT__DIRENT_H 1
#ifdef HAVE_CONFIG_H
# if defined(LT_CONFIG_H)
# include LT_CONFIG_H
# else
# include <config.h>
# endif
#if defined(LT_CONFIG_H)
# include LT_CONFIG_H
#else
# include <config.h>
#endif
#include "lt_system.h"

View File

@ -30,12 +30,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
#if !defined(LT__GLIBC_H)
#define LT__GLIBC_H 1
#ifdef HAVE_CONFIG_H
# if defined(LT_CONFIG_H)
# include LT_CONFIG_H
# else
# include <config.h>
# endif
#if defined(LT_CONFIG_H)
# include LT_CONFIG_H
#else
# include <config.h>
#endif
#if !defined(HAVE_ARGZ_H)

View File

@ -30,12 +30,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
#if !defined(LT__PRIVATE_H)
#define LT__PRIVATE_H 1
#ifdef HAVE_CONFIG_H
# if defined(LT_CONFIG_H)
# include LT_CONFIG_H
# else
# include <config.h>
# endif
#if defined(LT_CONFIG_H)
# include LT_CONFIG_H
#else
# include <config.h>
#endif
#include <stdio.h>

View File

@ -30,12 +30,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
#if !defined(LT__STRL_H)
#define LT__STRL_H 1
#ifdef HAVE_CONFIG_H
# if defined(LT_CONFIG_H)
# include LT_CONFIG_H
# else
# include <config.h>
# endif
#if defined(LT_CONFIG_H)
# include LT_CONFIG_H
#else
# include <config.h>
#endif
#include <string.h>

View File

@ -27,12 +27,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
*/
#ifdef HAVE_CONFIG_H
# if defined(LT_CONFIG_H)
# include LT_CONFIG_H
# else
# include <config.h>
# endif
#if defined(LT_CONFIG_H)
# include LT_CONFIG_H
#else
# include <config.h>
#endif
#include <stdio.h>

View File

@ -27,6 +27,7 @@ LT_CONFIG_LTDL_DIR([ltdl], [nonrecursive])
AC_CONFIG_AUX_DIR([ltdl/config])
AC_CONFIG_MACRO_DIR([ltdl/m4])
AC_CONFIG_LIBOBJ_DIR([ltdl])
AC_CONFIG_HEADERS([config.h:config.hin])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_PROG_CC
AM_PROG_CC_C_O
@ -79,7 +80,7 @@ for file in argz.c lt__dirent.c lt__strl.c; do
cp ltdl/$file $file
done
LT_AT_BOOTSTRAP([ignore], [-I ltdl/m4], [ignore], [--add-missing --copy],
LT_AT_BOOTSTRAP([ignore], [-I ltdl/m4], [], [--add-missing --copy],
[], [], [all $tst_dist])
AT_CHECK([test -f ltdl/libltdlc.la])
@ -103,7 +104,7 @@ for file in argz.c lt__dirent.c lt__strl.c; do
cp ltdl/$file $file
done
LT_AT_BOOTSTRAP([ignore], [-I ltdl/m4], [ignore], [--add-missing --copy],
LT_AT_BOOTSTRAP([ignore], [-I ltdl/m4], [], [--add-missing --copy],
[], [], [all $tst_dist])
AT_CHECK([test -f ltdl/libltdlc.la])
@ -129,7 +130,7 @@ for file in argz.c lt__dirent.c lt__strl.c; do
cp ltdl/$file $file
done
LT_AT_BOOTSTRAP([ignore], [-I ltdl/m4], [ignore], [--add-missing --copy],
LT_AT_BOOTSTRAP([ignore], [-I ltdl/m4], [], [--add-missing --copy],
[], [--enable-ltdl-install --prefix=$prefix], [all install $tst_dist])
AT_CHECK([test -f $prefix/lib/libltdl.la])

View File

@ -27,6 +27,7 @@ LT_CONFIG_LTDL_DIR([ltdl], [recursive])
AC_CONFIG_AUX_DIR([ltdl/config])
AC_CONFIG_MACRO_DIR([ltdl/m4])
AC_CONFIG_LIBOBJ_DIR([ltdl])
AC_CONFIG_HEADERS([config.h:config.hin])
AM_INIT_AUTOMAKE([foreign])
LT_INIT
LT_WITH_LTDL