Check for canonical target cpu (s390/s390x) and set variables and
conditionals accordingly.

Signed-off-by: Ramon de Carvalho Valle <[email protected]>
---
 configure.in |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/configure.in b/configure.in
index e14a0d3..a8594d4 100644
--- a/configure.in
+++ b/configure.in
@@ -51,16 +51,13 @@ fi
 
 CFLAGS="$cmdline_CFLAGS"
 
-s390=0
-
-# Arch specific stuff
-case $target in
-       *s390*)
-               s390=1
-               AM_CONDITIONAL(S390, true) ;;
-        *)
-               AM_CONDITIONAL(S390, false) ;;
-esac
+if test "x$target_cpu" = "s390x" -o "x$target_cpu" = "s390"; then
+  s390=1
+  AM_CONDITIONAL(S390, true)
+else
+  s390=0
+  AM_CONDITIONAL(S390, false)
+fi
 
 if test "x$SIZEOF_LONG_INT" = "x8"; then
   lib="lib64"
-- 
1.6.3.3


------------------------------------------------------------------------------
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to