]> arthur.barton.de Git - ngircd-alex.git/blobdiff - configure.ng
Make configure[.ng] compatible with autoconf 1.10 again
[ngircd-alex.git] / configure.ng
index c0309965de4fb16c492c4244b0a3821bf3c4324c..49fc75a969870bf54971fccc76dfc53defbdb431 100644 (file)
@@ -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)