]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Reverted and fixed AC_TRY_COMPILE
authorJaroslav Kysela <perex@perex.cz>
Thu, 4 Apr 2002 07:08:41 +0000 (07:08 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 4 Apr 2002 07:08:41 +0000 (07:08 +0000)
utils/alsa.m4

index ad4053ca630407358f5455e614d841b894fa4e67..59d24c1e7959c6097fba188207c60db2cf0ad5e1 100644 (file)
@@ -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.)