summaryrefslogtreecommitdiff
path: root/source/aclocal.m4
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2007-02-16 19:49:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:02 -0500
commit7acc9421b0643cb04bff1f1d98ecb899f9b09601 (patch)
tree22318301d387fc37f3fa8025999821c29c337802 /source/aclocal.m4
parent155b9e7c74d1a623e018fc2f8ca2e32e4aa3f213 (diff)
downloadsamba-7acc9421b0643cb04bff1f1d98ecb899f9b09601.tar.gz
r21396: fix wbinfo --lookup-rids command
allow detection of libbiconv if all others fail - need for FreeBSD
Diffstat (limited to 'source/aclocal.m4')
-rw-r--r--source/aclocal.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/source/aclocal.m4 b/source/aclocal.m4
index b66a1c253ec..00c57baceef 100644
--- a/source/aclocal.m4
+++ b/source/aclocal.m4
@@ -362,6 +362,23 @@ AC_DEFUN(jm_ICONV,
jm_cv_func_iconv=yes
jm_cv_lib_iconv="iconv")
LIBS="$jm_save_LIBS"
+
+ if test "$jm_cv_lib_iconv" != yes; then
+ jm_save_LIBS="$LIBS"
+ LIBS="$LIBS -lbiconv"
+ AC_TRY_LINK([#include <stdlib.h>
+#include <biconv.h>],
+ [iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);],
+ jm_cv_lib_iconv=yes
+ jm_cv_func_iconv=yes
+ jm_cv_include="biconv.h"
+ jm_cv_biconv=yes
+ jm_cv_lib_iconv="biconv")
+
+ LIBS="$jm_save_LIBS"
+ fi
fi
fi
fi