s3 aclocal.m4: Fix iconv checks, clean up m4 code
commitab9b30e5757a6124a145431f34e7c64a98824b2c
authorKai Blin <kai@samba.org>
Fri, 4 Dec 2009 08:47:25 +0000 (4 09:47 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 23 Dec 2009 11:07:54 +0000 (23 12:07 +0100)
tree36847aae497b27f56e365e209e86a4b5a18e09b6
parentabd4607ac691d656fe2693dfbc938998153eb7f2
s3 aclocal.m4: Fix iconv checks, clean up m4 code

The check for iconv requiring giconv.h and libgiconv as well as
the check for iconv requiring biconv.h and libbiconv were using the wrong
variable to check for previous successful test results. This caused the checks
to always fall back to libbiconv on systems where that library was available.

In the course of fixing this, I had to clean up the indentation in that piece of
code, and I also rewrote/added some comments.

Many thanks to Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> for the initial
patch and diagnosis.
(cherry picked from commit f5aff324cb9d965bbc75634596c3c40ffc588183)

Fix bug #4832 (iconv library is not used).
(cherry picked from commit 886a90cccbc5cf757c1037ee167282315055c358)
source3/m4/aclocal.m4