OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/php/config.m4 versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/php/config.m4 1.3 -> 1.4

--- config.m4    2007/01/01 18:14:58     1.3
+++ config.m4    2007/05/19 19:30:35     1.4
@@ -37,7 +37,12 @@
     PHP_ADD_LIBRARY([uuid],, UUID_SHARED_LIBADD)
     PHP_ADD_INCLUDE([..])
     PHP_SUBST(UUID_SHARED_LIBADD)
-    dnl  avoid conflict with libc's uuid_create(3)
-    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-Bsymbolic"
+
+    dnl  avoid linking conflict with a potentially existing uuid_create(3) in libc
+    AC_CHECK_FUNC(uuid_create,[
+        SAVE_LDFLAGS="$LDFLAGS"
+        LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
+        AC_TRY_LINK([],[], [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-Bsymbolic"])
+        LDFLAGS="$SAVE_LDFLAGS"])
 fi
 

CVSTrac 2.0.1