OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/uuid.ac versions 1.16 and 1.17
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/uuid.ac 1.16 -> 1.17

--- uuid.ac      2005/08/31 14:29:56     1.16
+++ uuid.ac      2005/09/01 22:24:01     1.17
@@ -133,5 +133,28 @@
     if test ".$ac_cv_with_perl" = ".yes" -a ".$PERL" = ".NA"; then
         AC_ERROR([required Perl interpreter not found in \$PATH])
     fi
+    
+    dnl #   configure option --with-php
+    AC_ARG_WITH([php],
+        AS_HELP_STRING([--with-php], [build PHP bindings to C API]),
+        [ac_cv_with_php=$withval], [ac_cv_with_php=no])
+    AC_CACHE_CHECK([whether to build PHP bindings to C API], [ac_cv_with_php], [ac_cv_with_php=no])
+    if test ".$ac_cv_with_php" = ".yes"; then
+        AC_DEFINE(WITH_PHP, 1, [whether to build PHP bindings to C API])
+        WITH_PHP='yes'
+        PHP_NAME='$(PHP_NAME)'
+    else
+        WITH_PHP='no'
+        PHP_NAME=''
+    fi
+    AC_SUBST(PHP_NAME)
+    AC_SUBST(WITH_PHP)
+    AC_PATH_PROG(PHP, php5 php, NA)
+    if test ".$ac_cv_with_php" = ".yes" -a ".$PHP" = ".NA"; then
+        AC_ERROR([required PHP interpreter not found in \$PATH])
+    fi
+    if test ".$ac_cv_with_php" = ".yes"; then
+        (cd php && make -f Makefile.local config PHP=$PHP)
+    fi
 ])
 

CVSTrac 2.0.1