Mercurial > audlegacy
comparison configure.ac @ 1697:e4d9d2657d9a trunk
[svn] This adds -lossaudio to the OSS and esd plugin on platforms having that libs. With this, Audacious finally build & runs perfectly on OpenBSD.
author | js |
---|---|
date | Fri, 15 Sep 2006 08:01:40 -0700 |
parents | cc5952675fca |
children | 4a6f56f1a0a2 |
comparison
equal
deleted
inserted
replaced
1696:cd8711f34c88 | 1697:e4d9d2657d9a |
---|---|
635 CFLAGS=$CFLAGS_save | 635 CFLAGS=$CFLAGS_save |
636 | 636 |
637 if test "${ac_cv_header_sys_soundcard_h}" = "yes" || test "${ac_cv_header_machine_soundcard_h}" = "yes"; then | 637 if test "${ac_cv_header_sys_soundcard_h}" = "yes" || test "${ac_cv_header_machine_soundcard_h}" = "yes"; then |
638 have_oss=yes | 638 have_oss=yes |
639 fi | 639 fi |
640 | |
641 AC_MSG_CHECKING(wether we need -lossaudio) | |
642 AC_TRY_LINK([ | |
643 #include <sys/ioctl.h> | |
644 #ifdef HAVE_SYS_SOUNDCARD_H | |
645 #include <sys/soundcard.h> | |
646 #else | |
647 #include <soundcard.h> | |
648 #endif | |
649 ], [ | |
650 int fd, value; | |
651 ioctl(fd, SOUND_MIXER_READ_VOLUME, &value); | |
652 ], AC_MSG_RESULT(no), [ | |
653 OSS_LIBS="-lossaudio" | |
654 AC_MSG_RESULT(yes) | |
655 ]) | |
640 fi | 656 fi |
641 | 657 |
642 if test "$have_oss" = "yes"; then | 658 if test "$have_oss" = "yes"; then |
643 AC_DEFINE(HAVE_OSS, 1, [Define if the OSS output plugin should be built]) | 659 AC_DEFINE(HAVE_OSS, 1, [Define if the OSS output plugin should be built]) |
644 else | 660 else |
646 fi | 662 fi |
647 | 663 |
648 if test "$have_oss" = "yes"; then | 664 if test "$have_oss" = "yes"; then |
649 OUTPUT_PLUGINS="$OUTPUT_PLUGINS OSS" | 665 OUTPUT_PLUGINS="$OUTPUT_PLUGINS OSS" |
650 fi | 666 fi |
667 | |
668 AC_SUBST(OSS_LIBS) | |
651 | 669 |
652 dnl *** ALSA output plugin | 670 dnl *** ALSA output plugin |
653 | 671 |
654 AC_ARG_ENABLE(alsa, | 672 AC_ARG_ENABLE(alsa, |
655 [ --disable-alsa disable ALSA input plugin (default=enabled)], | 673 [ --disable-alsa disable ALSA input plugin (default=enabled)], |