]> Dogcows Code - chaz/tar/commitdiff
Fixed test for iconv_t
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 20 Apr 2004 11:06:08 +0000 (11:06 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 20 Apr 2004 11:06:08 +0000 (11:06 +0000)
configure.ac

index 9279683bba03dcf1d25128ea41733615bf91bc17..cdeb3bf473217d6f21c52faa710c8ccad1b6706e 100644 (file)
@@ -278,11 +278,15 @@ AM_GNU_GETTEXT_VERSION(0.12.1)
 
 # Iconv
 AM_ICONV
-AC_CHECK_HEADERS(iconv.h,
-                 [AC_CHECK_TYPE(iconv_t,:,
-                                AC_DEFINE(iconv_t, int,
-                                          [Conversion descriptor type]),
-                                [#include <iconv.h>])])
+AC_CHECK_HEADERS(iconv.h)
+AC_CHECK_TYPE(iconv_t,:,
+              AC_DEFINE(iconv_t, int,
+                        [Conversion descriptor type]),
+              [
+#ifdef HAVE_ICONV_H
+# include <iconv.h>
+#endif
+])
 
 AC_OUTPUT([Makefile\
            doc/Makefile\
This page took 0.021629 seconds and 4 git commands to generate.