Make localedir work in build with autoconf 2.5x
authorGreg Hudson <ghudson@mit.edu>
Mon, 19 Mar 2012 04:40:52 +0000 (04:40 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 19 Mar 2012 04:40:52 +0000 (04:40 +0000)
autoconf 2.5x does not define localedir, so we have to detect that and
do it ourselves.

ticket: 7095
target_version: 1.10.2
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25777 dc483132-0cff-0310-8789-dd5450dbe970

src/configure.in

index 1c8279b03023bb72633c80c3b7125331b4b92211..0a7ec6b1869e479b12f1dfcc73cd8f22eeba02ff 100644 (file)
@@ -1245,6 +1245,12 @@ AC_SUBST([VERTO_VERSION])
 
 AC_PATH_PROG(GROFF, groff)
 
+# 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(.