File: cross-build.patch

package info (click to toggle)
libquicktime 2%3A1.2.4-17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,832 kB
  • sloc: ansic: 55,312; sh: 10,976; makefile: 473; sed: 16
file content (106 lines) | stat: -rw-r--r-- 2,213 bytes parent folder | download | duplicates (2)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
From: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Date: Wed, 30 Aug 2023 15:19:30 +0200
Subject: Don't try to run programs (think cross-compiling)

Origin: Debian
Forwarded: no
Last-Update: 2022-07-22

On Debian we have the right versions :-)
Last-Update: 2022-07-22
---
 configure.ac | 24 ++++++++----------------
 1 file changed, 8 insertions(+), 16 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1836baa..eeb7fbc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -252,11 +252,10 @@ dnl CFLAGS="$CFLAGS"
 AC_MSG_CHECKING(for lame)
 have_lame="false"
 
-  AC_TRY_RUN([
+  AC_TRY_LINK([
     #include <lame/lame.h>
     #include <stdio.h>
-    main()
-    {
+  ],[
     int version_major;
     int version_minor;
     const char * version;
@@ -268,7 +267,6 @@ have_lame="false"
     if((version_major != 3) || (version_minor < 93))
       return 1;
     return 0;
-    }
   ],
   [
     # program could be run
@@ -668,11 +666,10 @@ LIBS="$LIBS -lfaac -lm"
 CFLAGS="$CFLAGS"
 
 AC_MSG_CHECKING(for faac)
-AC_TRY_RUN([
+AC_TRY_LINK([
     #include <inttypes.h>
     #include <faac.h>
-    main()
-    {
+    ],[
     int samplerate = 44100, num_channels = 2;
     unsigned long input_samples, output_bytes;
     faacEncHandle enc;
@@ -682,7 +679,6 @@ AC_TRY_RUN([
                       &output_bytes);
 
     return 0;
-    }
   ],
   [
     # program could be run
@@ -737,11 +733,10 @@ LIBS="$LIBS -lfaad -lm"
 AC_MSG_CHECKING(for neaacdec.h usability for faad2)
 
 
-AC_TRY_RUN([
+AC_TRY_LINK([
     #include <neaacdec.h>
     #include <stdio.h>
-    main()
-    {
+    ],[
     int faad_major;
     int faad_minor;
     faacDecHandle dec;
@@ -752,7 +747,6 @@ AC_TRY_RUN([
     if(!dec)
       return -1;
     return 0;
-    }
   ],
   [
     # program could be run
@@ -770,11 +764,10 @@ if test "x$have_faad2" != "xtrue"; then
 
 AC_MSG_CHECKING(for faad.h usability for faad2)
 
-AC_TRY_RUN([
+AC_TRY_LINK([
     #include <faad.h>
     #include <stdio.h>
-    main()
-    {
+    ],[
     int faad_major;
     int faad_minor;
     faacDecHandle dec;
@@ -785,7 +778,6 @@ AC_TRY_RUN([
     if(!dec)
       return -1;
     return 0;
-    }
   ],
   [
     # program could be run