Commit eb158727 by Zack Weinberg

aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.

	* aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
	* config.in, configure.in: Regenerate.
	* cpphash.h, java/lex.h: Check both HAVE_ICONV and HAVE_ICONV_H
	before including iconv.h.

From-SVN: r74234
parent efdfd311
2003-12-03 Zack Weinberg <zack@codesourcery.com>
* aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
* config.in, configure.in: Regenerate.
* cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
including iconv.h.
2003-12-03 Alan Modra <amodra@bigpond.net.au>
PR target/11229
......
......@@ -607,6 +607,8 @@ AC_DEFUN([AM_ICONV],
done
])
AC_CHECK_HEADERS([iconv.h])
AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
am_cv_func_iconv="no, consider installing GNU libiconv"
am_cv_lib_iconv=no
......
......@@ -115,6 +115,9 @@
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define if you have the <iconv.h> header file. */
#undef HAVE_ICONV_H
/* Define if you have the <langinfo.h> header file. */
#undef HAVE_LANGINFO_H
......
......@@ -25,7 +25,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "hashtable.h"
#ifdef HAVE_ICONV
#if defined HAVE_ICONV_H && defined HAVE_ICONV
#include <iconv.h>
#else
#define HAVE_ICONV 0
......
2003-12-03 Zack Weinberg <zack@codesourcery.com>
* lex.h: Check both HAVE_ICONV and HAVE_ICONV_H before
including iconv.h.
2003-12-03 Ralph Loader <rcl@ihug.co.nz>
PR java/12374:
......
......@@ -35,7 +35,7 @@ extern FILE *finput;
/* A Unicode character, as read from the input file */
typedef unsigned short unicode_t;
#ifdef HAVE_ICONV
#if defined HAVE_ICONV_H && defined HAVE_ICONV
#include <iconv.h>
#endif /* HAVE_ICONV */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment