$OpenBSD: patch-Makefile_am,v 1.3 2014/03/09 22:26:56 ajacoutot Exp $

From 815dfc64d40cb0267cb96701409c04b4196e508a Mon Sep 17 00:00:00 2001
From: Ting-Wei Lan <lantw44@gmail.com>
Date: Mon, 20 Jan 2014 07:34:53 +0000
Subject: build: Fix several issues on FreeBSD

--- Makefile.am.orig	Mon Apr 29 19:28:57 2013
+++ Makefile.am	Wed Feb 19 08:13:53 2014
@@ -1,6 +1,10 @@
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS = actions data src docs po test
+SUBDIRS = actions data src docs po
+
+if BUILD_TEST
+SUBDIRS += test
+endif
 
 NULL =
 
