libvisual/libvisual-0.4.2-sw.patch
wangshuo 2fe20dd11f add libvisual-0.4.2 sw64 arch patch
(cherry picked from commit b8b78d61e3b28e9500abac9670baa4ad4a1ed8d7)
2024-08-05 08:59:26 +08:00

98 lines
2.1 KiB
Diff

From b9a5b83804e13d2d18d805642bb71a28b75b1058 Mon Sep 17 00:00:00 2001
From: wangshuo <wangshuo@kylinos.cn>
Date: Tue, 27 Feb 2024 08:22:48 +0000
Subject: [PATCH] libvisual-0.4.2-sw.patch
---
configure | 10 ++++++++++
configure.ac | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/configure b/configure
index 492545e..b35422b 100755
--- a/configure
+++ b/configure
@@ -3986,6 +3986,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
lv_mips=no
lv_alpha=no
+lv_sw_64=no
lv_sparc=no
lv_ix86=no
lv_x86_64=no
@@ -3994,6 +3995,7 @@ lv_powerpc=no
case "$host_cpu" in
mips) lv_mips=yes;;
alpha) lv_alpha=yes;;
+ sw_64) lv_sw_64=yes;;
sparc) lv_sparc=yes;;
i*86) lv_ix86=yes;;
x86_64*) lv_x86_64=yes;;
@@ -22944,6 +22946,7 @@ fi
lv_mips=$lv_mips
lv_alpha=$lv_alpha
+ lv_sw_64=$lv_sw_64
lv_sparc=$lv_sparc
lv_ix86=$lv_ix86
lv_x86_64=$lv_x86_64
@@ -24597,6 +24600,13 @@ _______EOF
_______EOF
fi
+ if test x$lv_sw_64 = xyes ; then
+ cat >>$outfile <<_______EOF
+
+#define VISUAL_ARCH_SW_64
+_______EOF
+ fi
+
if test x$lv_sparc = xyes ; then
cat >>$outfile <<_______EOF
diff --git a/configure.ac b/configure.ac
index 75fb9ea..16c85c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,7 @@ AC_CANONICAL_HOST
lv_mips=no
lv_alpha=no
+lv_sw_64=no
lv_sparc=no
lv_ix86=no
lv_x86_64=no
@@ -34,6 +35,7 @@ lv_powerpc=no
case "$host_cpu" in
mips) lv_mips=yes;;
alpha) lv_alpha=yes;;
+ sw_64) lv_sw_64=yes;;
sparc) lv_sparc=yes;;
i*86) lv_ix86=yes;;
x86_64*) lv_x86_64=yes;;
@@ -602,6 +604,13 @@ _______EOF
_______EOF
fi
+ if test x$lv_sw_64 = xyes ; then
+ cat >>$outfile <<_______EOF
+
+#define VISUAL_ARCH_SW_64
+_______EOF
+ fi
+
if test x$lv_sparc = xyes ; then
cat >>$outfile <<_______EOF
@@ -811,6 +820,7 @@ echo >>$outfile
lv_mips=$lv_mips
lv_alpha=$lv_alpha
+ lv_sw_64=$lv_sw_64
lv_sparc=$lv_sparc
lv_ix86=$lv_ix86
lv_x86_64=$lv_x86_64
--
2.27.0