[cairo-commit] configure.in

Chris Wilson ickle at kemper.freedesktop.org
Fri Apr 25 10:52:54 PDT 2008


 configure.in |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

New commits:
commit 6135ee716b4f2567f578fd023ba2d85c86cb7fda
Author: Sebastien Pouliot <sebastien at ximian.com>
Date:   Fri Apr 25 18:43:01 2008 +0100

    [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.)

diff --git a/configure.in b/configure.in
index 6aa1052..c7e457f 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.


More information about the cairo-commit mailing list