]> granicus.if.org Git - php/commitdiff
Minor touches to the exif build script on Windows; ADD_EXTENSION_DEP() will already...
authorKalle Sommer Nielsen <kalle@php.net>
Wed, 3 Aug 2016 02:24:17 +0000 (04:24 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Wed, 3 Aug 2016 02:24:17 +0000 (04:24 +0200)
There are probably other similar cases around ext/, however the main reason for fixing this was for the typo (libxml > mbstring).

ext/exif/config.w32

index 595e71bda0923780f57d1fbf03be8e0e0380fa27..ad000c425181c1409733cf453adba6935313799e 100644 (file)
@@ -1,14 +1,14 @@
 // $Id$
 // vim:ft=javascript
 
-ARG_ENABLE("exif", "exif", "no");
+ARG_ENABLE('exif', 'Exchangeable image information (EXIF) Support', 'no');
 
-if (PHP_EXIF == "yes") {
-       if (ADD_EXTENSION_DEP('exif', 'mbstring')) {
-               EXTENSION("exif", "exif.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
-               AC_DEFINE('HAVE_EXIF', 1, 'Have exif');
-       } else {
-               WARNING("exif support can't be enabled, libxml is not enabled")
-               PHP_EXIF = "no"
+if(PHP_EXIF != 'no')
+{
+       if(ADD_EXTENSION_DEP('exif', 'mbstring'))
+       {
+               AC_DEFINE('HAVE_EXIF', 1, 'Have EXIF Support');
+
+               EXTENSION('exif', 'exif.c', null, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
        }
-}
+}
\ No newline at end of file