Skip to content

Commit

Permalink
Add enable static build option
Browse files Browse the repository at this point in the history
  • Loading branch information
afbjorklund committed Dec 23, 2015
1 parent 92e7b10 commit 4dc540e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions configure.ac
Expand Up @@ -82,12 +82,23 @@ dnl Check if -lm is needed.
AC_SEARCH_LIBS(cos, m)


AC_ARG_ENABLE(static,
[AS_HELP_STRING([--enable-static],
[enable static link])])

if test x${enable_static} != x; then
extra_ldflags="-static"
fi

AC_ARG_ENABLE(memcached,
[AS_HELP_STRING([--enable-memcached],
[enable memcached as a cache backend])])

dnl enable-memcached: Check if -lmemcached is needed.
if test x${enable_memcached} != x; then
if test x${enable_static} != x; then
AC_CHECK_LIB(stdc++, __gxx_personality_v0,[])
fi
AC_CHECK_LIB(memcached, memcached,[],[
echo ' WARNING: recent version libmemcached not found'
echo ' please install libmemcached>1.0 with development files'
Expand Down

0 comments on commit 4dc540e

Please sign in to comment.