revision 714:009591ac251e
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 714:009591ac251e |
parent | 713:e5256202cc9e |
child | 715:fdbad771b4b1 |
author | nkeynes |
date | Sun Jun 29 22:31:40 2008 +0000 (15 years ago) |
Add --with-esd and --with-pulse configure arguments (mainly to be able to disable them when not wanted)
1.1 --- a/configure Sun Jun 29 03:51:33 2008 +00001.2 +++ b/configure Sun Jun 29 22:31:40 2008 +00001.3 @@ -809,6 +809,8 @@1.4 enable_sh4stats1.5 with_osmesa1.6 with_gtk1.7 +with_esd1.8 +with_pulse1.9 '1.10 ac_precious_vars='build_alias1.11 host_alias1.12 @@ -1478,6 +1480,8 @@1.13 --with-osmesa Build with the osmesa GL library (software1.14 rendering)1.15 --with-gtk Build with the GTK UI. Default on X11 systems1.16 + --with-esd Build with support for the ESounD audio system1.17 + --with-pulse Build with support for the PulseAudio audio system1.19 Some influential environment variables:1.20 CC C compiler command1.21 @@ -6597,6 +6601,18 @@1.22 fi1.25 +# Check whether --with-esd was given.1.26 +if test "${with_esd+set}" = set; then1.27 + withval=$with_esd;1.28 +fi1.29 +1.30 +1.31 +# Check whether --with-pulse was given.1.32 +if test "${with_pulse+set}" = set; then1.33 + withval=$with_pulse;1.34 +fi1.35 +1.36 +1.38 lxdream_save_cppflags="$CPPFLAGS"1.39 CPPFLAGS="$CPPFLAGS -x objective-c"1.40 @@ -8803,6 +8819,7 @@1.41 fi1.44 +if test "x$with_pulse" != "xno"; then1.46 pkg_failed=no1.47 { $as_echo "$as_me:$LINENO: checking for PULSE" >&51.48 @@ -8864,22 +8881,40 @@1.50 { $as_echo "$as_me:$LINENO: result: no" >&51.51 $as_echo "no" >&6; }1.52 - true1.53 +1.54 + if test "x$with_pulse" = "xyes"; then1.55 + { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)1.56 +See \`config.log' for more details." >&51.57 +$as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)1.58 +See \`config.log' for more details." >&2;}1.59 + { (exit 1); exit 1; }; }1.60 + fi1.61 +1.62 elif test $pkg_failed = untried; then1.63 - true1.64 +1.65 + if test "x$with_pulse" = "xyes"; then1.66 + { { $as_echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)1.67 +See \`config.log' for more details." >&51.68 +$as_echo "$as_me: error: PulseAudio audio package could not be found (but was required)1.69 +See \`config.log' for more details." >&2;}1.70 + { (exit 1); exit 1; }; }1.71 + fi1.72 +1.73 else1.74 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS1.75 PULSE_LIBS=$pkg_cv_PULSE_LIBS1.76 { $as_echo "$as_me:$LINENO: result: yes" >&51.77 $as_echo "yes" >&6; }1.79 - HAVE_PULSE='yes'1.80 - AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"1.81 + HAVE_PULSE='yes'1.82 + AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"1.84 cat >>confdefs.h <<\_ACEOF1.85 #define HAVE_PULSE 11.86 _ACEOF1.88 +1.89 +fi1.90 fi1.93 @@ -8892,6 +8927,7 @@1.94 fi1.97 +if test "x$with_esd" != "xno"; then1.99 pkg_failed=no1.100 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&51.101 @@ -8953,22 +8989,40 @@1.103 { $as_echo "$as_me:$LINENO: result: no" >&51.104 $as_echo "no" >&6; }1.105 - true1.106 +1.107 + if test "x$with_esd" = "xyes"; then1.108 + { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)1.109 +See \`config.log' for more details." >&51.110 +$as_echo "$as_me: error: ESounD audio package could not be found (but was required)1.111 +See \`config.log' for more details." >&2;}1.112 + { (exit 1); exit 1; }; }1.113 + fi1.114 +1.115 elif test $pkg_failed = untried; then1.116 - true1.117 +1.118 + if test "x$with_esd" = "xyes"; then1.119 + { { $as_echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)1.120 +See \`config.log' for more details." >&51.121 +$as_echo "$as_me: error: ESounD audio package could not be found (but was required)1.122 +See \`config.log' for more details." >&2;}1.123 + { (exit 1); exit 1; }; }1.124 + fi1.125 +1.126 else1.127 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS1.128 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS1.129 { $as_echo "$as_me:$LINENO: result: yes" >&51.130 $as_echo "yes" >&6; }1.132 - HAVE_ESOUND='yes'1.133 - AUDIO_DRIVERS="$AUDIO_DRIVERS esd"1.134 + HAVE_ESOUND='yes'1.135 + AUDIO_DRIVERS="$AUDIO_DRIVERS esd"1.137 cat >>confdefs.h <<\_ACEOF1.138 #define HAVE_ESOUND 11.139 _ACEOF1.141 +1.142 +fi1.143 fi
2.1 --- a/configure.in Sun Jun 29 03:51:33 2008 +00002.2 +++ b/configure.in Sun Jun 29 22:31:40 2008 +00002.3 @@ -39,6 +39,10 @@2.4 [], [with_osmesa=no])2.5 AC_ARG_WITH( gtk,2.6 AS_HELP_STRING( [--with-gtk], [Build with the GTK UI. Default on X11 systems]), [with_gtk=yes], [with_gtk=x11] )2.7 +AC_ARG_WITH( esd,2.8 + AS_HELP_STRING( [--with-esd], [Build with support for the ESounD audio system]) )2.9 +AC_ARG_WITH( pulse,2.10 + AS_HELP_STRING( [--with-pulse], [Build with support for the PulseAudio audio system]) )2.12 dnl ------------ Check if we're building on Darwin --------------2.14 @@ -164,17 +168,31 @@2.15 AM_CONDITIONAL( AUDIO_OSX, [test "$HAVE_CORE_AUDIO" = 'yes'] )2.17 dnl Check for pulseaudio2.18 -PKG_CHECK_MODULES(PULSE, [libpulse-simple], [2.19 - HAVE_PULSE='yes'2.20 - AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"2.21 - AC_DEFINE([HAVE_PULSE],1,[Have pulseaudio support]) ], [true])2.22 +if test "x$with_pulse" != "xno"; then2.23 + PKG_CHECK_MODULES(PULSE, [libpulse-simple], [2.24 + HAVE_PULSE='yes'2.25 + AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"2.26 + AC_DEFINE([HAVE_PULSE],1,[Have pulseaudio support])2.27 + ], [2.28 + if test "x$with_pulse" = "xyes"; then2.29 + AC_MSG_FAILURE( [PulseAudio audio package could not be found (but was required)] )2.30 + fi2.31 + ])2.32 +fi2.33 AM_CONDITIONAL( AUDIO_PULSE, [test "$HAVE_PULSE" = 'yes'] )2.35 dnl Check for esound2.36 -PKG_CHECK_MODULES(ESOUND, [esound], [2.37 - HAVE_ESOUND='yes'2.38 - AUDIO_DRIVERS="$AUDIO_DRIVERS esd"2.39 - AC_DEFINE([HAVE_ESOUND],1,[Have esound support]) ], [true])2.40 +if test "x$with_esd" != "xno"; then2.41 + PKG_CHECK_MODULES(ESOUND, [esound], [2.42 + HAVE_ESOUND='yes'2.43 + AUDIO_DRIVERS="$AUDIO_DRIVERS esd"2.44 + AC_DEFINE([HAVE_ESOUND],1,[Have esound support])2.45 + ], [2.46 + if test "x$with_esd" = "xyes"; then2.47 + AC_MSG_FAILURE( [ESounD audio package could not be found (but was required)] )2.48 + fi2.49 + ])2.50 +fi2.51 AM_CONDITIONAL( AUDIO_ESOUND, [test "$HAVE_ESOUND" = 'yes'] )2.53 dnl Check for alsa support
.