| 1 |
|
| 2 |
dnl AM_PATH_VORBIS([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
| 3 |
dnl test for libvorbis |
| 4 |
dnl defines VORBIS_CFLAGS and VORBIS_LIBS |
| 5 |
|
| 6 |
AC_DEFUN([AM_PATH_VORBIS], |
| 7 |
[ |
| 8 |
AC_AVM_CHECK_LIB(vorbis, [for vorbis], [where libvorbis is installed], |
| 9 |
[-lvorbis -lm], |
| 10 |
[#include <vorbis/codec.h>], [], [$1], [$2]) |
| 11 |
|
| 12 |
dnl VORBISFILE_LIBS="-lvorbisfile" |
| 13 |
dnl VORBISENC_LIBS="-lvorbisenc" |
| 14 |
dnl LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS" |
| 15 |
dnl VORBISFILE_LIBS="" VORBISENC_LIBS="" |
| 16 |
dnl AC_SUBST(VORBISFILE_LIBS) |
| 17 |
dnl AC_SUBST(VORBISENC_LIBS) |
| 18 |
]) |
| 19 |
|