Solaris 9 and HP-UX 11.11 need us to look for libiconv_open,
authorWayne Davison <wayned@samba.org>
Mon, 6 Feb 2006 08:57:16 +0000 (08:57 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 6 Feb 2006 08:57:16 +0000 (08:57 +0000)
not iconv_open (perhaps because iconf.h wasn't included in
the autoconf test).

configure.in

index a312b39..89b03aa 100644 (file)
@@ -367,7 +367,10 @@ if test x"$ac_cv_func_connect" = x"no"; then
 fi
 
 AC_SEARCH_LIBS(inet_ntop, resolv)
-AC_SEARCH_LIBS(iconv_open, iconv)
+
+# Solaris and HP-UX weirdness:
+# Search for libiconv_open (not iconv_open) to discover if -liconv is needed!
+AC_SEARCH_LIBS(libiconv_open, iconv)
 
 dnl AC_MSG_NOTICE([Looking in libraries: $LIBS])