annotate m4/amidi-plug.m4 @ 2455:97badf1de222 trunk

[svn] - update-po - new translation drop from thierry vignaud for breton
author nenolod
date Wed, 31 Jan 2007 08:29:07 -0800
parents b0590e16329f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
1 # Checks for amidi-plug
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
2
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 527
diff changeset
3 dnl AM_PATH_AMIDIPLUG_HWSYNTH([ACTION-IF-FOUND , ACTION-IF-NOT-FOUND])
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 527
diff changeset
4 dnl Test for ALSA-supported hardware synth
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
5 dnl
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 527
diff changeset
6 AC_DEFUN([AM_PATH_AMIDIPLUG_HWSYNTH],
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
7 [
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
8
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
9 AMIDIPLUG_EVERYTHINGOK="yes"
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
10
527
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
11 dnl **** Search for a hardware synth (ALSA managed) ****
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
12 AC_CHECK_FILE([/proc/asound/card0/wavetableD1],
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
13 [ap_hwsynth_found=yes], [ap_hwsynth_found=no])
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
14 if test "x$ap_hwsynth_found" = "xno"; then
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
15 AC_CHECK_FILE([/proc/asound/card1/wavetableD1],
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
16 [ap_hwsynth_found=yes], [ap_hwsynth_found=no])
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
17 if test "x$ap_hwsynth_found" = "xno"; then
527
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
18 AC_CHECK_FILE([/proc/asound/card2/wavetableD1],
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
19 [ap_hwsynth_found=yes], [ap_hwsynth_found=no])
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
20 if test "x$ap_hwsynth_found" = "xno"; then
527
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
21 AMIDIPLUG_EVERYTHINGOK="no"
68f20f7ac954 [svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents: 526
diff changeset
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. ***])
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
23 fi
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
24 fi
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
25 fi
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
26
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
27 if test "x$AMIDIPLUG_EVERYTHINGOK" = "xyes"; then
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
28 ifelse([$1], , :, [$1])
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
29 else
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
30 ifelse([$2], , :, [$2])
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
31 fi
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
32
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
diff changeset
33 ])