]>
Commit | Line | Data |
---|---|---|
72878f71 JK |
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 | |
4 | @@ -362,6 +362,13 @@ | |
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 | |
10 | + #else | |
11 | + #error | |
12 | + #endif],, | |
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 | |
17 | #else | |
18 | @@ -376,7 +383,7 @@ | |
19 | #endif],, | |
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 | |
26 | LIBS="-lasound $LIBS" | |
27 | @@ -399,6 +406,13 @@ | |
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 | |
33 | + #else | |
34 | + #error | |
35 | + #endif],, | |
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 | |
40 | #else | |
41 | @@ -413,7 +427,7 @@ | |
42 | #endif],, | |
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 | |
50 |