diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e01a306..59a3d9c 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,10 @@ AC_ARG_ENABLE([large-tiles], AS_HELP_STRING([--enable-large-tiles], OLDLIBS="$LIBS" LIBS= use_libiconv=false +## Some iconv libraries like GNU's libiconv define iconv_open as a macro to +## libiconv_open. As SEARCH_LIBS tests linking not compilation, check for +## libiconv_open first. SEARCH_LIBS is smart enough to not add -liconv a second +## time in case both versions are defined in the local libiconv. AC_SEARCH_LIBS([libiconv_open], [iconv], use_libiconv=true) AC_SEARCH_LIBS([iconv_open], [iconv], use_libiconv=true) AS_IF([test "x$use_libiconv" = xtrue], [ |