Add iconv as an extra library on platform that need to link with it
authorIan Lynagh <igloo@earth.li>
Fri, 12 Jun 2009 23:13:07 +0000 (23:13 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 12 Jun 2009 23:13:07 +0000 (23:13 +0000)
For example, we need -liconv on OS X.

base.buildinfo.in [new file with mode: 0644]
configure.ac

diff --git a/base.buildinfo.in b/base.buildinfo.in
new file mode 100644 (file)
index 0000000..9fe31ef
--- /dev/null
@@ -0,0 +1 @@
+extra-libraries: @EXTRA_LIBS@
index b66966e..c261c05 100644 (file)
@@ -102,4 +102,10 @@ FP_CHECK_CONST([O_BINARY], [#include <fcntl.h>], [0])
 # Check for idiosyncracies in some mingw impls of directory handling.
 FP_READDIR_EOF_ERRNO
 
+AC_CHECK_LIB(iconv, iconv_open,
+    [EXTRA_LIBS="$EXTRA_LIBS iconv"])
+
+AC_SUBST(EXTRA_LIBS)
+AC_CONFIG_FILES([base.buildinfo])
+
 AC_OUTPUT