diff configure.in @ 434:feb2091ff940

? Trying a new iconv() test in configure.in.
author jcid
date Wed, 22 Oct 2008 23:00:29 +0200
parents b296fd9d8752
children 9144ba0845e7
line wrap: on
line diff
--- a/configure.in	Wed Oct 22 22:13:21 2008 +0200
+++ b/configure.in	Wed Oct 22 23:00:29 2008 +0200
@@ -334,6 +334,7 @@
   LIBS="$old_libs $LIBICONV_LIBS"
   old_cflags="$CFLAGS"
   CFLAGS="$CFLAGS -Werror"
+  AC_LANG_PUSH([C++])
   AC_TRY_COMPILE([#include <iconv.h>],
 [
      const char *inPtr;
@@ -343,6 +344,7 @@
       iconv(encoder, &inPtr, &inLeft, &outPtr, &outRoom);
 ],
 iconv_old=yes,iconv_old=no)
+  AC_LANG_POP([C++])
   LIBS="$old_libs"
   CFLAGS="$old_cflags"