@@ -5159,7 +5159,7 @@ VS_SDK_PLATFORM_NAME_2013=
5159
5159
#CUSTOM_AUTOCONF_INCLUDE
5160
5160
5161
5161
# Do not change or remove the following line, it is needed for consistency checks:
5162
- DATE_WHEN_GENERATED=1512085548
5162
+ DATE_WHEN_GENERATED=1512410983
5163
5163
5164
5164
###############################################################################
5165
5165
#
@@ -66263,23 +66263,6 @@ if test "${with_libpng+set}" = set; then :
66263
66263
fi
66264
66264
66265
66265
66266
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5
66267
- $as_echo_n "checking for which libpng to use... " >&6; }
66268
-
66269
- # default is bundled
66270
- DEFAULT_LIBPNG=bundled
66271
- # if user didn't specify, use DEFAULT_LIBPNG
66272
- if test "x${with_libpng}" = "x"; then
66273
- with_libpng=${DEFAULT_LIBPNG}
66274
- fi
66275
-
66276
- if test "x${with_libpng}" = "xbundled"; then
66277
- USE_EXTERNAL_LIBPNG=false
66278
- PNG_CFLAGS=""
66279
- PNG_LIBS=""
66280
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
66281
- $as_echo "bundled" >&6; }
66282
- elif test "x${with_libpng}" = "xsystem"; then
66283
66266
66284
66267
pkg_failed=no
66285
66268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
@@ -66347,6 +66330,23 @@ else
66347
66330
$as_echo "yes" >&6; }
66348
66331
LIBPNG_FOUND=yes
66349
66332
fi
66333
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5
66334
+ $as_echo_n "checking for which libpng to use... " >&6; }
66335
+
66336
+ # default is bundled
66337
+ DEFAULT_LIBPNG=bundled
66338
+ # if user didn't specify, use DEFAULT_LIBPNG
66339
+ if test "x${with_libpng}" = "x"; then
66340
+ with_libpng=${DEFAULT_LIBPNG}
66341
+ fi
66342
+
66343
+ if test "x${with_libpng}" = "xbundled"; then
66344
+ USE_EXTERNAL_LIBPNG=false
66345
+ PNG_CFLAGS=""
66346
+ PNG_LIBS=""
66347
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
66348
+ $as_echo "bundled" >&6; }
66349
+ elif test "x${with_libpng}" = "xsystem"; then
66350
66350
if test "x${LIBPNG_FOUND}" = "xyes"; then
66351
66351
# PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS
66352
66352
USE_EXTERNAL_LIBPNG=true
@@ -66444,6 +66444,40 @@ $as_echo "bundled" >&6; }
66444
66444
USE_EXTERNAL_LIBZ=true
66445
66445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
66446
66446
$as_echo "system" >&6; }
66447
+
66448
+ if test "x$USE_EXTERNAL_LIBPNG" != "xtrue"; then
66449
+ # If we use bundled libpng, we must verify that we have a proper zlib.
66450
+ # For instance zlib-ng has had issues with inflateValidate().
66451
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib functionality" >&5
66452
+ $as_echo_n "checking for system zlib functionality... " >&6; }
66453
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66454
+ /* end confdefs.h. */
66455
+ #include "zlib.h"
66456
+ int
66457
+ main ()
66458
+ {
66459
+
66460
+ #if ZLIB_VERNUM >= 0x1281
66461
+ inflateValidate(NULL, 0);
66462
+ #endif
66463
+
66464
+ ;
66465
+ return 0;
66466
+ }
66467
+ _ACEOF
66468
+ if ac_fn_cxx_try_compile "$LINENO"; then :
66469
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
66470
+ $as_echo "ok" >&6; }
66471
+ else
66472
+
66473
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not ok" >&5
66474
+ $as_echo "not ok" >&6; }
66475
+ as_fn_error $? "System zlib not working correctly" "$LINENO" 5
66476
+
66477
+
66478
+ fi
66479
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66480
+ fi
66447
66481
else
66448
66482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5
66449
66483
$as_echo "system not found" >&6; }
0 commit comments