# HG changeset patch # User atmos4 # Date 1030760000 0 # Node ID 6f7ae14f29a81615b43f7e5b312f810bd9c88cc3 # Parent 0bfd137f492a0fbb9555f1a5d958f1f8154e6acb generalized iconv detection diff -r 0bfd137f492a -r 6f7ae14f29a8 configure --- a/configure Sat Aug 31 01:44:54 2002 +0000 +++ b/configure Sat Aug 31 02:13:20 2002 +0000 @@ -3587,17 +3587,15 @@ } EOF _iconv=no - if freebsd || bsdos || openbsd ; then - cc_check -lm -liconv && _iconv=yes + if cc_check -lm -liconv ; then + _iconv=yes else cc_check -lm && _iconv=yes fi fi if test "$_iconv" = yes ; then _def_iconv='#define USE_ICONV 1' - freebsd && _ld_iconv='-liconv' - bsdos && _ld_iconv='-liconv' - openbsd && _ld_iconv='-liconv' + linux || _ld_iconv='-liconv' else _def_iconv='#undef USE_ICONV' fi