diff options
author | Jason Parker <jparker@digium.com> | 2013-02-12 14:00:13 -0600 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2013-03-11 15:24:21 -0500 |
commit | 9e5b6c43b13a561b09908d2a57edb6c96e4fedaf (patch) | |
tree | 9a63bb6b422698f6cbf4a8bde776c7e457afb892 /aconfigure.ac | |
parent | 74ce69c77a8ed993870e6cc22582a1dea8e918e6 (diff) |
Add support for building and using shared libraries.
Diffstat (limited to 'aconfigure.ac')
-rw-r--r-- | aconfigure.ac | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/aconfigure.ac b/aconfigure.ac index 9afce8d..1e93de9 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -426,6 +426,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 @@ -817,7 +829,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], |