$OpenBSD: patch-aclocal_m4,v 1.1 2012/09/10 08:49:18 ajacoutot Exp $

Fix DATADIRNAME: see LOCALBASE/share/aclocal/{glib-gettext.m4,intltool.m4}

--- aclocal.m4.orig	Mon Sep 10 10:40:49 2012
+++ aclocal.m4	Mon Sep 10 10:41:10 2012
@@ -436,6 +436,8 @@ fi
 # Substitute ALL_LINGUAS so we can use it in po/Makefile
 AC_SUBST(ALL_LINGUAS)
 
+AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
+
 # Set DATADIRNAME correctly if it is not set yet
 # (copied from glib-gettext.m4)
 if test -z "$DATADIRNAME"; then
@@ -453,6 +455,9 @@ if test -z "$DATADIRNAME"; then
     dnl in this case.
     AC_CHECK_FUNC(bind_textdomain_codeset,
       [DATADIRNAME=share], [DATADIRNAME=lib])
+    ;;
+    *-*-openbsd*)
+    [DATADIRNAME=share]
     ;;
     *)
     [DATADIRNAME=lib]
