From: Peter Verthez Date: Tue, 1 Oct 2002 16:16:35 +0000 (+0000) Subject: Set ICONV_PATH to path of iconv binary. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=0767205183bd541a80b83ce4578e22c9b5fe9fa4;p=gedcom-parse.git Set ICONV_PATH to path of iconv binary. --- diff --git a/acinclude.m4 b/acinclude.m4 index a4799c9..99f0e9f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -10,6 +10,12 @@ AC_DEFUN([AM_ICONV], AC_ARG_WITH([libiconv-prefix], [ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [ + # Addition Peter Verthez + ICONV_PATH=`echo "$withval" | tr : '/dir'` + ICONV_PATH="$ICONV_PATH/dir" + AC_SUBST(ICONV_PATH) + # end of addition + 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