diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2012-03-20 19:24:27 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2012-03-20 19:24:27 +0000 |
commit | def6a63671f32867a35ba5c200cd7ba1b3227096 (patch) | |
tree | ae59ae7d3c8c41bb1d043c776880568c4a63920a /bfd/configure | |
parent | 81eb727e537b076d28fadee710bed6bf49bdc2da (diff) | |
download | binutils-redhat-def6a63671f32867a35ba5c200cd7ba1b3227096.tar.gz |
PR ld/12742
* configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
* plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
Add windows.h header include if HAVE_WINDOWS_H is defined.
(dlerror): New static function if windows variant is used instead
of dlfcn.h.
(dlclose): Likewise.
(dlopen): Likewise.
(dlsym): Likewise.
* configure: Regenerated.
* config.in: Regenerated.
Diffstat (limited to 'bfd/configure')
-rwxr-xr-x | bfd/configure | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bfd/configure b/bfd/configure index cff9b265f1..58a57baa59 100755 --- a/bfd/configure +++ b/bfd/configure @@ -13508,6 +13508,22 @@ fi fi + +for ac_header in windows.h dlfcn.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } if test "${gcc_cv_header_string+set}" = set; then : |