Changeset 5814 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Jun 26, 2018 7:08:24 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r5804 r5814 36 36 AC_PROG_CXX 37 37 AC_LANG([C]) 38 39 dnl Make sure C++ compiler works 40 AC_LANG_PUSH([C++]) 41 AC_TRY_LINK([], [], , AC_MSG_ERROR([C++ compiler does not work])) 42 AC_LANG_POP([C++]) 38 43 39 44 AC_PROG_RANLIB … … 670 675 AC_ARG_WITH(external-pa, 671 676 AS_HELP_STRING([--with-external-pa], 672 [Use external PortAudio development files , not the one in "third_party" directory. When this option is set, make sure that PortAudio is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]),677 [Use external PortAudio development files. When this option is set, make sure that PortAudio is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), 673 678 [ 674 679 if test "x$with_external_pa" != "xno"; then … … 720 725 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS" 721 726 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) 722 ac_pjmedia_snd=pa_old_darwinos727 #ac_pjmedia_snd=pa_old_darwinos 723 728 AC_MSG_RESULT([Checking sound device backend... old coreaudio]) 724 729 else … … 738 743 if test "x$ac_external_pa" != "x1"; then 739 744 dnl # Check if ALSA is available 740 ac_pjmedia_snd=alsa741 AC_SUBST(ac_pa_use_alsa,1)742 745 AC_CHECK_HEADER(alsa/version.h, 743 [LIBS="$LIBS -lasound"], 744 [ac_pa_use_alsa=0]) 745 AC_MSG_RESULT([Checking sound device backend... unix]) 746 747 dnl # Check if OSS is disabled 748 AC_SUBST(ac_pa_use_oss,1) 749 AC_ARG_ENABLE(oss, 750 AS_HELP_STRING([--disable-oss], 751 [Disable OSS audio (default: not disabled)]), 752 [ 753 if test "$enable_oss" = "no"; then 754 [ac_pa_use_oss=0] 755 AC_MSG_RESULT([Checking if OSS audio is disabled... yes]) 756 fi 757 ]) 746 [LIBS="$LIBS -lasound" 747 ac_pjmedia_snd=alsa]) 748 if test "x$ac_pjmedia_snd" = "xalsa"; then 749 AC_MSG_RESULT([Checking sound device backend... alsa]) 750 else 751 ac_pjmedia_snd=null 752 AC_MSG_RESULT([Checking sound device backend... null sound]) 753 fi 758 754 fi 759 755 ;;
Note: See TracChangeset
for help on using the changeset viewer.