]> git.draconx.ca Git - cdecl99.git/blobdiff - m4/linguas.m4
Add copyright header to bootstrap.
[cdecl99.git] / m4 / linguas.m4
index 5577c8ac79af64acd3d438ef70bd5d4a5608ca33..2ae8a9db32ba529ed2938a4819c5a9f431a3828b 100644 (file)
@@ -16,8 +16,8 @@ AC_REQUIRE([AM_GNU_GETTEXT])
 POFILES=
 MOFILES=
 
-if test -f "$srcdir/$POSUB/LINGUAS"; then
-       ALL_LINGUAS=`sed 's/#.*$//' "$srcdir/$POSUB/LINGUAS"`
+if test -f "$srcdir/po/LINGUAS"; then
+       ALL_LINGUAS=`sed 's/#.*$//' "$srcdir/po/LINGUAS"`
 
        : ${LINGUAS=all}
        if test x"$LINGUAS" != x"all"; then
@@ -36,14 +36,16 @@ if test -f "$srcdir/$POSUB/LINGUAS"; then
        set x $ALL_LINGUAS; shift
        case ${#} in
        0) ;;
-       *) POFILES=`printf "$POSUB/%s.po\n" "${@}"` ;;
+       *) POFILES=`printf "po/%s.po\n" "${@}"` ;;
        esac
 
-       set x $LINGUAS; shift
-       case ${#} in
-       0) ;;
-       *) MOFILES=`printf "$POSUB/%s.mo\n" "${@}"` ;;
-       esac
+       if test x"$USE_NLS" = x"yes"; then
+               set x $LINGUAS; shift
+               case ${#} in
+               0) ;;
+               *) MOFILES=`printf "po/%s.mo\n" "${@}"` ;;
+               esac
+       fi
 fi
 
 AC_SUBST([POFILES])