diff options
Diffstat (limited to 'bfd/configure.in')
-rw-r--r-- | bfd/configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/configure.in b/bfd/configure.in index 47631cc..9e72c7a 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -117,6 +117,15 @@ AM_BINUTILS_WARNINGS AC_CONFIG_HEADERS(config.h:config.in) +# PR 14072 +AH_VERBATIM([00_CONFIG_H_CHECK], +[/* Check that config.h is #included before system headers + (this works only for glibc, but that should be enough). */ +#if defined(__GLIBC__) && !defined(__CONFIG_H__) +# error config.h must be #included before system headers +#endif +#define __CONFIG_H__ 1]) + if test -z "$target" ; then AC_MSG_ERROR(Unrecognized target system type; please check config.sub.) fi |