aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Aaron Ecay <aaronecay@gmail.com>2010-04-11 19:44:53 -0400
committerGravatar Carl Worth <cworth@cworth.org>2010-04-14 16:10:27 -0700
commit8c8079a8b14fac5e8ca6b682e5c76e08a824f2e7 (patch)
tree3458c569765850caeeebc8f7182806008095748e /configure
parentf20640835823f28908005ef9d5dbc90c8a479f62 (diff)
Add infrastructure for building shared library on OS X.
This patch adds a configure check for OS X (actually Darwin), and sets up the Makefiles to build a proper shared library on that platform. Signed-off-by: Aaron Ecay <aaronecay@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure
index 90a399ca..8af3dc9e 100755
--- a/configure
+++ b/configure
@@ -234,6 +234,15 @@ else
have_emacs=0
fi
+printf "Checking for Mac OS X (for shared library)... "
+if [ `uname` = "Darwin" ] ; then
+ printf "Yes.\n"
+ mac_os_x=1
+else
+ printf "No.\n"
+ mac_os_x=0
+fi
+
if [ $errors -gt 0 ]; then
cat <<EOF
@@ -399,6 +408,10 @@ HAVE_GETLINE = ${have_getline}
# build its own version)
HAVE_STRCASESTR = ${have_strcasestr}
+# Whether we are building on OS X. This will affect how we build the
+# shared library.
+MAC_OS_X = ${mac_os_x}
+
# Flags needed to compile and link against Xapian
XAPIAN_CXXFLAGS = ${xapian_cxxflags}
XAPIAN_LDFLAGS = ${xapian_ldflags}