diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-03-12 22:44:24 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-03-12 22:44:24 +0000 |
commit | e81e215119ce967ecfcbd8d3de9bc136dac67a8f (patch) | |
tree | 43dd00443c55a369168482c5295f10b574bccea0 /aconfigure.ac | |
parent | e2aa3dae84706748ba106c352557c9d9cea90efc (diff) |
Ticket #511: Add --disable-oss option to disable OSS in configure script
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1863 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r-- | aconfigure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac index ea26160a..5b0f2ae6 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -379,6 +379,7 @@ else AC_MSG_RESULT([Checking sound device backend... null sound]) ;; *) + dnl # Check if ALSA is available ac_pjmedia_snd=pa_unix AC_CHECK_HEADER(alsa/version.h, [AC_SUBST(ac_pa_use_alsa,1) @@ -386,6 +387,19 @@ else ], [AC_SUBST(ac_pa_use_alsa,0)]) AC_MSG_RESULT([Checking sound device backend... unix]) + + dnl # Check if OSS is disabled + AC_SUBST(ac_pa_use_oss,1) + AC_ARG_ENABLE(oss, + AC_HELP_STRING([--disable-oss], + [Disable OSS audio (default: not disabled)]) + , + [ + if test "$enable_oss" = "no"; then + [ac_pa_use_oss=0] + AC_MSG_RESULT([Checking if OSS audio is disabled... yes]) + fi + ]) ;; esac fi |