summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
Diffstat (limited to 'converters')
-rw-r--r--converters/libiconv/builtin.mk17
1 files changed, 16 insertions, 1 deletions
diff --git a/converters/libiconv/builtin.mk b/converters/libiconv/builtin.mk
index e9f815b66dc..6ecc476c4df 100644
--- a/converters/libiconv/builtin.mk
+++ b/converters/libiconv/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.4 2004/04/26 04:53:23 jlam Exp $
+# $NetBSD: builtin.mk,v 1.5 2004/06/04 05:21:14 reed Exp $
.if !defined(_LIBICONV_FOUND)
_LIBICONV_FOUND!= \
@@ -87,6 +87,21 @@ USE_BUILTIN.iconv= no
. endif
. endfor
. endif
+# XXX
+# XXX By default, assume that the native iconv on Linux systems using GLIBC
+# XXX supports GNU libiconv's API.
+# XXX
+# XXX Determine we are using the builtin iconv regardless of whether it's
+# XXX truly GNU libiconv.
+# XXX
+. if (${OPSYS} == "Linux") && exists(${_ICONV_H})
+USE_BUILTIN.iconv!= \
+ if ${GREP} -q "This file is part of the GNU C Library" ${_ICONV_H}; then \
+ ${ECHO} "yes"; \
+ else \
+ ${ECHO} "no"; \
+ fi
+. endif
. endif
. if defined(USE_GNU_ICONV)