X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=configure.ng;h=49fc75a969870bf54971fccc76dfc53defbdb431;hp=c0309965de4fb16c492c4244b0a3821bf3c4324c;hb=672a1679639d597cf1c4336687ac78dcc24a9559;hpb=65359ff8f722efdf24700ce05011afc0fef28924 diff --git a/configure.ng b/configure.ng index c0309965..49fc75a9 100644 --- a/configure.ng +++ b/configure.ng @@ -527,11 +527,15 @@ if test "$x_ircplus_on" = "yes"; then LDFLAGS="-L$withval/lib $LDFLAGS" fi AC_CHECK_LIB(iconv, iconv_open) - AC_CHECK_FUNCS(iconv_open, x_iconv_on=yes, + AC_CHECK_FUNCS(iconv_open, x_iconv_on=yes) + if test "$x_iconv_on" != "yes"; then + AC_CHECK_LIB(iconv, libiconv_open) + AC_CHECK_FUNCS(libiconv_open, x_iconv_on=yes) + fi + if test "$x_iconv_on" != "yes"; then AC_MSG_ERROR([Can't enable libiconv support!]) - ) - fi - ] + fi + fi ] ) if test "$x_iconv_on" = "yes"; then AC_DEFINE(ICONV, 1)