summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorSebastien Pouliot <sebastien@ximian.com>2008-04-25 18:43:01 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-04-25 18:49:37 +0100
commit6135ee716b4f2567f578fd023ba2d85c86cb7fda (patch)
tree86caddf1bd1e872caf2c176c14ef6ac8186eb97c /configure.in
parentb4b77cedc9db73f1ba8af16704302a4b2cc3f184 (diff)
[configure.in] Build fails on Solaris due to non-POSIX ctime_r()
Check for a Solaris build host and adjust the CFLAGS to force POSIX semantics. (Fixes https://bugs.freedesktop.org/show_bug.cgi?id=15463.)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 6aa10522..c7e457f0 100644
--- a/configure.in
+++ b/configure.in
@@ -109,7 +109,19 @@ AC_DEFUN([_CHECK_FUNCS_WITH_FLAGS],
dnl ===========================================================================
AC_CHECK_FUNCS(vasnprintf ctime_r drand48)
-
+
+AC_MSG_CHECKING([for Sun Solaris (non-POSIX ctime_r)])
+case "$host" in
+ *-*-solaris*)
+ CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
+ solaris_posix_pthread=yes
+ ;;
+ *)
+ solaris_posix_pthread=no
+ ;;
+esac
+AC_MSG_RESULT([$solaris_posix_pthread])
+
dnl ===========================================================================
dnl
dnl Test for native atomic operations.