summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Koppanen <mkoppanen@php.net>2010-10-15 10:43:22 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-10-23 22:09:13 +0200
commit8ef53c0dc6d625bdeb95b7f9626cf58cf6babfed (patch)
tree293ecdccf23f0038b1dad160cc677053ddef623e
parent21b0c0b4f7896facbfcaf10c8eb777e72a505a45 (diff)
Fixes build on Linux using Sun Studio compiler
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
-rw-r--r--configure.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 46c9ce0..8e8df73 100644
--- a/configure.in
+++ b/configure.in
@@ -90,8 +90,10 @@ CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE $CPPFLAGS"
# OS-specific tests
case "${host_os}" in
*linux*)
- # Define on Linux to enable all library features
- CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
+ # Define on Linux to enable all library features. Define if using a gnu compiler
+ if test "x$gnu_compilers" = "xyes"; then
+ CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
+ fi
AC_DEFINE(ZMQ_HAVE_LINUX, 1, [Have Linux OS])
AC_CHECK_LIB(uuid, main, ,
[AC_MSG_ERROR([cannot link with -luuid, install uuid-dev.])])