summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@sol>2009-11-30 01:49:26 +0000
committerVladislav Vaintroub <wlad@sol>2009-11-30 01:49:26 +0000
commit43770e8f3f3fd22259b330756fad72737b079263 (patch)
treea9ea0d12503dfc16738cc769a0e6879ad6daa702 /configure.cmake
parent50d56f0906e5ebbf3a53844ed13c101c3d9cf790 (diff)
parent3c11750e363da6e1017d5bc86e9e7e03b2c4e101 (diff)
downloadmariadb-git-43770e8f3f3fd22259b330756fad72737b079263.tar.gz
merge
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake26
1 files changed, 26 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index efc94f09244..d16e19166d5 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -627,6 +627,32 @@ CHECK_FUNCTION_EXISTS_UNIX (memalign HAVE_MEMALIGN)
CHECK_FUNCTION_EXISTS_UNIX (chown HAVE_CHOWN)
CHECK_FUNCTION_EXISTS_UNIX (nl_langinfo HAVE_NL_LANGINFO)
+#--------------------------------------------------------------------
+# Support for WL#2373 (Use cycle counter for timing)
+#--------------------------------------------------------------------
+
+CHECK_INCLUDE_FILES_UNIX(time.h HAVE_TIME_H)
+CHECK_INCLUDE_FILES_UNIX(sys/time.h HAVE_SYS_TIME_H)
+CHECK_INCLUDE_FILES_UNIX(sys/times.h HAVE_SYS_TIMES_H)
+CHECK_INCLUDE_FILES_UNIX(asm/msr.h HAVE_ASM_MSR_H)
+#msr.h has rdtscll()
+
+CHECK_INCLUDE_FILES_UNIX(ia64intrin.h HAVE_IA64INTRIN_H)
+
+CHECK_FUNCTION_EXISTS_UNIX(times HAVE_TIMES)
+CHECK_FUNCTION_EXISTS_UNIX(gettimeofday HAVE_GETTIMEOFDAY)
+CHECK_FUNCTION_EXISTS_UNIX(read_real_time HAVE_READ_REAL_TIME)
+# This should work on AIX.
+
+CHECK_FUNCTION_EXISTS_UNIX(ftime HAVE_FTIME)
+# This is still a normal call for milliseconds.
+
+CHECK_FUNCTION_EXISTS_UNIX(time HAVE_TIME)
+# We can use time() on Macintosh if there is no ftime().
+
+CHECK_FUNCTION_EXISTS_UNIX(rdtscll HAVE_RDTSCLL)
+# I doubt that we'll ever reach the check for this.
+
#
# Tests for symbols