Add 03_configure_cross_compile.dpatch
git-svn-id: svn://anonscm.debian.org/svn/pkg-alsa/trunk/alsa-lib@1466 9eaf2def-abe4-0310-ac0d-9aefe66b05c3
Thomas Hood
18 years ago
0 | #!/bin/sh -e | |
1 | ## 03_configure_cross_compile.dpatch by doko | |
2 | ## | |
3 | ## DP: Remove check that the compiler produces executables we can run | |
4 | ||
5 | if [ $# -lt 1 ]; then | |
6 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | |
7 | exit 1 | |
8 | fi | |
9 | ||
10 | [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts | |
11 | patch_opts="${patch_opts:--f --no-backup-if-mismatch}" | |
12 | ||
13 | case "$1" in | |
14 | -patch) patch $patch_opts -p1 < $0;; | |
15 | -unpatch) patch $patch_opts -p1 -R < $0;; | |
16 | *) | |
17 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | |
18 | exit 1;; | |
19 | esac | |
20 | ||
21 | exit 0 | |
22 | ||
23 | @DPATCH@ | |
24 | --- alsa-lib-1.0.10.orig/configure | |
25 | +++ alsa-lib-1.0.10/configure | |
26 | @@ -2398,7 +2398,7 @@ | |
27 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
28 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
29 | # If not cross compiling, check that we can run a simple program. | |
30 | -if test "$cross_compiling" != yes; then | |
31 | +if false && test "$cross_compiling" != yes; then | |
32 | if { ac_try='./$ac_file' | |
33 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34 | (eval $ac_try) 2>&5 |