|
1 | 1 | #! /bin/sh
|
2 | 2 | # Guess values for system-dependent variables and create Makefiles.
|
3 |
| -# Generated by GNU Autoconf 2.71 for pdfio 1.4.1. |
| 3 | +# Generated by GNU Autoconf 2.71 for pdfio 1.5.0. |
4 | 4 | #
|
5 | 5 | # Report bugs to <https://github.com/michaelrsweet/pdfio/issues>.
|
6 | 6 | #
|
@@ -610,8 +610,8 @@ MAKEFLAGS=
|
610 | 610 | # Identity of this package.
|
611 | 611 | PACKAGE_NAME='pdfio'
|
612 | 612 | PACKAGE_TARNAME='pdfio'
|
613 |
| -PACKAGE_VERSION='1.4.1' |
614 |
| -PACKAGE_STRING='pdfio 1.4.1' |
| 613 | +PACKAGE_VERSION='1.5.0' |
| 614 | +PACKAGE_STRING='pdfio 1.5.0' |
615 | 615 | PACKAGE_BUGREPORT='https://github.com/michaelrsweet/pdfio/issues'
|
616 | 616 | PACKAGE_URL='https://www.msweet.org/pdfio'
|
617 | 617 |
|
@@ -653,6 +653,7 @@ WARNINGS
|
653 | 653 | CSFLAGS
|
654 | 654 | LIBPDFIO_STATIC
|
655 | 655 | LIBPDFIO
|
| 656 | +PKGCONFIG_LIBPNG |
656 | 657 | PKGCONFIG_REQUIRES
|
657 | 658 | PKGCONFIG_LIBS_PRIVATE
|
658 | 659 | PKGCONFIG_LIBS
|
@@ -729,6 +730,7 @@ SHELL'
|
729 | 730 | ac_subst_files=''
|
730 | 731 | ac_user_opts='
|
731 | 732 | enable_option_checking
|
| 733 | +enable_libpng |
732 | 734 | enable_static
|
733 | 735 | enable_shared
|
734 | 736 | enable_debug
|
@@ -1293,7 +1295,7 @@ if test "$ac_init_help" = "long"; then
|
1293 | 1295 | # Omit some internal or obsolete options to make the list less imposing.
|
1294 | 1296 | # This message is too long to be a string in the A/UX 3.1 sh.
|
1295 | 1297 | cat <<_ACEOF
|
1296 |
| -\`configure' configures pdfio 1.4.1 to adapt to many kinds of systems. |
| 1298 | +\`configure' configures pdfio 1.5.0 to adapt to many kinds of systems. |
1297 | 1299 |
|
1298 | 1300 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
1299 | 1301 |
|
@@ -1359,14 +1361,16 @@ fi
|
1359 | 1361 |
|
1360 | 1362 | if test -n "$ac_init_help"; then
|
1361 | 1363 | case $ac_init_help in
|
1362 |
| - short | recursive ) echo "Configuration of pdfio 1.4.1:";; |
| 1364 | + short | recursive ) echo "Configuration of pdfio 1.5.0:";; |
1363 | 1365 | esac
|
1364 | 1366 | cat <<\_ACEOF
|
1365 | 1367 |
|
1366 | 1368 | Optional Features:
|
1367 | 1369 | --disable-option-checking ignore unrecognized --enable/--with options
|
1368 | 1370 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
1369 | 1371 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
| 1372 | + --enable-libpng use libpng for pdfioFileCreateImageObjFromFile, |
| 1373 | + default=auto |
1370 | 1374 | --disable-static do not install static library
|
1371 | 1375 | --enable-shared install shared library
|
1372 | 1376 | --enable-debug turn on debugging, default=no
|
|
1456 | 1460 | test -n "$ac_init_help" && exit $ac_status
|
1457 | 1461 | if $ac_init_version; then
|
1458 | 1462 | cat <<\_ACEOF
|
1459 |
| -pdfio configure 1.4.1 |
| 1463 | +pdfio configure 1.5.0 |
1460 | 1464 | generated by GNU Autoconf 2.71
|
1461 | 1465 |
|
1462 | 1466 | Copyright (C) 2021 Free Software Foundation, Inc.
|
@@ -1612,7 +1616,7 @@ cat >config.log <<_ACEOF
|
1612 | 1616 | This file contains any messages produced by compilers while
|
1613 | 1617 | running configure, to aid debugging if configure makes a mistake.
|
1614 | 1618 |
|
1615 |
| -It was created by pdfio $as_me 1.4.1, which was |
| 1619 | +It was created by pdfio $as_me 1.5.0, which was |
1616 | 1620 | generated by GNU Autoconf 2.71. Invocation command line was
|
1617 | 1621 |
|
1618 | 1622 | $ $0$ac_configure_args_raw
|
@@ -2368,9 +2372,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2368 | 2372 |
|
2369 | 2373 |
|
2370 | 2374 |
|
2371 |
| -PDFIO_VERSION="1.4.1" |
2372 |
| -PDFIO_VERSION_MAJOR="`echo 1.4.1 | awk -F. '{print $1}'`" |
2373 |
| -PDFIO_VERSION_MINOR="`echo 1.4.1 | awk -F. '{printf("%d\n",$2);}'`" |
| 2375 | +PDFIO_VERSION="1.5.0" |
| 2376 | +PDFIO_VERSION_MAJOR="`echo 1.5.0 | awk -F. '{print $1}'`" |
| 2377 | +PDFIO_VERSION_MINOR="`echo 1.5.0 | awk -F. '{printf("%d\n",$2);}'`" |
2374 | 2378 |
|
2375 | 2379 |
|
2376 | 2380 |
|
@@ -4099,6 +4103,55 @@ fi
|
4099 | 4103 | fi
|
4100 | 4104 |
|
4101 | 4105 |
|
| 4106 | +# Check whether --enable-libpng was given. |
| 4107 | +if test ${enable_libpng+y} |
| 4108 | +then : |
| 4109 | + enableval=$enable_libpng; |
| 4110 | +fi |
| 4111 | +
|
| 4112 | +
|
| 4113 | +PKGCONFIG_LIBPNG="" |
| 4114 | +
|
| 4115 | +
|
| 4116 | +if test "x$PKGCONFIG" != x -a x$enable_libpng != xno |
| 4117 | +then : |
| 4118 | +
|
| 4119 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpng-1.6.x" >&5 |
| 4120 | +printf %s "checking for libpng-1.6.x... " >&6; } |
| 4121 | + if $PKGCONFIG --exists libpng16 |
| 4122 | +then : |
| 4123 | +
|
| 4124 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4125 | +printf "%s\n" "yes" >&6; }; |
| 4126 | +
|
| 4127 | +printf "%s\n" "#define HAVE_LIBPNG 1" >>confdefs.h |
| 4128 | +
|
| 4129 | + CPPFLAGS="$($PKGCONFIG --cflags libpng16) -DHAVE_LIBPNG=1 $CPPFLAGS" |
| 4130 | + LIBS="$($PKGCONFIG --libs libpng16) -lz $LIBS" |
| 4131 | + PKGCONFIG_LIBPNG="libpng >= 1.6," |
| 4132 | + PKGCONFIG_LIBS_PRIVATE="$($PKGCONFIG --libs libpng16) $PKGCONFIG_LIBS_PRIVATE" |
| 4133 | +
|
| 4134 | +else $as_nop |
| 4135 | +
|
| 4136 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4137 | +printf "%s\n" "no" >&6; }; |
| 4138 | + if test x$enable_libpng = xyes |
| 4139 | +then : |
| 4140 | +
|
| 4141 | + as_fn_error $? "libpng-dev 1.6 or later required for --enable-libpng." "$LINENO" 5 |
| 4142 | +
|
| 4143 | +fi |
| 4144 | +
|
| 4145 | +fi |
| 4146 | +
|
| 4147 | +elif test x$enable_libpng = xyes |
| 4148 | +then : |
| 4149 | +
|
| 4150 | + as_fn_error $? "libpng-dev 1.6 or later required for --enable-libpng." "$LINENO" 5 |
| 4151 | +
|
| 4152 | +fi |
| 4153 | +
|
| 4154 | +
|
4102 | 4155 | # Check whether --enable-static was given.
|
4103 | 4156 | if test ${enable_static+y}
|
4104 | 4157 | then :
|
@@ -4935,7 +4988,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
4935 | 4988 | # report actual input values of CONFIG_FILES etc. instead of their
|
4936 | 4989 | # values after options handling.
|
4937 | 4990 | ac_log="
|
4938 |
| -This file was extended by pdfio $as_me 1.4.1, which was |
| 4991 | +This file was extended by pdfio $as_me 1.5.0, which was |
4939 | 4992 | generated by GNU Autoconf 2.71. Invocation command line was
|
4940 | 4993 |
|
4941 | 4994 | CONFIG_FILES = $CONFIG_FILES
|
@@ -4991,7 +5044,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
|
4991 | 5044 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
4992 | 5045 | ac_cs_config='$ac_cs_config_escaped'
|
4993 | 5046 | ac_cs_version="\\
|
4994 |
| -pdfio config.status 1.4.1 |
| 5047 | +pdfio config.status 1.5.0 |
4995 | 5048 | configured by $0, generated by GNU Autoconf 2.71,
|
4996 | 5049 | with options \\"\$ac_cs_config\\"
|
4997 | 5050 |
|
|
0 commit comments