From b86dc2dab4981ba92d683b866badc0b32be39120 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 17 Jan 2022 22:00:26 -0500 Subject: newlib: iconv: autogenerate iconv define list The list of iconv to/from defines is hand maintained in newlib.hin. Lets leverage mkdeps.pl to generate this list automatically from the list of known encodings. The newlib.hin list is up-to-date, so the list in iconv.m4 matches the list already generated. --- newlib/configure.ac | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'newlib/configure.ac') diff --git a/newlib/configure.ac b/newlib/configure.ac index e1fb2ad0e..d95000db9 100644 --- a/newlib/configure.ac +++ b/newlib/configure.ac @@ -586,9 +586,9 @@ if test "x${iconv_encodings}" != "x" \ dnl Enable appropriate option in newlib.h for encoding in ${iconv_encodings}; do opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - AC_DEFINE_UNQUOTED($opt,1) + eval "$opt=1" opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - AC_DEFINE_UNQUOTED($opt,1) + eval "$opt=1" done dnl iconv_to_encodings @@ -605,7 +605,7 @@ if test "x${iconv_encodings}" != "x" \ dnl Enable appropriate option in newlib.h for encoding in ${iconv_to_encodings}; do opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - AC_DEFINE_UNQUOTED($opt,1) + eval "$opt=1" done dnl iconv_from_encodings @@ -622,9 +622,10 @@ if test "x${iconv_encodings}" != "x" \ dnl Enable appropriate option in newlib.h for encoding in ${iconv_from_encodings}; do opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - AC_DEFINE_UNQUOTED($opt,1) + eval "$opt=1" done fi; +NEWLIB_ICONV_DEFINES AC_CACHE_CHECK(for .preinit_array/.init_array/.fini_array support, libc_cv_initfinit_array, [dnl -- cgit v1.2.3