summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2013-03-11 15:49:45 -0500
committerJason Parker <jparker@digium.com>2013-03-11 15:49:45 -0500
commit09114052f74fe74bbf652189cedefe41b7141b86 (patch)
tree6814977399b53176a53efc7ef5dffda1643b9d27 /aconfigure.ac
parent1873b7a03a08b00140610d531bb6c0bb71e0e91a (diff)
parent1ab0bfe2d710db21587a9bf6c01b2392d5bd8ac7 (diff)
Merge branch 'patch/shared-libraries' of github.com:asterisk/pjproject
Conflicts: aconfigure build/rules.mak
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac13
1 files changed, 12 insertions, 1 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index df99edd..8d184a2 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -420,6 +420,18 @@ AC_ARG_ENABLE(epoll,
AC_MSG_RESULT([select()])
])
+AC_SUBST(ac_shared_libraries)
+AC_ARG_ENABLE(shared,
+ AC_HELP_STRING([--enable-shared],
+ [Build shared libraries]),
+ [if test "$enable_shared" = "yes"; then
+ [ac_shared_libraries=1]
+ CFLAGS="$CFLAGS -fPIC"
+ AC_MSG_RESULT([Building shared libraries... yes])
+ fi],
+ AC_MSG_RESULT([Building shared libraries... no])
+ )
+
dnl ######################
dnl # OS specific files
@@ -811,7 +823,6 @@ AC_ARG_ENABLE(libsamplerate,
AC_MSG_RESULT([Skipping libsamplerate detection])
)
-dnl # Include libsamplerate
AC_SUBST(ac_resample_dll)
AC_ARG_ENABLE(resample_dll,
AC_HELP_STRING([--enable-resample-dll],