From alsa-devel-owner@alsa.jcu.cz  Sun Feb 14 22:33:05 1999
Received: from vipunen.hut.fi (vipunen-a.hut.fi [130.233.249.7])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id WAA21105
	for <alsa-devel@alsa.jcu.cz>; Sun, 14 Feb 1999 22:32:58 +0100
Received: from alpha.hut.fi (iheino@alpha.hut.fi [130.233.224.50])
	by vipunen.hut.fi (8.9.2/8.9.1) with SMTP id XAA79972
	for <alsa-devel@alsa.jcu.cz>; Sun, 14 Feb 1999 23:32:56 +0200
Date: Sun, 14 Feb 1999 23:32:56 +0200 (EET)
From: Tuomas Heino <iheino@cc.hut.fi>
To: alsa-devel@alsa.jcu.cz
Subject: alsa-util: configure version check incorrect? (aclocal?)
In-Reply-To: <Pine.LNX.4.04.9902142140530.11939-100000@pluto.andeby>
Message-ID: <Pine.OSF.3.96.990214232455.11176C-100000@alpha.hut.fi>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

1st: I don't have a slightest idea which file is the source of the prob ;)
2nd: here's a snippet from aclocal.m4:

min_alsa_version=ifelse([$1], ,0.1.1,$1)
AC_MSG_CHECKING(for libasound headers version >= $min_alsa_version)
no_alsa=""
    alsa_min_major_version=`echo $min_alsa_version | \
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
    alsa_min_minor_version=`echo $min_alsa_version | \
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
    alsa_min_micro_version=`echo $min_alsa_version | \
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`

AC_TRY_COMPILE([
#include <sys/asoundlib.h>
], [
void main(void)
{
#  if(SOUNDLIB_VERSION_MAJOR >= $alsa_min_major_version)
#    if(SOUNDLIB_VERSION_MINOR >= $alsa_min_minor_version)
#      if(SOUNDLIB_VERSION_SUBMINOR >= $alsa_min_micro_version)
        exit(0);
#      else
#        error not present
#      endif
#    else
#      error not present
#    endif
#  else
#  error not present
#  endif
}

... now the minimum is 0.1.1 ...
... and current version is 0.3.0 ... if you look carefully at that code
you'll notice that it'll fail as the last 0 is smaller than 1

3rd: please don't nuke me for this message ;)


