From ebfe8d8a24f3cd779433be35d1f054ee4653cb80 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 25 Nov 1998 18:57:37 +0000 Subject: [PATCH] Added backward compatility for version checking... --- utils/alsa.m4 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/utils/alsa.m4 b/utils/alsa.m4 index 3737316e..128a3691 100644 --- a/utils/alsa.m4 +++ b/utils/alsa.m4 @@ -70,6 +70,17 @@ AC_TRY_COMPILE([ ], [ void main(void) { +/* ensure backward compatibility */ +#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) +#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR +#endif +#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) +#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR +#endif +#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) +#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR +#endif + # if(SND_LIB_MAJOR > $alsa_min_major_version) exit(0); # else -- 2.47.1