aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2004-10-20 21:36:47 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2004-10-20 22:36:47 +0100
commita03ea89be35173d7ec33cc329fbb565382c18418 (patch)
treefce1781edbf9acb00fb268e3b247868f4fc209db /gcc/configure
parentd99d0f209ccbe2513d41226a9e1ab06394526867 (diff)
downloadgcc-a03ea89be35173d7ec33cc329fbb565382c18418.zip
gcc-a03ea89be35173d7ec33cc329fbb565382c18418.tar.gz
gcc-a03ea89be35173d7ec33cc329fbb565382c18418.tar.bz2
re PR java/15575 (HAVE_LANGINFO_CODESET never defined)
2004-10-20 Bryce McKinlay <mckinlay@redhat.com> PR java/15575 * configure.ac: Declare AM_LANGINFO_CODESET. * aclocal.m4: Define AM_LANGINFO_CODESET. * configure, config.in: Rebuilt. From-SVN: r89345
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure65
1 files changed, 65 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure
index 6805f56..402585e 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -11039,6 +11039,71 @@ _ACEOF
fi
+
+ echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
+echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
+if test "${am_cv_langinfo_codeset+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <langinfo.h>
+int
+main ()
+{
+char* cs = nl_langinfo(CODESET);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ am_cv_langinfo_codeset=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+am_cv_langinfo_codeset=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+fi
+echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
+echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
+ if test $am_cv_langinfo_codeset = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LANGINFO_CODESET 1
+_ACEOF
+
+ fi
+
+
# We will need to find libiberty.h and ansidecl.h
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"