libctf, elfcpp, gold: do not assume that <byteswap.h> contains bswap_*
[deliverable/binutils-gdb.git] / gold / configure.ac
index c4c93a036cd8d39e7cebba3ffa885f09f79de00f..eca4f01c111f24cb9fc4c79a0435b906c92b4bf3 100644 (file)
@@ -602,6 +602,9 @@ AC_CHECK_HEADERS(tr1/unordered_set tr1/unordered_map)
 AC_CHECK_HEADERS(ext/hash_map ext/hash_set)
 AC_CHECK_HEADERS(byteswap.h)
 
+dnl Check for bswap_{16,32,64}
+AC_CHECK_DECLS([bswap_16, bswap_32, bswap_64], [], [], [[#include <byteswap.h>]])
+
 dnl When plugins enabled dynamic loader interface is required. Check headers
 dnl which may provide this interface. Add the necessary library to link.
 AC_CHECK_HEADERS(windows.h)
This page took 0.027415 seconds and 4 git commands to generate.