Mercurial > audlegacy-plugins
comparison m4/amidi-plug.m4 @ 0:13389e613d67 trunk
[svn] - initial import of audacious-plugins tree (lots to do)
author | nenolod |
---|---|
date | Mon, 18 Sep 2006 01:11:49 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13389e613d67 |
---|---|
1 # Checks for amidi-plug | |
2 | |
3 dnl AM_PATH_AMIDIPLUG_HWSYNTH([ACTION-IF-FOUND , ACTION-IF-NOT-FOUND]) | |
4 dnl Test for ALSA-supported hardware synth | |
5 dnl | |
6 AC_DEFUN([AM_PATH_AMIDIPLUG_HWSYNTH], | |
7 [ | |
8 | |
9 AMIDIPLUG_EVERYTHINGOK="yes" | |
10 | |
11 dnl **** Search for a hardware synth (ALSA managed) **** | |
12 AC_CHECK_FILE([/proc/asound/card0/wavetableD1], | |
13 [ap_hwsynth_found=yes], [ap_hwsynth_found=no]) | |
14 if test "x$ap_hwsynth_found" = "xno"; then | |
15 AC_CHECK_FILE([/proc/asound/card1/wavetableD1], | |
16 [ap_hwsynth_found=yes], [ap_hwsynth_found=no]) | |
17 if test "x$ap_hwsynth_found" = "xno"; then | |
18 AC_CHECK_FILE([/proc/asound/card2/wavetableD1], | |
19 [ap_hwsynth_found=yes], [ap_hwsynth_found=no]) | |
20 if test "x$ap_hwsynth_found" = "xno"; then | |
21 AMIDIPLUG_EVERYTHINGOK="no" | |
22 AC_MSG_WARN([*** Could not find an ALSA-supported hardware synth, amidi-plug won't be compiled. If you wish to compile it anyway, use --enable-amidiplug in configure. ***]) | |
23 fi | |
24 fi | |
25 fi | |
26 | |
27 if test "x$AMIDIPLUG_EVERYTHINGOK" = "xyes"; then | |
28 ifelse([$1], , :, [$1]) | |
29 else | |
30 ifelse([$2], , :, [$2]) | |
31 fi | |
32 | |
33 ]) |