@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2008/06/12 02:14:37 joerg Exp $
+# $NetBSD: Makefile,v 1.10 2009/02/21 12:56:12 adrianp Exp $
MODNAME= mbstring
CATEGORIES+= misc
@@ -11,6 +11,14 @@
USE_PHP_EXT_PATCHES= yes
CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
+
+.include "../../mk/bsd.prefs.mk"
+
+# Work around for pdksh bug documented in PR#40709
+# This should work on at least SunOS 5.10 and 5.11
+.if ${OPSYS} == "SunOS"
+CONFIG_SHELL= /usr/bin/ksh
+.endif
.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"