Code

make sure the header gets tested twice
[rrdtool-all.git] / program / configure.ac
index 912e68b719da9ee82c6c324d20bac30eaf16e0f6..fd6f52e740d54bd93a0c7a75bb93ec972453fb07 100644 (file)
@@ -166,6 +166,10 @@ AC_STRUCT_TM
 
 dnl Checks for libraries.
 AC_CHECK_FUNC(acos, , AC_CHECK_LIB(m, acos))
+dnl Use libiconv if we have one but fall back to libc otherwhise
+AC_CHECK_LIB(iconv, iconv_open, , [
+         AC_CHECK_FUNC(iconv_open,,)
+         ])
 
 dnl add pic flag in any case this makes sure all our code is relocatable
 eval `./libtool --config | grep pic_flag`