rktio: fix configure detection of iconv

This commit is contained in:
Matthew Flatt 2017-06-24 07:37:40 -06:00
parent c5022c5d4f
commit 5dbeb39a01
2 changed files with 7 additions and 2 deletions

View File

@ -621,6 +621,7 @@ ac_includes_default="\
ac_subst_vars='LTLIBOBJS
LIBOBJS
RKTIO_NO_ICONV
HIDE_STANDALONE
HIDE_NOT_STANDALONE
LTA
@ -3967,7 +3968,7 @@ $as_echo "$iconv_usage_result" >&6; }
fi
if test "${enable_iconv}" = "no" ; then
$as_echo "#define RKTIO_NO_ICON 1" >>confdefs.h
$as_echo "#define RKTIO_NO_ICONV 1" >>confdefs.h
fi
@ -4279,6 +4280,8 @@ fi
makefiles="Makefile"

View File

@ -180,7 +180,7 @@ if test "${skip_iconv_check}" = "no" ; then
AC_MSG_RESULT($iconv_usage_result)
fi
if test "${enable_iconv}" = "no" ; then
AC_DEFINE(RKTIO_NO_ICON,1,[Do not use iconv])
AC_DEFINE(RKTIO_NO_ICONV,1,[Do not use iconv])
fi
if test "${enable_iconv}" = "yes" ; then
@ -404,6 +404,8 @@ AC_SUBST(LTA)
AC_SUBST(HIDE_NOT_STANDALONE)
AC_SUBST(HIDE_STANDALONE)
AC_SUBST(RKTIO_NO_ICONV)
makefiles="Makefile"
AC_OUTPUT($makefiles)