Commit a1162842 authored by Lars Hecking's avatar Lars Hecking

The noiconv patch.

parent b6628dee
......@@ -7,14 +7,19 @@ AC_DEFUN([MUTT_AM_ICONV],
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
dnl those with the standalone portable GNU libiconv installed).
AC_ARG_WITH([libiconv-prefix],
[ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [
AC_ARG_WITH([iconv],
[ --with-iconv[=DIR] search for libiconv in DIR/include and DIR/lib], [
if test "$withval" != no ; then
for dir in `echo "$withval" | tr : ' '`; do
if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
done
])
else
use_iconv=no
fi
],use_iconv=yes)
if test "$use_iconv" = yes ; then
AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
am_cv_func_iconv="no, consider installing GNU libiconv"
am_cv_lib_iconv=no
......@@ -66,4 +71,6 @@ size_t iconv();
LIBICONV="-liconv"
fi
AC_SUBST(LIBICONV)
fi # use_iconv
])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment