Correct the build breakage that had crept in when we added version numbers
to the library names and start using apr-config as that's what it's for
after all :)


git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/trunk@58752 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configure.in b/configure.in
index 0c59853..6d3ef4d 100644
--- a/configure.in
+++ b/configure.in
@@ -96,13 +96,14 @@
 host_alias=`uname -s`
 case "$host_alias" in
 *BeOS*)
-    dnl ### Horrible Hack !!!
-    dnl ### if we're building on BeOS then we need to add in the
-    dnl ### apr and expat libraries to the build...  Grrrr...
-    dnl
-    dnl ### we should use $apr_config --link-libtool probably...
-    dnl ### or at least $apr_config --apr-la-file
-    EXTRA_OS_LINK="$APR_BUILD_DIR/libapr.la $top_builddir/xml/expat/lib/libexpat.la"
+    dnl ### BeOS requires that ALL symbols resolve at LINK time!
+    dnl ### 
+    dnl ### So, if we're building on BeOS then we need to add in the
+    dnl ### apr and expat libraries to the build or it'll die a truly horrible
+    dnl ### death. We now use the apr-config tool to determine the correct
+    dnl ### library to link against :)
+    aprlib=`$APR_BUILD_DIR/apr-config --link-libtool`
+    EXTRA_OS_LINK="$aprlib $top_builddir/xml/expat/lib/libexpat.la"
     ;;
 *AIX*)
     dnl need such stuff as -liconv to be specified when building libaprutil.la