From 05850aeda7c9bea7c6ef67fd752baaffd71f9c89 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 16 Mar 2011 10:40:01 +0100 Subject: [PATCH] fftw: changed to use case statement to check if the i386 hacks can be enabled --- multimedia/fftw/fftw.conf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/multimedia/fftw/fftw.conf b/multimedia/fftw/fftw.conf index 7db72f549..b254136a4 100644 --- a/multimedia/fftw/fftw.conf +++ b/multimedia/fftw/fftw.conf @@ -15,9 +15,11 @@ # --- SDE-COPYRIGHT-NOTE-END --- # Optimization -if [ $arch_machine = i686 -o $arch_machine = i586 -o $arch_machine = i486 -o $arch_machine = Intel -o $arch_machine = k6 -o $arch_machine = k7 ] ; then - var_append extraconfopt ' ' '--enable-i386-hacks' - echo_status "Enable i386 hacks" -fi +case "$arch_machine" in + i486|i586|i686|Intel|k6|k7) + var_append extraconfopt ' ' '--enable-i386-hacks' + echo_status "Enable i386 hacks" + ;; +esac var_append extraconfopt ' ' '--enable-threads'