$NetBSD: patch-ac,v 1.3 2012/12/28 14:38:59 bsiegert Exp $

--- configure.ac.orig	Wed Jun 15 11:41:06 2011
+++ configure.ac
@@ -4,6 +4,7 @@ AC_CANONICAL_TARGET([])
 AC_CONFIG_SRCDIR(src/atomic_ops.c)
 AM_INIT_AUTOMAKE
 AC_PROG_RANLIB
+AC_PROG_LIBTOOL
 
 AM_CONFIG_HEADER(src/config.h)
 
@@ -26,7 +27,7 @@ if test "$GCC" = yes; then
   AC_MSG_RESULT(-fPIC)
   PICFLAG=-fPIC
   case "$host" in
-    *-*-solaris*)
+    *-*-solaris*|*-*-mirbsd*)
       # Workaround: at least GCC 3.4.6 does not define this macro.
       CFLAGS="$CFLAGS -D__PIC__=1"
       ;;
