diff options
author | ng0 <ng0@n0.is> | 2019-10-26 12:21:41 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-10-26 12:21:41 +0000 |
commit | 9bd7a50d91af224ea8befaa36f7e1400601267b2 (patch) | |
tree | af99a8e2adbb9cc80e94e3d8686c3597a1ca563d | |
parent | c074e07068940dd4a60bef8bcea8df31c3df45ca (diff) | |
download | gnunet-9bd7a50d91af224ea8befaa36f7e1400601267b2.tar.gz gnunet-9bd7a50d91af224ea8befaa36f7e1400601267b2.zip |
configure: Add --with-libpulse=PREFIX
-rw-r--r-- | configure.ac | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index ba8fdb8c6..9580756f5 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -694,10 +694,42 @@ AS_IF([test "x$jansson" = x1], | |||
694 | # check for libpulse(audio) library | 694 | # check for libpulse(audio) library |
695 | pulse=0 | 695 | pulse=0 |
696 | libpulse_msg="no" | 696 | libpulse_msg="no" |
697 | CHECK_LIBHEADER(LIBPULSE, pulse, pa_stream_peek, pulse/simple.h,pulse=1,) | 697 | AC_MSG_CHECKING(for libpulse) |
698 | AS_IF([test "$pulse" = 1], | 698 | # TODO: --with-libpulse or --with-pulseaudio? What is more established |
699 | # TODO: in this context? | ||
700 | AC_ARG_WITH(libpulse, | ||
701 | [ --with-libpulse=PREFIX (base of libpulse installation)], | ||
702 | [AC_MSG_RESULT([$with_libpulse]) | ||
703 | AS_CASE([$with_libpulse], | ||
704 | [no],[], | ||
705 | [yes],[ | ||
706 | CHECK_LIBHEADER(LIBPULSE, | ||
707 | pulse, | ||
708 | pa_stream_peek, | ||
709 | pulse/simple.h, | ||
710 | pulse=1,) | ||
711 | ],[ | ||
712 | LDFLAGS="-L$with_libpulse/lib $LDFLAGS" | ||
713 | CPPFLAGS="-I$with_libpulse/include $CPPFLAGS" | ||
714 | AC_CHECK_HEADERS(pulse/simple.h, | ||
715 | AC_CHECK_LIB([pulse], | ||
716 | [pa_stream_peek], | ||
717 | EXT_LIB_PATH="-L$with_pulse/lib $EXT_LIB_PATH" | ||
718 | pulse=1)) | ||
719 | ]) | ||
720 | ], | ||
721 | [AC_MSG_RESULT([--with-libpulse not specified]) | ||
722 | CHECK_LIBHEADER(LIBPULSE, | ||
723 | pulse, | ||
724 | pa_stream_peek, | ||
725 | pulse/simple.h, | ||
726 | pulse=1,)]) | ||
727 | AM_CONDITIONAL(HAVE_PULSE, [test "$pulse" = 1]) | ||
728 | AS_IF([test x"$pulse" = x1], | ||
699 | [AC_DEFINE([HAVE_PULSE],[1],[Have libpulse(audio) library]) | 729 | [AC_DEFINE([HAVE_PULSE],[1],[Have libpulse(audio) library]) |
700 | libpulse_msg="yes"]) | 730 | libpulse_msg="yes"], |
731 | [AC_DEFINE([HAVE_PULSE],[0],[Lacking libpulse(audio) library]) | ||
732 | libpulse_msg="no"]) | ||
701 | 733 | ||
702 | # check for libopus(audio) library | 734 | # check for libopus(audio) library |
703 | opus=0 | 735 | opus=0 |