summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2006-10-26 20:39:04 +0000
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2006-10-26 20:39:04 +0000
commit8b77562fee3a461adb39d4ddef5d3a0e13fb1952 (patch)
tree4470ad0275d1a51f47bb3bda1c050adc0f5bc59a
parenta68608ef1fafdd8b10e70c835c8b8c0b2c57f3b6 (diff)
downloadlibtool-8b77562fee3a461adb39d4ddef5d3a0e13fb1952.tar.gz
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.
-rw-r--r--ChangeLog14
-rw-r--r--HACKING12
-rw-r--r--libltdl/libltdl/lt__dirent.h10
-rw-r--r--libltdl/libltdl/lt__glibc.h10
-rw-r--r--libltdl/libltdl/lt__private.h10
-rw-r--r--libltdl/libltdl/lt__strl.h10
-rw-r--r--libltdl/lt__alloc.c10
-rw-r--r--tests/nonrecursive.at7
-rw-r--r--tests/recursive.at1
9 files changed, 43 insertions, 41 deletions
diff --git a/ChangeLog b/ChangeLog
index 6f05f7c1..26ffc4b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
diff --git a/HACKING b/HACKING
index dd3a7e2b..9fc90707 100644
--- a/HACKING
+++ b/HACKING
@@ -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:
diff --git a/libltdl/libltdl/lt__dirent.h b/libltdl/libltdl/lt__dirent.h
index af3ddf27..be70f5a4 100644
--- a/libltdl/libltdl/lt__dirent.h
+++ b/libltdl/libltdl/lt__dirent.h
@@ -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"
diff --git a/libltdl/libltdl/lt__glibc.h b/libltdl/libltdl/lt__glibc.h
index ee54c359..7019b77c 100644
--- a/libltdl/libltdl/lt__glibc.h
+++ b/libltdl/libltdl/lt__glibc.h
@@ -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)
diff --git a/libltdl/libltdl/lt__private.h b/libltdl/libltdl/lt__private.h
index e712b6b8..32105002 100644
--- a/libltdl/libltdl/lt__private.h
+++ b/libltdl/libltdl/lt__private.h
@@ -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>
diff --git a/libltdl/libltdl/lt__strl.h b/libltdl/libltdl/lt__strl.h
index 2b2de16d..36e553b3 100644
--- a/libltdl/libltdl/lt__strl.h
+++ b/libltdl/libltdl/lt__strl.h
@@ -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>
diff --git a/libltdl/lt__alloc.c b/libltdl/lt__alloc.c
index 7cb8553b..647a0de8 100644
--- a/libltdl/lt__alloc.c
+++ b/libltdl/lt__alloc.c
@@ -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>
diff --git a/tests/nonrecursive.at b/tests/nonrecursive.at
index 44838ce0..29531971 100644
--- a/tests/nonrecursive.at
+++ b/tests/nonrecursive.at
@@ -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])
diff --git a/tests/recursive.at b/tests/recursive.at
index 2a5b1076..ca8108d3 100644
--- a/tests/recursive.at
+++ b/tests/recursive.at
@@ -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