From: Greg Hudson Date: Mon, 19 Mar 2012 04:40:52 +0000 (+0000) Subject: Make localedir work in build with autoconf 2.5x X-Git-Tag: krb5-1.10.2-final~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6186968eaaa0ae4da5605d1f14c1eb38d5f7ad5;p=thirdparty%2Fkrb5.git Make localedir work in build with autoconf 2.5x autoconf 2.5x does not define localedir, so we have to detect that and do it ourselves. (backported from commit 6abd6ef1d125af12dcf061d677e4315195be4e27) ticket: 7095 version_fixed: 1.10.2 --- diff --git a/src/configure.in b/src/configure.in index 8c786764e1..81eca47937 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1240,6 +1240,12 @@ AC_SUBST([VERTO_CFLAGS]) AC_SUBST([VERTO_LIBS]) AC_SUBST([VERTO_VERSION]) +# Make localedir work in autoconf 2.5x. +if test "${localedir+set}" != set; then + localedir='$(datadir)/locale' +fi +AC_SUBST(localedir) + AC_CONFIG_FILES(krb5-config, [chmod +x krb5-config]) V5_AC_OUTPUT_MAKEFILE(.