summaryrefslogtreecommitdiff
path: root/build/apr_hints.m4
diff options
context:
space:
mode:
authorjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2006-07-11 22:19:40 +0000
committerjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2006-07-11 22:19:40 +0000
commit8cec15c0fafc096c944b9cba1689f72c50df3b80 (patch)
tree0c445fcfa4868e2b9c893ce26b08e96745d13502 /build/apr_hints.m4
parent5e5bbc241b316ac337e62e3530e102feca51c62f (diff)
downloadlibapr-8cec15c0fafc096c944b9cba1689f72c50df3b80.tar.gz
Allow configure to complete successfully on mingw.
Originally titled: [patch 02/17] Windows library dependencies --- Windows symbols may a suffix of @<arg count>. A new macro APR_CHECK_DLL_FUNC looks for a @ sign in the function name; when present it will verify a symbol exists with the correct argument count. Otherwise, APR_CHECK_DLL_FUNC falls back to emulating AC_CHECK_LIB. Enables native threads, locking, DSO loading and shared memory. --- Submitted by: John Mark Vandenberg Tweaked by: Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@421013 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/apr_hints.m4')
-rw-r--r--build/apr_hints.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/build/apr_hints.m4 b/build/apr_hints.m4
index 5f313f53c..6eb79794e 100644
--- a/build/apr_hints.m4
+++ b/build/apr_hints.m4
@@ -422,6 +422,9 @@ dnl # Not a problem in 10.20. Otherwise, who knows?
*cygwin*)
APR_ADDTO(CPPFLAGS, [-DCYGWIN])
;;
+ *mingw*)
+ APR_ADDTO(LDFLAGS, [-Wl,--enable-auto-import,--subsystem,console])
+ ;;
esac
fi