Fix DATADIRNAME on OpenBSD.
authorAntoine Jacoutot <ajacoutot@openbsd.org>
Tue, 4 Oct 2011 05:52:10 +0000 (07:52 +0200)
committerAntoine Jacoutot <ajacoutot@openbsd.org>
Tue, 4 Oct 2011 14:30:18 +0000 (16:30 +0200)
On OpenBSD translation files are always installed under PREFIX/share/locale,
there is no such thing as PREFIX/lib/locale; according to that, set
DATADIRNAME to "share".

m4macros/glib-gettext.m4

index 77aa9f6..c64e64f 100644 (file)
@@ -239,6 +239,10 @@ msgstr ""
              [CATOBJEXT=.mo
                DATADIRNAME=lib])
            ;;
+           *-*-openbsd*)
+           CATOBJEXT=.mo
+            DATADIRNAME=share
+           ;;
            *)
            CATOBJEXT=.mo
             DATADIRNAME=lib