diff options
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/ada-driver.dpatch')
-rw-r--r-- | meta/packages/gcc/gcc-4.3.1/debian/ada-driver.dpatch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/ada-driver.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/ada-driver.dpatch new file mode 100644 index 0000000000..74ee94d1b6 --- /dev/null +++ b/meta/packages/gcc/gcc-4.3.1/debian/ada-driver.dpatch | |||
@@ -0,0 +1,42 @@ | |||
1 | #! /bin/sh -e | ||
2 | |||
3 | # DP: Look for gcc-3.4, gcc-4.0 and gcc-4.1 as gcc with Ada support. | ||
4 | |||
5 | dir= | ||
6 | if [ $# -eq 3 -a "$2" = '-d' ]; then | ||
7 | pdir="-d $3" | ||
8 | dir="$3/" | ||
9 | elif [ $# -ne 1 ]; then | ||
10 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
11 | exit 1 | ||
12 | fi | ||
13 | case "$1" in | ||
14 | -patch) | ||
15 | patch $pdir -f --no-backup-if-mismatch -p0 < $0 | ||
16 | cd ${dir}gcc && autoconf | ||
17 | ;; | ||
18 | -unpatch) | ||
19 | patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 | ||
20 | rm ${dir}gcc/configure | ||
21 | ;; | ||
22 | *) | ||
23 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
24 | exit 1 | ||
25 | esac | ||
26 | exit 0 | ||
27 | |||
28 | |||
29 | --- gcc/aclocal.m4~ Sat Mar 2 00:37:42 2002 | ||
30 | +++ gcc/aclocal.m4 Sat Apr 6 13:01:36 2002 | ||
31 | @@ -312,6 +312,11 @@ | ||
32 | ${ac_tool_prefix}$user_cc $user_cc \ | ||
33 | ${ac_tool_prefix}gcc gcc \ | ||
34 | ${ac_tool_prefix}cc cc \ | ||
35 | + ${ac_tool_prefix}gcc-4.3 gcc-4.3 \ | ||
36 | + ${ac_tool_prefix}gcc-4.2 gcc-4.2 \ | ||
37 | + ${ac_tool_prefix}gcc-4.1 gcc-4.1 \ | ||
38 | + ${ac_tool_prefix}gcc-4.0 gcc-4.0 \ | ||
39 | + ${ac_tool_prefix}gcc-3.4 gcc-3.4 \ | ||
40 | ${ac_tool_prefix}gnatgcc gnatgcc \ | ||
41 | ${ac_tool_prefix}gnatcc gnatcc \ | ||
42 | ${ac_tool_prefix}adagcc adagcc \ | ||