]> git.pld-linux.org Git - packages/mythtv.git/blob - mythtv-x86_64-configure.patch
- move programs not useful for users to sbin
[packages/mythtv.git] / mythtv-x86_64-configure.patch
1 based from gentoo
2 http://bugs.gentoo.org/show_bug.cgi?id=94664
3
4 --- ./configure.orig    2005-05-05 08:15:43.000000000 +0100
5 +++ ./configure 2005-05-31 23:32:26.000000000 +0100
6 @@ -9,6 +9,7 @@
7  x86_cpus="i386,i486,i586,i686,pentium,pentiumpro,${x86_mmx_cpus}"
8  x86_cmov_cpus="i686,pentiumpro,pentium2,pentium3,pentium3m,pentium-m,pentium4,"
9  x86_cmov_cpus="pentium4m,prescott,athlon,athlon-xp,c3-2"
10 +x86_64_cpus="x86-64,athlon64,k8,opteron,athlon-fx"
11  
12  # default parameters
13  compile_type="release"
14 @@ -223,6 +224,14 @@
15      cpu="x86"
16  fi
17  
18 +is_x86_64_cpu() {
19 +    expr ",${x86_64_cpus}," : ".*,$1," > /dev/null
20 +}
21 +
22 +if is_x86_64_cpu "$cpu" ; then
23 +    cpu="x86_64"
24 +fi
25 +
26  case "$cpu" in
27    x86)
28    ;;
29 --- ./configure~        2005-09-04 11:48:59.000000000 +0300
30 +++ ./configure 2005-09-04 11:49:01.000000000 +0300
31 @@ -237,12 +237,13 @@
32    x86)
33    ;;
34    x86_64)
35 -    if [ "`$cc -dumpmachine | grep x86_64 | cut -d- -f1`" = "x86_64" -a \
36 -         -z "`echo $CFLAGS | grep -- -m32`"  ]; then
37 -      cpu="x86_64"
38 -    else
39 -      cpu="x86"
40 -    fi
41 +       if [ "`$cc -dumpmachine | grep x86_64 | cut -d- -f1`" = "x86_64" ]; then
42 +               if [ -z "`echo $CFLAGS | grep -- -m32`"  ]; then
43 +                       cpu="x86_64"
44 +               else
45 +                       cpu="x86"
46 +               fi
47 +       fi
48    ;;
49    # armv4l is a subset of armv5tel
50    armv4l|armv5tel)
This page took 0.044766 seconds and 3 git commands to generate.