diff configure.in @ 113:9ca877f93161

- another tweak to iconv detection for OpenBSD.
author jcid
date Thu, 31 Jan 2008 23:30:06 +0100
parents 9478813e0c85
children d87c151837f4
line wrap: on
line diff
--- a/configure.in	Thu Jan 31 22:27:45 2008 +0100
+++ b/configure.in	Thu Jan 31 23:30:06 2008 +0100
@@ -310,8 +310,14 @@
 fi
 if test "x$iconv_ok" = "xno"; then
   dnl Test for OpenBSD
+  old_libs="$LIBS"
+  LIBS="$old_libs -liconv"
   AC_TRY_COMPILE([#include <iconv.h>],[iconv_open("","");],
                  iconv_ok=yes, iconv_ok=no)
+  LIBS="$old_libs"
+  if test "x$iconv_ok" = "xyes"; then
+     LIBICONV_LIBS="-liconv"
+  fi
 fi
 
 if test "x$iconv_ok" = "xno"; then