recognise amd64

This commit is contained in:
pvalchev 2004-02-27 08:39:30 +00:00
parent 33da6d8656
commit 4e7a1607ce
2 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-configure,v 1.6 2004/02/20 23:33:58 pvalchev Exp $
$OpenBSD: patch-configure,v 1.7 2004/02/27 08:39:30 pvalchev Exp $
--- configure.orig 2000-03-29 17:51:49.000000000 -0700
+++ configure 2004-02-20 16:23:52.000000000 -0700
+++ configure 2004-02-27 01:28:04.000000000 -0700
@@ -528,7 +528,7 @@ fi
@ -10,7 +10,7 @@ $OpenBSD: patch-configure,v 1.6 2004/02/20 23:33:58 pvalchev Exp $
if test -f $ac_dir/install-sh; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
@@ -1273,10 +1273,30 @@ sparc-*) cat >> confdefs.h <<\EOF
@@ -1273,10 +1273,34 @@ sparc-*) cat >> confdefs.h <<\EOF
#define __sparc__ 1
EOF
;;
@ -38,6 +38,10 @@ $OpenBSD: patch-configure,v 1.6 2004/02/20 23:33:58 pvalchev Exp $
+arm-*) cat >> confdefs.h <<\EOF
+#define __arm__ 1
+EOF
+;;
+x86_64-*) cat >> confdefs.h <<\EOF
+#define __amd64__ 1
+EOF
+;;
*) echo "$host is not currently supported by ac3dec"; exit 1;;
esac

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-configure_in,v 1.4 2004/02/20 23:33:58 pvalchev Exp $
$OpenBSD: patch-configure_in,v 1.5 2004/02/27 08:39:30 pvalchev Exp $
--- configure.in.orig 2000-03-29 17:51:24.000000000 -0700
+++ configure.in 2004-02-20 15:55:03.000000000 -0700
@@ -29,7 +29,10 @@ case "$host" in
+++ configure.in 2004-02-27 01:28:12.000000000 -0700
@@ -29,7 +29,11 @@ case "$host" in
i?86-*) AC_DEFINE(__i386__);;
alpha*-*) AC_DEFINE(__alpha__);;
sparc-*) AC_DEFINE(__sparc__);;
@ -10,6 +10,7 @@ $OpenBSD: patch-configure_in,v 1.4 2004/02/20 23:33:58 pvalchev Exp $
+ppc-*|powerpc-*) AC_DEFINE(__ppc__);;
+vax-*) AC_DEFINE(__vax__);;
+arm-*) AC_DEFINE(__arm__);;
+x86_64-*) AC_DEFINE(__amd64__);;
*) echo "$host is not currently supported by ac3dec"; exit 1;;
esac