If you've compiled your base system with WITH_ICONV, then use it for svn

alongside the other consumers (bsdtar, csh etc).

The svnlite build gets upset when it hits non-ascii characters in
inconvenient places.
This commit is contained in:
Peter Wemm 2013-07-01 07:07:35 +00:00
parent e513819332
commit 0d5daade6d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252457
2 changed files with 10 additions and 0 deletions

View File

@ -28,5 +28,11 @@ CFLAGS+= -DHAVE_CONFIG_H \
-I${APR}/include/arch/unix \
-I${APR}/include
.include <bsd.own.mk>
.if ${MK_ICONV} == "yes"
CFLAGS+= -DHAVE_ICONV_H=1 -DAPU_HAVE_ICONV=1
.endif
.include <bsd.lib.mk>

View File

@ -107,8 +107,12 @@
#define APU_HAVE_OPENSSL 0
#define APU_HAVE_NSS 0
#ifndef APU_HAVE_APR_ICONV
#define APU_HAVE_APR_ICONV 0
#endif
#ifndef APU_HAVE_ICONV
#define APU_HAVE_ICONV 0
#endif
#define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
#endif /* APU_H */