svn rev #25451: branches/krb5-1-10/src/

tlyu@MIT.EDU tlyu at MIT.EDU
Mon Nov 7 17:35:42 EST 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25451
Commit By: tlyu
Log Message:
ticket: 6997
version_fixed: 1.10
status: resolved

pull up r25425 from trunk

 ------------------------------------------------------------------------
 r25425 | ghudson | 2011-10-31 23:49:16 -0400 (Mon, 31 Oct 2011) | 10 lines

 ticket: 6997
 target_version: 1.10
 tags: pullup

 Conditionalize po subdir on msgfmt, not dgetext

 The presence of dgettext in libc or libintl doesn't imply that msgfmt
 is installed, so conditionalize building the po subdir on whether
 msgfmt is installed.


Changed Files:
U   branches/krb5-1-10/src/configure.in
Modified: branches/krb5-1-10/src/configure.in
===================================================================
--- branches/krb5-1-10/src/configure.in	2011-11-07 22:35:39 UTC (rev 25450)
+++ branches/krb5-1-10/src/configure.in	2011-11-07 22:35:41 UTC (rev 25451)
@@ -66,12 +66,16 @@
 ])
 AC_SUBST(LIBUTIL)
 
-po=
 AC_CHECK_HEADER(libintl.h, [
 	AC_SEARCH_LIBS(dgettext, intl, [
-		po=po
 		AC_DEFINE(ENABLE_NLS, 1,
 			[Define if translation functions should be used.])])])
+
+AC_CHECK_PROG(MSGFMT,msgfmt,msgfmt)
+po=
+if test x"$MSGFMT" != x; then
+	po=po
+fi
 AC_SUBST(po)
 
 # for kdc




More information about the cvs-krb5 mailing list