Ticket #511: Add --disable-oss option to disable OSS in configure script
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1863 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
03b54859b6
commit
0b46232291
10346
aconfigure
10346
aconfigure
File diff suppressed because it is too large
Load Diff
|
@ -379,6 +379,7 @@ else
|
||||||
AC_MSG_RESULT([Checking sound device backend... null sound])
|
AC_MSG_RESULT([Checking sound device backend... null sound])
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
dnl # Check if ALSA is available
|
||||||
ac_pjmedia_snd=pa_unix
|
ac_pjmedia_snd=pa_unix
|
||||||
AC_CHECK_HEADER(alsa/version.h,
|
AC_CHECK_HEADER(alsa/version.h,
|
||||||
[AC_SUBST(ac_pa_use_alsa,1)
|
[AC_SUBST(ac_pa_use_alsa,1)
|
||||||
|
@ -386,6 +387,19 @@ else
|
||||||
],
|
],
|
||||||
[AC_SUBST(ac_pa_use_alsa,0)])
|
[AC_SUBST(ac_pa_use_alsa,0)])
|
||||||
AC_MSG_RESULT([Checking sound device backend... unix])
|
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
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -15,6 +15,9 @@ AC_PJMEDIA_SND=@ac_pjmedia_snd@
|
||||||
# For Unix, specify if ALSA should be supported
|
# For Unix, specify if ALSA should be supported
|
||||||
AC_PA_USE_ALSA=@ac_pa_use_alsa@
|
AC_PA_USE_ALSA=@ac_pa_use_alsa@
|
||||||
|
|
||||||
|
# For Unix, specify if OSS should be supported
|
||||||
|
AC_PA_USE_OSS=@ac_pa_use_oss@
|
||||||
|
|
||||||
# Additional PortAudio CFLAGS are in @ac_pa_cflags@
|
# Additional PortAudio CFLAGS are in @ac_pa_cflags@
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,11 +34,14 @@ export CFLAGS += -DPA_USE_ALSA=1
|
||||||
export PORTAUDIO_OBJS += pa_linux_alsa.o
|
export PORTAUDIO_OBJS += pa_linux_alsa.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export CFLAGS += -DPA_USE_OSS=1
|
|
||||||
export CFLAGS += @ac_pa_cflags@
|
export CFLAGS += @ac_pa_cflags@
|
||||||
export PORTAUDIO_OBJS += pa_unix_oss.o
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Include OSS?
|
||||||
|
ifeq ($(AC_PA_USE_OSS),1)
|
||||||
|
export CFLAGS += -DPA_USE_OSS=1
|
||||||
|
export PORTAUDIO_OBJS += pa_unix_oss.o
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# PortAudio on MacOS X (using current PortAudio)
|
# PortAudio on MacOS X (using current PortAudio)
|
||||||
|
|
Loading…
Reference in New Issue