r3881: *** empty log message ***
[ctsim.git] / configure.ac
index 36dca45044f820248a82001a1c6e669d20d9e30b..4ad6678a5978025ac2001a0a8e1c09d2e7c95acf 100644 (file)
@@ -241,6 +241,17 @@ else
   fi
 fi
 
+dnl Set CPU
+AC_ARG_WITH(cpu,
+[  --with-cpu[=CPU]       Set name of CPU for gcc -mcpu=])
+
+if test "$withval" == "pentium4" -o "$withval" == "athlon-mp" ; then
+  AC_MSG_CHECKING([Setting CPU to $withval])
+  CFLAGS="$CFLAGS -mcpu=$withval"
+else
+  AC_MSG_CHECKING([Unknown CPU $withval])
+fi
+
 AC_MSG_CHECKING([for web access])
 dnl Set cgi-bin directory
 AC_ARG_WITH(cgibin-dir, [  --with-cgibin-dir=PATH  Set path of CGI binaries directory ],