summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrond Norbye <trond.norbye@gmail.com>2011-07-15 07:27:52 +0200
committerTrond Norbye <trond.norbye@gmail.com>2011-07-15 07:27:52 +0200
commit3eb599528b1d593bbf1decccd6f8cb0225312306 (patch)
tree586aa3a31a37b67f83acc9d64bd26ce7cf4695cf
parent2f0a742e78b4ae50703bde72f5dff3952ffc13fb (diff)
downloadmemcached-3eb599528b1d593bbf1decccd6f8cb0225312306.tar.gz
Gcc on Solaris sparc wants -R and not -rpath1.4.6
-rw-r--r--configure.ac9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index dc2e572..8750446 100644
--- a/configure.ac
+++ b/configure.ac
@@ -235,10 +235,11 @@ AC_CACHE_CHECK([for libevent directory], ac_cv_libevent_dir, [
if test $libevent_linked = yes; then
if test ! -z "$ledir" ; then
ac_cv_libevent_dir=$ledir
- AS_IF(test "$SUNCC" = "yes",
- [saved_LDFLAGS="$saved_LDFLAGS -Wl,-R$ledir/lib"])
- AS_IF(test "$GCC" = "yes",
- [saved_LDFLAGS="$saved_LDFLAGS -Wl,-rpath=$ledir/lib"])
+ _myos=`echo $target_os | cut -f 1 -d .`
+ AS_IF(test "$SUNCC" = "yes" -o "x$_myos" = "xsolaris2",
+ [saved_LDFLAGS="$saved_LDFLAGS -Wl,-R$ledir/lib"],
+ [AS_IF(test "$GCC" = "yes",
+ [saved_LDFLAGS="$saved_LDFLAGS -Wl,-rpath=$ledir/lib"])])
else
ac_cv_libevent_dir="(system)"
fi