Don't check if iconv is enabled before checking if its argument needs to be const as it's a required dep which is always enabled

Originally committed to SVN as r6075.
This commit is contained in:
Thomas Goyne 2011-12-22 21:21:12 +00:00
parent 848f123a98
commit f430d02659

View file

@ -424,8 +424,6 @@ if test "$agi_cv_with_iconv" = "no" ; then
AC_MSG_FAILURE([Please install a working iconv library.]) AC_MSG_FAILURE([Please install a working iconv library.])
fi fi
if test "$agi_cv_with_iconv" = "yes"; then
AC_AGI_COMPILE([iconv (const)], [iconv_const], [$ICONV_CFLAGS], [$ICONV_LDFLAGS],[ AC_AGI_COMPILE([iconv (const)], [iconv_const], [$ICONV_CFLAGS], [$ICONV_LDFLAGS],[
#include <iconv.h> #include <iconv.h>
int main(void) { int main(void) {
@ -438,8 +436,7 @@ int main(void) {
} ]) } ])
if test "$agi_cv_with_iconv_const" = "yes"; then if test "$agi_cv_with_iconv_const" = "yes"; then
AC_DEFINE(AGI_ICONV_CONST, 1, [Enable if your version if iconv is const (annoying!)]) AC_DEFINE(AGI_ICONV_CONST, 1, [Enable if iconv expects the in argument to be const])
fi
fi fi