check for bfd_uncompress_section_contents instead of bfd_init, because
authorSimon Marlow <marlowsd@gmail.com>
Wed, 1 Jun 2011 08:58:21 +0000 (09:58 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 1 Jun 2011 09:56:05 +0000 (10:56 +0100)
the former will fail if libbfd is a static library and has a libz
dependency that we don't know about (#3756)

configure.ac

index 2de4d8a..b634bbf 100644 (file)
@@ -782,7 +782,7 @@ fi
 dnl ** check whether this machine has BFD and liberty installed (used for debugging)
 dnl    the order of these tests matters: bfd needs liberty
 AC_CHECK_LIB(iberty, xmalloc)
 dnl ** check whether this machine has BFD and liberty installed (used for debugging)
 dnl    the order of these tests matters: bfd needs liberty
 AC_CHECK_LIB(iberty, xmalloc)
-AC_CHECK_LIB(bfd,    bfd_init)
+AC_CHECK_LIB(bfd,    bfd_uncompress_section_contents)
 
 dnl ################################################################
 dnl Check for libraries
 
 dnl ################################################################
 dnl Check for libraries