mirror of https://github.com/odrling/Aegisub
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:
parent
848f123a98
commit
f430d02659
|
@ -424,9 +424,7 @@ if test "$agi_cv_with_iconv" = "no" ; then
|
|||
AC_MSG_FAILURE([Please install a working iconv library.])
|
||||
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>
|
||||
int main(void) {
|
||||
iconv_t cd = iconv_open("UTF-16", "UTF-8");
|
||||
|
@ -437,9 +435,8 @@ int main(void) {
|
|||
return 0;
|
||||
} ])
|
||||
|
||||
if test "$agi_cv_with_iconv_const" = "yes"; then
|
||||
AC_DEFINE(AGI_ICONV_CONST, 1, [Enable if your version if iconv is const (annoying!)])
|
||||
fi
|
||||
if test "$agi_cv_with_iconv_const" = "yes"; then
|
||||
AC_DEFINE(AGI_ICONV_CONST, 1, [Enable if iconv expects the in argument to be const])
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue