<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- configure.orig
+++ configure
@@ -6,9 +6,9 @@
 #define _CONFIG_H
 EOF
 
-echo -n 'Checking for libfftw3f...'
+printf 'Checking for libfftw3f... '
 
-gcc -o test-fft -Wall -x c -lfftw3f -I/usr/local/include -L/usr/local/lib - &lt;&lt;'EOF'
+gcc -o test-fft -Wall -x c -lfftw3f -I"${PREFIX:-/usr/local}/include" -L"${PREFIX:-/usr/local}/lib" - &lt;&lt;'EOF'
 #include &lt;fftw3.h&gt;
 
 #define N 128
@@ -31,12 +31,12 @@
 
 if ./test-fft
 then
-	echo OK
-	echo '#define _FFTW3' &gt;&gt; config.h
-	echo 'export FFTW3=1' &gt;&gt; config.mak
+	printf 'OK\n'
+	printf '#define _FFTW3\n' &gt;&gt; config.h
+	printf 'export FFTW3=1\n' &gt;&gt; config.mak
 fi
 
-echo -n 'Detecting endianness...'
+printf 'Detecting endianness... '
 
 gcc -o test-endian -Wall -x c - &lt;&lt;'EOF'
 #include &lt;stdint.h&gt;
@@ -63,17 +63,19 @@
 if ./test-endian &gt; /dev/null
 then
 	ENDIAN=$(./test-endian)
-	if [ $ENDIAN = EL ]
-	then
-		echo 'Little Endian'
-		echo '#define _EL_ARCH' &gt;&gt; config.h
-	elif [ $ENDIAN = BE ]
-	then
-		echo 'Big Endian'
-		echo '#define _BE_ARCH' &gt;&gt; config.h
-	fi
+	case ${ENDIAN}
+	in
+		(EL)
+			printf 'Little Endian\n'
+			printf '#define _EL_ARCH\n' &gt;&gt; config.h
+			;;
+		(BE)
+			printf 'Big Endian\n'
+			printf '#define _BE_ARCH\n' &gt;&gt; config.h
+			;;
+	esac
 fi
 
-echo '#endif' &gt;&gt; config.h
+printf '#endif\n' &gt;&gt; config.h
 
-echo 'Now run make'
+# printf 'Now run make\n'
</pre></body></html>