]> granicus.if.org Git - mutt/commitdiff
Iconv detection patch. From Lars Hecking.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 26 Jun 2000 10:56:52 +0000 (10:56 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 26 Jun 2000 10:56:52 +0000 (10:56 +0000)
configure.in

index dd2cbe0ff4e4d94c3d485c468fe04388bfe72ae8..148ca120cc00096cc3b151f1b5c9fc565cb747cc 100644 (file)
@@ -395,6 +395,15 @@ AC_ARG_WITH(sharedir, [  --with-sharedir=PATH       Specify where to put arch in
 sharedir=$mutt_cv_sharedir
 AC_SUBST(sharedir)
 
+AC_ARG_WITH(iconv, [  --with-iconv=DIR           Where libiconv is installed ],
+       [if test $withval != yes; then
+               mutt_cv_iconv=$withval
+       fi
+       if test x$mutt_cv_iconv != x/usr; then
+               CPPFLAGS="$CPPFLAGS -I${mutt_cv_iconv}/include"
+               LDFLAGS="-L${mutt_cv_iconv}/lib $LDFLAGS"
+       fi])
+
 LIBICONV=
 AC_CACHE_CHECK(for iconv, mutt_cv_func_iconv,
     [ mutt_cv_func_iconv=no