VirtualBox

Changeset 6101 in vbox for trunk/configure


Ignore:
Timestamp:
Dec 17, 2007 11:07:52 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
26807
Message:

configure: added PulseAudio detection, added --disable-pulse to disable the PulseAudio backend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r6098 r6101  
    3838WITH_SDL_TTF=1
    3939WITH_X11=1
     40WITH_PULSE=1
    4041CC="gcc"
    4142CC32=""
     
    989990  test_header ALSA
    990991  cat > .tmp_src.cc << EOF
     992#include <cstdio>
    991993#include <alsa/asoundlib.h>
    992994extern "C" int main(void)
     
    10041006EOF
    10051007  if test_compile "-lasound" asound asound; then
     1008    test_execute
     1009  fi
     1010}
     1011
     1012#
     1013# Check for PulseAudio
     1014#
     1015check_pulse()
     1016{
     1017  test_header "PulseAudio"
     1018  cat > .tmp_src.cc << EOF
     1019#include <cstdio>
     1020#include <pulse/version.h>
     1021extern "C" int main(void)
     1022{
     1023  printf("found version %s API version %d", pa_get_headers_version(), PA_API_VERSION);
     1024#if PA_API_VERSION >= 9
     1025  printf(", OK.\n");
     1026  return 0;
     1027#else
     1028  printf(", expected version 0.9.0 (API version 9) or higher\n");
     1029  return 1;
     1030#endif
     1031}
     1032EOF
     1033  if test_compile "-lpulse" pulse pulse; then
    10061034    test_execute
    10071035  fi
     
    13451373  --disable-xpcom          disable XPCOM and related stuff
    13461374  --disable-sdl-ttf        disable SDL_ttf detection
     1375  --disable-pulse          disable PulseAudio detection
    13471376  --build-xalan            build xalan & xerces from sources (not OSE!)
    13481377  --build-libxml2          build libxml2 from sources (not OSE!)
     
    14361465    --disable-qt)
    14371466      WITH_QT=0
     1467      ;;
     1468    --disable-pulse)
     1469      WITH_PULSE=0
    14381470      ;;
    14391471    --build-debug|-d)
     
    15871619  check_linux
    15881620  check_alsa
     1621  if [ $WITH_PULSE -eq 1 ]; then
     1622    check_pulse
     1623  else
     1624    cnf_append "VBOX_WITH_PULSE" ""
     1625  fi
    15891626  check_compiler_h
    15901627  [ "$BUILD_MACHINE" = "amd64" ] && check_32bit
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette