[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libcvd-members] libcvd configure configure.in
From: |
Edward Rosten |
Subject: |
[libcvd-members] libcvd configure configure.in |
Date: |
Tue, 12 Jun 2007 17:17:50 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Changes by: Edward Rosten <edrosten> 07/06/12 17:17:50
Modified files:
. : configure configure.in
Log message:
--with-* or --without-* for mmx mmxext sse sse2
you cna now forcefully enable or disable SIMD levels.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/configure?cvsroot=libcvd&r1=1.83&r2=1.84
http://cvs.savannah.gnu.org/viewcvs/libcvd/configure.in?cvsroot=libcvd&r1=1.82&r2=1.83
Patches:
Index: configure
===================================================================
RCS file: /cvsroot/libcvd/libcvd/configure,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -b -r1.83 -r1.84
--- configure 12 Jun 2007 17:02:42 -0000 1.83
+++ configure 12 Jun 2007 17:17:50 -0000 1.84
@@ -863,6 +863,10 @@
--with-debug=flags compile with debug support
--with-profile=flags compile with profile support
--without-simd disable SIMD code
+ --with-mmx force presence or absence of MMX (x86 only)
+ --with-mmxext force presence or absence of MMXEXT (x86 only)
+ --with-sse force presence or absence of SSE (x86 only)
+ --with-sse2 force presence or absence of SSE2 (x86 only)
--without-optimize compile without optimizations
--with-optimize=flags compile with optimization flags
--with-TooN=directory Specify location for TooN
@@ -3924,6 +3928,13 @@
save_CPPFLAGS="$CPPFLAGS"
+# Check whether --with-mmx or --without-mmx was given.
+if test "${with_mmx+set}" = set; then
+ withval="$with_mmx"
+
+fi;
+ if test "$with_mmx" != yes && test "$with_mmx"
!= no
+ then
save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -mmmx"
CPPFLAGS="$CPPFLAGS -mmmx"
@@ -4121,6 +4132,10 @@
fi
echo "$as_me:$LINENO: result: $mmx" >&5
echo "${ECHO_T}$mmx" >&6
+ else
+ mmx="$with_mmx"
+ fi
+
if test $mmx = no
then
CXXFLAGS="$save_CXXFLAGS"
@@ -4141,6 +4156,14 @@
CXXFLAGS="$CXXFLAGS -msse"
CPPFLAGS="$CPPFLAGS -msse"
+# Check whether --with-mmxext or --without-mmxext was given.
+if test "${with_mmxext+set}" = set; then
+ withval="$with_mmxext"
+
+fi;
+ if test "$with_mmxext" != yes && test
"$with_mmxext" != no
+ then
+
for ac_header in xmmintrin.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -4334,6 +4357,10 @@
fi
echo "$as_me:$LINENO: result: $mmxext" >&5
echo "${ECHO_T}$mmxext" >&6
+ else
+ mmxext="$with_mmxext"
+ fi
+
if test $mmxext = no
then
CXXFLAGS="$save_CXXFLAGS"
@@ -4349,6 +4376,15 @@
simd_options="$simd_options mmxext"
fi
+
+
+# Check whether --with-sse or --without-sse was given.
+if test "${with_sse+set}" = set; then
+ withval="$with_sse"
+
+fi;
+ if test "$with_sse" != yes && test "$with_sse"
!= no
+ then
echo "$as_me:$LINENO: checking for SSE support"
>&5
echo $ECHO_N "checking for SSE support... $ECHO_C" >&6
if test "$cross_compiling" = yes; then
@@ -4393,6 +4429,10 @@
fi
echo "$as_me:$LINENO: result: $sse" >&5
echo "${ECHO_T}$sse" >&6
+ else
+ sse="$with_sse"
+ fi
+
if test $sse = no
then
break
@@ -4411,6 +4451,15 @@
CXXFLAGS="$CXXFLAGS -msse2"
CPPFLAGS="$CPPFLAGS -msse2"
+
+# Check whether --with-sse2 or --without-sse2 was given.
+if test "${with_sse2+set}" = set; then
+ withval="$with_sse2"
+
+fi;
+ if test "$with_sse2" != yes && test
"$with_sse2" != no
+ then
+
for ac_header in emmintrin.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -4604,6 +4653,10 @@
fi
echo "$as_me:$LINENO: result: $sse2" >&5
echo "${ECHO_T}$sse2" >&6
+ else
+ sse2="$with_sse2"
+ fi
+
if test $sse2 = no
then
CXXFLAGS="$save_CXXFLAGS"
@@ -10251,7 +10304,7 @@
echo SIMD support:
echo $simd_options
echo
-echo Missing SIMD support for $host_os:
+echo Missing SIMD support for $host:
echo $simd_possible_options $simd_options | tr ' ' '\n' | sort | uniq -u | tr
'\n' ' '; echo
echo
Index: configure.in
===================================================================
RCS file: /cvsroot/libcvd/libcvd/configure.in,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -b -r1.82 -r1.83
--- configure.in 12 Jun 2007 17:02:41 -0000 1.82
+++ configure.in 12 Jun 2007 17:17:50 -0000 1.83
@@ -156,7 +156,9 @@
save_CPPFLAGS="$CPPFLAGS"
-
+ AC_ARG_WITH(mmx, [ --with-mmx
force presence or absence of MMX (x86 only)])
+ if test "$with_mmx" != yes && test "$with_mmx"
!= no
+ then
save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -mmmx"
CPPFLAGS="$CPPFLAGS -mmmx"
@@ -172,6 +174,10 @@
return 0;
}], [mmx=yes], [mmx=no])
AC_MSG_RESULT($mmx)
+ else
+ mmx="$with_mmx"
+ fi
+
if test $mmx = no
then
CXXFLAGS="$save_CXXFLAGS"
@@ -188,6 +194,9 @@
save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -msse"
CPPFLAGS="$CPPFLAGS -msse"
+ AC_ARG_WITH(mmxext, [ --with-mmxext
force presence or absence of MMXEXT (x86 only) ])
+ if test "$with_mmxext" != yes && test
"$with_mmxext" != no
+ then
AC_CHECK_HEADERS(xmmintrin.h, [], [])
AC_MSG_CHECKING(for MMXEXT support)
AC_RUN_IFELSE([
@@ -200,6 +209,10 @@
return 0;
}], [mmxext=yes], [mmxext=no])
AC_MSG_RESULT($mmxext)
+ else
+ mmxext="$with_mmxext"
+ fi
+
if test $mmxext = no
then
CXXFLAGS="$save_CXXFLAGS"
@@ -209,6 +222,10 @@
AC_DEFINE(CVD_HAVE_MMXEXT)
simd_options="$simd_options mmxext"
fi
+
+ AC_ARG_WITH(sse, [ --with-sse
force presence or absence of SSE (x86 only)])
+ if test "$with_sse" != yes && test "$with_sse"
!= no
+ then
AC_MSG_CHECKING(for SSE support)
AC_RUN_IFELSE([
#include <xmmintrin.h>
@@ -220,6 +237,10 @@
return 0;
}], [sse=yes], [sse=no])
AC_MSG_RESULT($sse)
+ else
+ sse="$with_sse"
+ fi
+
if test $sse = no
then
break
@@ -234,6 +255,10 @@
save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -msse2"
CPPFLAGS="$CPPFLAGS -msse2"
+
+ AC_ARG_WITH(sse2, [ --with-sse2
force presence or absence of SSE2 (x86 only)])
+ if test "$with_sse2" != yes && test
"$with_sse2" != no
+ then
AC_CHECK_HEADERS(emmintrin.h, [], [])
AC_MSG_CHECKING(for SSE2 support)
AC_RUN_IFELSE([
@@ -246,6 +271,10 @@
return 0;
}], [sse2=yes], [sse2=no])
AC_MSG_RESULT($sse2)
+ else
+ sse2="$with_sse2"
+ fi
+
if test $sse2 = no
then
CXXFLAGS="$save_CXXFLAGS"
@@ -1187,7 +1216,7 @@
echo SIMD support:
echo $simd_options
echo
-echo Missing SIMD support for $host_os:
+echo Missing SIMD support for $host:
echo $simd_possible_options $simd_options | tr ' ' '\n' | sort | uniq -u | tr
'\n' ' '; echo
echo