Commits

php committed f9f6c6b

Add double-conversion to the PHP build

Comments (0)

Files changed (4)

+Zend/double-conversion = https://double-conversion.googlecode.com/hg/
+beeb163220d28fac4a0bfaec59b36f412b6e34b9 Zend/double-conversion
         PHP_ADD_LIBRARY(stdc++)
       ;;
     esac
+    PHP_ADD_LIBRARY(stdc++)
     php_cxx_done=yes
   fi
 ])
 AC_PROG_CPP
 AC_AIX
 AC_PROG_LN_S
+PHP_REQUIRE_CXX
 
 dnl Support systems with system libraries in e.g. /usr/lib64
 PHP_ARG_WITH(libdir, for system library directory,
     zend_iterators.c zend_interfaces.c zend_exceptions.c zend_strtod.c zend_gc.c \
     zend_closures.c zend_float.c zend_string.c zend_signal.c)
 
+PHP_ADD_SOURCES(Zend/double-conversion/src,
+    bignum.cc bignum-dtoa.cc cached-powers.cc diy-fp.cc double-conversion.cc \
+    fast-dtoa.cc fixed-dtoa.cc strtod.cc)
+
 if test -r "$abs_srcdir/Zend/zend_objects.c"; then
   PHP_ADD_SOURCES(Zend, zend_objects.c zend_object_handlers.c zend_objects_API.c zend_default_classes.c)
 fi