summaryrefslogtreecommitdiff
path: root/audio/tremor-tools/patches/patch-ae
blob: 02836ac29a17eaa1b4d8bb0226a7fc020a28ebce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-ae,v 1.1.1.1 2002/09/24 09:35:17 chris Exp $

--- aclocal.m4.orig	Fri Jul 19 15:18:51 2002
+++ aclocal.m4	Sat Sep 14 18:28:40 2002
@@ -139,6 +139,7 @@
   fi
 
   VORBISFILE_LIBS="$VORBIS_LIBS -lvorbisfile"
+  IVORBISFILE_LIBS="$VORBIS_LIBS -lvorbisidec"
   VORBISENC_LIBS="$VORBIS_LIBS -lvorbisenc"
   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
 
@@ -194,7 +195,7 @@
        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
        AC_TRY_LINK([
 #include <stdio.h>
-#include <vorbis/codec.h>
+#include <tremor/ivorbiscodec.h>
 ],     [ return 0; ],
        [ echo "*** The test program compiled, but did not run. This usually means"
        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
@@ -214,12 +215,14 @@
      VORBIS_CFLAGS=""
      VORBIS_LIBS=""
      VORBISFILE_LIBS=""
+     IVORBISFILE_LIBS=""
      VORBISENC_LIBS=""
      ifelse([$2], , :, [$2])
   fi
   AC_SUBST(VORBIS_CFLAGS)
   AC_SUBST(VORBIS_LIBS)
   AC_SUBST(VORBISFILE_LIBS)
+  AC_SUBST(IVORBISFILE_LIBS)
   AC_SUBST(VORBISENC_LIBS)
   rm -f conf.vorbistest
 ])