1 diff -durN -x '*~' allegro-4.1.12.orig/aclocal.m4 allegro-4.1.12/aclocal.m4
2 --- allegro-4.1.12.orig/aclocal.m4 2003-11-09 18:43:06.000000000 +0000
3 +++ allegro-4.1.12/aclocal.m4 2004-12-29 12:33:41.454794712 +0000
5 if test -n "$allegro_enable_alsadigi"; then
6 AC_CACHE_CHECK(for supported ALSA version for digital sound,
7 allegro_cv_support_alsadigi,
8 + AC_TRY_COMPILE([#include <alsa/asoundlib.h>
9 + #if SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0
13 + [allegro_cv_support_alsadigi=yes
14 + allegro_cv_alsa_version=9],
15 AC_TRY_COMPILE([#include <sys/asoundlib.h>
16 #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9
20 [allegro_cv_support_alsadigi=yes
21 allegro_cv_alsa_version=5],
22 - allegro_cv_support_alsadigi=no)))
23 + allegro_cv_support_alsadigi=no))))
24 if test "X$allegro_cv_support_alsadigi" = "Xyes" &&
25 test -z "$allegro_support_modules"; then
28 if test -n "$allegro_enable_alsamidi"; then
29 AC_CACHE_CHECK(for supported ALSA version for MIDI,
30 allegro_cv_support_alsamidi,
31 + AC_TRY_COMPILE([#include <alsa/asoundlib.h>
32 + #if SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0
36 + [allegro_cv_support_alsamidi=yes
37 + allegro_cv_alsa_version=9],
38 AC_TRY_COMPILE([#include <sys/asoundlib.h>
39 #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9
43 [allegro_cv_support_alsamidi=yes
44 allegro_cv_alsa_version=5],
45 - allegro_cv_support_alsamidi=no)))
46 + allegro_cv_support_alsamidi=no))))
47 if test "X$allegro_cv_support_alsamidi" = "Xyes" &&
48 test "X$allegro_cv_support_alsadigi" != "Xyes" &&
49 test -z "$allegro_support_modules"; then