$NetBSD: patch-aa,v 1.12 2013/12/03 21:47:36 bsiegert Exp $

Make sure the rpath gets set.
MirBSD support.

--- configure.orig	Fri Jul 19 15:14:26 2013
+++ configure
@@ -11742,7 +11742,7 @@ fi
 
 
 GSL_CFLAGS="-I$includedir"
-GSL_LIBS="-L$libdir -lgsl"
+GSL_LIBS="-Wl,-R$libdir -L$libdir -lgsl"
 LIBM=
 case $host in
 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
@@ -12344,7 +12344,7 @@ _ACEOF
 
 
 case "$host" in
-    *-*-*openbsd*)
+    *-*-*openbsd*|*-*-*mirbsd*)
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: avoiding OpenBSD system log1p - using gsl version" >&5
 $as_echo "avoiding OpenBSD system log1p - using gsl version" >&6; }
        ;;
@@ -12494,7 +12494,7 @@ else
     *-*-*netbsd*)
         ac_cv_c_ieee_interface=netbsd
         ;;
-    *-*-*openbsd*)
+    *-*-*openbsd*|*-*-*mirbsd*)
         ac_cv_c_ieee_interface=openbsd
         ;;
     *-*-*bsd*)
