diff options
Diffstat (limited to 'binutils-2.21/gold/configure.ac')
-rw-r--r-- | binutils-2.21/gold/configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils-2.21/gold/configure.ac b/binutils-2.21/gold/configure.ac index 1bceb1e..41d3552 100644 --- a/binutils-2.21/gold/configure.ac +++ b/binutils-2.21/gold/configure.ac @@ -445,6 +445,13 @@ AC_LANG_PUSH(C++) AC_CHECK_HEADERS(tr1/unordered_set tr1/unordered_map) AC_CHECK_HEADERS(ext/hash_map ext/hash_set) AC_CHECK_HEADERS(byteswap.h) + +dnl When plugins enabled dynamic loader interface is required. Check headers +dnl which may provide this interface. In case of dlfcn.h add libdl to link. +AC_CHECK_HEADERS(windows.h) +AC_CHECK_HEADERS(dlfcn.h, [DLOPEN_LIBS="-ldl"], [DLOPEN_LIBS=""]) +AC_SUBST(DLOPEN_LIBS) + AC_CHECK_FUNCS(mallinfo posix_fallocate readv sysconf times) AC_CHECK_DECLS([basename, ffs, asprintf, vasprintf, snprintf, vsnprintf, strverscmp, strndup, memmem]) |