[Hdrflow-svn] SF.net SVN: hdrflow: [93] lib/openlibraries
Status: Pre-Alpha
Brought to you by:
glslang
|
From: <gl...@us...> - 2007-04-22 15:47:48
|
Revision: 93
http://hdrflow.svn.sourceforge.net/hdrflow/?rev=93&view=rev
Author: glslang
Date: 2007-04-22 08:47:45 -0700 (Sun, 22 Apr 2007)
Log Message:
-----------
+build updates
Modified Paths:
--------------
lib/openlibraries/configure.ac
Added Paths:
-----------
lib/openlibraries/m4/fast_math.m4
Modified: lib/openlibraries/configure.ac
===================================================================
--- lib/openlibraries/configure.ac 2007-04-21 19:16:49 UTC (rev 92)
+++ lib/openlibraries/configure.ac 2007-04-22 15:47:45 UTC (rev 93)
@@ -274,6 +274,9 @@
dnl Universal Binary Support (OS X only)
AC_CHECK_UNIVERSAL_BINARY_SUPPORT( )
+dnl Fast Math support
+AC_CHECK_FAST_MATH( )
+
SHARED_EXT="so"
case $host in
*-apple-darwin*)
Added: lib/openlibraries/m4/fast_math.m4
===================================================================
--- lib/openlibraries/m4/fast_math.m4 (rev 0)
+++ lib/openlibraries/m4/fast_math.m4 2007-04-22 15:47:45 UTC (rev 93)
@@ -0,0 +1,24 @@
+
+#
+# Enable/Disable fast math support.
+#
+
+AC_DEFUN([AC_CHECK_FAST_MATH],[
+ AC_ARG_ENABLE(fastmath, AC_HELP_STRING([--enable-fastmath], [disable fast math support]),
+ [enablefastmath=$enableval],
+ [enablefastmath=yes])
+
+ AC_MSG_CHECKING(for fast math support)
+ if test x$enablefastmath = "xyes" ; then
+ AC_DEFINE(HAVE_FAST_MATH,1,[Define this to enable fast math support])
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ fi
+
+ if test x$enablefastmath = "xyes"; then
+ ifelse([$1], , :, [$1])
+ else
+ ifelse([$2], , :, [$2])
+ fi
+])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|