summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2002-04-04 07:08:41 +0000
committerJaroslav Kysela <perex@perex.cz>2002-04-04 07:08:41 +0000
commit2c03ec15307b567fd2250fe2a7981a89d19b87a9 (patch)
tree41117de429001cc74e5408a3de372b85f7f037c5 /utils
parentbc17ff62583c78703f77fd72cade878c6e3643ed (diff)
downloadalsa-lib-2c03ec15307b567fd2250fe2a7981a89d19b87a9.tar.gz
Reverted and fixed AC_TRY_COMPILE
Diffstat (limited to 'utils')
-rw-r--r--utils/alsa.m47
1 files changed, 2 insertions, 5 deletions
diff --git a/utils/alsa.m4 b/utils/alsa.m4
index ad4053ca..59d24c1e 100644
--- a/utils/alsa.m4
+++ b/utils/alsa.m4
@@ -2,7 +2,7 @@ dnl Configure Paths for Alsa
dnl Some modifications by Richard Boulton <richard-alsa@tartarus.org>
dnl Christopher Lansdown <lansdoct@cs.alfred.edu>
dnl Jaroslav Kysela <perex@suse.cz>
-dnl Last modification: $Id: alsa.m4,v 1.20 2002/04/04 07:07:13 perex Exp $
+dnl Last modification: $Id: alsa.m4,v 1.21 2002/04/04 07:08:41 perex Exp $
dnl AM_PATH_ALSA([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for libasound, and define ALSA_CFLAGS and ALSA_LIBS as appropriate.
dnl enables arguments --with-alsa-prefix=
@@ -73,11 +73,9 @@ no_alsa=""
AC_LANG_SAVE
AC_LANG_C
-AC_TRY_RUN([
+AC_TRY_COMPILE([
#include <alsa/asoundlib.h>
], [
-void main(void)
-{
/* ensure backward compatibility */
#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
@@ -109,7 +107,6 @@ void main(void)
# endif
# endif
exit(0);
-}
],
[AC_MSG_RESULT(found.)],
[AC_MSG_RESULT(not present.)