From: Greg Hudson Date: Wed, 24 Aug 2011 02:48:07 +0000 (+0000) Subject: Only build the po subdir if i18n is enabled X-Git-Tag: krb5-1.10-alpha1~263 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c02f8208dd3e91bf090afd1c1f152a9def3486f8;p=krb5.git Only build the po subdir if i18n is enabled Also clean the built message catalogs in "make clean". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25112 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/Makefile.in b/src/Makefile.in index f2049dfbf..f1dedbc21 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -15,7 +15,7 @@ SUBDIRS=util include lib \ plugins/preauth/pkinit \ plugins/preauth/encrypted_challenge \ kdc kadmin slave clients appl tests \ - config-files gen-manpages po + config-files gen-manpages @po@ WINSUBDIRS=include util lib ccapi windows clients appl BUILDTOP=$(REL). LOCALINCLUDES = -I$(srcdir) diff --git a/src/configure.in b/src/configure.in index a5fa4eeea..4e61e8f59 100644 --- a/src/configure.in +++ b/src/configure.in @@ -67,10 +67,13 @@ LIBUTIL=-lutil ]) 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_SUBST(po) # for kdc AC_CHECK_HEADERS(syslog.h sys/sockio.h ifaddrs.h unistd.h) diff --git a/src/po/Makefile.in b/src/po/Makefile.in index 9d67f874c..4b58c726e 100644 --- a/src/po/Makefile.in +++ b/src/po/Makefile.in @@ -48,3 +48,6 @@ install:: install -c $$c \ $(DESTDIR)$(KRB5_LOCALEDIR)/$$lang/LC_MESSAGES/$(DOMAIN).mo; \ done + +clean:: + $(RM) $(CATALOGS)