Fresco/config compiler.m4,1.5,1.6

Tobias Hunger <[email protected]> Fri, 01 Aug 2003 11:47:24 -0500
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/Fresco/config
In directory purcel:/tmp/cvs-serv24256/config

Modified Files:
	compiler.m4 
Log Message:
Babylon work over:
 * Use iconv to convert characters to/from Babylon
 * Updtae to Unicode Version 4.0
 * Added unit tests (some fail for now, still need to work on that)

 * Removed the VisualTextBuffer from the CommandKit: I still like the idea,
   unfortunately it won't work out in the real world:-|

 * Updated code to the changed Babylon interfaces whereever needed.


Index: compiler.m4
===================================================================
RCS file: /cvs/fresco/Fresco/config/compiler.m4,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- compiler.m4	4 Jun 2003 22:38:59 -0000	1.5
+++ compiler.m4	1 Aug 2003 16:47:22 -0000	1.6
@@ -182,6 +182,15 @@
 							CFLAGS="$CFLAGS $OPT_CFLAGS")
 							;;
 					esac
+					case $host_cpu in
+					i686*|686*)
+						OPT_CFLAGS='-march=i686 -msse -mfpmath=sse'
+						FRESCO_COMPILER_OPTION(coptimize_686,
+							[-m<xxx> for 686 CPU],
+							$OPT_CFLAGS,
+							CFLAGS="$CFLAGS $OPT_CFLAGS")
+							;;
+					esac
 					AC_LANG_RESTORE
 				else
 					CFLAGS="$CFLAGS -O"
@@ -209,6 +218,14 @@
 							CXXFLAGS="$CXXFLAGS $OPT_CXXFLAGS")
 							;;
 					esac
+					case $host_cpu in
+                                        i686*|686*)                                                                             OPT_CFLAGS='-march=i686 -msse -mfpmath=sse'
+                                                FRESCO_COMPILER_OPTION(cxxoptimize_686,
+                                                        [-m<xxx> for 686 CPU],
+                                                        $OPT_CFLAGS,
+                                                        CFLAGS="$CFLAGS $OPT_CFLAGS")
+                                                        ;;
+                                        esac
 					AC_LANG_RESTORE
 				else
 					CXXFLAGS="$CXXFLAGS -O"