Version in base suite: 8.2.29-1~deb12u1 Version in overlay suite: 8.2.30-1~deb12u1 Base version: php8.2_8.2.30-1~deb12u1 Target version: php8.2_8.2.31-1~deb12u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/p/php8.2/php8.2_8.2.30-1~deb12u1.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/p/php8.2/php8.2_8.2.31-1~deb12u1.dsc .circleci/config.yml | 3 .github/actions/brew/action.yml | 12 .github/actions/build-libmysqlclient/action.yml | 6 .github/actions/ccache/action.yml | 39 .github/actions/configure-x64/action.yml | 29 .github/actions/freebsd/action.yml | 2 .github/actions/solaris/action.yml | 88 .github/actions/test-gentoo/action.yml | 1 .github/actions/test-libmysqlclient/action.yml | 6 .github/actions/test-linux/action.yml | 5 .github/actions/test-macos/action.yml | 5 .github/matrix.php | 206 .github/nightly_matrix.php | 66 .github/workflows/nightly-results.yml | 4 .github/workflows/nightly.yml | 1051 .github/workflows/push.yml | 232 .github/workflows/root.yml | 65 .github/workflows/test-suite.yml | 1109 .github/workflows/test.yml | 74 NEWS | 35 Zend/tests/GHSA-wm6j-2649-pv75.phpt | 22 Zend/tests/bug55509.phpt | 1 Zend/tests/bug74093.phpt | 6 Zend/tests/bug78010.phpt | 5 Zend/zend.h | 2 Zend/zend_compile.c | 2 Zend/zend_ini.c | 6 Zend/zend_ini_parser.c | 104 Zend/zend_ini_parser.h | 6 Zend/zend_ini_parser.output | 8 Zend/zend_ini_scanner.c | 5353 - Zend/zend_ini_scanner_defs.h | 4 Zend/zend_language_parser.c | 117 Zend/zend_language_parser.h | 6 Zend/zend_language_parser.output | 84 Zend/zend_language_scanner.c |12758 +-- Zend/zend_language_scanner_defs.h | 4 Zend/zend_operators.c | 8 Zend/zend_virtual_cwd.c | 10 Zend/zend_virtual_cwd.h | 2 configure |33218 +++++----- configure.ac | 2 debian/changelog | 16 ext/bcmath/libbcmath/src/add.c | 5 ext/bcmath/libbcmath/src/compare.c | 10 ext/bcmath/libbcmath/src/doaddsub.c | 10 ext/bcmath/libbcmath/src/init.c | 9 ext/bcmath/libbcmath/src/int2num.c | 5 ext/bcmath/libbcmath/src/nearzero.c | 5 ext/bcmath/libbcmath/src/neg.c | 4 ext/bcmath/libbcmath/src/num2long.c | 4 ext/bcmath/libbcmath/src/num2str.c | 5 ext/bcmath/libbcmath/src/rmzero.c | 4 ext/bcmath/libbcmath/src/sub.c | 5 ext/com_dotnet/com_extension.c | 4 ext/curl/config.w32 | 5 ext/curl/tests/bug71523.phpt | 1 ext/curl/tests/check_win_config.phpt | 4 ext/date/lib/parse_date.c | 10 ext/date/lib/parse_date.re | 10 ext/date/lib/parse_iso_intervals.c | 4 ext/date/lib/parse_iso_intervals.re | 4 ext/date/lib/timelib.c | 2 ext/filter/logical_filters.c | 10 ext/ftp/ftp.c | 10 ext/gd/libgd/gd_xbm.c | 2 ext/gd/tests/bug77270.phpt | 2 ext/gd/tests/bug77272.phpt | 1 ext/gd/tests/bug77479.phpt | 1 ext/gd/tests/gh16322.phpt | 2 ext/imap/php_imap.c | 2 ext/intl/locale/locale_methods.c | 2 ext/json/json_parser.tab.c | 99 ext/json/json_parser.tab.h | 6 ext/json/json_scanner.c | 1824 ext/json/php_json_scanner_defs.h | 4 ext/ldap/tests/GHSA-g665-fm4p-vhff-1.phpt | 1 ext/ldap/tests/GHSA-g665-fm4p-vhff-2.phpt | 1 ext/mbstring/mbstring.c | 4 ext/mbstring/php_mbregex.c | 9 ext/openssl/openssl.c | 16 ext/openssl/php_openssl.h | 4 ext/openssl/tests/gh9310.phpt | 59 ext/openssl/tests/openssl_x509_checkpurpose_basic.phpt | 2 ext/openssl/tests/openssl_x509_export_to_file_leak.phpt | 2 ext/openssl/tests/sni_server.pem | 57 ext/openssl/tests/sni_server.phpt | 29 ext/openssl/tests/sni_server_ca.pem | 63 ext/openssl/tests/sni_server_cs.pem | 57 ext/openssl/tests/sni_server_cs_cert.pem | 30 ext/openssl/tests/sni_server_cs_key.pem | 27 ext/openssl/tests/sni_server_key_cert.phpt | 45 ext/openssl/tests/sni_server_uk.pem | 57 ext/openssl/tests/sni_server_uk_cert.pem | 30 ext/openssl/tests/sni_server_uk_key.pem | 27 ext/openssl/tests/sni_server_us.pem | 57 ext/openssl/tests/sni_server_us_cert.pem | 30 ext/openssl/tests/sni_server_us_key.pem | 27 ext/openssl/xp_ssl.c | 14 ext/pcre/php_pcre.c | 4 ext/pdo/pdo.c | 2 ext/pdo/pdo_sql_parser.c | 446 ext/pdo/pdo_sql_parser.re | 2 ext/pdo/pdo_stmt.c | 2 ext/pdo_dblib/tests/GHSA-5hqh-c84r-qjcv.phpt | 1 ext/pdo_firebird/firebird_driver.c | 69 ext/pdo_firebird/tests/ghsa-w476-322c-wpvm.phpt | 44 ext/pdo_sqlite/tests/bug81740.phpt | 1 ext/phar/phar_path_check.c | 179 ext/phar/tests/phar_extract2.phpt | 2 ext/soap/php_encoding.c | 5 ext/soap/soap.c | 12 ext/soap/tests/GHSA-85c2-q967-79q5.phpt | 61 ext/soap/tests/GHSA-hmxp-6pc4-f3vv.phpt | 39 ext/soap/tests/GHSA-m33r-qmcv-p97q.phpt | 58 ext/soap/tests/soap_qname_crash.phpt | 1 ext/standard/dl.c | 2 ext/standard/exec.c | 2 ext/standard/file.c | 2 ext/standard/filters.c | 2 ext/standard/formatted_print.c | 8 ext/standard/ftp_fopen_wrapper.c | 12 ext/standard/html.c | 4 ext/standard/math.c | 6 ext/standard/metaphone.c | 24 ext/standard/quot_print.c | 8 ext/standard/scanf.c | 10 ext/standard/soundex.c | 2 ext/standard/string.c | 14 ext/standard/strnatcmp.c | 30 ext/standard/tests/GHSA-96wq-48vp-hh57.phpt | 22 ext/standard/tests/file/bug52820.phpt | 12 ext/standard/tests/file/bug69442.phpt | 1 ext/standard/tests/file/file_get_contents_file_put_contents_5gb.phpt | 1 ext/standard/tests/strings/gh15613.phpt | 1 ext/standard/type.c | 2 ext/standard/url.c | 20 ext/standard/url_scanner_ex.c | 562 ext/standard/url_scanner_ex.re | 6 ext/standard/var_unserializer.c | 544 ext/standard/versioning.c | 16 ext/tidy/tests/parsing_file_too_large.phpt | 1 main/SAPI.c | 6 main/fopen_wrappers.c | 6 main/php_config.h.in | 438 main/php_ini.c | 2 main/php_ini_builder.c | 2 main/php_variables.c | 4 main/php_version.h | 6 main/rfc1867.c | 12 main/snprintf.c | 14 main/spprintf.c | 14 main/streams/streams.c | 4 main/streams/transports.c | 2 pear/install-pear-nozlib.phar | 1220 sapi/cli/php_cli_server.c | 2 sapi/fpm/fpm/fpm_conf.c | 4 sapi/fpm/fpm/fpm_status.c | 34 sapi/fpm/tests/bug77023-pm-dynamic-blocking-sigquit.phpt | 2 sapi/fpm/tests/ghsa-7qg2-v9fj-4mwv-status-xss.phpt | 48 sapi/fpm/tests/proc-idle-timeout.phpt | 2 sapi/litespeed/lsapi_main.c | 4 sapi/litespeed/lsapilib.c | 6 sapi/phpdbg/phpdbg_cmd.c | 4 sapi/phpdbg/phpdbg_lexer.c | 3026 sapi/phpdbg/phpdbg_parser.c | 102 sapi/phpdbg/phpdbg_parser.h | 6 sapi/phpdbg/phpdbg_parser.output | 4 sapi/phpdbg/phpdbg_prompt.c | 2 sapi/phpdbg/phpdbg_utils.c | 10 win32/sendmail.c | 6 171 files changed, 34794 insertions(+), 29945 deletions(-) dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpxfa0hanw/php8.2_8.2.30-1~deb12u1.dsc: no acceptable signature found dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmpxfa0hanw/php8.2_8.2.31-1~deb12u1.dsc: no acceptable signature found diff -Nru php8.2-8.2.30/.circleci/config.yml php8.2-8.2.31/.circleci/config.yml --- php8.2-8.2.30/.circleci/config.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.circleci/config.yml 2026-05-05 13:59:08.000000000 +0000 @@ -5,7 +5,7 @@ resource_class: arm.medium docker: - image: cimg/base:current-22.04 - - image: mysql:8.3 + - image: mysql:8.4 environment: MYSQL_ALLOW_EMPTY_PASSWORD: true MYSQL_ROOT_PASSWORD: '' @@ -180,6 +180,7 @@ name: Test no_output_timeout: 30m command: | + export RUN_RESOURCE_HEAVY_TESTS=1 sapi/cli/php run-tests.php \ -d zend_extension=opcache.so \ -d opcache.enable_cli=1 \ diff -Nru php8.2-8.2.30/.github/actions/brew/action.yml php8.2-8.2.31/.github/actions/brew/action.yml --- php8.2-8.2.30/.github/actions/brew/action.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/actions/brew/action.yml 2026-05-05 13:59:08.000000000 +0000 @@ -13,11 +13,17 @@ # Some packages exist on x86 but not arm, or vice versa. # Install them with reinstall to avoid warnings. - brew reinstall autoconf webp tidy-html5 libzip libsodium icu4c - brew install \ + brew reinstall -v \ + autoconf \ + webp \ + tidy-html5 \ + libzip \ + libsodium \ + icu4c + brew install -v \ bison \ re2c - brew install \ + brew install -v \ aspell \ bzip2 \ enchant \ diff -Nru php8.2-8.2.30/.github/actions/build-libmysqlclient/action.yml php8.2-8.2.31/.github/actions/build-libmysqlclient/action.yml --- php8.2-8.2.30/.github/actions/build-libmysqlclient/action.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/actions/build-libmysqlclient/action.yml 2026-05-05 13:59:08.000000000 +0000 @@ -5,8 +5,6 @@ required: false libmysql: required: true - withMysqli: - required: true runs: using: composite steps: @@ -21,13 +19,11 @@ wget -nv $URL tar -xf $LIBMYSQL --strip-components=1 -C $MYSQL_DIR PDO_MYSQL=${MYSQL_DIR} - ${{ inputs.withMysqli == 'true' && 'MYSQLI=${MYSQL_DIR}/bin/mysql_config' || '' }} ./buildconf --force ./configure ${{ inputs.configurationParameters }} \ --enable-option-checking=fatal \ --disable-all \ --enable-pdo \ - --with-pdo-mysql=${PDO_MYSQL} \ - ${{ inputs.withMysqli == 'true' && '--with-mysqli=${MYSQLI}' || '' }} + --with-pdo-mysql=${PDO_MYSQL} make clean make -j$(/usr/bin/nproc) >/dev/null diff -Nru php8.2-8.2.30/.github/actions/ccache/action.yml php8.2-8.2.31/.github/actions/ccache/action.yml --- php8.2-8.2.30/.github/actions/ccache/action.yml 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/.github/actions/ccache/action.yml 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,39 @@ +name: ccache +inputs: + name: + required: true + php_directory: + required: false + default: '.' + cc: + required: false + default: 'gcc' + cxx: + required: false + default: 'g++' +runs: + using: composite + steps: + - name: Get cache key + shell: bash + id: cache_key + run: | + major=$(cat ${{ inputs.php_directory }}/main/php_version.h | sed -En 's/^#define PHP_MAJOR_VERSION ([0-9]+)/\1/p') + minor=$(cat ${{ inputs.php_directory }}/main/php_version.h | sed -En 's/^#define PHP_MINOR_VERSION ([0-9]+)/\1/p') + release=$(cat ${{ inputs.php_directory }}/main/php_version.h | sed -En 's/^#define PHP_RELEASE_VERSION ([0-9]+)/\1/p') + week=$(date +"%Y-%W") + prefix="${{ inputs.name }}-$major.$minor.$release" + echo "key=$prefix-$week" >> $GITHUB_OUTPUT + echo "prefix=$prefix-" >> $GITHUB_OUTPUT + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 + with: + key: "${{ steps.cache_key.outputs.key }}" + append-timestamp: false + restore-keys: "${{ steps.cache_key.outputs.prefix }}" + save: ${{ github.event_name != 'pull_request' }} + - name: Export CC/CXX + shell: bash + run: | + echo "CC=ccache ${{ inputs.cc }}" >> $GITHUB_ENV + echo "CXX=ccache ${{ inputs.cxx }}" >> $GITHUB_ENV diff -Nru php8.2-8.2.30/.github/actions/configure-x64/action.yml php8.2-8.2.31/.github/actions/configure-x64/action.yml --- php8.2-8.2.30/.github/actions/configure-x64/action.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/actions/configure-x64/action.yml 2026-05-05 13:59:08.000000000 +0000 @@ -3,6 +3,9 @@ configurationParameters: default: '' required: false + skipSlow: + default: false + required: false asan: default: false required: false @@ -20,9 +23,9 @@ --enable-fpm \ --with-pdo-mysql=mysqlnd \ --with-mysqli=mysqlnd \ - --with-pgsql \ - --with-pdo-pgsql \ - --with-pdo-sqlite \ + ${{ inputs.skipSlow == 'false' && '--with-pgsql' || '' }} \ + ${{ inputs.skipSlow == 'false' && '--with-pdo-pgsql' || '' }} \ + ${{ inputs.skipSlow == 'false' && '--with-pdo-sqlite' || '' }} \ --enable-intl \ --without-pear \ --enable-gd \ @@ -37,7 +40,7 @@ --enable-soap \ --enable-xmlreader \ --with-xsl \ - --with-tidy \ + ${{ inputs.skipSlow == 'false' && '--with-tidy' || '' }} \ --enable-sysvsem \ --enable-sysvshm \ --enable-shmop \ @@ -54,14 +57,14 @@ --enable-calendar \ --enable-ftp \ --with-pspell=/usr \ - --with-enchant=/usr \ + ${{ inputs.skipSlow == 'false' && '--with-enchant=/usr' || '' }} \ --with-kerberos \ --enable-sysvmsg \ --with-ffi \ --enable-zend-test \ - --enable-dl-test=shared \ - --with-ldap \ - --with-ldap-sasl \ + ${{ inputs.skipSlow == 'false' && '--enable-dl-test=shared' || '' }} \ + ${{ inputs.skipSlow == 'false' && '--with-ldap' || '' }} \ + ${{ inputs.skipSlow == 'false' && '--with-ldap-sasl' || '' }} \ --with-password-argon2 \ --with-mhash \ --with-sodium \ @@ -72,16 +75,16 @@ --with-tcadb \ --with-lmdb \ --with-qdbm \ - --with-snmp \ - --with-unixODBC \ + ${{ inputs.skipSlow == 'false' && '--with-snmp' || '' }} \ + ${{ inputs.skipSlow == 'false' && '--with-unixODBC' || '' }} \ --with-imap \ --with-imap-ssl \ - --with-pdo-odbc=unixODBC,/usr \ + ${{ inputs.skipSlow == 'false' && '--with-pdo-odbc=unixODBC,/usr' || '' }} \ $([ -d "/opt/oracle/instantclient" ] && echo '--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient') \ $([ -d "/opt/oracle/instantclient" ] && echo '--with-oci8=shared,instantclient,/opt/oracle/instantclient') \ --with-config-file-path=/etc \ --with-config-file-scan-dir=/etc/php.d \ - --with-pdo-firebird \ - --with-pdo-dblib \ + ${{ inputs.skipSlow == 'false' && '--with-pdo-firebird' || '' }} \ + ${{ inputs.skipSlow == 'false' && '--with-pdo-dblib' || '' }} \ --enable-werror \ ${{ inputs.configurationParameters }} diff -Nru php8.2-8.2.30/.github/actions/freebsd/action.yml php8.2-8.2.31/.github/actions/freebsd/action.yml --- php8.2-8.2.30/.github/actions/freebsd/action.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/actions/freebsd/action.yml 2026-05-05 13:59:08.000000000 +0000 @@ -15,6 +15,7 @@ release: '13.5' usesh: true copyback: false + disable-cache: true # Temporarily disable sqlite, as FreeBSD ships it with disabled double quotes. We'll need to fix our tests. # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269889 prepare: | @@ -105,6 +106,7 @@ export SKIP_IO_CAPTURE_TESTS=1 export CI_NO_IPV6=1 export STACK_LIMIT_DEFAULTS_CHECK=1 + export RUN_RESOURCE_HEAVY_TESTS=1 sapi/cli/php run-tests.php \ -P -q -j2 \ -g FAIL,BORK,LEAK,XLEAK \ diff -Nru php8.2-8.2.30/.github/actions/solaris/action.yml php8.2-8.2.31/.github/actions/solaris/action.yml --- php8.2-8.2.30/.github/actions/solaris/action.yml 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/.github/actions/solaris/action.yml 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,88 @@ +name: Solaris +inputs: + configurationParameters: + default: '' + required: false + runExtraTests: + default: false + required: false +runs: + using: composite + steps: + - name: Solaris + uses: vmactions/solaris-vm@v1 + with: + release: "11.4-gcc" + usesh: true + copyback: false + disable-cache: true + prepare: | + cd $GITHUB_WORKSPACE + pkg install bison developer/icu libzip oniguruma re2c + + ./buildconf -f + CC=gcc CXX=g++ \ + CFLAGS="-Wno-char-subscripts" \ + PATH=/usr/gnu/bin:/usr/bin \ + PKG_CONFIG_PATH=/usr/lib/amd64/pkgconfig \ + ./configure \ + --prefix=/usr/local \ + --enable-debug \ + --enable-werror \ + --enable-option-checking=fatal \ + --enable-fpm \ + --without-pear \ + --with-bz2 \ + --with-jpeg \ + --with-webp \ + --with-freetype \ + --enable-gd \ + --enable-exif \ + --with-zip \ + --with-zlib \ + --enable-soap \ + --enable-xmlreader \ + --with-xsl \ + --with-libxml \ + --enable-shmop \ + --enable-pcntl \ + --enable-mbstring \ + --with-curl \ + --enable-sockets \ + --with-openssl \ + --enable-bcmath \ + --enable-calendar \ + --enable-ftp \ + --enable-zend-test \ + --enable-dl-test=shared \ + --enable-intl \ + --with-mhash \ + --with-config-file-path=/etc \ + --with-config-file-scan-dir=/etc/php.d \ + ${{ inputs.configurationParameters }} + + gmake -j2 + mkdir /etc/php.d + gmake install > /dev/null + echo opcache.enable_cli=1 > /etc/php.d/opcache.ini + echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini + echo opcache.preload_user=root >> /etc/php.d/opcache.ini + run: | + cd $GITHUB_WORKSPACE + + export SKIP_IO_CAPTURE_TESTS=1 + export CI_NO_IPV6=1 + export STACK_LIMIT_DEFAULTS_CHECK=1 + PATH=/usr/gnu/bin:/usr/bin \ + sapi/cli/php run-tests.php \ + -P -q -j1 \ + -g FAIL,BORK,LEAK,XLEAK \ + --no-progress \ + --offline \ + --show-diff \ + --show-slow 1000 \ + --set-timeout 120 + + if test "${{ inputs.runExtraTests }}" = "true"; then + sapi/cli/php run-extra-tests.php + fi diff -Nru php8.2-8.2.30/.github/actions/test-gentoo/action.yml php8.2-8.2.31/.github/actions/test-gentoo/action.yml --- php8.2-8.2.30/.github/actions/test-gentoo/action.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/actions/test-gentoo/action.yml 2026-05-05 13:59:08.000000000 +0000 @@ -25,6 +25,7 @@ # Slow tests criteron is doubled because this runner isn't as fast as others export SKIP_IO_CAPTURE_TESTS=1 export STACK_LIMIT_DEFAULTS_CHECK=1 + export RUN_RESOURCE_HEAVY_TESTS=1 sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \ -j$(nproc) \ -g FAIL,BORK,LEAK,XLEAK \ diff -Nru php8.2-8.2.30/.github/actions/test-libmysqlclient/action.yml php8.2-8.2.31/.github/actions/test-libmysqlclient/action.yml --- php8.2-8.2.30/.github/actions/test-libmysqlclient/action.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/actions/test-libmysqlclient/action.yml 2026-05-05 13:59:08.000000000 +0000 @@ -1,19 +1,15 @@ name: Test libmysqlclient -inputs: - withMysqli: - required: true runs: using: composite steps: - shell: bash run: | set -x - ${{ inputs.withMysqli == 'true' && 'export MYSQL_TEST_USER=root' || '' }} - ${{ inputs.withMysqli == 'true' && 'export MYSQL_TEST_PASSWD=root' || '' }} export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test" export PDO_MYSQL_TEST_HOST=127.0.0.1 export PDO_MYSQL_TEST_USER=root export PDO_MYSQL_TEST_PASS=root + export RUN_RESOURCE_HEAVY_TESTS=1 sapi/cli/php run-tests.php -P -q \ -g FAIL,BORK,LEAK,XLEAK \ --no-progress --offline --show-diff --show-slow 1000 --set-timeout 120 \ diff -Nru php8.2-8.2.30/.github/actions/test-linux/action.yml php8.2-8.2.31/.github/actions/test-linux/action.yml --- php8.2-8.2.30/.github/actions/test-linux/action.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/actions/test-linux/action.yml 2026-05-05 13:59:08.000000000 +0000 @@ -3,6 +3,9 @@ runTestsParameters: default: '' required: false + enableOpcache: + default: 'false' + required: false jitType: default: 'disable' required: false @@ -36,7 +39,9 @@ export PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=postgres password=postgres" fi export SKIP_IO_CAPTURE_TESTS=1 + export RUN_RESOURCE_HEAVY_TESTS=1 sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \ + ${{ inputs.enableOpcache == 'true' && '-d zend_extension=opcache.so -d opcache.enable_cli=1' || '' }} \ -d opcache.jit=${{ inputs.jitType }} \ -d opcache.jit_buffer_size=16M \ ${{ inputs.idleCpu == 'true' && '-j$(($(/usr/bin/nproc) - 1))' || '-j$(/usr/bin/nproc)' }} \ diff -Nru php8.2-8.2.30/.github/actions/test-macos/action.yml php8.2-8.2.31/.github/actions/test-macos/action.yml --- php8.2-8.2.30/.github/actions/test-macos/action.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/actions/test-macos/action.yml 2026-05-05 13:59:08.000000000 +0000 @@ -3,6 +3,9 @@ runTestsParameters: default: '' required: false + enableOpcache: + default: 'false' + required: false jitType: default: 'disable' required: false @@ -14,7 +17,9 @@ set -x export SKIP_IO_CAPTURE_TESTS=1 export CI_NO_IPV6=1 + export RUN_RESOURCE_HEAVY_TESTS=1 sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \ + ${{ inputs.enableOpcache == 'true' && '-d zend_extension=opcache.so -d opcache.enable_cli=1' || '' }} \ -d opcache.jit=${{ inputs.jitType }} \ -d opcache.jit_buffer_size=16M \ -j$(($(sysctl -n hw.ncpu) - 1)) \ diff -Nru php8.2-8.2.30/.github/matrix.php php8.2-8.2.31/.github/matrix.php --- php8.2-8.2.30/.github/matrix.php 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/.github/matrix.php 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,206 @@ + 'master', 'ref' => 'master', 'version' => [8, 6]], + ['name' => 'PHP-8.5', 'ref' => 'PHP-8.5', 'version' => [8, 5]], + ['name' => 'PHP-8.4', 'ref' => 'PHP-8.4', 'version' => [8, 4]], + ['name' => 'PHP-8.3', 'ref' => 'PHP-8.3', 'version' => [8, 3]], + ['name' => 'PHP-8.2', 'ref' => 'PHP-8.2', 'version' => [8, 2]], +]; + +function get_branch_commit_cache_file_path(): string { + return dirname(__DIR__) . '/branch-commit-cache.json'; +} + +function get_branches() { + $branch_commit_cache_file = get_branch_commit_cache_file_path(); + $branch_commit_map = []; + if (file_exists($branch_commit_cache_file)) { + $branch_commit_map = json_decode(file_get_contents($branch_commit_cache_file), JSON_THROW_ON_ERROR); + } + + $changed_branches = []; + foreach (BRANCHES as $branch) { + $previous_commit_hash = $branch_commit_map[$branch['ref']] ?? null; + $current_commit_hash = trim(shell_exec('git rev-parse origin/' . $branch['ref'])); + + if ($previous_commit_hash !== $current_commit_hash) { + $changed_branches[] = $branch; + } + + $branch_commit_map[$branch['ref']] = $current_commit_hash; + } + + file_put_contents($branch_commit_cache_file, json_encode($branch_commit_map)); + + return $changed_branches; +} + +function get_current_version(): array { + $file = dirname(__DIR__) . '/main/php_version.h'; + $content = file_get_contents($file); + preg_match('(^#define PHP_MAJOR_VERSION (?\d+)$)m', $content, $matches); + $major = (int) $matches['num']; + preg_match('(^#define PHP_MINOR_VERSION (?\d+)$)m', $content, $matches); + $minor = (int) $matches['num']; + return [$major, $minor]; +} + +function select_jobs($repository, $trigger, $nightly, $labels, $php_version, $ref, $all_variations) { + $no_jobs = in_array('CI: No jobs', $labels, true); + $all_jobs = in_array('CI: All jobs', $labels, true) || $nightly; + $test_alpine = in_array('CI: Alpine', $labels, true); + $test_benchmarking = in_array('CI: Benchmarking', $labels, true); + $test_community = in_array('CI: Community', $labels, true); + $test_coverage = in_array('CI: Coverage', $labels, true); + $test_freebsd = in_array('CI: FreeBSD', $labels, true); + $test_libmysqlclient = in_array('CI: libmysqlclient', $labels, true); + $test_linux_ppc64 = in_array('CI: Linux PPC64', $labels, true); + $test_linux_x32 = in_array('CI: Linux X32', $labels, true); + $test_linux_x64 = in_array('CI: Linux X64', $labels, true); + $test_macos = in_array('CI: macOS', $labels, true); + $test_msan = in_array('CI: MSAN', $labels, true); + $test_opcache_variation = in_array('CI: Opcache Variation', $labels, true); + $test_pecl = in_array('CI: PECL', $labels, true); + $test_solaris = in_array('CI: Solaris', $labels, true); + $test_windows = in_array('CI: Windows', $labels, true); + + $jobs = []; + if (version_compare($php_version, '8.4', '>=') && ($all_jobs || !$no_jobs || $test_alpine)) { + $jobs['ALPINE'] = true; + } + if (version_compare($php_version, '8.4', '>=') + && !$nightly + && ($all_jobs || !$no_jobs || $test_benchmarking) + // push trigger is restricted to official repository. + && ($repository === 'php/php-src' || $trigger === 'pull_request')) { + $jobs['BENCHMARKING']['config']['integrated_opcache'] = version_compare($php_version, '8.5', '>='); + } + if ($all_jobs || $test_community) { + $jobs['COMMUNITY']['matrix'] = version_compare($php_version, '8.4', '>=') + ? ['type' => ['asan', 'verify_type_inference']] + : ['type' => ['asan']]; + $jobs['COMMUNITY']['config']['symfony_version'] = match (true) { + version_compare($php_version, '8.3', '<=') => '7.4', + default => '', + }; + $jobs['COMMUNITY']['config']['laravel_version'] = match (true) { + version_compare($php_version, '8.2', '<=') => '12.x', + default => '', + }; + } + if (($all_jobs && $ref === 'master') || $test_coverage) { + $jobs['COVERAGE'] = true; + } + if ($all_jobs || $test_libmysqlclient) { + $jobs['LIBMYSQLCLIENT'] = true; + } + if (version_compare($php_version, '8.4', '>=') && ($all_jobs || $test_linux_ppc64)) { + $jobs['LINUX_PPC64'] = true; + } + if ($all_jobs || !$no_jobs || $test_linux_x64) { + $jobs['LINUX_X64']['matrix'] = $all_variations + ? [ + 'name' => [''], + 'asan' => [false], + 'debug' => [true, false], + 'repeat' => [false], + 'variation' => [false], + 'zts' => [true, false], + 'include' => [ + ['name' => '_ASAN', 'asan' => true, 'debug' => true, 'repeat' => false, 'variation' => false, 'zts' => true], + ['name' => '_REPEAT', 'asan' => false, 'debug' => true, 'repeat' => true, 'variation' => false, 'zts' => false], + ['name' => '_VARIATION', 'asan' => false, 'debug' => true, 'repeat' => false, 'variation' => true, 'zts' => true], + ], + ] + : ['include' => [ + ['name' => '', 'asan' => false, 'debug' => false, 'repeat' => false, 'variation' => false, 'zts' => false], + ['name' => '_ASAN', 'asan' => true, 'debug' => true, 'repeat' => false, 'variation' => false, 'zts' => true], + ]]; + $jobs['LINUX_X64']['config']['variation_enable_zend_max_execution_timers'] = version_compare($php_version, '8.3', '>='); + } + if ($all_jobs || !$no_jobs || $test_linux_x32) { + $jobs['LINUX_X32']['matrix'] = $all_variations + ? ['debug' => [true, false], 'zts' => [true, false]] + : ['debug' => [true], 'zts' => [true]]; + } + if ($all_jobs || !$no_jobs || $test_macos) { + $test_arm = version_compare($php_version, '8.4', '>='); + $jobs['MACOS']['matrix'] = $all_variations + ? ['arch' => $test_arm ? ['X64', 'ARM64'] : ['X64'], 'debug' => [true, false], 'zts' => [true, false]] + : ['include' => [['arch' => $test_arm ? 'ARM64' : 'X64', 'debug' => true, 'zts' => false]]]; + $jobs['MACOS']['config']['arm64_version'] = version_compare($php_version, '8.4', '>=') ? '15' : '14'; + } + if ($all_jobs || $test_msan) { + $jobs['MSAN'] = true; + } + if ($all_jobs || $test_opcache_variation) { + $jobs['OPCACHE_VARIATION'] = true; + } + if (($all_jobs && $ref === 'master') || $test_pecl) { + $jobs['PECL'] = true; + } + if (version_compare($php_version, '8.6', '>=') && ($all_jobs || $test_solaris)) { + $jobs['SOLARIS'] = true; + } + if ($all_jobs || !$no_jobs || $test_windows) { + $matrix = [['asan' => false, 'opcache' => true, 'x64' => true, 'zts' => true]]; + if ($all_variations) { + $matrix[] = ['asan' => true, 'opcache' => true, 'x64' => true, 'zts' => true]; + $matrix[] = ['asan' => false, 'opcache' => false, 'x64' => false, 'zts' => false]; + if (version_compare($php_version, '8.6', '>=')) { + $matrix[] = ['asan' => false, 'opcache' => true, 'x64' => true, 'zts' => true, 'clang' => true]; + } + } + $jobs['WINDOWS']['matrix'] = ['include' => $matrix]; + $jobs['WINDOWS']['config'] = version_compare($php_version, '8.4', '>=') + ? ['vs_crt_version' => 'vs17'] + : ['vs_crt_version' => 'vs16']; + } + if ($all_jobs || !$no_jobs || $test_freebsd) { + $jobs['FREEBSD']['matrix'] = $all_variations && version_compare($php_version, '8.3', '>=') + ? ['zts' => [true, false]] + : ['zts' => [false]]; + } + return $jobs; +} + +$trigger = $argv[1] ?? 'schedule'; +$attempt = (int) ($argv[2] ?? 1); +$sunday = date('w', time()) === '0'; +$discard_cache = $sunday + || ($trigger === 'schedule' && $attempt !== 1) + || $trigger === 'workflow_dispatch'; +if ($discard_cache) { + @unlink(get_branch_commit_cache_file_path()); +} +$branch = $argv[3] ?? 'master'; +$nightly = $trigger === 'schedule' || $trigger === 'workflow_dispatch'; +$branches = $nightly && $branch === 'master' + ? get_branches() + : [['name' => 'Suite', 'ref' => $branch, 'version' => get_current_version()]]; + +$labels = json_decode($argv[4] ?? '[]', true) ?? []; +$labels = array_column($labels, 'name'); +$all_variations = $nightly || in_array('CI: All variations', $labels, true); + +$repository = $argv[5] ?? null; + +foreach ($branches as &$branch) { + $php_version = $branch['version'][0] . '.' . $branch['version'][1]; + $branch['jobs'] = select_jobs($repository, $trigger, $nightly, $labels, $php_version, $branch['ref'], $all_variations); + $branch['config']['ubuntu_version'] = version_compare($php_version, '8.5', '>=') ? '24.04' : '22.04'; +} + +echo "All variations:"; +echo json_encode($all_variations, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT); +echo "\n\nBranches:\n"; +echo json_encode($branches, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT); +echo "\n"; + +if (false !== ($github_output = getenv('GITHUB_OUTPUT'))) { + $f = fopen($github_output, 'a'); + fwrite($f, 'branches=' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n"); + fwrite($f, 'all_variations=' . json_encode($all_variations, JSON_UNESCAPED_SLASHES) . "\n"); + fclose($f); +} diff -Nru php8.2-8.2.30/.github/nightly_matrix.php php8.2-8.2.31/.github/nightly_matrix.php --- php8.2-8.2.30/.github/nightly_matrix.php 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/nightly_matrix.php 1970-01-01 00:00:00.000000000 +0000 @@ -1,66 +0,0 @@ - 'master', 'version' => [8, 6]], - ['ref' => 'PHP-8.5', 'version' => [8, 5]], - ['ref' => 'PHP-8.4', 'version' => [8, 4]], - ['ref' => 'PHP-8.3', 'version' => [8, 3]], - ['ref' => 'PHP-8.2', 'version' => [8, 2]], - ['ref' => 'PHP-8.1', 'version' => [8, 1]], -]; - -function get_branch_commit_cache_file_path(): string { - return dirname(__DIR__) . '/branch-commit-cache.json'; -} - -function get_branches() { - $branch_commit_cache_file = get_branch_commit_cache_file_path(); - $branch_commit_map = []; - if (file_exists($branch_commit_cache_file)) { - $branch_commit_map = json_decode(file_get_contents($branch_commit_cache_file), JSON_THROW_ON_ERROR); - } - - $changed_branches = []; - foreach (BRANCHES as $branch) { - $previous_commit_hash = $branch_commit_map[$branch['ref']] ?? null; - $current_commit_hash = trim(shell_exec('git rev-parse origin/' . $branch['ref'])); - - if ($previous_commit_hash !== $current_commit_hash) { - $changed_branches[] = $branch; - } - - $branch_commit_map[$branch['ref']] = $current_commit_hash; - } - - file_put_contents($branch_commit_cache_file, json_encode($branch_commit_map)); - - return $changed_branches; -} - -function get_current_version(): array { - $file = dirname(__DIR__) . '/main/php_version.h'; - $content = file_get_contents($file); - preg_match('(^#define PHP_MAJOR_VERSION (?\d+)$)m', $content, $matches); - $major = (int) $matches['num']; - preg_match('(^#define PHP_MINOR_VERSION (?\d+)$)m', $content, $matches); - $minor = (int) $matches['num']; - return [$major, $minor]; -} - -$trigger = $argv[1] ?? 'schedule'; -$attempt = (int) ($argv[2] ?? 1); -$sunday = date('w', time()) === '0'; -$discard_cache = $sunday - || ($trigger === 'schedule' && $attempt !== 1) - || $trigger === 'workflow_dispatch'; -if ($discard_cache) { - @unlink(get_branch_commit_cache_file_path()); -} -$branch = $argv[3] ?? 'master'; -$branches = $branch === 'master' - ? get_branches() - : [['ref' => $branch, 'version' => get_current_version()]]; - -$f = fopen(getenv('GITHUB_OUTPUT'), 'a'); -fwrite($f, 'branches=' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n"); -fclose($f); diff -Nru php8.2-8.2.30/.github/workflows/nightly-results.yml php8.2-8.2.31/.github/workflows/nightly-results.yml --- php8.2-8.2.30/.github/workflows/nightly-results.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/workflows/nightly-results.yml 2026-05-05 13:59:08.000000000 +0000 @@ -2,13 +2,13 @@ on: workflow_run: workflows: - - Nightly + - Test types: - completed jobs: on-failure: runs-on: ubuntu-latest - if: ${{ github.repository == 'php/php-src' && github.event.workflow_run.conclusion == 'failure' }} + if: ${{ github.repository == 'php/php-src' && github.event.workflow_run.event == 'schedule' && github.event.workflow_run.conclusion == 'failure' }} steps: - run: | export DEBIAN_FRONTEND=noninteractive diff -Nru php8.2-8.2.30/.github/workflows/nightly.yml php8.2-8.2.31/.github/workflows/nightly.yml --- php8.2-8.2.30/.github/workflows/nightly.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/workflows/nightly.yml 1970-01-01 00:00:00.000000000 +0000 @@ -1,1051 +0,0 @@ -name: Test suite -on: - workflow_call: - inputs: - asan_ubuntu_version: - required: true - type: string - branch: - required: true - type: string - community_verify_type_inference: - required: true - type: boolean - libmysqlclient_with_mysqli: - required: true - type: boolean - run_alpine: - required: true - type: boolean - run_linux_ppc64: - required: true - type: boolean - run_macos_arm64: - required: true - type: boolean - run_freebsd_zts: - required: true - type: boolean - ubuntu_version: - required: true - type: string - windows_version: - required: true - type: string - vs_crt_version: - required: true - type: string - skip_laravel: - required: true - type: boolean - symfony_version: - required: true - type: string - skip_wordpress: - required: true - type: boolean - variation_enable_zend_max_execution_timers: - required: true - type: boolean -permissions: - contents: read -jobs: - LINUX_PPC64: - if: inputs.run_linux_ppc64 - name: LINUX_PPC64_ASAN_UBSAN_DEBUG_ZTS - # This runs on a self-hosted runner; see https://wiki.php.net/systems/ci - runs-on: [self-hosted, gentoo, ppc64] - steps: - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: System info - run: | - echo "::group::Show host CPU info" - lscpu - echo "::endgroup::" - echo "::group::Show installed packages" - cat /var/lib/portage/world - echo "::endgroup::" - - name: ./configure - uses: ./.github/actions/configure-gentoo - with: - configurationParameters: >- - CFLAGS="-fsanitize=undefined,address -fno-sanitize=function -DZEND_TRACK_ARENA_ALLOC" - LDFLAGS="-fsanitize=undefined,address -fno-sanitize=function" - CC=clang-17 - CXX=clang++-17 - --enable-debug - --enable-zts - skipSlow: false # FIXME: This should likely include slow extensions - - name: make - run: make -j$(/usr/bin/nproc) >/dev/null - # Skip an install action for now - - name: Tests - uses: ./.github/actions/test-gentoo - # There is no PPC JIT, so rip this out - with: - runTestsParameters: >- - --asan -x - - name: Extra tests - uses: ./.github/actions/extra-tests - ALPINE: - if: inputs.run_alpine - name: ALPINE_X64_ASAN_UBSAN_DEBUG_ZTS - runs-on: ubuntu-24.04 - container: - image: 'alpine:3.22' - steps: - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: apk - uses: ./.github/actions/apk - - name: System info - run: | - echo "::group::Show host CPU info" - lscpu - echo "::endgroup::" - echo "::group::Show installed package versions" - apk list - echo "::endgroup::" - - name: ./configure - uses: ./.github/actions/configure-alpine - with: - configurationParameters: >- - CFLAGS="-fsanitize=undefined,address -fno-sanitize=function -DZEND_TRACK_ARENA_ALLOC" - LDFLAGS="-fsanitize=undefined,address -fno-sanitize=function" - CC=clang-20 - CXX=clang++-20 - --enable-debug - --enable-zts - skipSlow: true # FIXME: This should likely include slow extensions - - name: make - run: make -j$(/usr/bin/nproc) >/dev/null - - name: make install - uses: ./.github/actions/install-alpine - - name: Test Tracing JIT - uses: ./.github/actions/test-alpine - with: - jitType: tracing - runTestsParameters: >- - --asan -x - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Extra tests - uses: ./.github/actions/extra-tests - LINUX_X64: - services: - mysql: - image: mysql:8.3 - ports: - - 3306:3306 - env: - MYSQL_DATABASE: test - MYSQL_ROOT_PASSWORD: root - postgres: - image: postgres - env: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres - POSTGRES_DB: test - firebird: - image: jacobalberty/firebird - ports: - - 3050:3050 - env: - ISC_PASSWORD: test - FIREBIRD_DATABASE: test.fdb - FIREBIRD_USER: test - FIREBIRD_PASSWORD: test - strategy: - fail-fast: false - matrix: - configuration_parameters: [''] - debug: [true, false] - name: [''] - run_tests_parameters: [''] - test_function_jit: [true] - zts: [true, false] - include: - - name: _ASAN_UBSAN - debug: true - zts: true - configuration_parameters: >- - CFLAGS="-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC" - LDFLAGS="-fsanitize=undefined,address" - run_tests_parameters: '--asan' - test_function_jit: false - asan: true - - name: _REPEAT - debug: true - zts: false - run_tests_parameters: --repeat 2 - timeout_minutes: 360 - test_function_jit: true - asan: false - - name: _VARIATION - debug: true - zts: true - configuration_parameters: >- - CFLAGS="-DZEND_RC_DEBUG=1 -DPROFITABILITY_CHECKS=0 -DZEND_VERIFY_FUNC_INFO=1 -DZEND_VERIFY_TYPE_INFERENCE" - ${{ inputs.variation_enable_zend_max_execution_timers && '--enable-zend-max-execution-timers' || '' }} - run_tests_parameters: -d zend_test.observer.enabled=1 -d zend_test.observer.show_output=0 - timeout_minutes: 360 - test_function_jit: true - asan: false - name: "LINUX_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" - runs-on: ubuntu-${{ matrix.asan && inputs.asan_ubuntu_version || inputs.ubuntu_version }} - steps: - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: Create MSSQL container - uses: ./.github/actions/setup-mssql - - name: apt - uses: ./.github/actions/apt-x64 - with: - asan: ${{ matrix.asan && 'true' || 'false' }} - - name: System info - run: | - echo "::group::Show host CPU info" - lscpu - echo "::endgroup::" - echo "::group::Show installed package versions" - dpkg -l - echo "::endgroup::" - - name: ./configure - uses: ./.github/actions/configure-x64 - with: - configurationParameters: >- - ${{ matrix.configuration_parameters }} - --${{ matrix.debug && 'enable' || 'disable' }}-debug - --${{ matrix.zts && 'enable' || 'disable' }}-zts - asan: ${{ matrix.asan && 'true' || 'false' }} - - name: make - run: make -j$(/usr/bin/nproc) >/dev/null - - name: make install - uses: ./.github/actions/install-linux - - name: Setup - uses: ./.github/actions/setup-x64 - - name: Test - uses: ./.github/actions/test-linux - with: - runTestsParameters: >- - ${{ matrix.run_tests_parameters }} - idleCpu: ${{ matrix.asan && 'true' || 'false' }} - - name: Test Tracing JIT - uses: ./.github/actions/test-linux - with: - jitType: tracing - runTestsParameters: >- - ${{ matrix.run_tests_parameters }} - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Test OpCache - uses: ./.github/actions/test-linux - with: - runTestsParameters: >- - ${{ matrix.run_tests_parameters }} - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Test Function JIT - # ASAN frequently timeouts. Each test run takes ~90 minutes, we can - # avoid running into the 6 hour timeout by skipping the function JIT. - if: matrix.test_function_jit - uses: ./.github/actions/test-linux - with: - jitType: function - runTestsParameters: >- - ${{ matrix.run_tests_parameters }} - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Extra tests - uses: ./.github/actions/extra-tests - - name: Verify generated files are up to date - uses: ./.github/actions/verify-generated-files - LINUX_X32: - strategy: - fail-fast: false - matrix: - debug: [true, false] - zts: [true, false] - name: "LINUX_X32_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" - runs-on: ubuntu-latest - container: - image: ubuntu:${{ inputs.ubuntu_version }} - env: - PDO_FIREBIRD_TEST_DSN: firebird:dbname=firebird:test.fdb - services: - mysql: - image: mysql:8.3 - ports: - - 3306:3306 - env: - MYSQL_DATABASE: test - MYSQL_ROOT_PASSWORD: root - firebird: - image: jacobalberty/firebird - ports: - - 3050:3050 - env: - ISC_PASSWORD: test - FIREBIRD_DATABASE: test.fdb - FIREBIRD_USER: test - FIREBIRD_PASSWORD: test - steps: - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: apt - uses: ./.github/actions/apt-x32 - - name: System info - run: | - echo "::group::Show host CPU info" - lscpu - echo "::endgroup::" - echo "::group::Show installed package versions" - dpkg -l - echo "::endgroup::" - - name: ./configure - uses: ./.github/actions/configure-x32 - with: - configurationParameters: >- - --${{ matrix.debug && 'enable' || 'disable' }}-debug - --${{ matrix.zts && 'enable' || 'disable' }}-zts - - name: make - run: make -j$(/usr/bin/nproc) >/dev/null - - name: make install - uses: ./.github/actions/install-linux-x32 - - name: Test - uses: ./.github/actions/test-linux - with: - runTestsParameters: >- - ${{ matrix.run_tests_parameters }} - - name: Test Tracing JIT - uses: ./.github/actions/test-linux - with: - jitType: tracing - runTestsParameters: >- - ${{ matrix.run_tests_parameters }} - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Test OpCache - uses: ./.github/actions/test-linux - with: - runTestsParameters: >- - ${{ matrix.run_tests_parameters }} - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Test Function JIT - uses: ./.github/actions/test-linux - with: - jitType: function - runTestsParameters: >- - ${{ matrix.run_tests_parameters }} - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Extra tests - uses: ./.github/actions/extra-tests - MACOS: - strategy: - fail-fast: false - matrix: - debug: [true, false] - zts: [true, false] - os: ['13', '14'] - exclude: - - os: ${{ !inputs.run_macos_arm64 && '14' || '*never*' }} - name: "MACOS_${{ matrix.os == '13' && 'X64' || 'ARM64' }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" - runs-on: macos-${{ matrix.os }} - steps: - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: Update clang - uses: ./.github/actions/macos-update-clang - - name: brew - uses: ./.github/actions/brew - - name: ./configure - uses: ./.github/actions/configure-macos - with: - configurationParameters: >- - --${{ matrix.debug && 'enable' || 'disable' }}-debug - --${{ matrix.zts && 'enable' || 'disable' }}-zts - - name: make - run: |- - export PATH="$(brew --prefix)/opt/bison/bin:$PATH" - make -j$(sysctl -n hw.logicalcpu) >/dev/null - - name: make install - run: sudo make install - - name: Test - uses: ./.github/actions/test-macos - - name: Test Tracing JIT - if: matrix.os != '14' || !matrix.zts - uses: ./.github/actions/test-macos - with: - jitType: tracing - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Test OpCache - uses: ./.github/actions/test-macos - with: - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Test Function JIT - if: matrix.os != '14' || !matrix.zts - uses: ./.github/actions/test-macos - with: - jitType: function - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Extra tests - uses: ./.github/actions/extra-tests - - name: Verify generated files are up to date - uses: ./.github/actions/verify-generated-files - COVERAGE_DEBUG_NTS: - if: inputs.branch == 'master' - services: - mysql: - image: mysql:8.3 - ports: - - 3306:3306 - env: - MYSQL_DATABASE: test - MYSQL_ROOT_PASSWORD: root - postgres: - image: postgres - env: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres - POSTGRES_DB: test - firebird: - image: jacobalberty/firebird - ports: - - 3050:3050 - env: - ISC_PASSWORD: test - FIREBIRD_DATABASE: test.fdb - FIREBIRD_USER: test - FIREBIRD_PASSWORD: test - runs-on: ubuntu-22.04 - steps: - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: Create MSSQL container - uses: ./.github/actions/setup-mssql - - name: apt - uses: ./.github/actions/apt-x64 - - name: Install gcovr - run: sudo -H pip install gcovr - - name: ./configure - uses: ./.github/actions/configure-x64 - with: - configurationParameters: --enable-debug --disable-zts --enable-gcov - - name: make - run: make -j$(/usr/bin/nproc) >/dev/null - - name: make install - uses: ./.github/actions/install-linux - - name: Setup - uses: ./.github/actions/setup-x64 - # We only test with OpCache, the difference in coverage is negligible - - name: Test OpCache - uses: ./.github/actions/test-linux - with: - jitType: tracing - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - uses: codecov/codecov-action@v4 - if: ${{ !cancelled() }} - with: - fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }} - verbose: true - COMMUNITY: - strategy: - fail-fast: false - matrix: - type: ['asan', 'verify_type_inference'] - exclude: - - type: ${{ !inputs.community_verify_type_inference && 'verify_type_inference' || '*never*' }} - name: "COMMUNITY_${{ matrix.type }}" - runs-on: ubuntu-${{ inputs.ubuntu_version }} - env: - ASAN_OPTIONS: exitcode=139 - UBSAN_OPTIONS: print_stacktrace=1 - USE_ZEND_ALLOC: 0 - USE_TRACKED_ALLOC: 1 - steps: - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: apt - uses: ./.github/actions/apt-x64 - - name: ./configure - uses: ./.github/actions/configure-x64 - with: - # CFLAGS removes O2, so we have to add it again... - configurationParameters: >- - --enable-zts - ${{ matrix.type == 'asan' && '--enable-debug CFLAGS="-fsanitize=undefined,address -fno-sanitize-recover -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address"' || '' }} - ${{ matrix.type == 'verify_type_inference' && 'CFLAGS="-DZEND_VERIFY_TYPE_INFERENCE -O2"' || '' }} - - name: make - run: make -j$(/usr/bin/nproc) >/dev/null - - name: make install - uses: ./.github/actions/install-linux - - name: Setup - run: | - sudo service mysql start - mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test" - mysql -uroot -proot -e "SET GLOBAL local_infile = true" - - name: Enable Opcache - run: | - echo memory_limit=-1 >> /etc/php.d/opcache.ini - echo zend_extension=opcache.so > /etc/php.d/opcache.ini - echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini - echo opcache.enable=1 >> /etc/php.d/opcache.ini - echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini - echo opcache.memory_consumption=256M >> /etc/php.d/opcache.ini - echo opcache.file_update_protection=0 >> /etc/php.d/opcache.ini - echo opcache.interned_strings_buffer=64 >> /etc/php.d/opcache.ini - echo opcache.max_accelerated_files=100000 >> /etc/php.d/opcache.ini - - name: Enable JIT - if: matrix.type != 'verify_type_inference' - run: | - echo opcache.jit=tracing >> /etc/php.d/opcache.ini - echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini - echo opcache.jit_max_root_traces=100000 >> /etc/php.d/opcache.ini - echo opcache.jit_max_side_traces=100000 >> /etc/php.d/opcache.ini - echo opcache.jit_max_exit_counters=100000 >> /etc/php.d/opcache.ini - echo opcache.jit_hot_loop=1 >> /etc/php.d/opcache.ini - echo opcache.jit_hot_func=1 >> /etc/php.d/opcache.ini - echo opcache.jit_hot_return=1 >> /etc/php.d/opcache.ini - echo opcache.jit_hot_side_exit=1 >> /etc/php.d/opcache.ini - php -v - - name: Test AMPHP - if: ${{ !cancelled() }} - run: | - repositories="amp cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server" - X=0 - for repository in $repositories; do - echo "::group::$repository" - git clone "https://github.com/amphp/$repository.git" "amphp-$repository" --depth 1 - cd "amphp-$repository" - git rev-parse HEAD - php /usr/bin/composer install --no-progress --ignore-platform-req=php+ - EXIT_CODE=0 - vendor/bin/phpunit || EXIT_CODE=$? - echo -e "\n::endgroup::" - if [ ${EXIT_CODE:-0} -gt 128 ]; then - X=1; - echo "Failed" - fi - cd .. - done - exit $X - - name: Test Laravel - if: ${{ !cancelled() && !inputs.skip_laravel }} - run: | - git clone https://github.com/laravel/framework.git --depth=1 - cd framework - git rev-parse HEAD - php /usr/bin/composer install --no-progress --ignore-platform-req=php+ - # Hack to disable a test that hangs - php -r '$c = file_get_contents("tests/Filesystem/FilesystemTest.php"); $c = str_replace("public function testSharedGet()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testSharedGet()", $c); file_put_contents("tests/Filesystem/FilesystemTest.php", $c);' - php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$? - if [ ${EXIT_CODE:-0} -gt 128 ]; then - exit 1 - fi - - name: Test ReactPHP - if: ${{ !cancelled() }} - run: | - repositories="async cache child-process datagram dns event-loop promise promise-stream promise-timer stream" - X=0 - for repository in $repositories; do - echo "::group::$repository" - git clone "https://github.com/reactphp/$repository.git" "reactphp-$repository" --depth 1 - cd "reactphp-$repository" - git rev-parse HEAD - php /usr/bin/composer install --no-progress --ignore-platform-req=php+ - EXIT_CODE=0 - vendor/bin/phpunit || EXIT_CODE=$? - echo -e "\n::endgroup::" - if [ $[EXIT_CODE:-0} -gt 128 ]; then - X=1; - echo "Failed" - fi - cd .. - done - exit $X - - name: Test Revolt PHP - if: ${{ !cancelled() }} - run: | - git clone https://github.com/revoltphp/event-loop.git --depth=1 - cd event-loop - git rev-parse HEAD - php /usr/bin/composer install --no-progress --ignore-platform-req=php+ - vendor/bin/phpunit || EXIT_CODE=$? - if [ ${EXIT_CODE:-0} -gt 128 ]; then - exit 1 - fi - - name: Test Symfony - if: ${{ !cancelled() && inputs.symfony_version != '' }} - run: | - git clone https://github.com/symfony/symfony.git --depth=1 --branch="${{ inputs.symfony_version }}" - cd symfony - git rev-parse HEAD - php /usr/bin/composer install --no-progress --ignore-platform-req=php+ - php ./phpunit install - # Test causes a heap-buffer-overflow but I cannot reproduce it locally... - php -r '$c = file_get_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php"); $c = str_replace("public function testSanitizeDeepNestedString()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testSanitizeDeepNestedString()", $c); file_put_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php", $c);' - # Buggy FFI test in Symfony, see https://github.com/symfony/symfony/issues/47668 - php -r '$c = file_get_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php"); $c = str_replace("public function testCastNonTrailingCharPointer()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testCastNonTrailingCharPointer()", $c); file_put_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php", $c);' - export SYMFONY_DEPRECATIONS_HELPER=max[total]=999 - X=0 - for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do - echo "::group::$component" - EXIT_CODE=0 - php ./phpunit $component --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group transient --exclude-group skip || EXIT_CODE=$? - echo -e "\n::endgroup::" - if [ ${EXIT_CODE:-0} -gt 128 ]; then - X=1; - echo "Failed" - fi - done - exit $X - - name: Test PHPUnit - if: ${{ !cancelled() }} - run: | - git clone https://github.com/sebastianbergmann/phpunit.git --branch=main --depth=1 - cd phpunit - git rev-parse HEAD - php /usr/bin/composer install --no-progress --ignore-platform-req=php+ - php ./phpunit || EXIT_CODE=$? - if [ ${EXIT_CODE:-0} -gt 128 ]; then - exit 1 - fi - - name: 'Symfony Preloading' - # composer create-project will automatically pick the right Symfony version for us. - if: ${{ !cancelled() && inputs.symfony_version != '' }} - run: | - php /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress --ignore-platform-req=php+ - cd symfony_demo - git rev-parse HEAD - sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php - php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php - - name: Test Wordpress - if: ${{ !cancelled() && !inputs.skip_wordpress }} - run: | - git clone https://github.com/WordPress/wordpress-develop.git wordpress --depth=1 - cd wordpress - git rev-parse HEAD - php /usr/bin/composer install --no-progress --ignore-platform-req=php+ - cp wp-tests-config-sample.php wp-tests-config.php - sed -i 's/youremptytestdbnamehere/test/g' wp-tests-config.php - sed -i 's/yourusernamehere/root/g' wp-tests-config.php - sed -i 's/yourpasswordhere/root/g' wp-tests-config.php - php vendor/bin/phpunit || EXIT_CODE=$? - if [ $EXIT_CODE -gt 128 ]; then - exit 1 - fi - OPCACHE_VARIATION: - services: - mysql: - image: mysql:8.3 - ports: - - 3306:3306 - env: - MYSQL_DATABASE: test - MYSQL_ROOT_PASSWORD: root - postgres: - image: postgres - env: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres - POSTGRES_DB: test - firebird: - image: jacobalberty/firebird - ports: - - 3050:3050 - env: - ISC_PASSWORD: test - FIREBIRD_DATABASE: test.fdb - FIREBIRD_USER: test - FIREBIRD_PASSWORD: test - name: OPCACHE_VARIATION - runs-on: ubuntu-${{ inputs.ubuntu_version }} - steps: - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: Create MSSQL container - uses: ./.github/actions/setup-mssql - - name: apt - uses: ./.github/actions/apt-x64 - - name: ./configure - uses: ./.github/actions/configure-x64 - with: - configurationParameters: >- - --enable-debug --disable-zts - - name: make - run: make -j$(/usr/bin/nproc) >/dev/null - - name: make install - uses: ./.github/actions/install-linux - - name: Setup - uses: ./.github/actions/setup-x64 - - name: Test File Cache (prime shm) - uses: ./.github/actions/test-linux - with: - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - --file-cache-prime - - name: Test File Cache (prime shm, use shm) - uses: ./.github/actions/test-linux - with: - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - --file-cache-use - - name: Test File Cache (prime shm, use file) - uses: ./.github/actions/test-linux - with: - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - --file-cache-use - -d opcache.file_cache_only=1 - - name: Test File Cache Only (prime) - uses: ./.github/actions/test-linux - with: - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - --file-cache-prime - -d opcache.file_cache_only=1 - - name: Test File Cache Only (use) - uses: ./.github/actions/test-linux - with: - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - --file-cache-use - -d opcache.file_cache_only=1 - - name: Verify generated files are up to date - uses: ./.github/actions/verify-generated-files - MSAN: - name: MSAN - runs-on: ubuntu-${{ inputs.ubuntu_version }} - steps: - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: apt - uses: ./.github/actions/apt-x64 - - name: ./configure - run: | - export CC=clang - export CXX=clang++ - export CFLAGS="-DZEND_TRACK_ARENA_ALLOC" - ./buildconf --force - # msan requires all used libraries to be instrumented, - # so we should avoiding linking against anything but libc here - ./configure \ - --enable-debug \ - --enable-zts \ - --enable-option-checking=fatal \ - --prefix=/usr \ - --without-sqlite3 \ - --without-pdo-sqlite \ - --without-libxml \ - --disable-dom \ - --disable-simplexml \ - --disable-xml \ - --disable-xmlreader \ - --disable-xmlwriter \ - --without-pcre-jit \ - --disable-opcache-jit \ - --enable-phpdbg \ - --enable-fpm \ - --with-pdo-mysql=mysqlnd \ - --with-mysqli=mysqlnd \ - --disable-mysqlnd-compression-support \ - --without-pear \ - --enable-exif \ - --enable-sysvsem \ - --enable-sysvshm \ - --enable-shmop \ - --enable-pcntl \ - --enable-mbstring \ - --disable-mbregex \ - --enable-sockets \ - --enable-bcmath \ - --enable-calendar \ - --enable-ftp \ - --enable-zend-test \ - --enable-werror \ - --enable-memory-sanitizer \ - --with-config-file-path=/etc \ - --with-config-file-scan-dir=/etc/php.d \ - --enable-dl-test=shared - - name: make - run: make -j$(/usr/bin/nproc) >/dev/null - - name: make install - run: | - sudo make install - sudo mkdir -p /etc/php.d - sudo chmod 777 /etc/php.d - echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini - echo pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/pdo_mysql.ini - - name: Setup - run: | - set -x - sudo service mysql start - mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test" - # Ensure local_infile tests can run. - mysql -uroot -proot -e "SET GLOBAL local_infile = true" - sudo locale-gen de_DE - - name: Test - uses: ./.github/actions/test-linux - with: - runTestsParameters: >- - --msan - - name: Test Opcache - uses: ./.github/actions/test-linux - with: - runTestsParameters: >- - --msan - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Verify generated files are up to date - uses: ./.github/actions/verify-generated-files - LIBMYSQLCLIENT: - name: LIBMYSQLCLIENT - runs-on: ubuntu-${{ inputs.ubuntu_version }} - steps: - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: apt - run: | - sudo apt-get update -y | true - sudo apt install bison re2c - - name: Setup - run: | - sudo service mysql start - mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test" - # Ensure local_infile tests can run. - mysql -uroot -proot -e "SET GLOBAL local_infile = true" - - name: Build mysql-8.0 - uses: ./.github/actions/build-libmysqlclient - with: - configurationParameters: ${{ !inputs.libmysqlclient_with_mysqli && '--enable-werror' || '' }} - libmysql: mysql-8.0.37-linux-glibc2.28-x86_64.tar.xz - withMysqli: ${{ inputs.libmysqlclient_with_mysqli }} - - name: Test mysql-8.0 - uses: ./.github/actions/test-libmysqlclient - with: - withMysqli: ${{ inputs.libmysqlclient_with_mysqli }} - - name: Build mysql-8.4 - if: ${{ !inputs.libmysqlclient_with_mysqli }} - uses: ./.github/actions/build-libmysqlclient - with: - configurationParameters: ${{ !inputs.libmysqlclient_with_mysqli && '--enable-werror' || '' }} - libmysql: mysql-8.4.0-linux-glibc2.28-x86_64.tar.xz - withMysqli: ${{ inputs.libmysqlclient_with_mysqli }} - - name: Test mysql-8.4 - if: ${{ !inputs.libmysqlclient_with_mysqli }} - uses: ./.github/actions/test-libmysqlclient - with: - withMysqli: ${{ inputs.libmysqlclient_with_mysqli }} - - name: Verify generated files are up to date - uses: ./.github/actions/verify-generated-files - PECL: - if: inputs.branch == 'master' - runs-on: ubuntu-22.04 - env: - CC: ccache gcc - CXX: ccache g++ - steps: - - name: git checkout PHP - uses: actions/checkout@v5 - with: - path: php - ref: ${{ inputs.branch }} - - name: git checkout apcu - uses: actions/checkout@v5 - with: - repository: krakjoe/apcu - path: apcu - - name: git checkout imagick - uses: actions/checkout@v5 - with: - repository: Imagick/imagick - path: imagick - - name: git checkout memcached - uses: actions/checkout@v5 - with: - repository: php-memcached-dev/php-memcached - path: memcached - - name: git checkout redis - uses: actions/checkout@v5 - with: - repository: phpredis/phpredis - path: redis - - name: git checkout xdebug - if: false - uses: actions/checkout@v5 - with: - repository: xdebug/xdebug - path: xdebug - - name: git checkout yaml - uses: actions/checkout@v5 - with: - repository: php/pecl-file_formats-yaml - path: yaml - - name: apt - run: | - sudo apt-get update - sudo apt-get install -y --no-install-recommends \ - ccache \ - libmemcached-dev \ - bison \ - re2c - - name: ccache - uses: hendrikmuhs/ccache-action@v1.2 - with: - key: "${{github.job}}-${{hashFiles('php/main/php_version.h')}}" - append-timestamp: false - save: ${{ github.event_name != 'pull_request' }} - - name: build PHP - run: | - cd php - ./buildconf --force - ./configure \ - --enable-option-checking=fatal \ - --prefix=/opt/php \ - --enable-cli \ - --disable-all \ - --enable-session \ - --enable-werror - make -j$(/usr/bin/nproc) - sudo make install - - name: build apcu - run: | - cd apcu - /opt/php/bin/phpize - ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config - make -j$(/usr/bin/nproc) - - name: build imagick - run: | - cd imagick - /opt/php/bin/phpize - ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config - make -j$(/usr/bin/nproc) - - name: build memcached - run: | - cd memcached - /opt/php/bin/phpize - ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config - make -j$(/usr/bin/nproc) - - name: build redis - run: | - cd redis - /opt/php/bin/phpize - ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config - make -j$(/usr/bin/nproc) - - name: build xdebug - if: false - run: | - cd xdebug - /opt/php/bin/phpize - ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config - make -j$(/usr/bin/nproc) - - name: build yaml - run: | - cd yaml - /opt/php/bin/phpize - ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config - make -j$(/usr/bin/nproc) - WINDOWS: - strategy: - fail-fast: false - matrix: - include: - - x64: true - zts: true - opcache: true - asan: false - - x64: false - zts: false - opcache: false - asan: false - - x64: true - zts: true - opcache: true - asan: true - branch: 'master' - timeout: 120 - name: "WINDOWS_${{ matrix.x64 && 'X64' || 'X86' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || ''}}" - runs-on: windows-${{ inputs.windows_version }} - env: - PHP_BUILD_CACHE_BASE_DIR: C:\build-cache - PHP_BUILD_OBJ_DIR: C:\obj - PHP_BUILD_CACHE_SDK_DIR: C:\build-cache\sdk - PHP_BUILD_SDK_BRANCH: php-sdk-2.3.0 - PHP_BUILD_CRT: ${{ inputs.vs_crt_version }} - PLATFORM: ${{ matrix.x64 && 'x64' || 'x86' }} - THREAD_SAFE: "${{ matrix.zts && '1' || '0' }}" - INTRINSICS: "${{ matrix.zts && 'AVX2' || '' }}" - PARALLEL: -j2 - OPCACHE: "${{ matrix.opcache && '1' || '0' }}" - ASAN: "${{ matrix.asan && '1' || '0' }}" - steps: - - name: git config - run: git config --global core.autocrlf false && git config --global core.eol lf - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: Setup - uses: ./.github/actions/setup-windows - - name: Build - run: .github/scripts/windows/build.bat - - name: Test - run: .github/scripts/windows/test.bat - FREEBSD: - strategy: - fail-fast: false - matrix: - zts: [true, false] - exclude: - - zts: ${{ !inputs.run_freebsd_zts && true || '*never*' }} - name: "FREEBSD_${{ matrix.zts && 'ZTS' || 'NTS' }}" - runs-on: ubuntu-latest - timeout-minutes: 50 - steps: - - name: git checkout - uses: actions/checkout@v5 - with: - ref: ${{ inputs.branch }} - - name: FreeBSD - uses: ./.github/actions/freebsd - with: - configurationParameters: >- - --${{ matrix.zts && 'enable' || 'disable' }}-zts - runExtraTests: true diff -Nru php8.2-8.2.30/.github/workflows/push.yml php8.2-8.2.31/.github/workflows/push.yml --- php8.2-8.2.30/.github/workflows/push.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/workflows/push.yml 1970-01-01 00:00:00.000000000 +0000 @@ -1,232 +0,0 @@ -name: Push -on: - push: - paths-ignore: - - docs/** - - NEWS - - UPGRADING - - UPGRADING.INTERNALS - - '**/README.*' - - CONTRIBUTING.md - - CODING_STANDARDS.md - - .cirrus.yml - - .travis.yml - - travis/** - - .circleci/** - branches: - - PHP-7.4 - - PHP-8.0 - - PHP-8.1 - - PHP-8.2 - - master - pull_request: - paths-ignore: - - docs/** - - NEWS - - UPGRADING - - UPGRADING.INTERNALS - - '**/README.*' - - CONTRIBUTING.md - - CODING_STANDARDS.md - - .cirrus.yml - - .travis.yml - - travis/** - - .circleci/** - branches: - - '**' - workflow_dispatch: ~ -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.url || github.run_id }} - cancel-in-progress: true -env: - CC: ccache gcc - CXX: ccache g++ -jobs: - LINUX_X64: - if: github.repository == 'php/php-src' || github.event_name == 'pull_request' - services: - mysql: - image: mysql:8.3 - ports: - - 3306:3306 - env: - MYSQL_DATABASE: test - MYSQL_ROOT_PASSWORD: root - postgres: - image: postgres - ports: - - 5432:5432 - env: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres - POSTGRES_DB: test - strategy: - fail-fast: false - matrix: - include: - - debug: true - zts: false - - debug: false - zts: true - name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" - runs-on: ubuntu-22.04 - steps: - - name: git checkout - uses: actions/checkout@v5 - - name: Create MSSQL container - uses: ./.github/actions/setup-mssql - - name: Create Oracle container - uses: ./.github/actions/setup-oracle - - name: Setup Caddy server - uses: ./.github/actions/setup-caddy - - name: apt - uses: ./.github/actions/apt-x64 - - name: ccache - uses: hendrikmuhs/ccache-action@v1.2 - with: - # This duplicates the "job.name" expression above because - # GitHub has no way to query the job name (github.job is the - # job id, not the job name) - key: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}-${{hashFiles('main/php_version.h')}}" - append-timestamp: false - save: ${{ github.event_name != 'pull_request' }} - - name: ./configure - uses: ./.github/actions/configure-x64 - with: - configurationParameters: >- - --${{ matrix.debug && 'enable' || 'disable' }}-debug - --${{ matrix.zts && 'enable' || 'disable' }}-zts - - name: make - run: make -j$(/usr/bin/nproc) >/dev/null - - name: make install - uses: ./.github/actions/install-linux - - name: Setup - uses: ./.github/actions/setup-x64 - - name: Test - uses: ./.github/actions/test-linux - - name: Test Tracing JIT - uses: ./.github/actions/test-linux - with: - jitType: tracing - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - - name: Verify generated files are up to date - uses: ./.github/actions/verify-generated-files - LINUX_X32: - name: LINUX_X32_DEBUG_ZTS - runs-on: ubuntu-latest - container: - image: ubuntu:20.04 - env: - MYSQL_TEST_HOST: mysql - PDO_MYSQL_TEST_DSN: mysql:host=mysql;dbname=test - PDO_MYSQL_TEST_HOST: mysql - services: - mysql: - image: mysql:8.3 - ports: - - 3306:3306 - env: - MYSQL_DATABASE: test - MYSQL_ROOT_PASSWORD: root - steps: - - name: git checkout - uses: actions/checkout@v5 - - name: apt - uses: ./.github/actions/apt-x32 - - name: ccache - uses: hendrikmuhs/ccache-action@v1.2 - with: - key: "${{github.job}}-${{hashFiles('main/php_version.h')}}" - append-timestamp: false - save: ${{ github.event_name != 'pull_request' }} - - name: ./configure - uses: ./.github/actions/configure-x32 - with: - configurationParameters: >- - --enable-debug - --enable-zts - - name: make - run: make -j$(/usr/bin/nproc) >/dev/null - - name: make install - uses: ./.github/actions/install-linux-x32 - - name: Test Tracing JIT - uses: ./.github/actions/test-linux - with: - jitType: tracing - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - MACOS_DEBUG_NTS: - if: github.repository == 'php/php-src' || github.event_name == 'pull_request' - runs-on: macos-14 - steps: - - name: git checkout - uses: actions/checkout@v5 - - name: Update clang - uses: ./.github/actions/macos-update-clang - - name: brew - uses: ./.github/actions/brew - - name: ccache - uses: hendrikmuhs/ccache-action@v1.2 - with: - key: "${{github.job}}-${{hashFiles('main/php_version.h')}}" - append-timestamp: false - save: ${{ github.event_name != 'pull_request' }} - - name: ./configure - uses: ./.github/actions/configure-macos - with: - configurationParameters: --enable-debug --disable-zts - - name: make - run: |- - export PATH="$(brew --prefix)/opt/bison/bin:$PATH" - make -j$(sysctl -n hw.logicalcpu) >/dev/null - - name: make install - run: sudo make install - - name: Test Tracing JIT - uses: ./.github/actions/test-macos - with: - jitType: tracing - runTestsParameters: >- - -d zend_extension=opcache.so - -d opcache.enable_cli=1 - -d opcache.protect_memory=1 - - name: Verify generated files are up to date - uses: ./.github/actions/verify-generated-files - WINDOWS: - if: github.repository == 'php/php-src' || github.event_name == 'pull_request' - name: WINDOWS_X64_ZTS - runs-on: windows-2022 - env: - PHP_BUILD_CACHE_BASE_DIR: C:\build-cache - PHP_BUILD_OBJ_DIR: C:\obj - PHP_BUILD_CACHE_SDK_DIR: C:\build-cache\sdk - PHP_BUILD_SDK_BRANCH: php-sdk-2.3.0 - PHP_BUILD_CRT: vs16 - PLATFORM: x64 - THREAD_SAFE: "1" - INTRINSICS: AVX2 - PARALLEL: -j2 - OPCACHE: "1" - steps: - - name: git config - run: git config --global core.autocrlf false && git config --global core.eol lf - - name: git checkout - uses: actions/checkout@v5 - - name: Setup - uses: ./.github/actions/setup-windows - - name: Build - run: .github/scripts/windows/build.bat - - name: Test - run: .github/scripts/windows/test.bat - FREEBSD: - if: github.repository == 'php/php-src' || github.event_name == 'pull_request' - name: FREEBSD - runs-on: ubuntu-latest - timeout-minutes: 50 - steps: - - name: git checkout - uses: actions/checkout@v5 - - name: FreeBSD - uses: ./.github/actions/freebsd diff -Nru php8.2-8.2.30/.github/workflows/root.yml php8.2-8.2.31/.github/workflows/root.yml --- php8.2-8.2.30/.github/workflows/root.yml 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/.github/workflows/root.yml 1970-01-01 00:00:00.000000000 +0000 @@ -1,65 +0,0 @@ -name: Nightly -on: - schedule: - - cron: "0 1 * * *" - workflow_dispatch: ~ -permissions: - contents: read -jobs: - GENERATE_MATRIX: - name: Generate Matrix - if: github.repository == 'php/php-src' || github.event_name == 'workflow_dispatch' - runs-on: ubuntu-latest - outputs: - branches: ${{ steps.set-matrix.outputs.branches }} - steps: - - uses: actions/checkout@v5 - with: - # Set fetch-depth to 0 to clone the full repository - # including all branches. This is required to find - # the correct commit hashes. - fetch-depth: 0 - - name: Grab the commit mapping - uses: actions/cache@v4 - with: - path: branch-commit-cache.json - # The cache key needs to change every time for the - # cache to be updated after this job finishes. - key: nightly-${{ github.run_id }}-${{ github.run_attempt }} - restore-keys: | - nightly- - - name: Generate Matrix - id: set-matrix - run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.head_ref || github.ref_name }}" - NIGHTLY: - needs: GENERATE_MATRIX - name: ${{ matrix.branch.ref }} - if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }} - uses: ./.github/workflows/nightly.yml - strategy: - fail-fast: false - matrix: - branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }} - with: - asan_ubuntu_version: ${{ - (((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 5) || matrix.branch.version[0] >= 9) && '24.04') - || '22.04' }} - branch: ${{ matrix.branch.ref }} - community_verify_type_inference: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }} - libmysqlclient_with_mysqli: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1) }} - run_alpine: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }} - run_linux_ppc64: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }} - run_macos_arm64: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }} - run_freebsd_zts: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 3) || matrix.branch.version[0] >= 9 }} - ubuntu_version: ${{ - (((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 5) || matrix.branch.version[0] >= 9) && '24.04') - || '22.04' }} - windows_version: '2022' - vs_crt_version: ${{ ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) && 'vs17') || 'vs16' }} - skip_laravel: ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }} - symfony_version: ${{ (((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9) && '8.1') - || ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 2) && '7.4') - || '' }} - skip_wordpress: ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }} - variation_enable_zend_max_execution_timers: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 3) || matrix.branch.version[0] >= 9 }} - secrets: inherit diff -Nru php8.2-8.2.30/.github/workflows/test-suite.yml php8.2-8.2.31/.github/workflows/test-suite.yml --- php8.2-8.2.30/.github/workflows/test-suite.yml 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/.github/workflows/test-suite.yml 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,1109 @@ +name: Test suite +on: + workflow_call: + inputs: + all_variations: + required: true + type: boolean + branch: + required: true + type: string +permissions: + contents: read +jobs: + LINUX_PPC64: + if: ${{ fromJson(inputs.branch).jobs.LINUX_PPC64 }} + name: LINUX_PPC64_ASAN_DEBUG_ZTS + # This runs on a self-hosted runner; see https://wiki.php.net/systems/ci + runs-on: [self-hosted, gentoo, ppc64] + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: System info + run: | + echo "::group::Show host CPU info" + lscpu + echo "::endgroup::" + echo "::group::Show installed packages" + cat /var/lib/portage/world + echo "::endgroup::" + - name: ./configure + uses: ./.github/actions/configure-gentoo + with: + configurationParameters: >- + CFLAGS="-fsanitize=undefined,address -fno-sanitize=function -DZEND_TRACK_ARENA_ALLOC" + LDFLAGS="-fsanitize=undefined,address -fno-sanitize=function" + CC=clang-17 + CXX=clang++-17 + --enable-debug + --enable-zts + skipSlow: false # FIXME: This should likely include slow extensions + - name: make + run: make -j$(/usr/bin/nproc) >/dev/null + # Skip an install action for now + - name: Tests + uses: ./.github/actions/test-gentoo + # There is no PPC JIT, so rip this out + with: + runTestsParameters: >- + --asan -x + - name: Extra tests + uses: ./.github/actions/extra-tests + ALPINE: + if: ${{ fromJson(inputs.branch).jobs.ALPINE }} + name: ALPINE_X64_ASAN_DEBUG_ZTS + runs-on: ubuntu-24.04 + container: + image: 'alpine:3.22' + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: apk + uses: ./.github/actions/apk + - name: System info + run: | + echo "::group::Show host CPU info" + lscpu + echo "::endgroup::" + echo "::group::Show installed package versions" + apk list + echo "::endgroup::" + - name: ccache + uses: ./.github/actions/ccache + with: + name: "${{ github.job }}" + cc: clang-20 + cxx: clang++-20 + - name: ./configure + uses: ./.github/actions/configure-alpine + with: + configurationParameters: >- + CFLAGS="-fsanitize=undefined,address -fno-sanitize=function -DZEND_TRACK_ARENA_ALLOC" + LDFLAGS="-fsanitize=undefined,address -fno-sanitize=function" + --enable-debug + --enable-zts + skipSlow: true # FIXME: This should likely include slow extensions + - name: make + run: make -j$(/usr/bin/nproc) >/dev/null + - name: make install + uses: ./.github/actions/install-alpine + - name: Test Tracing JIT + uses: ./.github/actions/test-alpine + with: + enableOpcache: true + jitType: tracing + runTestsParameters: >- + --asan -x + - name: Extra tests + uses: ./.github/actions/extra-tests + LINUX_X64: + if: ${{ fromJson(inputs.branch).jobs.LINUX_X64 }} + services: + mysql: + image: mysql:8.4 + ports: + - 3306:3306 + env: + MYSQL_DATABASE: test + MYSQL_ROOT_PASSWORD: root + postgres: + image: postgres + env: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: test + firebird: + image: jacobalberty/firebird + ports: + - 3050:3050 + env: + ISC_PASSWORD: test + FIREBIRD_DATABASE: test.fdb + FIREBIRD_USER: test + FIREBIRD_PASSWORD: test + strategy: + fail-fast: false + matrix: ${{ fromJson(inputs.branch).jobs.LINUX_X64.matrix }} + name: "LINUX_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" + runs-on: ubuntu-${{ fromJson(inputs.branch).config.ubuntu_version }} + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: Create MSSQL container + uses: ./.github/actions/setup-mssql + - name: apt + uses: ./.github/actions/apt-x64 + with: + asan: ${{ matrix.asan && 'true' || 'false' }} + - name: System info + run: | + echo "::group::Show host CPU info" + lscpu + echo "::endgroup::" + echo "::group::Show installed package versions" + dpkg -l + echo "::endgroup::" + - name: Setup Caddy server + uses: ./.github/actions/setup-caddy + - name: ccache + uses: ./.github/actions/ccache + with: + # This duplicates the "job.name" expression above because + # GitHub has no way to query the job name (github.job is the + # job id, not the job name) + name: "LINUX_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" + - name: ./configure + uses: ./.github/actions/configure-x64 + with: + configurationParameters: >- + ${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address"' || '' }} + ${{ matrix.variation && 'CFLAGS="-DZEND_RC_DEBUG=1 -DPROFITABILITY_CHECKS=0 -DZEND_VERIFY_FUNC_INFO=1 -DZEND_VERIFY_TYPE_INFERENCE"' || '' }} + ${{ (matrix.variation && fromJson(inputs.branch).jobs.LINUX_X64.config.variation_enable_zend_max_execution_timers) && '--enable-zend-max-execution-timers' || '' }} + --${{ matrix.debug && 'enable' || 'disable' }}-debug + ${{ matrix.debug && 'CXXFLAGS="-D_GLIBCXX_ASSERTIONS"' || '' }} + --${{ matrix.zts && 'enable' || 'disable' }}-zts + asan: ${{ matrix.asan && 'true' || 'false' }} + skipSlow: ${{ (matrix.asan && !inputs.all_variations) && 'true' || 'false' }} + - name: make + run: make -j$(/usr/bin/nproc) >/dev/null + - name: make install + uses: ./.github/actions/install-linux + - name: Setup + if: ${{ !matrix.asan || inputs.all_variations }} + uses: ./.github/actions/setup-x64 + - name: Test + if: ${{ inputs.all_variations || !matrix.asan }} + uses: ./.github/actions/test-linux + with: + runTestsParameters: >- + ${{ matrix.asan && '--asan' || '' }} + ${{ matrix.repeat && '--repeat 2' || '' }} + ${{ matrix.variation && '-d zend_test.observer.enabled=1 -d zend_test.observer.show_output=0' || '' }} + idleCpu: ${{ matrix.asan && 'true' || 'false' }} + - name: Test Tracing JIT + if: ${{ inputs.all_variations || matrix.asan }} + uses: ./.github/actions/test-linux + with: + enableOpcache: true + jitType: tracing + runTestsParameters: >- + ${{ matrix.asan && '--asan' || '' }} + ${{ (matrix.asan && !inputs.all_variations) && '-x' || '' }} + ${{ matrix.repeat && '--repeat 2' || '' }} + ${{ matrix.variation && '-d zend_test.observer.enabled=1 -d zend_test.observer.show_output=0' || '' }} + - name: Test OpCache + if: ${{ inputs.all_variations }} + uses: ./.github/actions/test-linux + with: + enableOpcache: true + runTestsParameters: >- + ${{ matrix.asan && '--asan' || '' }} + ${{ matrix.repeat && '--repeat 2' || '' }} + ${{ matrix.variation && '-d zend_test.observer.enabled=1 -d zend_test.observer.show_output=0' || '' }} + - name: Test Function JIT + # ASAN frequently timeouts. Each test run takes ~90 minutes, we can + # avoid running into the 6 hour timeout by skipping the function JIT. + if: ${{ !matrix.asan }} + uses: ./.github/actions/test-linux + with: + enableOpcache: true + jitType: function + runTestsParameters: >- + ${{ matrix.repeat && '--repeat 2' || '' }} + ${{ matrix.variation && '-d zend_test.observer.enabled=1 -d zend_test.observer.show_output=0' || '' }} + - name: Extra tests + uses: ./.github/actions/extra-tests + - name: Verify generated files are up to date + uses: ./.github/actions/verify-generated-files + LINUX_X32: + if: ${{ fromJson(inputs.branch).jobs.LINUX_X32 }} + strategy: + fail-fast: false + matrix: ${{ fromJson(inputs.branch).jobs.LINUX_X32.matrix }} + name: "LINUX_X32_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" + runs-on: ubuntu-latest + container: + image: ubuntu:${{ fromJson(inputs.branch).config.ubuntu_version }} + env: + MYSQL_TEST_HOST: mysql + PDO_MYSQL_TEST_DSN: mysql:host=mysql;dbname=test + PDO_MYSQL_TEST_HOST: mysql + PDO_FIREBIRD_TEST_DSN: firebird:dbname=firebird:test.fdb + services: + mysql: + image: mysql:8.4 + ports: + - 3306:3306 + env: + MYSQL_DATABASE: test + MYSQL_ROOT_PASSWORD: root + firebird: + image: jacobalberty/firebird + ports: + - 3050:3050 + env: + ISC_PASSWORD: test + FIREBIRD_DATABASE: test.fdb + FIREBIRD_USER: test + FIREBIRD_PASSWORD: test + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: apt + uses: ./.github/actions/apt-x32 + - name: ccache + uses: ./.github/actions/ccache + with: + name: "LINUX_X32_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" + - name: System info + run: | + echo "::group::Show host CPU info" + lscpu + echo "::endgroup::" + echo "::group::Show installed package versions" + dpkg -l + echo "::endgroup::" + - name: ./configure + uses: ./.github/actions/configure-x32 + with: + configurationParameters: >- + --${{ matrix.debug && 'enable' || 'disable' }}-debug + --${{ matrix.zts && 'enable' || 'disable' }}-zts + - name: make + run: make -j$(/usr/bin/nproc) >/dev/null + - name: make install + uses: ./.github/actions/install-linux-x32 + - name: Test + if: ${{ inputs.all_variations }} + uses: ./.github/actions/test-linux + - name: Test Tracing JIT + uses: ./.github/actions/test-linux + with: + enableOpcache: true + jitType: tracing + - name: Test OpCache + if: ${{ inputs.all_variations }} + uses: ./.github/actions/test-linux + with: + enableOpcache: true + - name: Test Function JIT + if: ${{ inputs.all_variations }} + uses: ./.github/actions/test-linux + with: + enableOpcache: true + jitType: function + - name: Extra tests + uses: ./.github/actions/extra-tests + MACOS: + if: ${{ fromJson(inputs.branch).jobs.MACOS }} + strategy: + fail-fast: false + matrix: ${{ fromJson(inputs.branch).jobs.MACOS.matrix }} + name: "MACOS_${{ matrix.arch }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" + runs-on: macos-${{ matrix.arch == 'X64' && '15-intel' || fromJson(inputs.branch).jobs.MACOS.config.arm64_version }} + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: Update clang + timeout-minutes: 10 + uses: ./.github/actions/macos-update-clang + - name: brew + timeout-minutes: 10 + uses: ./.github/actions/brew + - name: ccache + uses: ./.github/actions/ccache + with: + name: "MACOS_${{ matrix.arch }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" + - name: ./configure + uses: ./.github/actions/configure-macos + with: + configurationParameters: >- + --${{ matrix.debug && 'enable' || 'disable' }}-debug + --${{ matrix.zts && 'enable' || 'disable' }}-zts + - name: make + run: |- + export PATH="$(brew --prefix)/opt/bison/bin:$PATH" + make -j$(sysctl -n hw.logicalcpu) >/dev/null + - name: make install + run: sudo make install + - name: Test + if: ${{ inputs.all_variations }} + uses: ./.github/actions/test-macos + - name: Test Tracing JIT + if: ${{ matrix.arch == 'X64' || !matrix.zts }} + uses: ./.github/actions/test-macos + with: + enableOpcache: true + jitType: tracing + - name: Test OpCache + if: ${{ inputs.all_variations || (matrix.arch == 'ARM64' && matrix.zts) }} + uses: ./.github/actions/test-macos + with: + enableOpcache: true + - name: Test Function JIT + if: ${{ inputs.all_variations && (matrix.arch == 'X64' || !matrix.zts) }} + uses: ./.github/actions/test-macos + with: + enableOpcache: true + jitType: function + - name: Extra tests + uses: ./.github/actions/extra-tests + - name: Verify generated files are up to date + uses: ./.github/actions/verify-generated-files + COVERAGE: + if: ${{ fromJson(inputs.branch).jobs.COVERAGE }} + services: + mysql: + image: mysql:8.4 + ports: + - 3306:3306 + env: + MYSQL_DATABASE: test + MYSQL_ROOT_PASSWORD: root + postgres: + image: postgres + env: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: test + firebird: + image: jacobalberty/firebird + ports: + - 3050:3050 + env: + ISC_PASSWORD: test + FIREBIRD_DATABASE: test.fdb + FIREBIRD_USER: test + FIREBIRD_PASSWORD: test + runs-on: ubuntu-24.04 + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: Create MSSQL container + uses: ./.github/actions/setup-mssql + - name: apt + uses: ./.github/actions/apt-x64 + - name: Install gcovr + run: sudo -H pip install gcovr + - name: ./configure + uses: ./.github/actions/configure-x64 + with: + configurationParameters: --enable-debug --disable-zts --enable-gcov + - name: make + run: make -j$(/usr/bin/nproc) >/dev/null + - name: make install + uses: ./.github/actions/install-linux + - name: Setup + uses: ./.github/actions/setup-x64 + # We only test with OpCache, the difference in coverage is negligible + - name: Test OpCache + uses: ./.github/actions/test-linux + with: + enableOpcache: true + jitType: tracing + - name: Generate coverage report + if: ${{ !cancelled() }} + run: make gcovr-xml + - uses: codecov/codecov-action@v6 + if: ${{ !cancelled() }} + with: + disable_search: true + fail_ci_if_error: true + files: gcovr.xml + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true + COMMUNITY: + if: ${{ fromJson(inputs.branch).jobs.COMMUNITY }} + strategy: + fail-fast: false + matrix: ${{ fromJson(inputs.branch).jobs.COMMUNITY.matrix }} + name: "COMMUNITY_${{ matrix.type }}" + runs-on: ubuntu-${{ fromJson(inputs.branch).config.ubuntu_version }} + env: + ASAN_OPTIONS: exitcode=139 + UBSAN_OPTIONS: print_stacktrace=1 + USE_ZEND_ALLOC: 0 + USE_TRACKED_ALLOC: 1 + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: apt + uses: ./.github/actions/apt-x64 + - name: ccache + uses: ./.github/actions/ccache + with: + name: "COMMUNITY_${{ matrix.type }}" + - name: ./configure + uses: ./.github/actions/configure-x64 + with: + # CFLAGS removes O2, so we have to add it again... + configurationParameters: >- + --enable-zts + ${{ matrix.type == 'asan' && '--enable-debug CFLAGS="-fsanitize=undefined,address -fno-sanitize-recover -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address"' || '' }} + ${{ matrix.type == 'verify_type_inference' && 'CFLAGS="-DZEND_VERIFY_TYPE_INFERENCE -O2"' || '' }} + - name: make + run: make -j$(/usr/bin/nproc) >/dev/null + - name: make install + uses: ./.github/actions/install-linux + - name: Setup + run: | + sudo service mysql start + mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test" + mysql -uroot -proot -e "SET GLOBAL local_infile = true" + - name: Enable Opcache + run: | + echo memory_limit=-1 >> /etc/php.d/opcache.ini + echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini + echo opcache.enable=1 >> /etc/php.d/opcache.ini + echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini + echo opcache.memory_consumption=256M >> /etc/php.d/opcache.ini + echo opcache.file_update_protection=0 >> /etc/php.d/opcache.ini + echo opcache.interned_strings_buffer=64 >> /etc/php.d/opcache.ini + echo opcache.max_accelerated_files=100000 >> /etc/php.d/opcache.ini + - name: Enable JIT + if: ${{ matrix.type != 'verify_type_inference' }} + run: | + echo opcache.jit=tracing >> /etc/php.d/opcache.ini + echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini + echo opcache.jit_max_root_traces=100000 >> /etc/php.d/opcache.ini + echo opcache.jit_max_side_traces=100000 >> /etc/php.d/opcache.ini + echo opcache.jit_max_exit_counters=100000 >> /etc/php.d/opcache.ini + echo opcache.jit_hot_loop=1 >> /etc/php.d/opcache.ini + echo opcache.jit_hot_func=1 >> /etc/php.d/opcache.ini + echo opcache.jit_hot_return=1 >> /etc/php.d/opcache.ini + echo opcache.jit_hot_side_exit=1 >> /etc/php.d/opcache.ini + php -v + - name: Test AMPHP + if: ${{ !cancelled() }} + run: | + repositories="amp cache dns file http parallel parser pipeline process serialization socket sync websocket-client websocket-server" + X=0 + for repository in $repositories; do + echo "::group::$repository" + git clone "https://github.com/amphp/$repository.git" "amphp-$repository" --depth 1 + cd "amphp-$repository" + git rev-parse HEAD + php /usr/bin/composer install --no-progress --ignore-platform-req=php+ + EXIT_CODE=0 + vendor/bin/phpunit || EXIT_CODE=$? + echo -e "\n::endgroup::" + if [ ${EXIT_CODE:-0} -gt 128 ]; then + X=1; + echo "Failed" + fi + cd .. + done + exit $X + - name: Test Laravel + if: ${{ !cancelled() }} + run: | + branch=${{ fromJson(inputs.branch).jobs.COMMUNITY.config.laravel_version }} + git clone https://github.com/laravel/framework.git --depth=1 ${branch:+--branch="$branch"} + cd framework + git rev-parse HEAD + php /usr/bin/composer install --no-progress --ignore-platform-req=php+ + # Hack to disable a test that hangs + php -r '$c = file_get_contents("tests/Filesystem/FilesystemTest.php"); $c = str_replace("public function testSharedGet()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testSharedGet()", $c); file_put_contents("tests/Filesystem/FilesystemTest.php", $c);' + php vendor/bin/phpunit --exclude-group skip || EXIT_CODE=$? + if [ ${EXIT_CODE:-0} -gt 128 ]; then + exit 1 + fi + - name: Test ReactPHP + if: ${{ !cancelled() }} + run: | + repositories="async cache child-process datagram dns event-loop promise promise-stream promise-timer stream" + X=0 + for repository in $repositories; do + echo "::group::$repository" + git clone "https://github.com/reactphp/$repository.git" "reactphp-$repository" --depth 1 + cd "reactphp-$repository" + git rev-parse HEAD + php /usr/bin/composer install --no-progress --ignore-platform-req=php+ + EXIT_CODE=0 + vendor/bin/phpunit || EXIT_CODE=$? + echo -e "\n::endgroup::" + if [ $[EXIT_CODE:-0} -gt 128 ]; then + X=1; + echo "Failed" + fi + cd .. + done + exit $X + - name: Test Revolt PHP + if: ${{ !cancelled() }} + run: | + git clone https://github.com/revoltphp/event-loop.git --depth=1 + cd event-loop + git rev-parse HEAD + php /usr/bin/composer install --no-progress --ignore-platform-req=php+ + vendor/bin/phpunit || EXIT_CODE=$? + if [ ${EXIT_CODE:-0} -gt 128 ]; then + exit 1 + fi + - name: Test Symfony + if: ${{ !cancelled() }} + run: | + branch=${{ fromJson(inputs.branch).jobs.COMMUNITY.config.symfony_version }} + git clone https://github.com/symfony/symfony.git --depth=1 ${branch:+--branch="$branch"} + cd symfony + git rev-parse HEAD + php /usr/bin/composer install --no-progress --ignore-platform-req=php+ + php ./phpunit install + # Test causes a heap-buffer-overflow but I cannot reproduce it locally... + php -r '$c = file_get_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php"); $c = str_replace("public function testSanitizeDeepNestedString()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testSanitizeDeepNestedString()", $c); file_put_contents("src/Symfony/Component/HtmlSanitizer/Tests/HtmlSanitizerCustomTest.php", $c);' + # Buggy FFI test in Symfony, see https://github.com/symfony/symfony/issues/47668 + php -r '$c = file_get_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php"); $c = str_replace("public function testCastNonTrailingCharPointer()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testCastNonTrailingCharPointer()", $c); file_put_contents("src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php", $c);' + export SYMFONY_DEPRECATIONS_HELPER=max[total]=999 + X=0 + for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do + echo "::group::$component" + EXIT_CODE=0 + php ./phpunit $component --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group transient --exclude-group skip || EXIT_CODE=$? + echo -e "\n::endgroup::" + if [ ${EXIT_CODE:-0} -gt 128 ]; then + X=1; + echo "Failed" + fi + done + exit $X + - name: Test PHPUnit + if: ${{ !cancelled() }} + run: | + git clone https://github.com/sebastianbergmann/phpunit.git --branch=main --depth=1 + cd phpunit + git rev-parse HEAD + php /usr/bin/composer install --no-progress --ignore-platform-req=php+ + php ./phpunit || EXIT_CODE=$? + if [ ${EXIT_CODE:-0} -gt 128 ]; then + exit 1 + fi + - name: 'Symfony Preloading' + # composer create-project will automatically pick the right Symfony version for us. + if: ${{ !cancelled() }} + run: | + php /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress --ignore-platform-req=php+ + cd symfony_demo + git rev-parse HEAD + sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php + php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php + - name: Test Wordpress + if: ${{ !cancelled() }} + run: | + git clone https://github.com/WordPress/wordpress-develop.git wordpress --depth=1 + cd wordpress + git rev-parse HEAD + php /usr/bin/composer install --no-progress --ignore-platform-req=php+ + cp wp-tests-config-sample.php wp-tests-config.php + sed -i 's/youremptytestdbnamehere/test/g' wp-tests-config.php + sed -i 's/yourusernamehere/root/g' wp-tests-config.php + sed -i 's/yourpasswordhere/root/g' wp-tests-config.php + php vendor/bin/phpunit || EXIT_CODE=$? + if [ $EXIT_CODE -gt 128 ]; then + exit 1 + fi + OPCACHE_VARIATION: + if: ${{ fromJson(inputs.branch).jobs.OPCACHE_VARIATION }} + services: + mysql: + image: mysql:8.4 + ports: + - 3306:3306 + env: + MYSQL_DATABASE: test + MYSQL_ROOT_PASSWORD: root + postgres: + image: postgres + env: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: test + firebird: + image: jacobalberty/firebird + ports: + - 3050:3050 + env: + ISC_PASSWORD: test + FIREBIRD_DATABASE: test.fdb + FIREBIRD_USER: test + FIREBIRD_PASSWORD: test + name: OPCACHE_VARIATION + runs-on: ubuntu-${{ fromJson(inputs.branch).config.ubuntu_version }} + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: Create MSSQL container + uses: ./.github/actions/setup-mssql + - name: apt + uses: ./.github/actions/apt-x64 + - name: ccache + uses: ./.github/actions/ccache + with: + name: "${{ github.job }}" + - name: ./configure + uses: ./.github/actions/configure-x64 + with: + configurationParameters: >- + --enable-debug --disable-zts + - name: make + run: make -j$(/usr/bin/nproc) >/dev/null + - name: make install + uses: ./.github/actions/install-linux + - name: Setup + uses: ./.github/actions/setup-x64 + - name: Test File Cache (prime shm) + uses: ./.github/actions/test-linux + with: + enableOpcache: true + runTestsParameters: >- + --file-cache-prime + - name: Test File Cache (prime shm, use shm) + uses: ./.github/actions/test-linux + with: + enableOpcache: true + runTestsParameters: >- + --file-cache-use + - name: Test File Cache (prime shm, use file) + uses: ./.github/actions/test-linux + with: + enableOpcache: true + runTestsParameters: >- + --file-cache-use + -d opcache.file_cache_only=1 + - name: Test File Cache Only (prime) + uses: ./.github/actions/test-linux + with: + enableOpcache: true + runTestsParameters: >- + --file-cache-prime + -d opcache.file_cache_only=1 + - name: Test File Cache Only (use) + uses: ./.github/actions/test-linux + with: + enableOpcache: true + runTestsParameters: >- + --file-cache-use + -d opcache.file_cache_only=1 + - name: Verify generated files are up to date + uses: ./.github/actions/verify-generated-files + MSAN: + if: ${{ fromJson(inputs.branch).jobs.MSAN }} + name: MSAN + runs-on: ubuntu-${{ fromJson(inputs.branch).config.ubuntu_version }} + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: apt + uses: ./.github/actions/apt-x64 + - name: ccache + uses: ./.github/actions/ccache + with: + name: "${{ github.job }}" + cc: clang + cxx: clang++ + - name: ./configure + run: | + export CFLAGS="-DZEND_TRACK_ARENA_ALLOC" + ./buildconf --force + # msan requires all used libraries to be instrumented, + # so we should avoiding linking against anything but libc here + ./configure \ + --enable-debug \ + --enable-zts \ + --enable-option-checking=fatal \ + --prefix=/usr \ + --without-sqlite3 \ + --without-pdo-sqlite \ + --without-libxml \ + --disable-dom \ + --disable-simplexml \ + --disable-xml \ + --disable-xmlreader \ + --disable-xmlwriter \ + --without-pcre-jit \ + --disable-opcache-jit \ + --enable-phpdbg \ + --enable-fpm \ + --with-pdo-mysql=mysqlnd \ + --with-mysqli=mysqlnd \ + --disable-mysqlnd-compression-support \ + --without-pear \ + --enable-exif \ + --enable-sysvsem \ + --enable-sysvshm \ + --enable-shmop \ + --enable-pcntl \ + --enable-mbstring \ + --disable-mbregex \ + --enable-sockets \ + --enable-bcmath \ + --enable-calendar \ + --enable-ftp \ + --enable-zend-test \ + --enable-werror \ + --enable-memory-sanitizer \ + --with-config-file-path=/etc \ + --with-config-file-scan-dir=/etc/php.d \ + --enable-dl-test=shared + - name: make + run: make -j$(/usr/bin/nproc) >/dev/null + - name: make install + run: | + sudo make install + sudo mkdir -p /etc/php.d + sudo chmod 777 /etc/php.d + echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini + echo pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/pdo_mysql.ini + - name: Setup + run: | + set -x + sudo service mysql start + mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test" + # Ensure local_infile tests can run. + mysql -uroot -proot -e "SET GLOBAL local_infile = true" + sudo locale-gen de_DE + - name: Test + uses: ./.github/actions/test-linux + with: + runTestsParameters: >- + --msan + - name: Test Opcache + uses: ./.github/actions/test-linux + with: + enableOpcache: true + runTestsParameters: >- + --msan + - name: Verify generated files are up to date + uses: ./.github/actions/verify-generated-files + LIBMYSQLCLIENT: + if: ${{ fromJson(inputs.branch).jobs.LIBMYSQLCLIENT }} + name: LIBMYSQLCLIENT + runs-on: ubuntu-${{ fromJson(inputs.branch).config.ubuntu_version }} + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: apt + run: | + sudo apt-get update -y | true + sudo apt install bison re2c + - name: Setup + run: | + sudo service mysql start + mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test" + # Ensure local_infile tests can run. + mysql -uroot -proot -e "SET GLOBAL local_infile = true" + - name: Build mysql-8.0 + uses: ./.github/actions/build-libmysqlclient + with: + configurationParameters: '--enable-werror' + libmysql: mysql-8.0.37-linux-glibc2.28-x86_64.tar.xz + - name: Test mysql-8.0 + uses: ./.github/actions/test-libmysqlclient + - name: Build mysql-8.4 + uses: ./.github/actions/build-libmysqlclient + with: + configurationParameters: '--enable-werror' + libmysql: mysql-8.4.0-linux-glibc2.28-x86_64.tar.xz + - name: Test mysql-8.4 + uses: ./.github/actions/test-libmysqlclient + - name: Verify generated files are up to date + uses: ./.github/actions/verify-generated-files + PECL: + if: ${{ fromJson(inputs.branch).jobs.PECL }} + runs-on: ubuntu-24.04 + steps: + - name: git checkout PHP + uses: actions/checkout@v6 + with: + path: php + ref: ${{ fromJson(inputs.branch).ref }} + # Used for ccache action + - name: Move .github + run: mv php/.github . + - name: git checkout apcu + uses: actions/checkout@v6 + with: + repository: krakjoe/apcu + path: apcu + - name: git checkout imagick + uses: actions/checkout@v6 + with: + repository: Imagick/imagick + path: imagick + - name: git checkout memcached + uses: actions/checkout@v6 + with: + repository: php-memcached-dev/php-memcached + path: memcached + - name: git checkout redis + if: ${{ false }} + uses: actions/checkout@v6 + with: + repository: phpredis/phpredis + path: redis + - name: git checkout xdebug + uses: actions/checkout@v6 + with: + repository: xdebug/xdebug + path: xdebug + - name: git checkout yaml + uses: actions/checkout@v6 + with: + repository: php/pecl-file_formats-yaml + path: yaml + - name: apt + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends \ + ccache \ + libmemcached-dev \ + imagemagick \ + libmagickwand-dev \ + bison \ + re2c + - name: ccache + uses: ./.github/actions/ccache + with: + name: "${{ github.job }}" + php_directory: php + - name: build PHP + run: | + cd php + ./buildconf --force + ./configure \ + --enable-option-checking=fatal \ + --prefix=/opt/php \ + --enable-cli \ + --disable-all \ + --enable-session \ + --enable-werror + make -j$(/usr/bin/nproc) + sudo make install + - name: build apcu + run: | + cd apcu + /opt/php/bin/phpize + ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config + make -j$(/usr/bin/nproc) + - name: build imagick + run: | + cd imagick + /opt/php/bin/phpize + ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config + make -j$(/usr/bin/nproc) + - name: build memcached + run: | + cd memcached + /opt/php/bin/phpize + ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config + make -j$(/usr/bin/nproc) + - name: build redis + if: ${{ false }} + run: | + cd redis + /opt/php/bin/phpize + ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config + make -j$(/usr/bin/nproc) + - name: build xdebug + run: | + cd xdebug + /opt/php/bin/phpize + ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config + make -j$(/usr/bin/nproc) + - name: build yaml + run: | + cd yaml + /opt/php/bin/phpize + ./configure --prefix=/opt/php --with-php-config=/opt/php/bin/php-config + make -j$(/usr/bin/nproc) + WINDOWS: + if: ${{ fromJson(inputs.branch).jobs.WINDOWS }} + strategy: + fail-fast: false + matrix: ${{ fromJson(inputs.branch).jobs.WINDOWS.matrix }} + name: "WINDOWS_${{ matrix.x64 && 'X64' || 'X86' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || ''}}${{ matrix.clang && '_CLANG' || ''}}" + runs-on: windows-2022 + env: + PHP_BUILD_CACHE_BASE_DIR: C:\build-cache + PHP_BUILD_OBJ_DIR: C:\obj + PHP_BUILD_CACHE_SDK_DIR: C:\build-cache\sdk + PHP_BUILD_SDK_BRANCH: php-sdk-2.5.0 + PHP_BUILD_CRT: ${{ fromJson(inputs.branch).jobs.WINDOWS.config.vs_crt_version }} + PLATFORM: ${{ matrix.x64 && 'x64' || 'x86' }} + THREAD_SAFE: "${{ matrix.zts && '1' || '0' }}" + INTRINSICS: "${{ matrix.zts && 'AVX2' || '' }}" + PARALLEL: -j2 + OPCACHE: "${{ matrix.opcache && '1' || '0' }}" + ASAN: "${{ matrix.asan && '1' || '0' }}" + CLANG_TOOLSET: "${{ matrix.clang && '1' || '0' }}" + steps: + - name: git config + run: git config --global core.autocrlf false && git config --global core.eol lf + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: Setup + uses: ./.github/actions/setup-windows + - name: Build + run: .github/scripts/windows/build.bat + - name: Test + run: .github/scripts/windows/test.bat + FREEBSD: + if: ${{ fromJson(inputs.branch).jobs.FREEBSD }} + strategy: + fail-fast: false + matrix: ${{ fromJson(inputs.branch).jobs.FREEBSD.matrix }} + name: "FREEBSD_${{ matrix.zts && 'ZTS' || 'NTS' }}" + runs-on: ubuntu-latest + timeout-minutes: 50 + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: FreeBSD + uses: ./.github/actions/freebsd + with: + configurationParameters: >- + --${{ matrix.zts && 'enable' || 'disable' }}-zts + runExtraTests: true + SOLARIS: + if: ${{ fromJson(inputs.branch).jobs.SOLARIS }} + name: "SOLARIS" + runs-on: ubuntu-latest + timeout-minutes: 50 + steps: + - name: git checkout + uses: actions/checkout@v5 + with: + ref: ${{ fromJson(inputs.branch).ref }} + - name: Solaris + uses: ./.github/actions/solaris + with: + configurationParameters: --disable-zts + runExtraTests: true + BENCHMARKING: + name: BENCHMARKING + if: ${{ fromJson(inputs.branch).jobs.BENCHMARKING }} + runs-on: ubuntu-${{ fromJson(inputs.branch).config.ubuntu_version }} + timeout-minutes: 50 + steps: + - name: git checkout + uses: actions/checkout@v6 + with: + ref: ${{ fromJson(inputs.branch).ref }} + fetch-depth: 0 + # ASLR can cause a lot of noise due to missed sse opportunities for memcpy + # and other operations, so we disable it during benchmarking. + - name: Disable ASLR + run: echo 0 | sudo tee /proc/sys/kernel/randomize_va_space + - name: apt + run: | + set -x + sudo apt-get update + sudo apt-get install \ + bison \ + libgmp-dev \ + libonig-dev \ + libsqlite3-dev \ + openssl \ + re2c \ + valgrind + - name: ccache + uses: ./.github/actions/ccache + with: + name: "${{ github.job }}" + - name: ./configure + run: | + set -x + ./buildconf --force + ./configure \ + --disable-debug \ + --enable-mbstring \ + --enable-option-checking=fatal \ + --enable-sockets \ + --enable-werror \ + --prefix=/usr \ + --with-config-file-scan-dir=/etc/php.d \ + --with-gmp \ + --with-mysqli=mysqlnd \ + --with-openssl \ + --with-pdo-sqlite \ + --with-valgrind + - name: make + run: make -j$(/usr/bin/nproc) >/dev/null + - name: make install + run: | + set -x + sudo make install + sudo mkdir -p /etc/php.d + sudo chmod 777 /etc/php.d + echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini + ${{ !fromJson(inputs.branch).jobs.BENCHMARKING.config.integrated_opcache && 'echo zend_extension=opcache.so >> /etc/php.d/opcache.ini' || '' }} + echo opcache.enable=1 >> /etc/php.d/opcache.ini + echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini + - name: Setup + run: | + git config --global user.name "Benchmark" + git config --global user.email "benchmark@php.net" + sudo service mysql start + mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS wordpress" + mysql -uroot -proot -e "CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'wordpress'; FLUSH PRIVILEGES;" + mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON *.* TO 'wordpress'@'localhost' WITH GRANT OPTION;" + - name: git checkout benchmarking-data + uses: actions/checkout@v6 + with: + repository: php/benchmarking-data + ssh-key: ${{ secrets.BENCHMARKING_DATA_DEPLOY_KEY }} + path: benchmark/repos/data + - name: Benchmark + run: php benchmark/benchmark.php true + - name: Store result + if: github.event_name == 'push' + run: | + set -x + cd benchmark/repos/data + git pull --autostash + if [ -e ".git/MERGE_HEAD" ]; then + echo "Merging, can't proceed" + exit 1 + fi + git add . + if git diff --cached --quiet; then + exit 0 + fi + git commit -m "Add result for ${{ github.repository }}@${{ github.sha }}" + git push + - name: Show diff + if: github.event_name == 'pull_request' + run: |- + set -x + php benchmark/generate_diff.php \ + ${{ github.sha }} \ + ${{ github.event.pull_request.base.sha }} \ + > $GITHUB_STEP_SUMMARY + - uses: actions/upload-artifact@v6 + with: + name: profiles + path: ${{ github.workspace }}/benchmark/profiles + retention-days: 30 diff -Nru php8.2-8.2.30/.github/workflows/test.yml php8.2-8.2.31/.github/workflows/test.yml --- php8.2-8.2.30/.github/workflows/test.yml 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/.github/workflows/test.yml 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,74 @@ +name: Test +on: + push: + paths-ignore: &ignore_paths + - .circleci/** + - .github/CODEOWNERS + - .github/ISSUE_TEMPLATE/** + - '**/*.md' + - '**/*.rst' + - docs/** + - EXTENSIONS + - LICENSE + - NEWS + - UPGRADING + - UPGRADING.INTERNALS + branches: + - PHP-8.2 + - PHP-8.3 + - PHP-8.4 + - PHP-8.5 + - master + pull_request: + paths-ignore: *ignore_paths + branches: + - '**' + schedule: + - cron: "0 1 * * *" + workflow_dispatch: ~ +permissions: + contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.url || github.run_id }} + cancel-in-progress: true +jobs: + GENERATE_MATRIX: + name: Generate Matrix + if: github.repository == 'php/php-src' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' + runs-on: ubuntu-latest + outputs: + all_variations: ${{ steps.set-matrix.outputs.all_variations }} + branches: ${{ steps.set-matrix.outputs.branches }} + steps: + - uses: actions/checkout@v6 + with: + # When running nightly, set fetch-depth to 0 to clone the full + # repository including all branches. This is required to find the + # correct commit hashes. + fetch-depth: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && '0' || '1' }} + - name: Grab the commit mapping + if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} + uses: actions/cache@v5 + with: + path: branch-commit-cache.json + # The cache key needs to change every time for the + # cache to be updated after this job finishes. + key: nightly-${{ github.run_id }}-${{ github.run_attempt }} + restore-keys: | + nightly- + - name: Generate Matrix + id: set-matrix + run: php .github/matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.event_name == 'pull_request' && github.ref || github.ref_name }}" '${{ toJSON(github.event.pull_request.labels) }}' "${{ github.repository }}" + TEST: + needs: GENERATE_MATRIX + if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }} + name: ${{ matrix.branch.name }} + uses: ./.github/workflows/test-suite.yml + strategy: + fail-fast: false + matrix: + branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }} + with: + all_variations: ${{ needs.GENERATE_MATRIX.outputs.all_variations == 'true' }} + branch: ${{ toJSON(matrix.branch) }} + secrets: inherit diff -Nru php8.2-8.2.30/NEWS php8.2-8.2.31/NEWS --- php8.2-8.2.30/NEWS 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/NEWS 2026-05-05 13:59:08.000000000 +0000 @@ -1,5 +1,40 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| +07 May 2026, PHP 8.2.31 + +- Curl: + . Add support for brotli and zstd on Windows. (Shivam Mathur) + +- FPM: + . Fixed GHSA-7qg2-v9fj-4mwv (XSS within status endpoint). (CVE-2026-6735) + (Jakub Zelenka) + +- MBString: + . Fixed GHSA-wm6j-2649-pv75 (Null pointer dereference in + php_mb_check_encoding() via mb_ereg_search_init()). (CVE-2026-7259) + (vi3tL0u1s) + +- OpenSSL: + . Fix compatibility issues with OpenSSL 4.0. (jordikroon, Remi) + +- PDO_Firebird: + . Fixed GHSA-w476-322c-wpvm (SQL injection via NUL bytes in quoted strings). + (CVE-2025-14179) (SakiTakamachi) + +- SOAP: + . Fixed GHSA-85c2-q967-79q5 (Stale SOAP_GLOBAL(ref_map) pointer with Apache + Map). (CVE-2026-6722) (ilutov) + . Fixed GHSA-m33r-qmcv-p97q (Use-after-free after header parsing failure with + SOAP_PERSISTENCE_SESSION). (CVE-2026-7261) (ilutov) + . Fixed GHSA-hmxp-6pc4-f3vv (Broken Apache map value NULL check). + (CVE-2026-7262) (ilutov) + +- Standard: + . Fixed GHSA-96wq-48vp-hh57 (Signed integer overflow of char array offset). + (CVE-2026-7568) (TimWolla) + . Fixed GHSA-m8rr-4c36-8gq4 (Consistently pass unsigned char to ctype.h + functions). (CVE-2026-7258) (ilutov) + 18 Dec 2025, PHP 8.2.30 - Curl: diff -Nru php8.2-8.2.30/Zend/tests/GHSA-wm6j-2649-pv75.phpt php8.2-8.2.31/Zend/tests/GHSA-wm6j-2649-pv75.phpt --- php8.2-8.2.30/Zend/tests/GHSA-wm6j-2649-pv75.phpt 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/Zend/tests/GHSA-wm6j-2649-pv75.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,22 @@ +--TEST-- +GHSA-wm6j-2649-pv75: Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init() +--CREDITS-- +vi3tL0u1s +--EXTENSIONS-- +mbstring +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Fatal error: Uncaught ValueError: mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "iso-8859-11" given in %s:%d +Stack trace: +#0 %s(%d): mb_regex_encoding('iso-8859-11') +#1 {main} + thrown in %s on line %d diff -Nru php8.2-8.2.30/Zend/tests/bug55509.phpt php8.2-8.2.31/Zend/tests/bug55509.phpt --- php8.2-8.2.30/Zend/tests/bug55509.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/tests/bug55509.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -2,6 +2,7 @@ Bug #55509 (segfault on x86_64 using more than 2G memory) --SKIPIF-- --EXPECTF-- diff -Nru php8.2-8.2.30/Zend/tests/bug78010.phpt php8.2-8.2.31/Zend/tests/bug78010.phpt --- php8.2-8.2.30/Zend/tests/bug78010.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/tests/bug78010.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -1,5 +1,10 @@ --TEST-- Bug #78010: Segmentation fault during GC +--SKIPIF-- + --INI-- memory_limit=2G --FILE-- diff -Nru php8.2-8.2.30/Zend/zend.h php8.2-8.2.31/Zend/zend.h --- php8.2-8.2.30/Zend/zend.h 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend.h 2026-05-05 13:59:08.000000000 +0000 @@ -20,7 +20,7 @@ #ifndef ZEND_H #define ZEND_H -#define ZEND_VERSION "4.2.30" +#define ZEND_VERSION "4.2.31" #define ZEND_ENGINE_3 diff -Nru php8.2-8.2.30/Zend/zend_compile.c php8.2-8.2.31/Zend/zend_compile.c --- php8.2-8.2.30/Zend/zend_compile.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_compile.c 2026-05-05 13:59:08.000000000 +0000 @@ -1977,7 +1977,7 @@ /* Note that on Win32 CWD is per drive (heritage from CP/M). * This means dirname("c:foo") maps to "c:." or "c:" - which means CWD on C: drive. */ - if ((2 <= len) && isalpha((int)((unsigned char *)path)[0]) && (':' == path[1])) { + if ((2 <= len) && isalpha((unsigned char)path[0]) && (':' == path[1])) { /* Skip over the drive spec (if any) so as not to change */ path += 2; len_adjust += 2; diff -Nru php8.2-8.2.30/Zend/zend_ini.c php8.2-8.2.31/Zend/zend_ini.c --- php8.2-8.2.30/Zend/zend_ini.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_ini.c 2026-05-05 13:59:08.000000000 +0000 @@ -555,7 +555,7 @@ ++digits_consumed; } - if (digits_consumed[0] == '0' && !isdigit(digits_consumed[1])) { + if (digits_consumed[0] == '0' && !isdigit((unsigned char)digits_consumed[1])) { /* Value is just 0 */ if ((digits_consumed+1) == str_end) { return digits; @@ -608,7 +608,7 @@ } /* if there is no digit after +/- */ - if (!isdigit(digits[0])) { + if (!isdigit((unsigned char)digits[0])) { /* Escape the string to avoid null bytes and to make non-printable chars * visible */ smart_str_append_escaped(&invalid, ZSTR_VAL(value), ZSTR_LEN(value)); @@ -622,7 +622,7 @@ } int base = 0; - if (digits[0] == '0' && !isdigit(digits[1])) { + if (digits[0] == '0' && !isdigit((unsigned char)digits[1])) { /* Value is just 0 */ if ((digits+1) == str_end) { *errstr = NULL; diff -Nru php8.2-8.2.30/Zend/zend_ini_parser.c php8.2-8.2.31/Zend/zend_ini_parser.c --- php8.2-8.2.30/Zend/zend_ini_parser.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_ini_parser.c 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 3.7.5. */ +/* A Bison parser, made by GNU Bison 3.8.2. */ /* Bison implementation for Yacc-like parsers in C @@ -16,7 +16,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -46,10 +46,10 @@ USER NAME SPACE" below. */ /* Identify Bison output, and Bison version. */ -#define YYBISON 30705 +#define YYBISON 30802 /* Bison version string. */ -#define YYBISON_VERSION "3.7.5" +#define YYBISON_VERSION "3.8.2" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -595,12 +595,18 @@ # define YY_USE(E) /* empty */ #endif -#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ +#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__ +# if __GNUC__ * 100 + __GNUC_MINOR__ < 407 +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") +# else +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") +# endif # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ _Pragma ("GCC diagnostic pop") #else @@ -816,7 +822,7 @@ }; #if INI_DEBUG - /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ +/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_int16 yyrline[] = { 0, 315, 315, 316, 320, 327, 338, 347, 348, 352, @@ -859,19 +865,6 @@ } #endif -#ifdef YYPRINT -/* YYTOKNUM[NUM] -- (External) token number corresponding to the - (internal) symbol number NUM (which must be that of a token). */ -static const yytype_int16 yytoknum[] = -{ - 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, - 265, 266, 267, 268, 269, 270, 271, 272, 61, 58, - 44, 46, 34, 39, 94, 43, 45, 47, 42, 37, - 36, 126, 60, 62, 63, 64, 123, 125, 124, 38, - 33, 93, 40, 41 -}; -#endif - #define YYPACT_NINF (-25) #define yypact_value_is_default(Yyn) \ @@ -882,8 +875,8 @@ #define yytable_value_is_error(Yyn) \ 0 - /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + STATE-NUM. */ static const yytype_int8 yypact[] = { -25, 9, -25, 73, -17, 81, -25, -25, -25, -25, @@ -896,9 +889,9 @@ -25, -25 }; - /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. - Performed when YYTABLE does not specify something else to do. Zero - means the default is an error. */ +/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. + Performed when YYTABLE does not specify something else to do. Zero + means the default is an error. */ static const yytype_int8 yydefact[] = { 3, 0, 1, 10, 7, 17, 8, 2, 42, 41, @@ -911,23 +904,23 @@ 6, 32 }; - /* YYPGOTO[NTERM-NUM]. */ +/* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -25, -25, -25, -25, -9, -25, -23, -25, 50, 4, -3, 44, -24 }; - /* YYDEFGOTO[NTERM-NUM]. */ +/* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { 0, 1, 7, 15, 43, 26, 31, 16, 44, 45, 28, 18, 29 }; - /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If - positive, shift that token. If negative, reduce the rule whose - number is the opposite. If YYTABLE_NINF, syntax error. */ +/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If + positive, shift that token. If negative, reduce the rule whose + number is the opposite. If YYTABLE_NINF, syntax error. */ static const yytype_int8 yytable[] = { 17, 19, 46, 50, 20, 21, 22, 23, 24, 2, @@ -962,8 +955,8 @@ -1, -1, 22, 22 }; - /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing - symbol of state STATE-NUM. */ +/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of + state STATE-NUM. */ static const yytype_int8 yystos[] = { 0, 45, 0, 3, 9, 10, 17, 46, 4, 5, @@ -976,7 +969,7 @@ 48, 22 }; - /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */ static const yytype_int8 yyr1[] = { 0, 44, 45, 45, 46, 46, 46, 46, 46, 47, @@ -987,7 +980,7 @@ 56 }; - /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ +/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */ static const yytype_int8 yyr2[] = { 0, 2, 2, 0, 3, 3, 5, 1, 1, 1, @@ -1007,6 +1000,7 @@ #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab +#define YYNOMEM goto yyexhaustedlab #define YYRECOVERING() (!!yyerrstatus) @@ -1047,10 +1041,7 @@ YYFPRINTF Args; \ } while (0) -/* This macro is provided for backward compatibility. */ -# ifndef YY_LOCATION_PRINT -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -# endif + # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ @@ -1077,10 +1068,6 @@ YY_USE (yyoutput); if (!yyvaluep) return; -# ifdef YYPRINT - if (yykind < YYNTOKENS) - YYPRINT (yyo, yytoknum[yykind], *yyvaluep); -# endif YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN YY_USE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END @@ -1629,6 +1616,7 @@ YYDPRINTF ((stderr, "Starting parse\n")); yychar = INI_EMPTY; /* Cause a token to be read. */ + goto yysetstate; @@ -1654,7 +1642,7 @@ if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE - goto yyexhaustedlab; + YYNOMEM; #else { /* Get the current used size of the three stacks, in elements. */ @@ -1682,7 +1670,7 @@ # else /* defined YYSTACK_RELOCATE */ /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) - goto yyexhaustedlab; + YYNOMEM; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; @@ -1693,7 +1681,7 @@ YY_CAST (union yyalloc *, YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); if (! yyptr) - goto yyexhaustedlab; + YYNOMEM; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE @@ -1715,6 +1703,7 @@ } #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ + if (yystate == YYFINAL) YYACCEPT; @@ -2114,7 +2103,7 @@ } yyerror (yymsgp); if (yysyntax_error_status == YYENOMEM) - goto yyexhaustedlab; + YYNOMEM; } } @@ -2150,6 +2139,7 @@ label yyerrorlab therefore never appears in user code. */ if (0) YYERROR; + ++yynerrs; /* Do not reclaim the symbols of the rule whose action triggered this YYERROR. */ @@ -2210,7 +2200,7 @@ `-------------------------------------*/ yyacceptlab: yyresult = 0; - goto yyreturn; + goto yyreturnlab; /*-----------------------------------. @@ -2218,24 +2208,22 @@ `-----------------------------------*/ yyabortlab: yyresult = 1; - goto yyreturn; + goto yyreturnlab; -#if 1 -/*-------------------------------------------------. -| yyexhaustedlab -- memory exhaustion comes here. | -`-------------------------------------------------*/ +/*-----------------------------------------------------------. +| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. | +`-----------------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; - goto yyreturn; -#endif + goto yyreturnlab; -/*-------------------------------------------------------. -| yyreturn -- parsing is finished, clean up and return. | -`-------------------------------------------------------*/ -yyreturn: +/*----------------------------------------------------------. +| yyreturnlab -- parsing is finished, clean up and return. | +`----------------------------------------------------------*/ +yyreturnlab: if (yychar != INI_EMPTY) { /* Make sure we have latest lookahead translation. See comments at diff -Nru php8.2-8.2.30/Zend/zend_ini_parser.h php8.2-8.2.31/Zend/zend_ini_parser.h --- php8.2-8.2.30/Zend/zend_ini_parser.h 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_ini_parser.h 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 3.7.5. */ +/* A Bison parser, made by GNU Bison 3.8.2. */ /* Bison interface for Yacc-like parsers in C @@ -16,7 +16,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -90,6 +90,8 @@ + int ini_parse (void); + #endif /* !YY_INI_ZEND_ZEND_INI_PARSER_H_INCLUDED */ diff -Nru php8.2-8.2.30/Zend/zend_ini_parser.output php8.2-8.2.31/Zend/zend_ini_parser.output --- php8.2-8.2.30/Zend/zend_ini_parser.output 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_ini_parser.output 2026-05-05 13:59:08.000000000 +0000 @@ -22,7 +22,7 @@ 0 $accept: statement_list "end of file" 1 statement_list: statement_list statement - 2 | %empty + 2 | ε 3 statement: TC_SECTION section_string_or_value ']' 4 | TC_LABEL '=' string_or_value @@ -31,7 +31,7 @@ 7 | END_OF_LINE 8 section_string_or_value: var_string_list_section - 9 | %empty + 9 | ε 10 string_or_value: expr 11 | BOOL_TRUE @@ -40,11 +40,11 @@ 14 | END_OF_LINE 15 option_offset: var_string_list - 16 | %empty + 16 | ε 17 encapsed_list: encapsed_list cfg_var_ref 18 | encapsed_list TC_QUOTED_STRING - 19 | %empty + 19 | ε 20 var_string_list_section: cfg_var_ref 21 | constant_literal diff -Nru php8.2-8.2.30/Zend/zend_ini_scanner.c php8.2-8.2.31/Zend/zend_ini_scanner.c --- php8.2-8.2.30/Zend/zend_ini_scanner.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_ini_scanner.c 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* Generated by re2c 2.0.3 */ +/* Generated by re2c 4.0 */ /* +----------------------------------------------------------------------+ | Zend Engine | @@ -379,82 +379,305 @@ { YYCTYPE yych; unsigned int yyaccept = 0; + static const unsigned char yybm_INITIAL[256] = { + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 160, 0, 144, 144, 0, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 240, 128, 128, 144, 128, 144, 128, 144, + 128, 128, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 128, 144, 128, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 128, 144, 144, 128, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 128, 128, 128, 128, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144, + 144, 144, 144, 144, 144, 144, 144, 144 + }; + static const unsigned char yybm_ST_OFFSET[256] = { + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 140, 128, 132, 132, 128, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 140, 132, 128, 132, 192, 132, 132, 0, + 132, 132, 132, 132, 132, 132, 132, 132, + 180, 180, 180, 180, 180, 180, 180, 180, + 180, 180, 132, 128, 132, 132, 132, 132, + 132, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 132, 192, 128, 132, 164, + 132, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132 + }; + static const unsigned char yybm_ST_SECTION_VALUE[256] = { + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 140, 128, 132, 132, 128, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 140, 132, 128, 132, 192, 132, 132, 0, + 132, 132, 132, 132, 132, 132, 132, 132, + 180, 180, 180, 180, 180, 180, 180, 180, + 180, 180, 132, 128, 132, 132, 132, 132, + 132, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 132, 192, 128, 132, 164, + 132, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132, + 132, 132, 132, 132, 132, 132, 132, 132 + }; + static const unsigned char yybm_ST_VALUE[256] = { + 80, 82, 82, 82, 82, 82, 82, 82, + 82, 84, 64, 82, 82, 64, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 84, 80, 80, 82, 208, 82, 80, 16, + 80, 80, 82, 82, 82, 82, 82, 82, + 122, 122, 122, 122, 122, 122, 122, 122, + 122, 122, 82, 80, 82, 80, 82, 82, + 82, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 82, 82, 82, 80, 114, + 82, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 114, 114, 114, 114, 114, + 114, 114, 114, 82, 80, 82, 80, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82, + 82, 82, 82, 82, 82, 82, 82, 82 + }; + static const unsigned char yybm_ST_SECTION_RAW[256] = { + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 192, 0, 64, 64, 0, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 192, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 0, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64 + }; + static const unsigned char yybm_ST_DOUBLE_QUOTES[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 128, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 128, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0 + }; + static const unsigned char yybm_ST_VARNAME[256] = { + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 0, 0, 128, 128, 0, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 0, 0, 128, 0, 128, 0, 128, + 0, 0, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 128, 0, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 128, 128, 0, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128 + }; + static const unsigned char yybm_ST_RAW[256] = { + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 192, 0, 64, 64, 0, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 192, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64, + 64, 64, 64, 64, 64, 64, 64, 64 + }; if (YYGETCONDITION() < 4) { if (YYGETCONDITION() < 2) { - if (YYGETCONDITION() < 1) { - goto yyc_INITIAL; - } else { - goto yyc_ST_OFFSET; - } + if (YYGETCONDITION() < 1) goto yyc_INITIAL; + else goto yyc_ST_OFFSET; } else { - if (YYGETCONDITION() < 3) { - goto yyc_ST_SECTION_VALUE; - } else { - goto yyc_ST_VALUE; - } + if (YYGETCONDITION() < 3) goto yyc_ST_SECTION_VALUE; + else goto yyc_ST_VALUE; } } else { if (YYGETCONDITION() < 6) { - if (YYGETCONDITION() < 5) { - goto yyc_ST_SECTION_RAW; - } else { - goto yyc_ST_DOUBLE_QUOTES; - } + if (YYGETCONDITION() < 5) goto yyc_ST_SECTION_RAW; + else goto yyc_ST_DOUBLE_QUOTES; } else { - if (YYGETCONDITION() < 7) { - goto yyc_ST_VARNAME; - } else { - goto yyc_ST_RAW; - } + if (YYGETCONDITION() < 7) goto yyc_ST_VARNAME; + else goto yyc_ST_RAW; } } /* *********************************** */ yyc_INITIAL: - { - static const unsigned char yybm[] = { - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 160, 0, 144, 144, 0, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 240, 128, 128, 144, 128, 144, 128, 144, - 128, 128, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 128, 144, 128, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 128, 144, 144, 128, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 128, 128, 128, 128, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 144, 144, - }; - YYDEBUG(0, *YYCURSOR); - YYFILL(5); - yych = *YYCURSOR; - if (yybm[0+yych] & 64) { - goto yy11; - } - switch (yych) { - case '\t': goto yy5; - case '\n': goto yy8; - case '\r': goto yy10; + YYFILL(5); + yych = *YYCURSOR; + YYDEBUG(0, yych); + if (yybm_INITIAL[0+yych] & 64) goto yy9; + switch (yych) { + case '\t': goto yy4; + case '\n': goto yy6; + case '\r': goto yy8; case ' ': case '!': case '"': @@ -466,38 +689,36 @@ case '{': case '|': case '}': - case '~': goto yy13; - case ';': goto yy15; - case '=': goto yy17; + case '~': goto yy10; + case ';': goto yy11; + case '=': goto yy12; case 'F': - case 'f': goto yy20; + case 'f': goto yy13; case 'N': - case 'n': goto yy21; + case 'n': goto yy14; case 'O': - case 'o': goto yy22; + case 'o': goto yy15; case 'T': - case 't': goto yy23; + case 't': goto yy16; case 'Y': - case 'y': goto yy24; - case '[': goto yy25; - default: goto yy2; - } + case 'y': goto yy17; + case '[': goto yy18; + default: goto yy1; + } +yy1: + YYDEBUG(1, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; yy2: - YYDEBUG(2, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; + YYDEBUG(2, yych); + if (yybm_INITIAL[0+yych] & 16) goto yy1; + if (yych <= '=') goto yy3; + if (yych <= '[') goto yy19; yy3: - YYDEBUG(3, *YYCURSOR); - if (yybm[0+yych] & 16) { - goto yy2; - } - if (yych <= '=') goto yy4; - if (yych <= '[') goto yy27; -yy4: - YYDEBUG(4, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Get option name */ + YYDEBUG(3, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Get option name */ /* Eat leading whitespace */ EAT_LEADING_WHITESPACE(); @@ -506,128 +727,116 @@ RETURN_TOKEN(TC_LABEL, yytext, yyleng); } -yy5: - YYDEBUG(5, *YYCURSOR); - ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; - YYDEBUG(6, *YYCURSOR); - if (yybm[0+yych] & 32) { - goto yy5; - } - if (yych <= '\r') { - if (yych <= 0x08) goto yy7; - if (yych <= '\n') goto yy8; - if (yych >= '\r') goto yy10; +yy4: + YYDEBUG(4, yych); + ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; + if (yybm_INITIAL[0+yych] & 32) goto yy4; + if (yych <= '\r') { + if (yych <= 0x08) goto yy5; + if (yych <= '\n') goto yy6; + if (yych >= '\r') goto yy8; + } else { + if (yych <= ';') { + if (yych >= ';') goto yy11; } else { - if (yych <= ';') { - if (yych >= ';') goto yy15; - } else { - if (yych == '=') goto yy17; - } + if (yych == '=') goto yy12; } -yy7: - YYDEBUG(7, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy5: + YYDEBUG(5, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* eat whitespace */ goto restart; } -yy8: - YYDEBUG(8, *YYCURSOR); - ++YYCURSOR; -yy9: - YYDEBUG(9, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy6: + YYDEBUG(6, yych); + ++YYCURSOR; +yy7: + YYDEBUG(7, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { SCNG(lineno)++; return END_OF_LINE; } -yy10: - YYDEBUG(10, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy8; - goto yy9; -yy11: - YYDEBUG(11, *YYCURSOR); - ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; - YYDEBUG(12, *YYCURSOR); - if (yybm[0+yych] & 64) { - goto yy11; - } - if (yych <= '\'') { - if (yych <= 0x1F) { - if (yych <= '\n') { - if (yych <= 0x08) goto yy2; - if (yych <= '\t') goto yy5; - goto yy8; - } else { - if (yych == '\r') goto yy10; - goto yy2; - } +yy8: + YYDEBUG(8, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy6; + goto yy7; +yy9: + YYDEBUG(9, yych); + ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; + if (yybm_INITIAL[0+yych] & 64) goto yy9; + if (yych <= '\'') { + if (yych <= 0x1F) { + if (yych <= '\n') { + if (yych <= 0x08) goto yy1; + if (yych <= '\t') goto yy4; + goto yy6; } else { - if (yych <= '$') { - if (yych == '#') goto yy2; - goto yy4; - } else { - if (yych == '&') goto yy4; - goto yy2; - } + if (yych == '\r') goto yy8; + goto yy1; } } else { - if (yych <= 'Z') { - if (yych <= ';') { - if (yych <= ')') goto yy4; - if (yych <= ':') goto yy2; - goto yy15; - } else { - if (yych == '=') goto yy17; - goto yy2; - } + if (yych <= '$') { + if (yych == '#') goto yy1; + goto yy3; } else { - if (yych <= '^') { - if (yych <= '[') goto yy27; - if (yych <= ']') goto yy2; - goto yy4; - } else { - if (yych <= 'z') goto yy2; - if (yych <= '~') goto yy4; - goto yy2; - } + if (yych == '&') goto yy3; + goto yy1; } } -yy13: - YYDEBUG(13, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(14, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Disallow these chars outside option values */ + } else { + if (yych <= 'Z') { + if (yych <= ';') { + if (yych <= ')') goto yy3; + if (yych <= ':') goto yy1; + goto yy11; + } else { + if (yych == '=') goto yy12; + goto yy1; + } + } else { + if (yych <= '^') { + if (yych <= '[') goto yy19; + if (yych <= ']') goto yy1; + goto yy3; + } else { + if (yych <= 'z') goto yy1; + if (yych <= '~') goto yy3; + goto yy1; + } + } + } +yy10: + YYDEBUG(10, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Disallow these chars outside option values */ return yytext[0]; } -yy15: - YYDEBUG(15, *YYCURSOR); - ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; - YYDEBUG(16, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy15; - } - if (yych <= '\n') goto yy30; - goto yy32; -yy17: - YYDEBUG(17, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(18, *YYCURSOR); - if (yych == '\t') goto yy17; - if (yych == ' ') goto yy17; - YYDEBUG(19, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Start option value */ +yy11: + YYDEBUG(11, yych); + ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; + if (yybm_INITIAL[0+yych] & 128) goto yy11; + if (yych <= '\n') goto yy20; + goto yy22; +yy12: + YYDEBUG(12, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych == '\t') goto yy12; + if (yych == ' ') goto yy12; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Start option value */ if (SCNG(scanner_mode) == ZEND_INI_SCANNER_RAW) { BEGIN(ST_RAW); } else { @@ -635,62 +844,61 @@ } return '='; } -yy20: - YYDEBUG(20, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'A') goto yy33; - if (yych == 'a') goto yy33; - goto yy3; -yy21: - YYDEBUG(21, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= 'U') { - if (yych == 'O') goto yy34; - if (yych <= 'T') goto yy3; - goto yy36; - } else { - if (yych <= 'o') { - if (yych <= 'n') goto yy3; - goto yy34; - } else { - if (yych == 'u') goto yy36; - goto yy3; - } +yy13: + YYDEBUG(13, yych); + yych = *++YYCURSOR; + if (yych == 'A') goto yy23; + if (yych == 'a') goto yy23; + goto yy2; +yy14: + YYDEBUG(14, yych); + yych = *++YYCURSOR; + if (yych <= 'U') { + if (yych == 'O') goto yy24; + if (yych <= 'T') goto yy2; + goto yy26; + } else { + if (yych <= 'o') { + if (yych <= 'n') goto yy2; + goto yy24; + } else { + if (yych == 'u') goto yy26; + goto yy2; } -yy22: - YYDEBUG(22, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= 'N') { - if (yych == 'F') goto yy37; - if (yych <= 'M') goto yy3; - goto yy38; - } else { - if (yych <= 'f') { - if (yych <= 'e') goto yy3; - goto yy37; - } else { - if (yych == 'n') goto yy38; - goto yy3; - } + } +yy15: + YYDEBUG(15, yych); + yych = *++YYCURSOR; + if (yych <= 'N') { + if (yych == 'F') goto yy27; + if (yych <= 'M') goto yy2; + goto yy28; + } else { + if (yych <= 'f') { + if (yych <= 'e') goto yy2; + goto yy27; + } else { + if (yych == 'n') goto yy28; + goto yy2; } -yy23: - YYDEBUG(23, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'R') goto yy41; - if (yych == 'r') goto yy41; - goto yy3; -yy24: - YYDEBUG(24, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy42; - if (yych == 'e') goto yy42; - goto yy3; -yy25: - YYDEBUG(25, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(26, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Section start */ + } +yy16: + YYDEBUG(16, yych); + yych = *++YYCURSOR; + if (yych == 'R') goto yy30; + if (yych == 'r') goto yy30; + goto yy2; +yy17: + YYDEBUG(17, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy31; + if (yych == 'e') goto yy31; + goto yy2; +yy18: + YYDEBUG(18, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Section start */ /* Enter section data lookup state */ if (SCNG(scanner_mode) == ZEND_INI_SCANNER_RAW) { BEGIN(ST_SECTION_RAW); @@ -699,17 +907,15 @@ } return TC_SECTION; } -yy27: - YYDEBUG(27, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(28, *YYCURSOR); - if (yych == '\t') goto yy27; - if (yych == ' ') goto yy27; - YYDEBUG(29, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Start of option with offset */ +yy19: + YYDEBUG(19, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych == '\t') goto yy19; + if (yych == ' ') goto yy19; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Start of option with offset */ /* Eat leading whitespace */ EAT_LEADING_WHITESPACE(); @@ -721,658 +927,586 @@ RETURN_TOKEN(TC_OFFSET, yytext, yyleng); } -yy30: - YYDEBUG(30, *YYCURSOR); - ++YYCURSOR; -yy31: - YYDEBUG(31, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Comment */ +yy20: + YYDEBUG(20, yych); + ++YYCURSOR; +yy21: + YYDEBUG(21, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Comment */ BEGIN(INITIAL); SCNG(lineno)++; return END_OF_LINE; } -yy32: - YYDEBUG(32, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy30; - goto yy31; -yy33: - YYDEBUG(33, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'L') goto yy43; - if (yych == 'l') goto yy43; - goto yy3; -yy34: - YYDEBUG(34, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '\'') { - if (yych <= 0x1F) { - if (yych <= '\n') { - if (yych <= 0x08) goto yy3; - if (yych <= '\t') goto yy44; - } else { - if (yych != '\r') goto yy3; - } +yy22: + YYDEBUG(22, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy20; + goto yy21; +yy23: + YYDEBUG(23, yych); + yych = *++YYCURSOR; + if (yych == 'L') goto yy32; + if (yych == 'l') goto yy32; + goto yy2; +yy24: + YYDEBUG(24, yych); + yych = *++YYCURSOR; + if (yych <= '\'') { + if (yych <= 0x1F) { + if (yych <= '\n') { + if (yych <= 0x08) goto yy2; + if (yych <= '\t') goto yy33; + } else { + if (yych != '\r') goto yy2; + } + } else { + if (yych <= '#') { + if (yych <= ' ') goto yy34; + if (yych >= '#') goto yy2; } else { - if (yych <= '#') { - if (yych <= ' ') goto yy46; - if (yych >= '#') goto yy3; - } else { - if (yych == '%') goto yy3; - if (yych >= '\'') goto yy3; - } + if (yych == '%') goto yy2; + if (yych >= '\'') goto yy2; + } + } + } else { + if (yych <= 'N') { + if (yych <= ';') { + if (yych <= ')') goto yy25; + if (yych <= ':') goto yy2; + } else { + if (yych == '=') goto yy25; + if (yych <= 'M') goto yy2; + goto yy35; } } else { - if (yych <= 'N') { - if (yych <= ';') { - if (yych <= ')') goto yy35; - if (yych <= ':') goto yy3; - } else { - if (yych == '=') goto yy35; - if (yych <= 'M') goto yy3; - goto yy48; - } + if (yych <= 'm') { + if (yych != '^') goto yy2; } else { - if (yych <= 'm') { - if (yych != '^') goto yy3; - } else { - if (yych <= 'n') goto yy48; - if (yych <= 'z') goto yy3; - if (yych >= 0x7F) goto yy3; - } + if (yych <= 'n') goto yy35; + if (yych <= 'z') goto yy2; + if (yych >= 0x7F) goto yy2; } } -yy35: - YYDEBUG(35, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* FALSE value (when used outside option value/offset this causes parse error!)*/ + } +yy25: + YYDEBUG(25, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* FALSE value (when used outside option value/offset this causes parse error!)*/ RETURN_TOKEN(BOOL_FALSE, "", 0); } -yy36: - YYDEBUG(36, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'L') goto yy49; - if (yych == 'l') goto yy49; - goto yy3; -yy37: - YYDEBUG(37, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'F') goto yy46; - if (yych == 'f') goto yy46; - goto yy3; -yy38: - YYDEBUG(38, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(39, *YYCURSOR); - if (yych <= '&') { - if (yych <= 0x1F) { - if (yych <= '\n') { - if (yych <= 0x08) goto yy2; - if (yych <= '\t') goto yy50; - } else { - if (yych != '\r') goto yy2; - } +yy26: + YYDEBUG(26, yych); + yych = *++YYCURSOR; + if (yych == 'L') goto yy36; + if (yych == 'l') goto yy36; + goto yy2; +yy27: + YYDEBUG(27, yych); + yych = *++YYCURSOR; + if (yych == 'F') goto yy34; + if (yych == 'f') goto yy34; + goto yy2; +yy28: + YYDEBUG(28, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '&') { + if (yych <= 0x1F) { + if (yych <= '\n') { + if (yych <= 0x08) goto yy1; + if (yych <= '\t') goto yy37; + } else { + if (yych != '\r') goto yy1; + } + } else { + if (yych <= '#') { + if (yych <= ' ') goto yy28; + if (yych >= '#') goto yy1; } else { - if (yych <= '#') { - if (yych <= ' ') goto yy38; - if (yych >= '#') goto yy2; - } else { - if (yych == '%') goto yy2; - } + if (yych == '%') goto yy1; + } + } + } else { + if (yych <= '=') { + if (yych <= ':') { + if (yych <= '\'') goto yy1; + if (yych >= '*') goto yy1; + } else { + if (yych == '<') goto yy1; } } else { - if (yych <= '=') { - if (yych <= ':') { - if (yych <= '\'') goto yy2; - if (yych >= '*') goto yy2; - } else { - if (yych == '<') goto yy2; - } + if (yych <= ']') { + if (yych == '[') goto yy19; + goto yy1; } else { - if (yych <= ']') { - if (yych == '[') goto yy27; - goto yy2; - } else { - if (yych <= '^') goto yy40; - if (yych <= 'z') goto yy2; - if (yych >= 0x7F) goto yy2; - } + if (yych <= '^') goto yy29; + if (yych <= 'z') goto yy1; + if (yych >= 0x7F) goto yy1; } } -yy40: - YYDEBUG(40, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* TRUE value (when used outside option value/offset this causes parse error!) */ + } +yy29: + YYDEBUG(29, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* TRUE value (when used outside option value/offset this causes parse error!) */ RETURN_TOKEN(BOOL_TRUE, "1", 1); } -yy41: - YYDEBUG(41, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'U') goto yy52; - if (yych == 'u') goto yy52; - goto yy3; -yy42: - YYDEBUG(42, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'S') goto yy38; - if (yych == 's') goto yy38; - goto yy3; -yy43: - YYDEBUG(43, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'S') goto yy48; - if (yych == 's') goto yy48; - goto yy3; -yy44: - YYDEBUG(44, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(45, *YYCURSOR); - if (yych == '\t') goto yy44; - if (yych == ' ') goto yy44; - goto yy35; -yy46: - YYDEBUG(46, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(47, *YYCURSOR); - if (yych <= '&') { - if (yych <= 0x1F) { - if (yych <= '\n') { - if (yych <= 0x08) goto yy2; - if (yych <= '\t') goto yy44; - goto yy35; - } else { - if (yych == '\r') goto yy35; - goto yy2; - } +yy30: + YYDEBUG(30, yych); + yych = *++YYCURSOR; + if (yych == 'U') goto yy38; + if (yych == 'u') goto yy38; + goto yy2; +yy31: + YYDEBUG(31, yych); + yych = *++YYCURSOR; + if (yych == 'S') goto yy28; + if (yych == 's') goto yy28; + goto yy2; +yy32: + YYDEBUG(32, yych); + yych = *++YYCURSOR; + if (yych == 'S') goto yy35; + if (yych == 's') goto yy35; + goto yy2; +yy33: + YYDEBUG(33, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych == '\t') goto yy33; + if (yych == ' ') goto yy33; + goto yy25; +yy34: + YYDEBUG(34, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '&') { + if (yych <= 0x1F) { + if (yych <= '\n') { + if (yych <= 0x08) goto yy1; + if (yych <= '\t') goto yy33; + goto yy25; + } else { + if (yych == '\r') goto yy25; + goto yy1; + } + } else { + if (yych <= '#') { + if (yych <= ' ') goto yy34; + if (yych <= '"') goto yy25; + goto yy1; } else { - if (yych <= '#') { - if (yych <= ' ') goto yy46; - if (yych <= '"') goto yy35; - goto yy2; - } else { - if (yych == '%') goto yy2; - goto yy35; - } + if (yych == '%') goto yy1; + goto yy25; + } + } + } else { + if (yych <= '=') { + if (yych <= ':') { + if (yych <= '\'') goto yy1; + if (yych <= ')') goto yy25; + goto yy1; + } else { + if (yych == '<') goto yy1; + goto yy25; } } else { - if (yych <= '=') { - if (yych <= ':') { - if (yych <= '\'') goto yy2; - if (yych <= ')') goto yy35; - goto yy2; - } else { - if (yych == '<') goto yy2; - goto yy35; - } + if (yych <= ']') { + if (yych == '[') goto yy19; + goto yy1; } else { - if (yych <= ']') { - if (yych == '[') goto yy27; - goto yy2; - } else { - if (yych <= '^') goto yy35; - if (yych <= 'z') goto yy2; - if (yych <= '~') goto yy35; - goto yy2; - } + if (yych <= '^') goto yy25; + if (yych <= 'z') goto yy1; + if (yych <= '~') goto yy25; + goto yy1; } } -yy48: - YYDEBUG(48, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy46; - if (yych == 'e') goto yy46; - goto yy3; -yy49: - YYDEBUG(49, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'L') goto yy53; - if (yych == 'l') goto yy53; - goto yy3; -yy50: - YYDEBUG(50, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(51, *YYCURSOR); - if (yych == '\t') goto yy50; - if (yych == ' ') goto yy50; - goto yy40; -yy52: - YYDEBUG(52, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy38; - if (yych == 'e') goto yy38; - goto yy3; -yy53: - YYDEBUG(53, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(54, *YYCURSOR); - if (yych <= '&') { - if (yych <= 0x1F) { - if (yych <= '\n') { - if (yych <= 0x08) goto yy2; - if (yych <= '\t') goto yy56; - } else { - if (yych != '\r') goto yy2; - } + } +yy35: + YYDEBUG(35, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy34; + if (yych == 'e') goto yy34; + goto yy2; +yy36: + YYDEBUG(36, yych); + yych = *++YYCURSOR; + if (yych == 'L') goto yy39; + if (yych == 'l') goto yy39; + goto yy2; +yy37: + YYDEBUG(37, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych == '\t') goto yy37; + if (yych == ' ') goto yy37; + goto yy29; +yy38: + YYDEBUG(38, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy28; + if (yych == 'e') goto yy28; + goto yy2; +yy39: + YYDEBUG(39, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '&') { + if (yych <= 0x1F) { + if (yych <= '\n') { + if (yych <= 0x08) goto yy1; + if (yych <= '\t') goto yy41; + } else { + if (yych != '\r') goto yy1; + } + } else { + if (yych <= '#') { + if (yych <= ' ') goto yy39; + if (yych >= '#') goto yy1; } else { - if (yych <= '#') { - if (yych <= ' ') goto yy53; - if (yych >= '#') goto yy2; - } else { - if (yych == '%') goto yy2; - } + if (yych == '%') goto yy1; + } + } + } else { + if (yych <= '=') { + if (yych <= ':') { + if (yych <= '\'') goto yy1; + if (yych >= '*') goto yy1; + } else { + if (yych == '<') goto yy1; } } else { - if (yych <= '=') { - if (yych <= ':') { - if (yych <= '\'') goto yy2; - if (yych >= '*') goto yy2; - } else { - if (yych == '<') goto yy2; - } + if (yych <= ']') { + if (yych == '[') goto yy19; + goto yy1; } else { - if (yych <= ']') { - if (yych == '[') goto yy27; - goto yy2; - } else { - if (yych <= '^') goto yy55; - if (yych <= 'z') goto yy2; - if (yych >= 0x7F) goto yy2; - } + if (yych <= '^') goto yy40; + if (yych <= 'z') goto yy1; + if (yych >= 0x7F) goto yy1; } } -yy55: - YYDEBUG(55, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy40: + YYDEBUG(40, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(NULL_NULL, "", 0); } -yy56: - YYDEBUG(56, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(57, *YYCURSOR); - if (yych == '\t') goto yy56; - if (yych == ' ') goto yy56; - goto yy55; - } +yy41: + YYDEBUG(41, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych == '\t') goto yy41; + if (yych == ' ') goto yy41; + goto yy40; /* *********************************** */ yyc_ST_OFFSET: - { - static const unsigned char yybm[] = { - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 140, 128, 132, 132, 128, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 140, 132, 128, 132, 192, 132, 132, 0, - 132, 132, 132, 132, 132, 132, 132, 132, - 180, 180, 180, 180, 180, 180, 180, 180, - 180, 180, 132, 128, 132, 132, 132, 132, - 132, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 132, 192, 128, 132, 164, - 132, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - }; - YYDEBUG(58, *YYCURSOR); - YYFILL(2); - yych = *YYCURSOR; - if (yybm[0+yych] & 8) { - goto yy63; - } - if (yych <= '/') { - if (yych <= '"') { - if (yych <= '\f') { - if (yych <= 0x08) goto yy60; - if (yych <= '\n') goto yy65; - } else { - if (yych <= '\r') goto yy65; - if (yych >= '"') goto yy67; - } + YYFILL(2); + yych = *YYCURSOR; + YYDEBUG(42, yych); + if (yybm_ST_OFFSET[0+yych] & 8) goto yy46; + if (yych <= '/') { + if (yych <= '"') { + if (yych <= '\f') { + if (yych <= 0x08) goto yy43; + if (yych <= '\n') goto yy47; } else { - if (yych <= '&') { - if (yych == '$') goto yy69; - } else { - if (yych <= '\'') goto yy70; - if (yych <= ',') goto yy60; - if (yych <= '.') goto yy71; - } + if (yych <= '\r') goto yy47; + if (yych >= '"') goto yy49; } } else { - if (yych <= '[') { - if (yych <= ';') { - if (yych <= '9') goto yy72; - if (yych >= ';') goto yy65; - } else { - if (yych <= '@') goto yy60; - if (yych <= 'Z') goto yy75; - } + if (yych <= '&') { + if (yych == '$') goto yy50; } else { - if (yych <= '^') { - if (yych <= '\\') goto yy78; - if (yych <= ']') goto yy79; - } else { - if (yych == '`') goto yy60; - if (yych <= 'z') goto yy75; - } + if (yych <= '\'') goto yy51; + if (yych <= ',') goto yy43; + if (yych <= '.') goto yy52; } } -yy60: - YYDEBUG(60, *YYCURSOR); - yyaccept = 0; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; -yy61: - YYDEBUG(61, *YYCURSOR); - if (yybm[0+yych] & 4) { - goto yy60; - } - if (yych <= '"') goto yy62; - if (yych <= '$') goto yy81; - if (yych <= ';') goto yy62; - if (yych <= '\\') goto yy78; -yy62: - YYDEBUG(62, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Get rest as section/offset value */ - RETURN_TOKEN(TC_STRING, yytext, yyleng); -} -yy63: - YYDEBUG(63, *YYCURSOR); - yyaccept = 0; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(64, *YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy63; - } - if (yych <= '$') { - if (yych <= '\r') { - if (yych <= 0x08) goto yy60; - if (yych <= '\n') goto yy62; - if (yych <= '\f') goto yy60; - goto yy62; - } else { - if (yych == '"') goto yy67; - if (yych <= '#') goto yy60; - goto yy81; + } else { + if (yych <= '[') { + if (yych <= ';') { + if (yych <= '9') goto yy53; + if (yych >= ';') goto yy47; + } else { + if (yych <= '@') goto yy43; + if (yych <= 'Z') goto yy55; } } else { - if (yych <= ';') { - if (yych == '\'') goto yy62; - if (yych <= ':') goto yy60; - goto yy62; - } else { - if (yych <= '[') goto yy60; - if (yych <= '\\') goto yy78; - if (yych <= ']') goto yy79; - goto yy60; + if (yych <= '^') { + if (yych <= '\\') goto yy57; + if (yych <= ']') goto yy58; + } else { + if (yych == '`') goto yy43; + if (yych <= 'z') goto yy55; } } -yy65: - YYDEBUG(65, *YYCURSOR); - ++YYCURSOR; -yy66: - YYDEBUG(66, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy43: + YYDEBUG(43, yych); + yyaccept = 0; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; +yy44: + YYDEBUG(44, yych); + if (yybm_ST_OFFSET[0+yych] & 4) goto yy43; + if (yych <= '"') goto yy45; + if (yych <= '$') goto yy59; + if (yych <= ';') goto yy45; + if (yych <= '\\') goto yy57; +yy45: + YYDEBUG(45, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Get rest as section/offset value */ + RETURN_TOKEN(TC_STRING, yytext, yyleng); +} +yy46: + YYDEBUG(46, yych); + yyaccept = 0; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_OFFSET[0+yych] & 8) goto yy46; + if (yych <= '$') { + if (yych <= '\r') { + if (yych <= 0x08) goto yy43; + if (yych <= '\n') goto yy45; + if (yych <= '\f') goto yy43; + goto yy45; + } else { + if (yych == '"') goto yy49; + if (yych <= '#') goto yy43; + goto yy59; + } + } else { + if (yych <= ';') { + if (yych == '\'') goto yy45; + if (yych <= ':') goto yy43; + goto yy45; + } else { + if (yych <= '[') goto yy43; + if (yych <= '\\') goto yy57; + if (yych <= ']') goto yy58; + goto yy43; + } + } +yy47: + YYDEBUG(47, yych); + ++YYCURSOR; +yy48: + YYDEBUG(48, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { return 0; } -yy67: - YYDEBUG(67, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(68, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Double quoted '"' string start */ +yy49: + YYDEBUG(49, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Double quoted '"' string start */ yy_push_state(ST_DOUBLE_QUOTES); return '"'; } -yy69: - YYDEBUG(69, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '\\') { - if (yych <= 0x00) goto yy66; - if (yych <= '[') goto yy60; - goto yy83; - } else { - if (yych == '{') goto yy85; - goto yy60; - } -yy70: - YYDEBUG(70, *YYCURSOR); - yych = *++YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy87; - } - goto yy66; -yy71: - YYDEBUG(71, *YYCURSOR); - yyaccept = 0; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '/') goto yy61; - if (yych <= '9') goto yy89; +yy50: + YYDEBUG(50, yych); + yych = *++YYCURSOR; + if (yych <= '\\') { + if (yych <= 0x00) goto yy48; + if (yych <= '[') goto yy43; goto yy61; -yy72: - YYDEBUG(72, *YYCURSOR); - yyaccept = 1; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(73, *YYCURSOR); - if (yybm[0+yych] & 16) { - goto yy72; - } - if (yych <= '&') { - if (yych <= '\r') { - if (yych == '\n') goto yy74; - if (yych <= '\f') goto yy60; + } else { + if (yych == '{') goto yy62; + goto yy43; + } +yy51: + YYDEBUG(51, yych); + yych = *++YYCURSOR; + if (yybm_ST_OFFSET[0+yych] & 128) goto yy63; + goto yy48; +yy52: + YYDEBUG(52, yych); + yyaccept = 0; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '/') goto yy44; + if (yych <= '9') goto yy64; + goto yy44; +yy53: + YYDEBUG(53, yych); + yyaccept = 1; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_OFFSET[0+yych] & 16) goto yy53; + if (yych <= '&') { + if (yych <= '\r') { + if (yych == '\n') goto yy54; + if (yych <= '\f') goto yy43; + } else { + if (yych <= '"') { + if (yych <= '!') goto yy43; } else { - if (yych <= '"') { - if (yych <= '!') goto yy60; - } else { - if (yych == '$') goto yy81; - goto yy60; - } + if (yych == '$') goto yy59; + goto yy43; } + } + } else { + if (yych <= ':') { + if (yych <= '\'') goto yy54; + if (yych == '.') goto yy64; + goto yy43; } else { - if (yych <= ':') { - if (yych <= '\'') goto yy74; - if (yych == '.') goto yy89; - goto yy60; + if (yych <= '[') { + if (yych >= '<') goto yy43; } else { - if (yych <= '[') { - if (yych >= '<') goto yy60; - } else { - if (yych <= '\\') goto yy78; - if (yych >= '^') goto yy60; - } + if (yych <= '\\') goto yy57; + if (yych >= '^') goto yy43; } } -yy74: - YYDEBUG(74, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Get number option value as string */ + } +yy54: + YYDEBUG(54, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Get number option value as string */ RETURN_TOKEN(TC_NUMBER, yytext, yyleng); } -yy75: - YYDEBUG(75, *YYCURSOR); - yyaccept = 2; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(76, *YYCURSOR); - if (yybm[0+yych] & 32) { - goto yy75; - } - if (yych <= '$') { - if (yych <= '\r') { - if (yych == '\n') goto yy77; - if (yych <= '\f') goto yy60; - } else { - if (yych == '"') goto yy77; - if (yych <= '#') goto yy60; - goto yy81; - } +yy55: + YYDEBUG(55, yych); + yyaccept = 2; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_OFFSET[0+yych] & 32) goto yy55; + if (yych <= '$') { + if (yych <= '\r') { + if (yych == '\n') goto yy56; + if (yych <= '\f') goto yy43; } else { - if (yych <= ';') { - if (yych == '\'') goto yy77; - if (yych <= ':') goto yy60; - } else { - if (yych <= '[') goto yy60; - if (yych <= '\\') goto yy78; - if (yych >= '^') goto yy60; - } + if (yych == '"') goto yy56; + if (yych <= '#') goto yy43; + goto yy59; } -yy77: - YYDEBUG(77, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Get constant option value */ + } else { + if (yych <= ';') { + if (yych == '\'') goto yy56; + if (yych <= ':') goto yy43; + } else { + if (yych <= '[') goto yy43; + if (yych <= '\\') goto yy57; + if (yych >= '^') goto yy43; + } + } +yy56: + YYDEBUG(56, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Get constant option value */ RETURN_TOKEN(TC_CONSTANT, yytext, yyleng); } -yy78: - YYDEBUG(78, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - goto yy60; -yy79: - YYDEBUG(79, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(80, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* End of section or an option offset */ +yy57: + YYDEBUG(57, yych); + ++YYCURSOR; + YYFILL(1); + goto yy43; +yy58: + YYDEBUG(58, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* End of section or an option offset */ BEGIN(INITIAL); return ']'; } -yy81: - YYDEBUG(81, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yych <= '\\') { - if (yych <= 0x00) goto yy82; - if (yych <= '[') goto yy60; - goto yy83; - } else { - if (yych != '{') goto yy60; - } -yy82: - YYDEBUG(82, *YYCURSOR); - YYCURSOR = YYMARKER; - if (yyaccept <= 1) { - if (yyaccept == 0) { - goto yy62; - } else { - goto yy74; - } - } else { - goto yy77; - } -yy83: - YYDEBUG(83, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(84, *YYCURSOR); - if (yybm[0+yych] & 64) { - goto yy83; - } - goto yy60; -yy85: - YYDEBUG(85, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(86, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Variable start */ +yy59: + YYDEBUG(59, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '\\') { + if (yych <= 0x00) goto yy60; + if (yych <= '[') goto yy43; + goto yy61; + } else { + if (yych != '{') goto yy43; + } +yy60: + YYDEBUG(60, yych); + YYCURSOR = YYMARKER; + if (yyaccept <= 1) { + if (yyaccept == 0) goto yy45; + else goto yy54; + } else { + goto yy56; + } +yy61: + YYDEBUG(61, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_OFFSET[0+yych] & 64) goto yy61; + goto yy43; +yy62: + YYDEBUG(62, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Variable start */ yy_push_state(ST_VARNAME); return TC_DOLLAR_CURLY; } -yy87: - YYDEBUG(87, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(88, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy87; - } - goto yy91; -yy89: - YYDEBUG(89, *YYCURSOR); - yyaccept = 1; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(90, *YYCURSOR); - if (yych <= '&') { - if (yych <= '\r') { - if (yych == '\n') goto yy74; - if (yych <= '\f') goto yy60; - goto yy74; - } else { - if (yych <= '"') { - if (yych <= '!') goto yy60; - goto yy74; - } else { - if (yych == '$') goto yy81; - goto yy60; - } +yy63: + YYDEBUG(63, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_OFFSET[0+yych] & 128) goto yy63; + goto yy65; +yy64: + YYDEBUG(64, yych); + yyaccept = 1; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '&') { + if (yych <= '\r') { + if (yych == '\n') goto yy54; + if (yych <= '\f') goto yy43; + goto yy54; + } else { + if (yych <= '"') { + if (yych <= '!') goto yy43; + goto yy54; + } else { + if (yych == '$') goto yy59; + goto yy43; } + } + } else { + if (yych <= ':') { + if (yych <= '\'') goto yy54; + if (yych <= '/') goto yy43; + if (yych <= '9') goto yy64; + goto yy43; } else { - if (yych <= ':') { - if (yych <= '\'') goto yy74; - if (yych <= '/') goto yy60; - if (yych <= '9') goto yy89; - goto yy60; - } else { - if (yych <= '[') { - if (yych <= ';') goto yy74; - goto yy60; - } else { - if (yych <= '\\') goto yy78; - if (yych <= ']') goto yy74; - goto yy60; - } + if (yych <= '[') { + if (yych <= ';') goto yy54; + goto yy43; + } else { + if (yych <= '\\') goto yy57; + if (yych <= ']') goto yy54; + goto yy43; } } -yy91: - YYDEBUG(91, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(92, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Raw string */ + } +yy65: + YYDEBUG(65, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Raw string */ /* Eat leading and trailing single quotes */ if (yytext[0] == '\'' && yytext[yyleng - 1] == '\'') { SCNG(yy_text)++; @@ -1380,395 +1514,329 @@ } RETURN_TOKEN(TC_RAW, yytext, yyleng); } - } /* *********************************** */ yyc_ST_SECTION_VALUE: - { - static const unsigned char yybm[] = { - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 140, 128, 132, 132, 128, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 140, 132, 128, 132, 192, 132, 132, 0, - 132, 132, 132, 132, 132, 132, 132, 132, - 180, 180, 180, 180, 180, 180, 180, 180, - 180, 180, 132, 128, 132, 132, 132, 132, - 132, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 132, 192, 128, 132, 164, - 132, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 164, 164, 164, 164, 164, - 164, 164, 164, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, - }; - YYDEBUG(93, *YYCURSOR); - YYFILL(2); - yych = *YYCURSOR; - if (yybm[0+yych] & 8) { - goto yy98; - } - if (yych <= '/') { - if (yych <= '"') { - if (yych <= '\f') { - if (yych <= 0x08) goto yy95; - if (yych <= '\n') goto yy100; - } else { - if (yych <= '\r') goto yy100; - if (yych >= '"') goto yy102; - } + YYFILL(2); + yych = *YYCURSOR; + YYDEBUG(66, yych); + if (yybm_ST_SECTION_VALUE[0+yych] & 8) goto yy70; + if (yych <= '/') { + if (yych <= '"') { + if (yych <= '\f') { + if (yych <= 0x08) goto yy67; + if (yych <= '\n') goto yy71; } else { - if (yych <= '&') { - if (yych == '$') goto yy104; - } else { - if (yych <= '\'') goto yy105; - if (yych <= ',') goto yy95; - if (yych <= '.') goto yy106; - } + if (yych <= '\r') goto yy71; + if (yych >= '"') goto yy73; } } else { - if (yych <= '[') { - if (yych <= ';') { - if (yych <= '9') goto yy107; - if (yych >= ';') goto yy100; - } else { - if (yych <= '@') goto yy95; - if (yych <= 'Z') goto yy110; - } + if (yych <= '&') { + if (yych == '$') goto yy74; } else { - if (yych <= '^') { - if (yych <= '\\') goto yy113; - if (yych <= ']') goto yy114; - } else { - if (yych == '`') goto yy95; - if (yych <= 'z') goto yy110; - } + if (yych <= '\'') goto yy75; + if (yych <= ',') goto yy67; + if (yych <= '.') goto yy76; } } -yy95: - YYDEBUG(95, *YYCURSOR); - yyaccept = 0; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; -yy96: - YYDEBUG(96, *YYCURSOR); - if (yybm[0+yych] & 4) { - goto yy95; - } - if (yych <= '"') goto yy97; - if (yych <= '$') goto yy117; - if (yych <= ';') goto yy97; - if (yych <= '\\') goto yy113; -yy97: - YYDEBUG(97, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Get rest as section/offset value */ - RETURN_TOKEN(TC_STRING, yytext, yyleng); -} -yy98: - YYDEBUG(98, *YYCURSOR); - yyaccept = 0; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(99, *YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy98; - } - if (yych <= '$') { - if (yych <= '\r') { - if (yych <= 0x08) goto yy95; - if (yych <= '\n') goto yy97; - if (yych <= '\f') goto yy95; - goto yy97; - } else { - if (yych == '"') goto yy102; - if (yych <= '#') goto yy95; - goto yy117; + } else { + if (yych <= '[') { + if (yych <= ';') { + if (yych <= '9') goto yy77; + if (yych >= ';') goto yy71; + } else { + if (yych <= '@') goto yy67; + if (yych <= 'Z') goto yy79; } } else { - if (yych <= ';') { - if (yych == '\'') goto yy97; - if (yych <= ':') goto yy95; - goto yy97; + if (yych <= '^') { + if (yych <= '\\') goto yy81; + if (yych <= ']') goto yy82; } else { - if (yych <= '[') goto yy95; - if (yych <= '\\') goto yy113; - if (yych <= ']') goto yy97; - goto yy95; + if (yych == '`') goto yy67; + if (yych <= 'z') goto yy79; } } -yy100: - YYDEBUG(100, *YYCURSOR); - ++YYCURSOR; -yy101: - YYDEBUG(101, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy67: + YYDEBUG(67, yych); + yyaccept = 0; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; +yy68: + YYDEBUG(68, yych); + if (yybm_ST_SECTION_VALUE[0+yych] & 4) goto yy67; + if (yych <= '"') goto yy69; + if (yych <= '$') goto yy84; + if (yych <= ';') goto yy69; + if (yych <= '\\') goto yy81; +yy69: + YYDEBUG(69, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Get rest as section/offset value */ + RETURN_TOKEN(TC_STRING, yytext, yyleng); +} +yy70: + YYDEBUG(70, yych); + yyaccept = 0; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_SECTION_VALUE[0+yych] & 8) goto yy70; + if (yych <= '$') { + if (yych <= '\r') { + if (yych <= 0x08) goto yy67; + if (yych <= '\n') goto yy69; + if (yych <= '\f') goto yy67; + goto yy69; + } else { + if (yych == '"') goto yy73; + if (yych <= '#') goto yy67; + goto yy84; + } + } else { + if (yych <= ';') { + if (yych == '\'') goto yy69; + if (yych <= ':') goto yy67; + goto yy69; + } else { + if (yych <= '[') goto yy67; + if (yych <= '\\') goto yy81; + if (yych <= ']') goto yy69; + goto yy67; + } + } +yy71: + YYDEBUG(71, yych); + ++YYCURSOR; +yy72: + YYDEBUG(72, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { return 0; } -yy102: - YYDEBUG(102, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(103, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Double quoted '"' string start */ +yy73: + YYDEBUG(73, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Double quoted '"' string start */ yy_push_state(ST_DOUBLE_QUOTES); return '"'; } -yy104: - YYDEBUG(104, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '\\') { - if (yych <= 0x00) goto yy101; - if (yych <= '[') goto yy95; - goto yy119; +yy74: + YYDEBUG(74, yych); + yych = *++YYCURSOR; + if (yych <= '\\') { + if (yych <= 0x00) goto yy72; + if (yych <= '[') goto yy67; + goto yy86; + } else { + if (yych == '{') goto yy87; + goto yy67; + } +yy75: + YYDEBUG(75, yych); + yych = *++YYCURSOR; + if (yybm_ST_SECTION_VALUE[0+yych] & 128) goto yy88; + goto yy72; +yy76: + YYDEBUG(76, yych); + yyaccept = 0; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '/') goto yy68; + if (yych <= '9') goto yy89; + goto yy68; +yy77: + YYDEBUG(77, yych); + yyaccept = 1; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_SECTION_VALUE[0+yych] & 16) goto yy77; + if (yych <= '&') { + if (yych <= '\r') { + if (yych == '\n') goto yy78; + if (yych <= '\f') goto yy67; } else { - if (yych == '{') goto yy121; - goto yy95; - } -yy105: - YYDEBUG(105, *YYCURSOR); - yych = *++YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy123; - } - goto yy101; -yy106: - YYDEBUG(106, *YYCURSOR); - yyaccept = 0; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '/') goto yy96; - if (yych <= '9') goto yy125; - goto yy96; -yy107: - YYDEBUG(107, *YYCURSOR); - yyaccept = 1; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(108, *YYCURSOR); - if (yybm[0+yych] & 16) { - goto yy107; - } - if (yych <= '&') { - if (yych <= '\r') { - if (yych == '\n') goto yy109; - if (yych <= '\f') goto yy95; + if (yych <= '"') { + if (yych <= '!') goto yy67; } else { - if (yych <= '"') { - if (yych <= '!') goto yy95; - } else { - if (yych == '$') goto yy117; - goto yy95; - } + if (yych == '$') goto yy84; + goto yy67; } + } + } else { + if (yych <= ':') { + if (yych <= '\'') goto yy78; + if (yych == '.') goto yy89; + goto yy67; } else { - if (yych <= ':') { - if (yych <= '\'') goto yy109; - if (yych == '.') goto yy125; - goto yy95; + if (yych <= '[') { + if (yych >= '<') goto yy67; } else { - if (yych <= '[') { - if (yych >= '<') goto yy95; - } else { - if (yych <= '\\') goto yy113; - if (yych >= '^') goto yy95; - } + if (yych <= '\\') goto yy81; + if (yych >= '^') goto yy67; } } -yy109: - YYDEBUG(109, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Get number option value as string */ + } +yy78: + YYDEBUG(78, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Get number option value as string */ RETURN_TOKEN(TC_NUMBER, yytext, yyleng); } -yy110: - YYDEBUG(110, *YYCURSOR); - yyaccept = 2; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(111, *YYCURSOR); - if (yybm[0+yych] & 32) { - goto yy110; - } - if (yych <= '$') { - if (yych <= '\r') { - if (yych == '\n') goto yy112; - if (yych <= '\f') goto yy95; - } else { - if (yych == '"') goto yy112; - if (yych <= '#') goto yy95; - goto yy117; - } +yy79: + YYDEBUG(79, yych); + yyaccept = 2; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_SECTION_VALUE[0+yych] & 32) goto yy79; + if (yych <= '$') { + if (yych <= '\r') { + if (yych == '\n') goto yy80; + if (yych <= '\f') goto yy67; } else { - if (yych <= ';') { - if (yych == '\'') goto yy112; - if (yych <= ':') goto yy95; - } else { - if (yych <= '[') goto yy95; - if (yych <= '\\') goto yy113; - if (yych >= '^') goto yy95; - } + if (yych == '"') goto yy80; + if (yych <= '#') goto yy67; + goto yy84; } -yy112: - YYDEBUG(112, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Get constant option value */ - RETURN_TOKEN(TC_CONSTANT, yytext, yyleng); -} -yy113: - YYDEBUG(113, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - goto yy95; -yy114: - YYDEBUG(114, *YYCURSOR); - ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; - YYDEBUG(115, *YYCURSOR); - if (yych <= '\f') { - if (yych <= 0x08) goto yy116; - if (yych <= '\t') goto yy114; - if (yych <= '\n') goto yy127; + } else { + if (yych <= ';') { + if (yych == '\'') goto yy80; + if (yych <= ':') goto yy67; } else { - if (yych <= '\r') goto yy128; - if (yych == ' ') goto yy114; + if (yych <= '[') goto yy67; + if (yych <= '\\') goto yy81; + if (yych >= '^') goto yy67; } -yy116: - YYDEBUG(116, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* End of section */ + } +yy80: + YYDEBUG(80, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Get constant option value */ + RETURN_TOKEN(TC_CONSTANT, yytext, yyleng); +} +yy81: + YYDEBUG(81, yych); + ++YYCURSOR; + YYFILL(1); + goto yy67; +yy82: + YYDEBUG(82, yych); + ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; + if (yych <= '\f') { + if (yych <= 0x08) goto yy83; + if (yych <= '\t') goto yy82; + if (yych <= '\n') goto yy90; + } else { + if (yych <= '\r') goto yy91; + if (yych == ' ') goto yy82; + } +yy83: + YYDEBUG(83, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* End of section */ BEGIN(INITIAL); SCNG(lineno)++; return ']'; } -yy117: - YYDEBUG(117, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yych <= '\\') { - if (yych <= 0x00) goto yy118; - if (yych <= '[') goto yy95; - goto yy119; - } else { - if (yych != '{') goto yy95; - } -yy118: - YYDEBUG(118, *YYCURSOR); - YYCURSOR = YYMARKER; - if (yyaccept <= 1) { - if (yyaccept == 0) { - goto yy97; - } else { - goto yy109; - } - } else { - goto yy112; - } -yy119: - YYDEBUG(119, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(120, *YYCURSOR); - if (yybm[0+yych] & 64) { - goto yy119; - } - goto yy95; -yy121: - YYDEBUG(121, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(122, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Variable start */ +yy84: + YYDEBUG(84, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '\\') { + if (yych <= 0x00) goto yy85; + if (yych <= '[') goto yy67; + goto yy86; + } else { + if (yych != '{') goto yy67; + } +yy85: + YYDEBUG(85, yych); + YYCURSOR = YYMARKER; + if (yyaccept <= 1) { + if (yyaccept == 0) goto yy69; + else goto yy78; + } else { + goto yy80; + } +yy86: + YYDEBUG(86, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_SECTION_VALUE[0+yych] & 64) goto yy86; + goto yy67; +yy87: + YYDEBUG(87, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Variable start */ yy_push_state(ST_VARNAME); return TC_DOLLAR_CURLY; } -yy123: - YYDEBUG(123, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(124, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy123; - } - goto yy129; -yy125: - YYDEBUG(125, *YYCURSOR); - yyaccept = 1; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(126, *YYCURSOR); - if (yych <= '&') { - if (yych <= '\r') { - if (yych == '\n') goto yy109; - if (yych <= '\f') goto yy95; - goto yy109; - } else { - if (yych <= '"') { - if (yych <= '!') goto yy95; - goto yy109; - } else { - if (yych == '$') goto yy117; - goto yy95; - } +yy88: + YYDEBUG(88, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_SECTION_VALUE[0+yych] & 128) goto yy88; + goto yy92; +yy89: + YYDEBUG(89, yych); + yyaccept = 1; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '&') { + if (yych <= '\r') { + if (yych == '\n') goto yy78; + if (yych <= '\f') goto yy67; + goto yy78; + } else { + if (yych <= '"') { + if (yych <= '!') goto yy67; + goto yy78; + } else { + if (yych == '$') goto yy84; + goto yy67; } + } + } else { + if (yych <= ':') { + if (yych <= '\'') goto yy78; + if (yych <= '/') goto yy67; + if (yych <= '9') goto yy89; + goto yy67; } else { - if (yych <= ':') { - if (yych <= '\'') goto yy109; - if (yych <= '/') goto yy95; - if (yych <= '9') goto yy125; - goto yy95; + if (yych <= '[') { + if (yych <= ';') goto yy78; + goto yy67; } else { - if (yych <= '[') { - if (yych <= ';') goto yy109; - goto yy95; - } else { - if (yych <= '\\') goto yy113; - if (yych <= ']') goto yy109; - goto yy95; - } + if (yych <= '\\') goto yy81; + if (yych <= ']') goto yy78; + goto yy67; } } -yy127: - YYDEBUG(127, *YYCURSOR); - ++YYCURSOR; - goto yy116; -yy128: - YYDEBUG(128, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy127; - goto yy116; -yy129: - YYDEBUG(129, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(130, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Raw string */ + } +yy90: + YYDEBUG(90, yych); + ++YYCURSOR; + goto yy83; +yy91: + YYDEBUG(91, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy90; + goto yy83; +yy92: + YYDEBUG(92, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Raw string */ /* Eat leading and trailing single quotes */ if (yytext[0] == '\'' && yytext[yyleng - 1] == '\'') { SCNG(yy_text)++; @@ -1776,55 +1844,17 @@ } RETURN_TOKEN(TC_RAW, yytext, yyleng); } - } /* *********************************** */ yyc_ST_VALUE: - { - static const unsigned char yybm[] = { - 80, 82, 82, 82, 82, 82, 82, 82, - 82, 84, 64, 82, 82, 64, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 84, 80, 80, 82, 208, 82, 80, 16, - 80, 80, 82, 82, 82, 82, 82, 82, - 122, 122, 122, 122, 122, 122, 122, 122, - 122, 122, 82, 80, 82, 80, 82, 82, - 82, 114, 114, 114, 114, 114, 114, 114, - 114, 114, 114, 114, 114, 114, 114, 114, - 114, 114, 114, 114, 114, 114, 114, 114, - 114, 114, 114, 82, 82, 82, 80, 114, - 82, 114, 114, 114, 114, 114, 114, 114, - 114, 114, 114, 114, 114, 114, 114, 114, - 114, 114, 114, 114, 114, 114, 114, 114, - 114, 114, 114, 82, 80, 82, 80, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, - }; - YYDEBUG(131, *YYCURSOR); - YYFILL(6); - yych = *YYCURSOR; - if (yybm[0+yych] & 4) { - goto yy138; - } - switch (yych) { - case 0x00: goto yy133; + YYFILL(6); + yych = *YYCURSOR; + YYDEBUG(93, yych); + if (yybm_ST_VALUE[0+yych] & 4) goto yy99; + switch (yych) { + case 0x00: goto yy94; case '\t': - case '\n': goto yy141; - case '\r': goto yy143; + case '\n': goto yy101; + case '\r': goto yy103; case ' ': case '!': case '&': @@ -1832,12 +1862,12 @@ case ')': case '^': case '|': - case '~': goto yy144; - case '"': goto yy147; - case '$': goto yy149; - case '\'': goto yy150; + case '~': goto yy104; + case '"': goto yy105; + case '$': goto yy106; + case '\'': goto yy107; case '-': - case '.': goto yy151; + case '.': goto yy108; case '0': case '1': case '2': @@ -1847,9 +1877,9 @@ case '6': case '7': case '8': - case '9': goto yy152; - case ';': goto yy155; - case '=': goto yy157; + case '9': goto yy109; + case ';': goto yy111; + case '=': goto yy112; case 'A': case 'B': case 'C': @@ -1892,1047 +1922,1008 @@ case 'v': case 'w': case 'x': - case 'z': goto yy159; + case 'z': goto yy113; case 'F': - case 'f': goto yy162; + case 'f': goto yy115; case 'N': - case 'n': goto yy163; + case 'n': goto yy116; case 'O': - case 'o': goto yy164; + case 'o': goto yy117; case 'T': - case 't': goto yy165; + case 't': goto yy118; case 'Y': - case 'y': goto yy166; - default: goto yy135; - } -yy133: - YYDEBUG(133, *YYCURSOR); - ++YYCURSOR; -yy134: - YYDEBUG(134, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* End of option value (if EOF is reached before EOL */ + case 'y': goto yy119; + default: goto yy96; + } +yy94: + YYDEBUG(94, yych); + ++YYCURSOR; +yy95: + YYDEBUG(95, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* End of option value (if EOF is reached before EOL */ BEGIN(INITIAL); return END_OF_LINE; } -yy135: - YYDEBUG(135, *YYCURSOR); - yyaccept = 0; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; -yy136: - YYDEBUG(136, *YYCURSOR); - if (yybm[0+yych] & 2) { - goto yy135; - } - if (yych <= '"') goto yy137; - if (yych <= '$') goto yy167; -yy137: - YYDEBUG(137, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Get everything else as option/offset value */ +yy96: + YYDEBUG(96, yych); + yyaccept = 0; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; +yy97: + YYDEBUG(97, yych); + if (yybm_ST_VALUE[0+yych] & 2) goto yy96; + if (yych <= '"') goto yy98; + if (yych <= '$') goto yy120; +yy98: + YYDEBUG(98, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Get everything else as option/offset value */ RETURN_TOKEN(TC_STRING, yytext, yyleng); } -yy138: - YYDEBUG(138, *YYCURSOR); - ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; - YYDEBUG(139, *YYCURSOR); - if (yybm[0+yych] & 4) { - goto yy138; - } - if (yych <= '\r') { - if (yych <= 0x08) goto yy140; - if (yych <= '\n') goto yy141; - if (yych >= '\r') goto yy143; +yy99: + YYDEBUG(99, yych); + ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; + if (yybm_ST_VALUE[0+yych] & 4) goto yy99; + if (yych <= '\r') { + if (yych <= 0x08) goto yy100; + if (yych <= '\n') goto yy101; + if (yych >= '\r') goto yy103; + } else { + if (yych <= '"') { + if (yych >= '"') goto yy105; } else { - if (yych <= '"') { - if (yych >= '"') goto yy147; - } else { - if (yych == ';') goto yy155; - } + if (yych == ';') goto yy111; } -yy140: - YYDEBUG(140, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy100: + YYDEBUG(100, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(TC_WHITESPACE, yytext, yyleng); } -yy141: - YYDEBUG(141, *YYCURSOR); - ++YYCURSOR; -yy142: - YYDEBUG(142, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* End of option value */ +yy101: + YYDEBUG(101, yych); + ++YYCURSOR; +yy102: + YYDEBUG(102, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* End of option value */ BEGIN(INITIAL); SCNG(lineno)++; return END_OF_LINE; } -yy143: - YYDEBUG(143, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy141; - goto yy142; -yy144: - YYDEBUG(144, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(145, *YYCURSOR); - if (yych == '\t') goto yy144; - if (yych == ' ') goto yy144; - YYDEBUG(146, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Boolean operators */ +yy103: + YYDEBUG(103, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy101; + goto yy102; +yy104: + YYDEBUG(104, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych == '\t') goto yy104; + if (yych == ' ') goto yy104; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Boolean operators */ return yytext[0]; } -yy147: - YYDEBUG(147, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(148, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Double quoted '"' string start */ +yy105: + YYDEBUG(105, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Double quoted '"' string start */ yy_push_state(ST_DOUBLE_QUOTES); return '"'; } -yy149: - YYDEBUG(149, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '\\') { - if (yych <= 0x00) goto yy134; - if (yych <= '[') goto yy135; - goto yy169; - } else { - if (yych == '{') goto yy170; - goto yy135; - } -yy150: - YYDEBUG(150, *YYCURSOR); - yych = *++YYCURSOR; - if (yybm[0+yych] & 64) { - goto yy172; +yy106: + YYDEBUG(106, yych); + yych = *++YYCURSOR; + if (yych <= '\\') { + if (yych <= 0x00) goto yy95; + if (yych <= '[') goto yy96; + goto yy122; + } else { + if (yych == '{') goto yy123; + goto yy96; + } +yy107: + YYDEBUG(107, yych); + yych = *++YYCURSOR; + if (yybm_ST_VALUE[0+yych] & 64) goto yy124; + goto yy95; +yy108: + YYDEBUG(108, yych); + yyaccept = 0; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '/') goto yy97; + if (yych <= '9') goto yy125; + goto yy97; +yy109: + YYDEBUG(109, yych); + yyaccept = 1; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VALUE[0+yych] & 8) goto yy109; + if (yych <= '-') { + if (yych <= 0x1F) { + if (yych <= '\n') { + if (yych <= 0x00) goto yy110; + if (yych <= 0x08) goto yy96; + } else { + if (yych != '\r') goto yy96; + } + } else { + if (yych <= '$') { + if (yych <= '"') goto yy110; + if (yych <= '#') goto yy96; + goto yy120; + } else { + if (yych <= '%') goto yy96; + if (yych >= '*') goto yy96; + } } - goto yy134; -yy151: - YYDEBUG(151, *YYCURSOR); - yyaccept = 0; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '/') goto yy136; - if (yych <= '9') goto yy174; - goto yy136; -yy152: - YYDEBUG(152, *YYCURSOR); - yyaccept = 1; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(153, *YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy152; - } - if (yych <= '-') { - if (yych <= 0x1F) { - if (yych <= '\n') { - if (yych <= 0x00) goto yy154; - if (yych <= 0x08) goto yy135; - } else { - if (yych != '\r') goto yy135; - } + } else { + if (yych <= ']') { + if (yych <= ';') { + if (yych <= '.') goto yy125; + if (yych <= ':') goto yy96; } else { - if (yych <= '$') { - if (yych <= '"') goto yy154; - if (yych <= '#') goto yy135; - goto yy167; - } else { - if (yych <= '%') goto yy135; - if (yych >= '*') goto yy135; - } + if (yych != '=') goto yy96; } } else { - if (yych <= ']') { - if (yych <= ';') { - if (yych <= '.') goto yy174; - if (yych <= ':') goto yy135; - } else { - if (yych != '=') goto yy135; - } + if (yych <= '|') { + if (yych <= '^') goto yy110; + if (yych <= '{') goto yy96; } else { - if (yych <= '|') { - if (yych <= '^') goto yy154; - if (yych <= '{') goto yy135; - } else { - if (yych != '~') goto yy135; - } + if (yych != '~') goto yy96; } } -yy154: - YYDEBUG(154, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Get number option value as string */ + } +yy110: + YYDEBUG(110, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Get number option value as string */ RETURN_TOKEN(TC_NUMBER, yytext, yyleng); } -yy155: - YYDEBUG(155, *YYCURSOR); - ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; - YYDEBUG(156, *YYCURSOR); - if (yybm[0+yych] & 16) { - goto yy155; - } - if (yych <= '\n') goto yy176; - goto yy178; -yy157: - YYDEBUG(157, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(158, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Make = used in option value to trigger error */ +yy111: + YYDEBUG(111, yych); + ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; + if (yybm_ST_VALUE[0+yych] & 16) goto yy111; + if (yych <= '\n') goto yy126; + goto yy128; +yy112: + YYDEBUG(112, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Make = used in option value to trigger error */ yyless(0); BEGIN(INITIAL); return END_OF_LINE; } -yy159: - YYDEBUG(159, *YYCURSOR); - yyaccept = 2; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(160, *YYCURSOR); - if (yybm[0+yych] & 32) { - goto yy159; - } - if (yych <= ')') { - if (yych <= '\r') { - if (yych <= 0x08) { - if (yych >= 0x01) goto yy135; - } else { - if (yych <= '\n') goto yy161; - if (yych <= '\f') goto yy135; - } +yy113: + YYDEBUG(113, yych); + yyaccept = 2; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VALUE[0+yych] & 32) goto yy113; + if (yych <= ')') { + if (yych <= '\r') { + if (yych <= 0x08) { + if (yych >= 0x01) goto yy96; } else { - if (yych <= '#') { - if (yych <= 0x1F) goto yy135; - if (yych >= '#') goto yy135; - } else { - if (yych <= '$') goto yy167; - if (yych <= '%') goto yy135; - } + if (yych <= '\n') goto yy114; + if (yych <= '\f') goto yy96; } } else { - if (yych <= ']') { - if (yych <= ';') { - if (yych <= ':') goto yy135; - } else { - if (yych != '=') goto yy135; - } + if (yych <= '#') { + if (yych <= 0x1F) goto yy96; + if (yych >= '#') goto yy96; } else { - if (yych <= '|') { - if (yych <= '^') goto yy161; - if (yych <= '{') goto yy135; - } else { - if (yych != '~') goto yy135; - } + if (yych <= '$') goto yy120; + if (yych <= '%') goto yy96; } } -yy161: - YYDEBUG(161, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Get constant option value */ + } else { + if (yych <= ']') { + if (yych <= ';') { + if (yych <= ':') goto yy96; + } else { + if (yych != '=') goto yy96; + } + } else { + if (yych <= '|') { + if (yych <= '^') goto yy114; + if (yych <= '{') goto yy96; + } else { + if (yych != '~') goto yy96; + } + } + } +yy114: + YYDEBUG(114, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Get constant option value */ RETURN_TOKEN(TC_CONSTANT, yytext, yyleng); } -yy162: - YYDEBUG(162, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '<') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } +yy115: + YYDEBUG(115, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '<') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '/') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + goto yy97; } else { - if (yych <= '/') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - goto yy136; - } else { - if (yych <= '9') goto yy159; - if (yych == ';') goto yy161; - goto yy136; - } + if (yych <= '9') goto yy113; + if (yych == ';') goto yy114; + goto yy97; + } + } + } else { + if (yych <= '_') { + if (yych <= 'A') { + if (yych <= '=') goto yy114; + if (yych <= '@') goto yy97; + goto yy129; + } else { + if (yych <= 'Z') goto yy113; + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + goto yy113; } } else { - if (yych <= '_') { - if (yych <= 'A') { - if (yych <= '=') goto yy161; - if (yych <= '@') goto yy136; - goto yy179; - } else { - if (yych <= 'Z') goto yy159; - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - goto yy159; - } + if (yych <= '{') { + if (yych <= '`') goto yy97; + if (yych <= 'a') goto yy129; + if (yych <= 'z') goto yy113; + goto yy97; } else { - if (yych <= '{') { - if (yych <= '`') goto yy136; - if (yych <= 'a') goto yy179; - if (yych <= 'z') goto yy159; - goto yy136; - } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; - } + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; } } -yy163: - YYDEBUG(163, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'N') { - if (yych <= '%') { - if (yych <= '\f') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - if (yych <= '\n') goto yy161; - goto yy136; - } else { - if (yych <= '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - if (yych <= '"') goto yy161; - goto yy136; - } + } +yy116: + YYDEBUG(116, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'N') { + if (yych <= '%') { + if (yych <= '\f') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + if (yych <= '\n') goto yy114; + goto yy97; } else { - if (yych <= ':') { - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - if (yych <= '9') goto yy159; - goto yy136; - } else { - if (yych <= '<') { - if (yych <= ';') goto yy161; - goto yy136; - } else { - if (yych <= '=') goto yy161; - if (yych <= '@') goto yy136; - goto yy159; - } - } + if (yych <= '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + if (yych <= '"') goto yy114; + goto yy97; } } else { - if (yych <= 'n') { - if (yych <= 'Z') { - if (yych <= 'O') goto yy180; - if (yych == 'U') goto yy182; - goto yy159; - } else { - if (yych <= '^') { - if (yych <= ']') goto yy136; - goto yy161; - } else { - if (yych == '`') goto yy136; - goto yy159; - } - } + if (yych <= ':') { + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + if (yych <= '9') goto yy113; + goto yy97; } else { - if (yych <= 'z') { - if (yych <= 'o') goto yy180; - if (yych == 'u') goto yy182; - goto yy159; - } else { - if (yych <= '|') { - if (yych <= '{') goto yy136; - goto yy161; - } else { - if (yych == '~') goto yy161; - goto yy136; - } + if (yych <= '<') { + if (yych <= ';') goto yy114; + goto yy97; + } else { + if (yych <= '=') goto yy114; + if (yych <= '@') goto yy97; + goto yy113; } } } -yy164: - YYDEBUG(164, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'E') { - if (yych <= '%') { - if (yych <= '\f') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - if (yych <= '\n') goto yy161; - goto yy136; - } else { - if (yych <= '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - if (yych <= '"') goto yy161; - goto yy136; - } + } else { + if (yych <= 'n') { + if (yych <= 'Z') { + if (yych <= 'O') goto yy130; + if (yych == 'U') goto yy132; + goto yy113; } else { - if (yych <= ':') { - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - if (yych <= '9') goto yy159; - goto yy136; + if (yych <= '^') { + if (yych <= ']') goto yy97; + goto yy114; } else { - if (yych <= '<') { - if (yych <= ';') goto yy161; - goto yy136; - } else { - if (yych <= '=') goto yy161; - if (yych <= '@') goto yy136; - goto yy159; - } + if (yych == '`') goto yy97; + goto yy113; } } } else { - if (yych <= 'e') { - if (yych <= 'Z') { - if (yych <= 'F') goto yy183; - if (yych == 'N') goto yy184; - goto yy159; - } else { - if (yych <= '^') { - if (yych <= ']') goto yy136; - goto yy161; - } else { - if (yych == '`') goto yy136; - goto yy159; - } - } + if (yych <= 'z') { + if (yych <= 'o') goto yy130; + if (yych == 'u') goto yy132; + goto yy113; } else { - if (yych <= 'z') { - if (yych <= 'f') goto yy183; - if (yych == 'n') goto yy184; - goto yy159; + if (yych <= '|') { + if (yych <= '{') goto yy97; + goto yy114; } else { - if (yych <= '|') { - if (yych <= '{') goto yy136; - goto yy161; - } else { - if (yych == '~') goto yy161; - goto yy136; - } + if (yych == '~') goto yy114; + goto yy97; } } } -yy165: - YYDEBUG(165, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } + } +yy117: + YYDEBUG(117, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'E') { + if (yych <= '%') { + if (yych <= '\f') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + if (yych <= '\n') goto yy114; + goto yy97; } else { - if (yych <= '9') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - goto yy159; - } else { - if (yych == ';') goto yy161; - if (yych <= '<') goto yy136; - goto yy161; - } + if (yych <= '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + if (yych <= '"') goto yy114; + goto yy97; } } else { - if (yych <= '`') { - if (yych <= 'Z') { - if (yych <= '@') goto yy136; - if (yych == 'R') goto yy186; - goto yy159; - } else { - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - if (yych <= '_') goto yy159; - goto yy136; - } + if (yych <= ':') { + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + if (yych <= '9') goto yy113; + goto yy97; } else { - if (yych <= '{') { - if (yych == 'r') goto yy186; - if (yych <= 'z') goto yy159; - goto yy136; - } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; + if (yych <= '<') { + if (yych <= ';') goto yy114; + goto yy97; + } else { + if (yych <= '=') goto yy114; + if (yych <= '@') goto yy97; + goto yy113; } } } -yy166: - YYDEBUG(166, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } + } else { + if (yych <= 'e') { + if (yych <= 'Z') { + if (yych <= 'F') goto yy133; + if (yych == 'N') goto yy134; + goto yy113; } else { - if (yych <= '9') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - goto yy159; + if (yych <= '^') { + if (yych <= ']') goto yy97; + goto yy114; } else { - if (yych == ';') goto yy161; - if (yych <= '<') goto yy136; - goto yy161; + if (yych == '`') goto yy97; + goto yy113; } } } else { - if (yych <= '`') { - if (yych <= 'Z') { - if (yych <= '@') goto yy136; - if (yych == 'E') goto yy187; - goto yy159; - } else { - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - if (yych <= '_') goto yy159; - goto yy136; - } + if (yych <= 'z') { + if (yych <= 'f') goto yy133; + if (yych == 'n') goto yy134; + goto yy113; } else { - if (yych <= '{') { - if (yych == 'e') goto yy187; - if (yych <= 'z') goto yy159; - goto yy136; + if (yych <= '|') { + if (yych <= '{') goto yy97; + goto yy114; } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; + if (yych == '~') goto yy114; + goto yy97; } } } -yy167: - YYDEBUG(167, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yych <= '\\') { - if (yych <= 0x00) goto yy168; - if (yych <= '[') goto yy135; - goto yy169; + } +yy118: + YYDEBUG(118, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '9') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + goto yy113; + } else { + if (yych == ';') goto yy114; + if (yych <= '<') goto yy97; + goto yy114; + } + } + } else { + if (yych <= '`') { + if (yych <= 'Z') { + if (yych <= '@') goto yy97; + if (yych == 'R') goto yy136; + goto yy113; + } else { + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + if (yych <= '_') goto yy113; + goto yy97; + } } else { - if (yych != '{') goto yy135; + if (yych <= '{') { + if (yych == 'r') goto yy136; + if (yych <= 'z') goto yy113; + goto yy97; + } else { + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; + } } -yy168: - YYDEBUG(168, *YYCURSOR); - YYCURSOR = YYMARKER; - if (yyaccept <= 2) { - if (yyaccept <= 1) { - if (yyaccept == 0) { - goto yy137; - } else { - goto yy154; - } + } +yy119: + YYDEBUG(119, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '9') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + goto yy113; + } else { + if (yych == ';') goto yy114; + if (yych <= '<') goto yy97; + goto yy114; + } + } + } else { + if (yych <= '`') { + if (yych <= 'Z') { + if (yych <= '@') goto yy97; + if (yych == 'E') goto yy137; + goto yy113; } else { - goto yy161; + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + if (yych <= '_') goto yy113; + goto yy97; } } else { - if (yyaccept <= 4) { - if (yyaccept == 3) { - goto yy181; - } else { - goto yy185; - } + if (yych <= '{') { + if (yych == 'e') goto yy137; + if (yych <= 'z') goto yy113; + goto yy97; } else { - goto yy202; + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; } } -yy169: - YYDEBUG(169, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy188; + } +yy120: + YYDEBUG(120, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '\\') { + if (yych <= 0x00) goto yy121; + if (yych <= '[') goto yy96; + goto yy122; + } else { + if (yych != '{') goto yy96; + } +yy121: + YYDEBUG(121, yych); + YYCURSOR = YYMARKER; + if (yyaccept <= 2) { + if (yyaccept <= 1) { + if (yyaccept == 0) goto yy98; + else goto yy110; + } else { + goto yy114; } - goto yy135; -yy170: - YYDEBUG(170, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(171, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Variable start */ + } else { + if (yyaccept <= 4) { + if (yyaccept == 3) goto yy131; + else goto yy135; + } else { + goto yy148; + } + } +yy122: + YYDEBUG(122, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VALUE[0+yych] & 128) goto yy138; + goto yy96; +yy123: + YYDEBUG(123, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Variable start */ yy_push_state(ST_VARNAME); return TC_DOLLAR_CURLY; } -yy172: - YYDEBUG(172, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(173, *YYCURSOR); - if (yybm[0+yych] & 64) { - goto yy172; +yy124: + YYDEBUG(124, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VALUE[0+yych] & 64) goto yy124; + goto yy139; +yy125: + YYDEBUG(125, yych); + yyaccept = 1; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '/') { + if (yych <= 0x1F) { + if (yych <= '\n') { + if (yych <= 0x00) goto yy110; + if (yych <= 0x08) goto yy96; + goto yy110; + } else { + if (yych == '\r') goto yy110; + goto yy96; + } + } else { + if (yych <= '$') { + if (yych <= '"') goto yy110; + if (yych <= '#') goto yy96; + goto yy120; + } else { + if (yych <= '%') goto yy96; + if (yych <= ')') goto yy110; + goto yy96; + } } - goto yy190; -yy174: - YYDEBUG(174, *YYCURSOR); - yyaccept = 1; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(175, *YYCURSOR); - if (yych <= '/') { - if (yych <= 0x1F) { - if (yych <= '\n') { - if (yych <= 0x00) goto yy154; - if (yych <= 0x08) goto yy135; - goto yy154; - } else { - if (yych == '\r') goto yy154; - goto yy135; - } + } else { + if (yych <= ']') { + if (yych <= ';') { + if (yych <= '9') goto yy125; + if (yych <= ':') goto yy96; + goto yy110; } else { - if (yych <= '$') { - if (yych <= '"') goto yy154; - if (yych <= '#') goto yy135; - goto yy167; - } else { - if (yych <= '%') goto yy135; - if (yych <= ')') goto yy154; - goto yy135; - } + if (yych == '=') goto yy110; + goto yy96; } } else { - if (yych <= ']') { - if (yych <= ';') { - if (yych <= '9') goto yy174; - if (yych <= ':') goto yy135; - goto yy154; - } else { - if (yych == '=') goto yy154; - goto yy135; - } + if (yych <= '|') { + if (yych <= '^') goto yy110; + if (yych <= '{') goto yy96; + goto yy110; } else { - if (yych <= '|') { - if (yych <= '^') goto yy154; - if (yych <= '{') goto yy135; - goto yy154; - } else { - if (yych == '~') goto yy154; - goto yy135; - } + if (yych == '~') goto yy110; + goto yy96; } } -yy176: - YYDEBUG(176, *YYCURSOR); - ++YYCURSOR; -yy177: - YYDEBUG(177, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Comment */ + } +yy126: + YYDEBUG(126, yych); + ++YYCURSOR; +yy127: + YYDEBUG(127, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Comment */ BEGIN(INITIAL); SCNG(lineno)++; return END_OF_LINE; } -yy178: - YYDEBUG(178, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy176; - goto yy177; -yy179: - YYDEBUG(179, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } +yy128: + YYDEBUG(128, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy126; + goto yy127; +yy129: + YYDEBUG(129, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '9') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + goto yy113; + } else { + if (yych == ';') goto yy114; + if (yych <= '<') goto yy97; + goto yy114; + } + } + } else { + if (yych <= '`') { + if (yych <= 'Z') { + if (yych <= '@') goto yy97; + if (yych == 'L') goto yy140; + goto yy113; } else { - if (yych <= '9') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - goto yy159; - } else { - if (yych == ';') goto yy161; - if (yych <= '<') goto yy136; - goto yy161; - } + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + if (yych <= '_') goto yy113; + goto yy97; } } else { - if (yych <= '`') { - if (yych <= 'Z') { - if (yych <= '@') goto yy136; - if (yych == 'L') goto yy192; - goto yy159; - } else { - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - if (yych <= '_') goto yy159; - goto yy136; - } + if (yych <= '{') { + if (yych == 'l') goto yy140; + if (yych <= 'z') goto yy113; + goto yy97; } else { - if (yych <= '{') { - if (yych == 'l') goto yy192; - if (yych <= 'z') goto yy159; - goto yy136; - } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; - } + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; } } -yy180: - YYDEBUG(180, *YYCURSOR); - yyaccept = 3; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '<') { - if (yych <= ' ') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy181; - if (yych <= 0x08) goto yy136; - if (yych <= '\t') goto yy193; - } else { - if (yych == '\r') goto yy181; - if (yych <= 0x1F) goto yy136; - goto yy193; - } + } +yy130: + YYDEBUG(130, yych); + yyaccept = 3; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '<') { + if (yych <= ' ') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy131; + if (yych <= 0x08) goto yy97; + if (yych <= '\t') goto yy141; + } else { + if (yych == '\r') goto yy131; + if (yych <= 0x1F) goto yy97; + goto yy141; + } + } else { + if (yych <= '/') { + if (yych <= '"') goto yy131; + if (yych <= '%') goto yy97; + if (yych >= '*') goto yy97; } else { - if (yych <= '/') { - if (yych <= '"') goto yy181; - if (yych <= '%') goto yy136; - if (yych >= '*') goto yy136; - } else { - if (yych <= '9') goto yy159; - if (yych != ';') goto yy136; - } + if (yych <= '9') goto yy113; + if (yych != ';') goto yy97; + } + } + } else { + if (yych <= '_') { + if (yych <= 'N') { + if (yych <= '=') goto yy131; + if (yych <= '@') goto yy97; + if (yych <= 'M') goto yy113; + goto yy142; + } else { + if (yych <= 'Z') goto yy113; + if (yych <= ']') goto yy97; + if (yych >= '_') goto yy113; } } else { - if (yych <= '_') { - if (yych <= 'N') { - if (yych <= '=') goto yy181; - if (yych <= '@') goto yy136; - if (yych <= 'M') goto yy159; - goto yy195; - } else { - if (yych <= 'Z') goto yy159; - if (yych <= ']') goto yy136; - if (yych >= '_') goto yy159; - } + if (yych <= 'z') { + if (yych <= '`') goto yy97; + if (yych == 'n') goto yy142; + goto yy113; } else { - if (yych <= 'z') { - if (yych <= '`') goto yy136; - if (yych == 'n') goto yy195; - goto yy159; + if (yych <= '|') { + if (yych <= '{') goto yy97; } else { - if (yych <= '|') { - if (yych <= '{') goto yy136; - } else { - if (yych != '~') goto yy136; - } + if (yych != '~') goto yy97; } } } -yy181: - YYDEBUG(181, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* FALSE value (when used outside option value/offset this causes parse error!)*/ + } +yy131: + YYDEBUG(131, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* FALSE value (when used outside option value/offset this causes parse error!)*/ RETURN_TOKEN(BOOL_FALSE, "", 0); } -yy182: - YYDEBUG(182, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } +yy132: + YYDEBUG(132, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '9') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + goto yy113; + } else { + if (yych == ';') goto yy114; + if (yych <= '<') goto yy97; + goto yy114; + } + } + } else { + if (yych <= '`') { + if (yych <= 'Z') { + if (yych <= '@') goto yy97; + if (yych == 'L') goto yy143; + goto yy113; } else { - if (yych <= '9') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - goto yy159; - } else { - if (yych == ';') goto yy161; - if (yych <= '<') goto yy136; - goto yy161; - } + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + if (yych <= '_') goto yy113; + goto yy97; } } else { - if (yych <= '`') { - if (yych <= 'Z') { - if (yych <= '@') goto yy136; - if (yych == 'L') goto yy196; - goto yy159; - } else { - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - if (yych <= '_') goto yy159; - goto yy136; - } + if (yych <= '{') { + if (yych == 'l') goto yy143; + if (yych <= 'z') goto yy113; + goto yy97; } else { - if (yych <= '{') { - if (yych == 'l') goto yy196; - if (yych <= 'z') goto yy159; - goto yy136; - } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; - } + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; } } -yy183: - YYDEBUG(183, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } + } +yy133: + YYDEBUG(133, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '9') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + goto yy113; + } else { + if (yych == ';') goto yy114; + if (yych <= '<') goto yy97; + goto yy114; + } + } + } else { + if (yych <= '`') { + if (yych <= 'Z') { + if (yych <= '@') goto yy97; + if (yych == 'F') goto yy144; + goto yy113; } else { - if (yych <= '9') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - goto yy159; - } else { - if (yych == ';') goto yy161; - if (yych <= '<') goto yy136; - goto yy161; - } + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + if (yych <= '_') goto yy113; + goto yy97; } } else { - if (yych <= '`') { - if (yych <= 'Z') { - if (yych <= '@') goto yy136; - if (yych == 'F') goto yy197; - goto yy159; - } else { - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - if (yych <= '_') goto yy159; - goto yy136; - } + if (yych <= '{') { + if (yych == 'f') goto yy144; + if (yych <= 'z') goto yy113; + goto yy97; } else { - if (yych <= '{') { - if (yych == 'f') goto yy197; - if (yych <= 'z') goto yy159; - goto yy136; - } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; - } + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; } } -yy184: - YYDEBUG(184, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 32) { - goto yy159; + } +yy134: + YYDEBUG(134, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_VALUE[0+yych] & 32) goto yy113; + if (yych <= ')') { + if (yych <= '\f') { + if (yych <= 0x08) { + if (yych >= 0x01) goto yy97; + } else { + if (yych <= '\t') goto yy145; + if (yych >= '\v') goto yy97; + } + } else { + if (yych <= ' ') { + if (yych <= '\r') goto yy135; + if (yych <= 0x1F) goto yy97; + goto yy145; + } else { + if (yych <= '"') goto yy135; + if (yych <= '%') goto yy97; + } } - if (yych <= ')') { - if (yych <= '\f') { - if (yych <= 0x08) { - if (yych >= 0x01) goto yy136; - } else { - if (yych <= '\t') goto yy198; - if (yych >= '\v') goto yy136; - } + } else { + if (yych <= ']') { + if (yych <= ';') { + if (yych <= ':') goto yy97; } else { - if (yych <= ' ') { - if (yych <= '\r') goto yy185; - if (yych <= 0x1F) goto yy136; - goto yy198; - } else { - if (yych <= '"') goto yy185; - if (yych <= '%') goto yy136; - } + if (yych != '=') goto yy97; } } else { - if (yych <= ']') { - if (yych <= ';') { - if (yych <= ':') goto yy136; - } else { - if (yych != '=') goto yy136; - } + if (yych <= '|') { + if (yych <= '^') goto yy135; + if (yych <= '{') goto yy97; } else { - if (yych <= '|') { - if (yych <= '^') goto yy185; - if (yych <= '{') goto yy136; - } else { - if (yych != '~') goto yy136; - } + if (yych != '~') goto yy97; } } -yy185: - YYDEBUG(185, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* TRUE value (when used outside option value/offset this causes parse error!) */ + } +yy135: + YYDEBUG(135, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* TRUE value (when used outside option value/offset this causes parse error!) */ RETURN_TOKEN(BOOL_TRUE, "1", 1); } -yy186: - YYDEBUG(186, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } +yy136: + YYDEBUG(136, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '9') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + goto yy113; + } else { + if (yych == ';') goto yy114; + if (yych <= '<') goto yy97; + goto yy114; + } + } + } else { + if (yych <= '`') { + if (yych <= 'Z') { + if (yych <= '@') goto yy97; + if (yych == 'U') goto yy146; + goto yy113; } else { - if (yych <= '9') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - goto yy159; - } else { - if (yych == ';') goto yy161; - if (yych <= '<') goto yy136; - goto yy161; - } + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + if (yych <= '_') goto yy113; + goto yy97; } } else { - if (yych <= '`') { - if (yych <= 'Z') { - if (yych <= '@') goto yy136; - if (yych == 'U') goto yy200; - goto yy159; - } else { - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - if (yych <= '_') goto yy159; - goto yy136; - } + if (yych <= '{') { + if (yych == 'u') goto yy146; + if (yych <= 'z') goto yy113; + goto yy97; } else { - if (yych <= '{') { - if (yych == 'u') goto yy200; - if (yych <= 'z') goto yy159; - goto yy136; - } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; - } + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; } } -yy187: - YYDEBUG(187, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } + } +yy137: + YYDEBUG(137, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '9') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + goto yy113; + } else { + if (yych == ';') goto yy114; + if (yych <= '<') goto yy97; + goto yy114; + } + } + } else { + if (yych <= '`') { + if (yych <= 'Z') { + if (yych <= '@') goto yy97; + if (yych == 'S') goto yy134; + goto yy113; } else { - if (yych <= '9') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - goto yy159; - } else { - if (yych == ';') goto yy161; - if (yych <= '<') goto yy136; - goto yy161; - } + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + if (yych <= '_') goto yy113; + goto yy97; } } else { - if (yych <= '`') { - if (yych <= 'Z') { - if (yych <= '@') goto yy136; - if (yych == 'S') goto yy184; - goto yy159; - } else { - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - if (yych <= '_') goto yy159; - goto yy136; - } + if (yych <= '{') { + if (yych == 's') goto yy134; + if (yych <= 'z') goto yy113; + goto yy97; } else { - if (yych <= '{') { - if (yych == 's') goto yy184; - if (yych <= 'z') goto yy159; - goto yy136; - } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; - } + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; } } -yy188: - YYDEBUG(188, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(189, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy188; - } - if (yych <= 0x00) goto yy137; - if (yych == '\\') goto yy169; - goto yy135; -yy190: - YYDEBUG(190, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(191, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Raw string */ + } +yy138: + YYDEBUG(138, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VALUE[0+yych] & 128) goto yy138; + if (yych <= 0x00) goto yy98; + if (yych == '\\') goto yy122; + goto yy96; +yy139: + YYDEBUG(139, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Raw string */ /* Eat leading and trailing single quotes */ if (yytext[0] == '\'' && yytext[yyleng - 1] == '\'') { SCNG(yy_text)++; @@ -2940,478 +2931,388 @@ } RETURN_TOKEN(TC_RAW, yytext, yyleng); } -yy192: - YYDEBUG(192, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } +yy140: + YYDEBUG(140, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '9') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + goto yy113; + } else { + if (yych == ';') goto yy114; + if (yych <= '<') goto yy97; + goto yy114; + } + } + } else { + if (yych <= '`') { + if (yych <= 'Z') { + if (yych <= '@') goto yy97; + if (yych == 'S') goto yy142; + goto yy113; } else { - if (yych <= '9') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - goto yy159; - } else { - if (yych == ';') goto yy161; - if (yych <= '<') goto yy136; - goto yy161; - } + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + if (yych <= '_') goto yy113; + goto yy97; } } else { - if (yych <= '`') { - if (yych <= 'Z') { - if (yych <= '@') goto yy136; - if (yych == 'S') goto yy195; - goto yy159; - } else { - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - if (yych <= '_') goto yy159; - goto yy136; - } + if (yych <= '{') { + if (yych == 's') goto yy142; + if (yych <= 'z') goto yy113; + goto yy97; } else { - if (yych <= '{') { - if (yych == 's') goto yy195; - if (yych <= 'z') goto yy159; - goto yy136; - } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; - } + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; } } -yy193: - YYDEBUG(193, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(194, *YYCURSOR); - if (yych == '\t') goto yy193; - if (yych == ' ') goto yy193; - goto yy181; -yy195: - YYDEBUG(195, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } + } +yy141: + YYDEBUG(141, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych == '\t') goto yy141; + if (yych == ' ') goto yy141; + goto yy131; +yy142: + YYDEBUG(142, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '9') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + goto yy113; + } else { + if (yych == ';') goto yy114; + if (yych <= '<') goto yy97; + goto yy114; + } + } + } else { + if (yych <= '`') { + if (yych <= 'Z') { + if (yych <= '@') goto yy97; + if (yych == 'E') goto yy144; + goto yy113; } else { - if (yych <= '9') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - goto yy159; - } else { - if (yych == ';') goto yy161; - if (yych <= '<') goto yy136; - goto yy161; - } + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + if (yych <= '_') goto yy113; + goto yy97; } } else { - if (yych <= '`') { - if (yych <= 'Z') { - if (yych <= '@') goto yy136; - if (yych == 'E') goto yy197; - goto yy159; - } else { - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - if (yych <= '_') goto yy159; - goto yy136; - } + if (yych <= '{') { + if (yych == 'e') goto yy144; + if (yych <= 'z') goto yy113; + goto yy97; } else { - if (yych <= '{') { - if (yych == 'e') goto yy197; - if (yych <= 'z') goto yy159; - goto yy136; - } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; - } + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; } } -yy196: - YYDEBUG(196, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } + } +yy143: + YYDEBUG(143, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '9') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + goto yy113; + } else { + if (yych == ';') goto yy114; + if (yych <= '<') goto yy97; + goto yy114; + } + } + } else { + if (yych <= '`') { + if (yych <= 'Z') { + if (yych <= '@') goto yy97; + if (yych == 'L') goto yy147; + goto yy113; } else { - if (yych <= '9') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - goto yy159; - } else { - if (yych == ';') goto yy161; - if (yych <= '<') goto yy136; - goto yy161; - } + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + if (yych <= '_') goto yy113; + goto yy97; } } else { - if (yych <= '`') { - if (yych <= 'Z') { - if (yych <= '@') goto yy136; - if (yych == 'L') goto yy201; - goto yy159; - } else { - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - if (yych <= '_') goto yy159; - goto yy136; - } + if (yych <= '{') { + if (yych == 'l') goto yy147; + if (yych <= 'z') goto yy113; + goto yy97; } else { - if (yych <= '{') { - if (yych == 'l') goto yy201; - if (yych <= 'z') goto yy159; - goto yy136; - } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; - } + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; } } -yy197: - YYDEBUG(197, *YYCURSOR); - yyaccept = 3; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 32) { - goto yy159; + } +yy144: + YYDEBUG(144, yych); + yyaccept = 3; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_VALUE[0+yych] & 32) goto yy113; + if (yych <= ')') { + if (yych <= '\f') { + if (yych <= 0x08) { + if (yych <= 0x00) goto yy131; + goto yy97; + } else { + if (yych <= '\t') goto yy141; + if (yych <= '\n') goto yy131; + goto yy97; + } + } else { + if (yych <= ' ') { + if (yych <= '\r') goto yy131; + if (yych <= 0x1F) goto yy97; + goto yy141; + } else { + if (yych <= '"') goto yy131; + if (yych <= '%') goto yy97; + goto yy131; + } } - if (yych <= ')') { - if (yych <= '\f') { - if (yych <= 0x08) { - if (yych <= 0x00) goto yy181; - goto yy136; - } else { - if (yych <= '\t') goto yy193; - if (yych <= '\n') goto yy181; - goto yy136; - } + } else { + if (yych <= ']') { + if (yych <= ';') { + if (yych <= ':') goto yy97; + goto yy131; } else { - if (yych <= ' ') { - if (yych <= '\r') goto yy181; - if (yych <= 0x1F) goto yy136; - goto yy193; - } else { - if (yych <= '"') goto yy181; - if (yych <= '%') goto yy136; - goto yy181; - } + if (yych == '=') goto yy131; + goto yy97; } } else { - if (yych <= ']') { - if (yych <= ';') { - if (yych <= ':') goto yy136; - goto yy181; - } else { - if (yych == '=') goto yy181; - goto yy136; - } + if (yych <= '|') { + if (yych <= '^') goto yy131; + if (yych <= '{') goto yy97; + goto yy131; } else { - if (yych <= '|') { - if (yych <= '^') goto yy181; - if (yych <= '{') goto yy136; - goto yy181; - } else { - if (yych == '~') goto yy181; - goto yy136; - } + if (yych == '~') goto yy131; + goto yy97; } } -yy198: - YYDEBUG(198, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(199, *YYCURSOR); - if (yych == '\t') goto yy198; - if (yych == ' ') goto yy198; - goto yy185; -yy200: - YYDEBUG(200, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych <= '"') { - if (yych <= '\n') { - if (yych <= 0x00) goto yy161; - if (yych <= 0x08) goto yy136; - goto yy161; - } else { - if (yych == '\r') goto yy161; - if (yych <= 0x1F) goto yy136; - goto yy161; - } + } +yy145: + YYDEBUG(145, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych == '\t') goto yy145; + if (yych == ' ') goto yy145; + goto yy135; +yy146: + YYDEBUG(146, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych <= '"') { + if (yych <= '\n') { + if (yych <= 0x00) goto yy114; + if (yych <= 0x08) goto yy97; + goto yy114; + } else { + if (yych == '\r') goto yy114; + if (yych <= 0x1F) goto yy97; + goto yy114; + } + } else { + if (yych <= '9') { + if (yych <= '%') goto yy97; + if (yych <= ')') goto yy114; + if (yych <= '/') goto yy97; + goto yy113; + } else { + if (yych == ';') goto yy114; + if (yych <= '<') goto yy97; + goto yy114; + } + } + } else { + if (yych <= '`') { + if (yych <= 'Z') { + if (yych <= '@') goto yy97; + if (yych == 'E') goto yy134; + goto yy113; } else { - if (yych <= '9') { - if (yych <= '%') goto yy136; - if (yych <= ')') goto yy161; - if (yych <= '/') goto yy136; - goto yy159; - } else { - if (yych == ';') goto yy161; - if (yych <= '<') goto yy136; - goto yy161; - } + if (yych <= ']') goto yy97; + if (yych <= '^') goto yy114; + if (yych <= '_') goto yy113; + goto yy97; } } else { - if (yych <= '`') { - if (yych <= 'Z') { - if (yych <= '@') goto yy136; - if (yych == 'E') goto yy184; - goto yy159; - } else { - if (yych <= ']') goto yy136; - if (yych <= '^') goto yy161; - if (yych <= '_') goto yy159; - goto yy136; - } + if (yych <= '{') { + if (yych == 'e') goto yy134; + if (yych <= 'z') goto yy113; + goto yy97; } else { - if (yych <= '{') { - if (yych == 'e') goto yy184; - if (yych <= 'z') goto yy159; - goto yy136; - } else { - if (yych == '}') goto yy136; - if (yych <= '~') goto yy161; - goto yy136; - } + if (yych == '}') goto yy97; + if (yych <= '~') goto yy114; + goto yy97; } } -yy201: - YYDEBUG(201, *YYCURSOR); - yyaccept = 5; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 32) { - goto yy159; + } +yy147: + YYDEBUG(147, yych); + yyaccept = 5; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_VALUE[0+yych] & 32) goto yy113; + if (yych <= ')') { + if (yych <= '\f') { + if (yych <= 0x08) { + if (yych >= 0x01) goto yy97; + } else { + if (yych <= '\t') goto yy149; + if (yych >= '\v') goto yy97; + } + } else { + if (yych <= ' ') { + if (yych <= '\r') goto yy148; + if (yych <= 0x1F) goto yy97; + goto yy149; + } else { + if (yych <= '"') goto yy148; + if (yych <= '%') goto yy97; + } } - if (yych <= ')') { - if (yych <= '\f') { - if (yych <= 0x08) { - if (yych >= 0x01) goto yy136; - } else { - if (yych <= '\t') goto yy203; - if (yych >= '\v') goto yy136; - } + } else { + if (yych <= ']') { + if (yych <= ';') { + if (yych <= ':') goto yy97; } else { - if (yych <= ' ') { - if (yych <= '\r') goto yy202; - if (yych <= 0x1F) goto yy136; - goto yy203; - } else { - if (yych <= '"') goto yy202; - if (yych <= '%') goto yy136; - } + if (yych != '=') goto yy97; } } else { - if (yych <= ']') { - if (yych <= ';') { - if (yych <= ':') goto yy136; - } else { - if (yych != '=') goto yy136; - } + if (yych <= '|') { + if (yych <= '^') goto yy148; + if (yych <= '{') goto yy97; } else { - if (yych <= '|') { - if (yych <= '^') goto yy202; - if (yych <= '{') goto yy136; - } else { - if (yych != '~') goto yy136; - } + if (yych != '~') goto yy97; } } -yy202: - YYDEBUG(202, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy148: + YYDEBUG(148, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(NULL_NULL, "", 0); } -yy203: - YYDEBUG(203, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(204, *YYCURSOR); - if (yych == '\t') goto yy203; - if (yych == ' ') goto yy203; - goto yy202; - } +yy149: + YYDEBUG(149, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych == '\t') goto yy149; + if (yych == ' ') goto yy149; + goto yy148; /* *********************************** */ yyc_ST_SECTION_RAW: - { - static const unsigned char yybm[] = { - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 192, 0, 64, 64, 0, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 192, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 0, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - }; - YYDEBUG(205, *YYCURSOR); - YYFILL(1); - yych = *YYCURSOR; - if (yybm[0+yych] & 64) { - goto yy207; - } - if (yych <= '\r') goto yy210; - goto yy212; -yy207: - YYDEBUG(207, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(208, *YYCURSOR); - if (yybm[0+yych] & 64) { - goto yy207; - } - YYDEBUG(209, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Raw value, only used when SCNG(scanner_mode) == ZEND_INI_SCANNER_RAW. */ + YYFILL(1); + yych = *YYCURSOR; + YYDEBUG(150, yych); + if (yybm_ST_SECTION_RAW[0+yych] & 64) goto yy151; + if (yych <= '\r') goto yy152; + goto yy153; +yy151: + YYDEBUG(151, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_SECTION_RAW[0+yych] & 64) goto yy151; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Raw value, only used when SCNG(scanner_mode) == ZEND_INI_SCANNER_RAW. */ RETURN_TOKEN(TC_RAW, yytext, yyleng); } -yy210: - YYDEBUG(210, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(211, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy152: + YYDEBUG(152, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { return 0; } -yy212: - YYDEBUG(212, *YYCURSOR); - ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; - YYDEBUG(213, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy212; - } - if (yych <= 0x08) goto yy214; - if (yych <= '\n') goto yy215; - if (yych == '\r') goto yy216; -yy214: - YYDEBUG(214, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* End of section */ +yy153: + YYDEBUG(153, yych); + ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; + if (yybm_ST_SECTION_RAW[0+yych] & 128) goto yy153; + if (yych <= 0x08) goto yy154; + if (yych <= '\n') goto yy155; + if (yych == '\r') goto yy156; +yy154: + YYDEBUG(154, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* End of section */ BEGIN(INITIAL); SCNG(lineno)++; return ']'; } -yy215: - YYDEBUG(215, *YYCURSOR); - ++YYCURSOR; - goto yy214; -yy216: - YYDEBUG(216, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy215; - goto yy214; - } +yy155: + YYDEBUG(155, yych); + ++YYCURSOR; + goto yy154; +yy156: + YYDEBUG(156, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy155; + goto yy154; /* *********************************** */ yyc_ST_DOUBLE_QUOTES: - { - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 128, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 128, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - }; - YYDEBUG(217, *YYCURSOR); - YYFILL(2); - yych = *YYCURSOR; - if (yych == '"') goto yy221; - if (yych == '$') goto yy224; - YYDEBUG(219, *YYCURSOR); - ++YYCURSOR; -yy220: - YYDEBUG(220, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Escape double quoted string contents */ + YYFILL(2); + yych = *YYCURSOR; + YYDEBUG(157, yych); + if (yych == '"') goto yy159; + if (yych == '$') goto yy160; + ++YYCURSOR; +yy158: + YYDEBUG(158, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Escape double quoted string contents */ if (YYCURSOR > YYLIMIT) { return 0; } @@ -3450,91 +3351,43 @@ zend_ini_escape_string(ini_lval, yytext, yyleng, '"'); return TC_QUOTED_STRING; } -yy221: - YYDEBUG(221, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(222, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy221; - } - YYDEBUG(223, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Double quoted '"' string ends */ +yy159: + YYDEBUG(159, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_DOUBLE_QUOTES[0+yych] & 128) goto yy159; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Double quoted '"' string ends */ yy_pop_state(); return '"'; } -yy224: - YYDEBUG(224, *YYCURSOR); - yych = *++YYCURSOR; - if (yych != '{') goto yy220; - YYDEBUG(225, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(226, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Variable start */ +yy160: + YYDEBUG(160, yych); + yych = *++YYCURSOR; + if (yych != '{') goto yy158; + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Variable start */ yy_push_state(ST_VARNAME); return TC_DOLLAR_CURLY; } - } /* *********************************** */ yyc_ST_VARNAME: - { - static const unsigned char yybm[] = { - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 0, 0, 128, 128, 0, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 0, 0, 128, 0, 128, 0, 128, - 0, 0, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 128, 0, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 128, 128, 0, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - }; - YYDEBUG(227, *YYCURSOR); - YYFILL(1); - yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy229; - } - if (yych == '}') goto yy234; - goto yy232; -yy229: - YYDEBUG(229, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(230, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy229; - } - YYDEBUG(231, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Variable name */ + YYFILL(1); + yych = *YYCURSOR; + YYDEBUG(161, yych); + if (yybm_ST_VARNAME[0+yych] & 128) goto yy162; + if (yych == '}') goto yy164; + goto yy163; +yy162: + YYDEBUG(162, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VARNAME[0+yych] & 128) goto yy162; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Variable name */ /* Eat leading whitespace */ EAT_LEADING_WHITESPACE(); @@ -3543,97 +3396,57 @@ RETURN_TOKEN(TC_VARNAME, yytext, yyleng); } -yy232: - YYDEBUG(232, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(233, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy163: + YYDEBUG(163, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { return 0; } -yy234: - YYDEBUG(234, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(235, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Variable end */ +yy164: + YYDEBUG(164, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Variable end */ yy_pop_state(); return '}'; } - } /* *********************************** */ yyc_ST_RAW: - { - static const unsigned char yybm[] = { - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 192, 0, 64, 64, 0, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 192, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, - }; - YYDEBUG(236, *YYCURSOR); - YYFILL(3); - yych = *YYCURSOR; - if (yych <= '\f') { - if (yych <= 0x08) { - if (yych >= 0x01) goto yy240; - } else { - if (yych <= '\t') goto yy242; - if (yych <= '\n') goto yy243; - goto yy240; - } + YYFILL(3); + yych = *YYCURSOR; + YYDEBUG(165, yych); + if (yych <= '\f') { + if (yych <= 0x08) { + if (yych >= 0x01) goto yy166; + } else { + if (yych <= '\t') goto yy168; + if (yych <= '\n') goto yy169; + goto yy166; + } + } else { + if (yych <= ' ') { + if (yych <= '\r') goto yy171; + if (yych <= 0x1F) goto yy166; + goto yy168; } else { - if (yych <= ' ') { - if (yych <= '\r') goto yy245; - if (yych <= 0x1F) goto yy240; - goto yy242; - } else { - if (yych == ';') goto yy246; - goto yy240; - } + if (yych == ';') goto yy172; + goto yy166; } - YYDEBUG(238, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(239, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* End of option value (if EOF is reached before EOL */ + } + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* End of option value (if EOF is reached before EOL */ BEGIN(INITIAL); return END_OF_LINE; } -yy240: - YYDEBUG(240, *YYCURSOR); - ++YYCURSOR; -yy241: - YYDEBUG(241, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Raw value, only used when SCNG(scanner_mode) == ZEND_INI_SCANNER_RAW. */ +yy166: + YYDEBUG(166, yych); + ++YYCURSOR; +yy167: + YYDEBUG(167, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Raw value, only used when SCNG(scanner_mode) == ZEND_INI_SCANNER_RAW. */ unsigned char *sc = NULL; EAT_LEADING_WHITESPACE(); while (YYCURSOR < YYLIMIT) { @@ -3676,91 +3489,85 @@ RETURN_TOKEN(TC_RAW, yytext, yyleng); } -yy242: - YYDEBUG(242, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '\r') { - if (yych <= 0x08) goto yy241; - if (yych <= '\n') goto yy249; - if (yych <= '\f') goto yy241; - goto yy249; +yy168: + YYDEBUG(168, yych); + yych = *++YYCURSOR; + if (yych <= '\r') { + if (yych <= 0x08) goto yy167; + if (yych <= '\n') goto yy174; + if (yych <= '\f') goto yy167; + goto yy174; + } else { + if (yych <= ' ') { + if (yych <= 0x1F) goto yy167; + goto yy174; } else { - if (yych <= ' ') { - if (yych <= 0x1F) goto yy241; - goto yy249; - } else { - if (yych == ';') goto yy249; - goto yy241; - } + if (yych == ';') goto yy174; + goto yy167; } -yy243: - YYDEBUG(243, *YYCURSOR); - ++YYCURSOR; -yy244: - YYDEBUG(244, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* End of option value */ + } +yy169: + YYDEBUG(169, yych); + ++YYCURSOR; +yy170: + YYDEBUG(170, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* End of option value */ BEGIN(INITIAL); SCNG(lineno)++; return END_OF_LINE; } -yy245: - YYDEBUG(245, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy243; - goto yy244; -yy246: - YYDEBUG(246, *YYCURSOR); - ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; - YYDEBUG(247, *YYCURSOR); - if (yybm[0+yych] & 64) { - goto yy246; - } - if (yych <= '\n') goto yy251; - goto yy253; -yy248: - YYDEBUG(248, *YYCURSOR); - ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; -yy249: - YYDEBUG(249, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy248; - } - if (yych <= '\f') { - if (yych <= 0x08) goto yy250; - if (yych <= '\n') goto yy243; - } else { - if (yych <= '\r') goto yy245; - if (yych == ';') goto yy246; - } -yy250: - YYDEBUG(250, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy171: + YYDEBUG(171, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy169; + goto yy170; +yy172: + YYDEBUG(172, yych); + ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; + if (yybm_ST_RAW[0+yych] & 64) goto yy172; + if (yych <= '\n') goto yy176; + goto yy178; +yy173: + YYDEBUG(173, yych); + ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; +yy174: + YYDEBUG(174, yych); + if (yybm_ST_RAW[0+yych] & 128) goto yy173; + if (yych <= '\f') { + if (yych <= 0x08) goto yy175; + if (yych <= '\n') goto yy169; + } else { + if (yych <= '\r') goto yy171; + if (yych == ';') goto yy172; + } +yy175: + YYDEBUG(175, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* eat whitespace */ goto restart; } -yy251: - YYDEBUG(251, *YYCURSOR); - ++YYCURSOR; -yy252: - YYDEBUG(252, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Comment */ +yy176: + YYDEBUG(176, yych); + ++YYCURSOR; +yy177: + YYDEBUG(177, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Comment */ BEGIN(INITIAL); SCNG(lineno)++; return END_OF_LINE; } -yy253: - YYDEBUG(253, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy251; - goto yy252; - } +yy178: + YYDEBUG(178, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy176; + goto yy177; } } diff -Nru php8.2-8.2.30/Zend/zend_ini_scanner_defs.h php8.2-8.2.31/Zend/zend_ini_scanner_defs.h --- php8.2-8.2.30/Zend/zend_ini_scanner_defs.h 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_ini_scanner_defs.h 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* Generated by re2c 2.0.3 */ +/* Generated by re2c 4.0 */ enum YYCONDTYPE { yycINITIAL, @@ -8,5 +8,5 @@ yycST_SECTION_RAW, yycST_DOUBLE_QUOTES, yycST_VARNAME, - yycST_RAW, + yycST_RAW }; diff -Nru php8.2-8.2.30/Zend/zend_language_parser.c php8.2-8.2.31/Zend/zend_language_parser.c --- php8.2-8.2.30/Zend/zend_language_parser.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_language_parser.c 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 3.7.5. */ +/* A Bison parser, made by GNU Bison 3.8.2. */ /* Bison implementation for Yacc-like parsers in C @@ -16,7 +16,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -46,10 +46,10 @@ USER NAME SPACE" below. */ /* Identify Bison output, and Bison version. */ -#define YYBISON 30705 +#define YYBISON 30802 /* Bison version string. */ -#define YYBISON_VERSION "3.7.5" +#define YYBISON_VERSION "3.8.2" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -629,12 +629,18 @@ # define YY_USE(E) /* empty */ #endif -#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ +#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__ +# if __GNUC__ * 100 + __GNUC_MINOR__ < 407 +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") +# else +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") +# endif # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ _Pragma ("GCC diagnostic pop") #else @@ -863,7 +869,7 @@ }; #if ZENDDEBUG - /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ +/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_int16 yyrline[] = { 0, 296, 296, 300, 300, 300, 300, 300, 300, 300, @@ -1042,32 +1048,6 @@ } #endif -#ifdef YYPRINT -/* YYTOKNUM[NUM] -- (External) token number corresponding to the - (internal) symbol number NUM (which must be that of a token). */ -static const yytype_int16 yytoknum[] = -{ - 0, 256, 257, 258, 61, 63, 58, 124, 94, 60, - 62, 46, 43, 45, 42, 47, 37, 33, 126, 64, - 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, - 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, - 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, - 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, - 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, - 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, - 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, - 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, - 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, - 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, - 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, - 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, - 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, - 399, 400, 401, 402, 403, 404, 405, 406, 44, 93, - 40, 41, 59, 123, 125, 91, 96, 34, 36 -}; -#endif - #define YYPACT_NINF (-900) #define yypact_value_is_default(Yyn) \ @@ -1078,8 +1058,8 @@ #define yytable_value_is_error(Yyn) \ ((Yyn) == YYTABLE_NINF) - /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + STATE-NUM. */ static const yytype_int16 yypact[] = { -900, 96, 3527, -900, 7034, 7034, 7034, 7034, 7034, -900, @@ -1196,9 +1176,9 @@ -900, -900, -900, 5531, -900, -900 }; - /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. - Performed when YYTABLE does not specify something else to do. Zero - means the default is an error. */ +/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. + Performed when YYTABLE does not specify something else to do. Zero + means the default is an error. */ static const yytype_int16 yydefact[] = { 86, 0, 2, 1, 0, 0, 0, 0, 0, 494, @@ -1315,7 +1295,7 @@ 339, 144, 462, 0, 317, 340 }; - /* YYPGOTO[NTERM-NUM]. */ +/* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { -900, -900, -20, -900, -101, 24, -450, -900, -22, -174, @@ -1338,7 +1318,7 @@ 692, -900, -900, -900, 452 }; - /* YYDEFGOTO[NTERM-NUM]. */ +/* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { 0, 1, 288, 289, 325, 487, 2, 291, 734, 187, @@ -1361,9 +1341,9 @@ 318, 679, 127, 495, 496 }; - /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If - positive, shift that token. If negative, reduce the rule whose - number is the opposite. If YYTABLE_NINF, syntax error. */ +/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If + positive, shift that token. If negative, reduce the rule whose + number is the opposite. If YYTABLE_NINF, syntax error. */ static const yytype_int16 yytable[] = { 92, 112, 384, 300, 300, 93, 95, 150, 301, 301, @@ -3234,8 +3214,8 @@ 102, 103, 104, 105, 106, 107, 108, 109, 110, 111 }; - /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing - symbol of state STATE-NUM. */ +/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of + state STATE-NUM. */ static const yytype_int16 yystos[] = { 0, 180, 185, 0, 12, 13, 17, 18, 19, 21, @@ -3352,7 +3332,7 @@ 172, 173, 293, 209, 315, 174 }; - /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */ static const yytype_int16 yyr1[] = { 0, 179, 180, 181, 181, 181, 181, 181, 181, 181, @@ -3417,7 +3397,7 @@ 353 }; - /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ +/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */ static const yytype_int8 yyr2[] = { 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, @@ -3491,6 +3471,7 @@ #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab +#define YYNOMEM goto yyexhaustedlab #define YYRECOVERING() (!!yyerrstatus) @@ -3531,10 +3512,7 @@ YYFPRINTF Args; \ } while (0) -/* This macro is provided for backward compatibility. */ -# ifndef YY_LOCATION_PRINT -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -# endif + # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ @@ -3561,10 +3539,6 @@ YY_USE (yyoutput); if (!yyvaluep) return; -# ifdef YYPRINT - if (yykind < YYNTOKENS) - YYPRINT (yyo, yytoknum[yykind], *yyvaluep); -# endif YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN YY_USE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END @@ -4645,6 +4619,7 @@ YYDPRINTF ((stderr, "Starting parse\n")); yychar = ZENDEMPTY; /* Cause a token to be read. */ + goto yysetstate; @@ -4670,7 +4645,7 @@ if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE - goto yyexhaustedlab; + YYNOMEM; #else { /* Get the current used size of the three stacks, in elements. */ @@ -4698,7 +4673,7 @@ # else /* defined YYSTACK_RELOCATE */ /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) - goto yyexhaustedlab; + YYNOMEM; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; @@ -4709,7 +4684,7 @@ YY_CAST (union yyalloc *, YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); if (! yyptr) - goto yyexhaustedlab; + YYNOMEM; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE @@ -4731,6 +4706,7 @@ } #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ + if (yystate == YYFINAL) YYACCEPT; @@ -6990,7 +6966,7 @@ } yyerror (yymsgp); if (yysyntax_error_status == YYENOMEM) - goto yyexhaustedlab; + YYNOMEM; } } @@ -7026,6 +7002,7 @@ label yyerrorlab therefore never appears in user code. */ if (0) YYERROR; + ++yynerrs; /* Do not reclaim the symbols of the rule whose action triggered this YYERROR. */ @@ -7086,7 +7063,7 @@ `-------------------------------------*/ yyacceptlab: yyresult = 0; - goto yyreturn; + goto yyreturnlab; /*-----------------------------------. @@ -7094,24 +7071,22 @@ `-----------------------------------*/ yyabortlab: yyresult = 1; - goto yyreturn; + goto yyreturnlab; -#if 1 -/*-------------------------------------------------. -| yyexhaustedlab -- memory exhaustion comes here. | -`-------------------------------------------------*/ +/*-----------------------------------------------------------. +| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. | +`-----------------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; - goto yyreturn; -#endif + goto yyreturnlab; -/*-------------------------------------------------------. -| yyreturn -- parsing is finished, clean up and return. | -`-------------------------------------------------------*/ -yyreturn: +/*----------------------------------------------------------. +| yyreturnlab -- parsing is finished, clean up and return. | +`----------------------------------------------------------*/ +yyreturnlab: if (yychar != ZENDEMPTY) { /* Make sure we have latest lookahead translation. See comments at diff -Nru php8.2-8.2.30/Zend/zend_language_parser.h php8.2-8.2.31/Zend/zend_language_parser.h --- php8.2-8.2.30/Zend/zend_language_parser.h 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_language_parser.h 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 3.7.5. */ +/* A Bison parser, made by GNU Bison 3.8.2. */ /* Bison interface for Yacc-like parsers in C @@ -16,7 +16,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -228,6 +228,8 @@ + ZEND_API int zendparse (void); + #endif /* !YY_ZEND_ZEND_ZEND_LANGUAGE_PARSER_H_INCLUDED */ diff -Nru php8.2-8.2.30/Zend/zend_language_parser.output php8.2-8.2.31/Zend/zend_language_parser.output --- php8.2-8.2.30/Zend/zend_language_parser.output 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_language_parser.output 2026-05-05 13:59:08.000000000 +0000 @@ -103,7 +103,7 @@ 83 | semi_reserved 84 top_statement_list: top_statement_list top_statement - 85 | %empty + 85 | ε 86 namespace_declaration_name: identifier 87 | "namespaced name" @@ -142,11 +142,11 @@ 111 | "'__halt_compiler'" '(' ')' ';' 112 | "'namespace'" namespace_declaration_name ';' - 113 $@1: %empty + 113 $@1: ε 114 top_statement: "'namespace'" namespace_declaration_name $@1 '{' top_statement_list '}' - 115 $@2: %empty + 115 $@2: ε 116 top_statement: "'namespace'" $@2 '{' top_statement_list '}' 117 | "'use'" mixed_group_use_declaration ';' @@ -162,7 +162,7 @@ 125 mixed_group_use_declaration: legacy_namespace_name "'\\'" '{' inline_use_declarations possible_comma '}' - 126 possible_comma: %empty + 126 possible_comma: ε 127 | ',' 128 inline_use_declarations: inline_use_declarations ',' inline_use_declaration @@ -187,7 +187,7 @@ 141 | const_decl 142 inner_statement_list: inner_statement_list inner_statement - 143 | %empty + 143 | ε 144 inner_statement: statement 145 | attributed_statement @@ -213,7 +213,7 @@ 164 | "'foreach'" '(' expr "'as'" foreach_variable ')' foreach_statement 165 | "'foreach'" '(' expr "'as'" foreach_variable "'=>'" foreach_variable ')' foreach_statement - 166 $@3: %empty + 166 $@3: ε 167 statement: "'declare'" '(' const_list ')' $@3 declare_statement 168 | ';' @@ -221,16 +221,16 @@ 170 | "'goto'" "identifier" ';' 171 | "identifier" ':' - 172 catch_list: %empty + 172 catch_list: ε 173 | catch_list "'catch'" '(' catch_name_list optional_variable ')' '{' inner_statement_list '}' 174 catch_name_list: class_name 175 | catch_name_list '|' class_name - 176 optional_variable: %empty + 176 optional_variable: ε 177 | "variable" - 178 finally_statement: %empty + 178 finally_statement: ε 179 | "'finally'" '{' inner_statement_list '}' 180 unset_variables: unset_variable @@ -243,17 +243,17 @@ 185 function_declaration_statement: function returns_ref function_name backup_doc_comment '(' parameter_list ')' return_type backup_fn_flags '{' inner_statement_list '}' backup_fn_flags - 186 is_reference: %empty + 186 is_reference: ε 187 | "'&'" - 188 is_variadic: %empty + 188 is_variadic: ε 189 | "'...'" - 190 @4: %empty + 190 @4: ε 191 class_declaration_statement: class_modifiers "'class'" @4 "identifier" extends_from implements_list backup_doc_comment '{' class_statement_list '}' - 192 @5: %empty + 192 @5: ε 193 class_declaration_statement: "'class'" @5 "identifier" extends_from implements_list backup_doc_comment '{' class_statement_list '}' @@ -264,33 +264,33 @@ 197 | "'final'" 198 | "'readonly'" - 199 @6: %empty + 199 @6: ε 200 trait_declaration_statement: "'trait'" @6 "identifier" backup_doc_comment '{' class_statement_list '}' - 201 @7: %empty + 201 @7: ε 202 interface_declaration_statement: "'interface'" @7 "identifier" interface_extends_list backup_doc_comment '{' class_statement_list '}' - 203 @8: %empty + 203 @8: ε 204 enum_declaration_statement: "'enum'" @8 "identifier" enum_backing_type implements_list backup_doc_comment '{' class_statement_list '}' - 205 enum_backing_type: %empty + 205 enum_backing_type: ε 206 | ':' type_expr 207 enum_case: "'case'" backup_doc_comment identifier enum_case_expr ';' - 208 enum_case_expr: %empty + 208 enum_case_expr: ε 209 | '=' expr - 210 extends_from: %empty + 210 extends_from: ε 211 | "'extends'" class_name - 212 interface_extends_list: %empty + 212 interface_extends_list: ε 213 | "'extends'" class_name_list - 214 implements_list: %empty + 214 implements_list: ε 215 | "'implements'" class_name_list 216 foreach_variable: variable @@ -312,7 +312,7 @@ 228 | ':' case_list "'endswitch'" ';' 229 | ':' ';' case_list "'endswitch'" ';' - 230 case_list: %empty + 230 case_list: ε 231 | case_list "'case'" expr case_separator inner_statement_list 232 | case_list "'default'" case_separator inner_statement_list @@ -321,7 +321,7 @@ 235 match: "'match'" '(' expr ')' '{' match_arm_list '}' - 236 match_arm_list: %empty + 236 match_arm_list: ε 237 | non_empty_match_arm_list possible_comma 238 non_empty_match_arm_list: match_arm @@ -349,7 +349,7 @@ 253 | alt_if_stmt_without_else "'else'" ':' inner_statement_list "'endif'" ';' 254 parameter_list: non_empty_parameter_list possible_comma - 255 | %empty + 255 | ε 256 non_empty_parameter_list: attributed_parameter 257 | non_empty_parameter_list ',' attributed_parameter @@ -357,7 +357,7 @@ 258 attributed_parameter: attributes parameter 259 | parameter - 260 optional_property_modifiers: %empty + 260 optional_property_modifiers: ε 261 | optional_property_modifiers property_modifier 262 property_modifier: "'public'" @@ -368,7 +368,7 @@ 266 parameter: optional_property_modifiers optional_type_without_static is_reference is_variadic "variable" backup_doc_comment 267 | optional_property_modifiers optional_type_without_static is_reference is_variadic "variable" backup_doc_comment '=' expr - 268 optional_type_without_static: %empty + 268 optional_type_without_static: ε 269 | type_expr_without_static 270 type_expr: type @@ -406,7 +406,7 @@ 293 intersection_type_without_static: type_without_static "amp" type_without_static 294 | intersection_type_without_static "amp" type_without_static - 295 return_type: %empty + 295 return_type: ε 296 | ':' type_expr 297 argument_list: '(' ')' @@ -432,7 +432,7 @@ 311 | "variable" '=' expr 312 class_statement_list: class_statement_list class_statement - 313 | %empty + 313 | ε 314 attributed_class_statement: variable_modifiers optional_type_without_static property_list ';' 315 | method_modifiers "'const'" class_const_list ';' @@ -474,7 +474,7 @@ 340 variable_modifiers: non_empty_member_modifiers 341 | "'var'" - 342 method_modifiers: %empty + 342 method_modifiers: ε 343 | non_empty_member_modifiers 344 non_empty_member_modifiers: member_modifier @@ -506,13 +506,13 @@ 363 echo_expr: expr - 364 for_exprs: %empty + 364 for_exprs: ε 365 | non_empty_for_exprs 366 non_empty_for_exprs: non_empty_for_exprs ',' expr 367 | expr - 368 @9: %empty + 368 @9: ε 369 anonymous_class: "'class'" @9 ctor_arguments extends_from implements_list backup_doc_comment '{' class_statement_list '}' @@ -611,16 +611,16 @@ 459 function: "'function'" - 460 backup_doc_comment: %empty + 460 backup_doc_comment: ε - 461 backup_fn_flags: %empty + 461 backup_fn_flags: ε - 462 backup_lex_pos: %empty + 462 backup_lex_pos: ε - 463 returns_ref: %empty + 463 returns_ref: ε 464 | ampersand - 465 lexical_vars: %empty + 465 lexical_vars: ε 466 | "'use'" '(' lexical_var_list possible_comma ')' 467 lexical_var_list: lexical_var_list ',' lexical_var @@ -634,7 +634,7 @@ 473 | class_name "'::'" member_name argument_list 474 | variable_class_name "'::'" member_name argument_list - 475 @10: %empty + 475 @10: ε 476 function_call: callable_expr @10 argument_list @@ -645,14 +645,14 @@ 480 | new_variable 481 | '(' expr ')' - 482 exit_expr: %empty + 482 exit_expr: ε 483 | '(' optional_expr ')' - 484 backticks_expr: %empty + 484 backticks_expr: ε 485 | "string content" 486 | encaps_list - 487 ctor_arguments: %empty + 487 ctor_arguments: ε 488 | argument_list 489 dereferenceable_scalar: "'array'" '(' array_pair_list ')' @@ -682,7 +682,7 @@ 510 class_constant: class_name "'::'" identifier 511 | variable_class_name "'::'" identifier - 512 optional_expr: %empty + 512 optional_expr: ε 513 | expr 514 variable_class_name: fully_dereferenceable @@ -736,7 +736,7 @@ 552 array_pair_list: non_empty_array_pair_list - 553 possible_array_pair: %empty + 553 possible_array_pair: ε 554 | array_pair 555 non_empty_array_pair_list: non_empty_array_pair_list ',' possible_array_pair diff -Nru php8.2-8.2.30/Zend/zend_language_scanner.c php8.2-8.2.31/Zend/zend_language_scanner.c --- php8.2-8.2.30/Zend/zend_language_scanner.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_language_scanner.c 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* Generated by re2c 2.0.3 */ +/* Generated by re2c 4.0 */ /* +----------------------------------------------------------------------+ | Zend Engine | @@ -1360,22 +1360,288 @@ { YYCTYPE yych; unsigned int yyaccept = 0; + static const unsigned char yybm_ST_IN_SCRIPTING[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 18, 2, 0, 0, 2, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 18, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 236, 236, 204, 204, 204, 204, 204, 204, + 140, 140, 0, 0, 0, 0, 0, 0, + 0, 136, 136, 136, 136, 136, 136, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 0, 0, 0, 0, 8, + 0, 136, 136, 136, 136, 136, 136, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 0, 0, 0, 0, 0, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8 + }; + static const unsigned char yybm_ST_LOOKING_FOR_PROPERTY[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 64, 64, 0, 0, 64, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 64, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 0, 0, 0, 0, 0, 0, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 128, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128 + }; + static const unsigned char yybm_ST_BACKQUOTE[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 0, 0, 0, 0, 0, 0, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 128, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128 + }; + static const unsigned char yybm_ST_DOUBLE_QUOTES[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 0, 0, 0, 0, 0, 0, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 128, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128 + }; + static const unsigned char yybm_ST_HEREDOC[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 0, 0, 0, 0, 0, 0, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 128, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128 + }; + static const unsigned char yybm_ST_LOOKING_FOR_VARNAME[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 0, 0, 0, 0, 0, 0, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 128, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128 + }; + static const unsigned char yybm_ST_VAR_OFFSET[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 248, 248, 216, 216, 216, 216, 216, 216, + 152, 152, 0, 0, 0, 0, 0, 0, + 0, 144, 144, 144, 144, 144, 144, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 0, 0, 0, 0, 16, + 0, 144, 144, 144, 144, 144, 144, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 0, 0, 0, 0, 0, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 16, 16, 16 + }; + static const unsigned char yybm_SHEBANG[256] = { + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 0, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128 + }; if (YYGETCONDITION() < 5) { if (YYGETCONDITION() < 2) { - if (YYGETCONDITION() < 1) { - goto yyc_ST_IN_SCRIPTING; - } else { - goto yyc_ST_LOOKING_FOR_PROPERTY; - } + if (YYGETCONDITION() < 1) goto yyc_ST_IN_SCRIPTING; + else goto yyc_ST_LOOKING_FOR_PROPERTY; } else { if (YYGETCONDITION() < 3) { goto yyc_ST_BACKQUOTE; } else { - if (YYGETCONDITION() < 4) { - goto yyc_ST_DOUBLE_QUOTES; - } else { - goto yyc_ST_HEREDOC; - } + if (YYGETCONDITION() < 4) goto yyc_ST_DOUBLE_QUOTES; + else goto yyc_ST_HEREDOC; } } } else { @@ -1383,68 +1649,25 @@ if (YYGETCONDITION() < 6) { goto yyc_ST_LOOKING_FOR_VARNAME; } else { - if (YYGETCONDITION() < 7) { - goto yyc_ST_VAR_OFFSET; - } else { - goto yyc_SHEBANG; - } + if (YYGETCONDITION() < 7) goto yyc_ST_VAR_OFFSET; + else goto yyc_SHEBANG; } } else { if (YYGETCONDITION() < 9) { goto yyc_INITIAL; } else { - if (YYGETCONDITION() < 10) { - goto yyc_ST_END_HEREDOC; - } else { - goto yyc_ST_NOWDOC; - } + if (YYGETCONDITION() < 10) goto yyc_ST_END_HEREDOC; + else goto yyc_ST_NOWDOC; } } } /* *********************************** */ yyc_ST_IN_SCRIPTING: - { - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 18, 2, 0, 0, 2, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 18, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 236, 236, 204, 204, 204, 204, 204, 204, - 140, 140, 0, 0, 0, 0, 0, 0, - 0, 136, 136, 136, 136, 136, 136, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 0, 0, 0, 0, 8, - 0, 136, 136, 136, 136, 136, 136, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 0, 0, 0, 0, 0, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 8, - }; - YYDEBUG(0, *YYCURSOR); - YYFILL(16); - yych = *YYCURSOR; - if (yybm[0+yych] & 2) { - goto yy4; - } - switch (yych) { + YYFILL(16); + yych = *YYCURSOR; + YYDEBUG(0, yych); + if (yybm_ST_IN_SCRIPTING[0+yych] & 2) goto yy2; + switch (yych) { case 0x00: case 0x01: case 0x02: @@ -1477,28 +1700,28 @@ case 0x1D: case 0x1E: case 0x1F: - case 0x7F: goto yy2; + case 0x7F: goto yy1; case ' ': - case '!': goto yy7; - case '"': goto yy9; - case '#': goto yy11; - case '$': goto yy13; - case '%': goto yy14; - case '&': goto yy15; - case '\'': goto yy17; - case '(': goto yy19; + case '!': goto yy3; + case '"': goto yy5; + case '#': goto yy6; + case '$': goto yy8; + case '%': goto yy9; + case '&': goto yy10; + case '\'': goto yy12; + case '(': goto yy13; case ')': - case ']': goto yy21; - case '*': goto yy23; - case '+': goto yy24; + case ']': goto yy15; + case '*': goto yy16; + case '+': goto yy17; case ',': case ';': case '@': - case '~': goto yy25; - case '-': goto yy26; - case '.': goto yy27; - case '/': goto yy28; - case '0': goto yy29; + case '~': goto yy18; + case '-': goto yy19; + case '.': goto yy20; + case '/': goto yy21; + case '0': goto yy22; case '1': case '2': case '3': @@ -1507,106 +1730,100 @@ case '6': case '7': case '8': - case '9': goto yy31; - case ':': goto yy33; - case '<': goto yy34; - case '=': goto yy35; - case '>': goto yy36; - case '?': goto yy37; + case '9': goto yy24; + case ':': goto yy26; + case '<': goto yy27; + case '=': goto yy28; + case '>': goto yy29; + case '?': goto yy30; case 'A': - case 'a': goto yy38; + case 'a': goto yy31; case 'B': - case 'b': goto yy40; + case 'b': goto yy33; case 'C': - case 'c': goto yy41; + case 'c': goto yy34; case 'D': - case 'd': goto yy42; + case 'd': goto yy35; case 'E': - case 'e': goto yy43; + case 'e': goto yy36; case 'F': - case 'f': goto yy44; + case 'f': goto yy37; case 'G': - case 'g': goto yy45; + case 'g': goto yy38; case 'I': - case 'i': goto yy48; + case 'i': goto yy41; case 'L': - case 'l': goto yy49; + case 'l': goto yy42; case 'M': - case 'm': goto yy50; + case 'm': goto yy43; case 'N': - case 'n': goto yy51; + case 'n': goto yy44; case 'O': - case 'o': goto yy52; + case 'o': goto yy45; case 'P': - case 'p': goto yy53; + case 'p': goto yy46; case 'R': - case 'r': goto yy54; + case 'r': goto yy47; case 'S': - case 's': goto yy55; + case 's': goto yy48; case 'T': - case 't': goto yy56; + case 't': goto yy49; case 'U': - case 'u': goto yy57; + case 'u': goto yy50; case 'V': - case 'v': goto yy58; + case 'v': goto yy51; case 'W': - case 'w': goto yy59; + case 'w': goto yy52; case 'X': - case 'x': goto yy60; + case 'x': goto yy53; case 'Y': - case 'y': goto yy61; - case '[': goto yy62; - case '\\': goto yy63; - case '^': goto yy65; - case '_': goto yy66; - case '`': goto yy67; - case '{': goto yy69; - case '|': goto yy71; - case '}': goto yy72; - default: goto yy46; - } -yy2: - YYDEBUG(2, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(3, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + case 'y': goto yy54; + case '[': goto yy55; + case '\\': goto yy56; + case '^': goto yy58; + case '_': goto yy59; + case '`': goto yy60; + case '{': goto yy61; + case '|': goto yy62; + case '}': goto yy63; + default: goto yy39; + } +yy1: + YYDEBUG(1, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { if (YYCURSOR > YYLIMIT) { RETURN_END_TOKEN; } RETURN_TOKEN(T_BAD_CHARACTER); } -yy4: - YYDEBUG(4, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(5, *YYCURSOR); - if (yybm[0+yych] & 2) { - goto yy4; - } - YYDEBUG(6, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy2: + YYDEBUG(2, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_IN_SCRIPTING[0+yych] & 2) goto yy2; + yyleng = YYCURSOR - SCNG(yy_text); + { goto return_whitespace; } -yy7: - YYDEBUG(7, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '=') goto yy74; -yy8: - YYDEBUG(8, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy3: + YYDEBUG(3, yych); + yych = *++YYCURSOR; + if (yych == '=') goto yy64; +yy4: + YYDEBUG(4, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(yytext[0]); } -yy9: - YYDEBUG(9, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(10, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy5: + YYDEBUG(5, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { int bprefix = (yytext[0] != '"') ? 1 : 0; while (YYCURSOR < YYLIMIT) { @@ -1650,14 +1867,14 @@ BEGIN(ST_DOUBLE_QUOTES); RETURN_TOKEN('"'); } -yy11: - YYDEBUG(11, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '[') goto yy76; -yy12: - YYDEBUG(12, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy6: + YYDEBUG(6, yych); + yych = *++YYCURSOR; + if (yych == '[') goto yy66; +yy7: + YYDEBUG(7, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { while (YYCURSOR < YYLIMIT) { switch (*YYCURSOR++) { case '\r': @@ -1680,58 +1897,57 @@ yyleng = YYCURSOR - SCNG(yy_text); RETURN_OR_SKIP_TOKEN(T_COMMENT); } -yy13: - YYDEBUG(13, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy8; - if (yych <= 'Z') goto yy78; - if (yych <= '^') goto yy8; - goto yy78; - } else { - if (yych <= '`') goto yy8; - if (yych <= 'z') goto yy78; - if (yych <= 0x7F) goto yy8; - goto yy78; +yy8: + YYDEBUG(8, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy4; + if (yych <= 'Z') goto yy67; + if (yych <= '^') goto yy4; + goto yy67; + } else { + if (yych <= '`') goto yy4; + if (yych <= 'z') goto yy67; + if (yych <= 0x7F) goto yy4; + goto yy67; + } +yy9: + YYDEBUG(9, yych); + yych = *++YYCURSOR; + if (yych == '=') goto yy69; + goto yy4; +yy10: + YYDEBUG(10, yych); + yyaccept = 0; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '#') { + if (yych <= '\f') { + if (yych <= 0x08) goto yy11; + if (yych <= '\n') goto yy70; + } else { + if (yych <= '\r') goto yy70; + if (yych == ' ') goto yy70; } -yy14: - YYDEBUG(14, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '=') goto yy81; - goto yy8; -yy15: - YYDEBUG(15, *YYCURSOR); - yyaccept = 0; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '#') { - if (yych <= '\f') { - if (yych <= 0x08) goto yy16; - if (yych <= '\n') goto yy83; - } else { - if (yych <= '\r') goto yy83; - if (yych == ' ') goto yy83; - } + } else { + if (yych <= '-') { + if (yych <= '$') goto yy72; + if (yych == '&') goto yy73; } else { - if (yych <= '-') { - if (yych <= '$') goto yy86; - if (yych == '&') goto yy88; - } else { - if (yych <= '.') goto yy90; - if (yych == '=') goto yy91; - } + if (yych <= '.') goto yy74; + if (yych == '=') goto yy75; } -yy16: - YYDEBUG(16, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy11: + YYDEBUG(11, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG); } -yy17: - YYDEBUG(17, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(18, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy12: + YYDEBUG(12, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { char *s, *t; char *end; int bprefix = (yytext[0] != '\'') ? 1 : 0; @@ -1825,143 +2041,142 @@ } RETURN_TOKEN_WITH_VAL(T_CONSTANT_ENCAPSED_STRING); } -yy19: - YYDEBUG(19, *YYCURSOR); - yyaccept = 1; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'S') { - if (yych <= 'D') { - if (yych <= ' ') { - if (yych == '\t') goto yy94; - if (yych >= ' ') goto yy94; - } else { - if (yych <= '@') goto yy20; - if (yych != 'C') goto yy94; - } +yy13: + YYDEBUG(13, yych); + yyaccept = 1; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'S') { + if (yych <= 'D') { + if (yych <= ' ') { + if (yych == '\t') goto yy77; + if (yych >= ' ') goto yy77; } else { - if (yych <= 'I') { - if (yych == 'F') goto yy94; - if (yych >= 'I') goto yy94; - } else { - if (yych == 'O') goto yy94; - if (yych >= 'R') goto yy94; - } + if (yych <= '@') goto yy14; + if (yych != 'C') goto yy77; } } else { - if (yych <= 'f') { - if (yych <= 'b') { - if (yych == 'U') goto yy94; - if (yych >= 'a') goto yy94; - } else { - if (yych == 'd') goto yy94; - if (yych >= 'f') goto yy94; - } + if (yych <= 'I') { + if (yych == 'F') goto yy77; + if (yych >= 'I') goto yy77; + } else { + if (yych == 'O') goto yy77; + if (yych >= 'R') goto yy77; + } + } + } else { + if (yych <= 'f') { + if (yych <= 'b') { + if (yych == 'U') goto yy77; + if (yych >= 'a') goto yy77; } else { - if (yych <= 'o') { - if (yych == 'i') goto yy94; - if (yych >= 'o') goto yy94; + if (yych == 'd') goto yy77; + if (yych >= 'f') goto yy77; + } + } else { + if (yych <= 'o') { + if (yych == 'i') goto yy77; + if (yych >= 'o') goto yy77; + } else { + if (yych <= 's') { + if (yych >= 'r') goto yy77; } else { - if (yych <= 's') { - if (yych >= 'r') goto yy94; - } else { - if (yych == 'u') goto yy94; - } + if (yych == 'u') goto yy77; } } } -yy20: - YYDEBUG(20, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy14: + YYDEBUG(14, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { enter_nesting(yytext[0]); RETURN_TOKEN(yytext[0]); } -yy21: - YYDEBUG(21, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(22, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy15: + YYDEBUG(15, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Check that ] and ) match up properly with a preceding [ or ( */ RETURN_EXIT_NESTING_TOKEN(yytext[0]); } -yy23: - YYDEBUG(23, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '*') goto yy104; - if (yych == '=') goto yy106; - goto yy8; -yy24: - YYDEBUG(24, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '+') goto yy108; - if (yych == '=') goto yy110; - goto yy8; -yy25: - YYDEBUG(25, *YYCURSOR); - ++YYCURSOR; - goto yy8; -yy26: - YYDEBUG(26, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '<') { - if (yych == '-') goto yy112; - goto yy8; - } else { - if (yych <= '=') goto yy114; - if (yych <= '>') goto yy116; - goto yy8; - } -yy27: - YYDEBUG(27, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '/') { - if (yych == '.') goto yy118; - goto yy8; - } else { - if (yych <= '9') goto yy119; - if (yych == '=') goto yy122; - goto yy8; - } -yy28: - YYDEBUG(28, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '.') { - if (yych == '*') goto yy124; - goto yy8; - } else { - if (yych <= '/') goto yy126; - if (yych == '=') goto yy127; - goto yy8; +yy16: + YYDEBUG(16, yych); + yych = *++YYCURSOR; + if (yych == '*') goto yy87; + if (yych == '=') goto yy88; + goto yy4; +yy17: + YYDEBUG(17, yych); + yych = *++YYCURSOR; + if (yych == '+') goto yy89; + if (yych == '=') goto yy90; + goto yy4; +yy18: + YYDEBUG(18, yych); + ++YYCURSOR; + goto yy4; +yy19: + YYDEBUG(19, yych); + yych = *++YYCURSOR; + if (yych <= '<') { + if (yych == '-') goto yy91; + goto yy4; + } else { + if (yych <= '=') goto yy92; + if (yych <= '>') goto yy93; + goto yy4; + } +yy20: + YYDEBUG(20, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '/') { + if (yych == '.') goto yy94; + goto yy4; + } else { + if (yych <= '9') goto yy95; + if (yych == '=') goto yy98; + goto yy4; + } +yy21: + YYDEBUG(21, yych); + yych = *++YYCURSOR; + if (yych <= '.') { + if (yych == '*') goto yy99; + goto yy4; + } else { + if (yych <= '/') goto yy101; + if (yych == '=') goto yy102; + goto yy4; + } +yy22: + YYDEBUG(22, yych); + yyaccept = 3; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'X') { + if (yych <= 'N') { + if (yych == 'B') goto yy104; + goto yy25; + } else { + if (yych <= 'O') goto yy106; + if (yych <= 'W') goto yy25; + goto yy107; } -yy29: - YYDEBUG(29, *YYCURSOR); - yyaccept = 3; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'X') { - if (yych <= 'N') { - if (yych == 'B') goto yy130; - goto yy32; - } else { - if (yych <= 'O') goto yy132; - if (yych <= 'W') goto yy32; - goto yy133; - } - } else { - if (yych <= 'n') { - if (yych == 'b') goto yy130; - goto yy32; - } else { - if (yych <= 'o') goto yy132; - if (yych == 'x') goto yy133; - goto yy32; - } + } else { + if (yych <= 'n') { + if (yych == 'b') goto yy104; + goto yy25; + } else { + if (yych <= 'o') goto yy106; + if (yych == 'x') goto yy107; + goto yy25; } -yy30: - YYDEBUG(30, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy23: + YYDEBUG(23, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { size_t len = yyleng; char *end, *lnum = yytext; bool is_octal = lnum[0] == '0'; @@ -2023,1136 +2238,1017 @@ } RETURN_TOKEN_WITH_VAL(T_LNUMBER); } -yy31: - YYDEBUG(31, *YYCURSOR); - yyaccept = 3; - YYMARKER = ++YYCURSOR; - YYFILL(3); - yych = *YYCURSOR; -yy32: - YYDEBUG(32, *YYCURSOR); - if (yybm[0+yych] & 4) { - goto yy31; - } - if (yych <= 'E') { - if (yych == '.') goto yy129; - if (yych <= 'D') goto yy30; - goto yy131; - } else { - if (yych <= '_') { - if (yych <= '^') goto yy30; - goto yy134; - } else { - if (yych == 'e') goto yy131; - goto yy30; - } +yy24: + YYDEBUG(24, yych); + yyaccept = 3; + YYMARKER = ++YYCURSOR; + YYFILL(3); + yych = *YYCURSOR; +yy25: + YYDEBUG(25, yych); + if (yybm_ST_IN_SCRIPTING[0+yych] & 4) goto yy24; + if (yych <= 'E') { + if (yych == '.') goto yy103; + if (yych <= 'D') goto yy23; + goto yy105; + } else { + if (yych <= '_') { + if (yych <= '^') goto yy23; + goto yy108; + } else { + if (yych == 'e') goto yy105; + goto yy23; } -yy33: - YYDEBUG(33, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == ':') goto yy135; - goto yy8; -yy34: - YYDEBUG(34, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= ';') goto yy8; - if (yych <= '<') goto yy137; - if (yych <= '=') goto yy139; - if (yych <= '>') goto yy141; - goto yy8; -yy35: - YYDEBUG(35, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '<') goto yy8; - if (yych <= '=') goto yy142; - if (yych <= '>') goto yy144; - goto yy8; -yy36: - YYDEBUG(36, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '<') goto yy8; - if (yych <= '=') goto yy146; - if (yych <= '>') goto yy148; - goto yy8; -yy37: - YYDEBUG(37, *YYCURSOR); - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '=') { - if (yych == '-') goto yy150; - goto yy8; - } else { - if (yych <= '>') goto yy151; - if (yych <= '?') goto yy153; - goto yy8; + } +yy26: + YYDEBUG(26, yych); + yych = *++YYCURSOR; + if (yych == ':') goto yy109; + goto yy4; +yy27: + YYDEBUG(27, yych); + yych = *++YYCURSOR; + if (yych <= ';') goto yy4; + if (yych <= '<') goto yy110; + if (yych <= '=') goto yy112; + if (yych <= '>') goto yy113; + goto yy4; +yy28: + YYDEBUG(28, yych); + yych = *++YYCURSOR; + if (yych <= '<') goto yy4; + if (yych <= '=') goto yy114; + if (yych <= '>') goto yy115; + goto yy4; +yy29: + YYDEBUG(29, yych); + yych = *++YYCURSOR; + if (yych <= '<') goto yy4; + if (yych <= '=') goto yy116; + if (yych <= '>') goto yy117; + goto yy4; +yy30: + YYDEBUG(30, yych); + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '=') { + if (yych == '-') goto yy118; + goto yy4; + } else { + if (yych <= '>') goto yy119; + if (yych <= '?') goto yy121; + goto yy4; + } +yy31: + YYDEBUG(31, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'S') { + if (yych <= 'M') { + if (yych == 'B') goto yy122; + goto yy40; + } else { + if (yych <= 'N') goto yy123; + if (yych <= 'Q') goto yy40; + if (yych <= 'R') goto yy124; + goto yy125; } -yy38: - YYDEBUG(38, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'S') { - if (yych <= 'M') { - if (yych == 'B') goto yy155; - goto yy47; - } else { - if (yych <= 'N') goto yy156; - if (yych <= 'Q') goto yy47; - if (yych <= 'R') goto yy157; - goto yy158; - } - } else { - if (yych <= 'n') { - if (yych == 'b') goto yy155; - if (yych <= 'm') goto yy47; - goto yy156; - } else { - if (yych <= 'q') goto yy47; - if (yych <= 'r') goto yy157; - if (yych <= 's') goto yy158; - goto yy47; - } + } else { + if (yych <= 'n') { + if (yych == 'b') goto yy122; + if (yych <= 'm') goto yy40; + goto yy123; + } else { + if (yych <= 'q') goto yy40; + if (yych <= 'r') goto yy124; + if (yych <= 's') goto yy125; + goto yy40; } -yy39: - YYDEBUG(39, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy32: + YYDEBUG(32, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_STR(T_STRING, 0); } -yy40: - YYDEBUG(40, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= ';') { - if (yych <= '"') { - if (yych <= '!') goto yy47; - goto yy9; - } else { - if (yych == '\'') goto yy17; - goto yy47; - } +yy33: + YYDEBUG(33, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= ';') { + if (yych <= '"') { + if (yych <= '!') goto yy40; + goto yy5; } else { - if (yych <= 'R') { - if (yych <= '<') goto yy161; - if (yych <= 'Q') goto yy47; - goto yy162; - } else { - if (yych == 'r') goto yy162; - goto yy47; - } + if (yych == '\'') goto yy12; + goto yy40; } -yy41: - YYDEBUG(41, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'O') { - if (yych <= 'K') { - if (yych == 'A') goto yy163; - goto yy47; - } else { - if (yych <= 'L') goto yy164; - if (yych <= 'N') goto yy47; - goto yy165; - } + } else { + if (yych <= 'R') { + if (yych <= '<') goto yy128; + if (yych <= 'Q') goto yy40; + goto yy129; } else { - if (yych <= 'k') { - if (yych == 'a') goto yy163; - goto yy47; - } else { - if (yych <= 'l') goto yy164; - if (yych == 'o') goto yy165; - goto yy47; - } + if (yych == 'r') goto yy129; + goto yy40; } -yy42: - YYDEBUG(42, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'O') { - if (yych <= 'H') { - if (yych == 'E') goto yy166; - goto yy47; - } else { - if (yych <= 'I') goto yy167; - if (yych <= 'N') goto yy47; - goto yy168; - } - } else { - if (yych <= 'h') { - if (yych == 'e') goto yy166; - goto yy47; - } else { - if (yych <= 'i') goto yy167; - if (yych == 'o') goto yy168; - goto yy47; - } + } +yy34: + YYDEBUG(34, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'O') { + if (yych <= 'K') { + if (yych == 'A') goto yy130; + goto yy40; + } else { + if (yych <= 'L') goto yy131; + if (yych <= 'N') goto yy40; + goto yy132; } -yy43: - YYDEBUG(43, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - switch (yych) { + } else { + if (yych <= 'k') { + if (yych == 'a') goto yy130; + goto yy40; + } else { + if (yych <= 'l') goto yy131; + if (yych == 'o') goto yy132; + goto yy40; + } + } +yy35: + YYDEBUG(35, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'O') { + if (yych <= 'H') { + if (yych == 'E') goto yy133; + goto yy40; + } else { + if (yych <= 'I') goto yy134; + if (yych <= 'N') goto yy40; + goto yy135; + } + } else { + if (yych <= 'h') { + if (yych == 'e') goto yy133; + goto yy40; + } else { + if (yych <= 'i') goto yy134; + if (yych == 'o') goto yy135; + goto yy40; + } + } +yy36: + YYDEBUG(36, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + switch (yych) { case 'C': - case 'c': goto yy170; + case 'c': goto yy137; case 'L': - case 'l': goto yy171; + case 'l': goto yy138; case 'M': - case 'm': goto yy172; + case 'm': goto yy139; case 'N': - case 'n': goto yy173; + case 'n': goto yy140; case 'V': - case 'v': goto yy174; + case 'v': goto yy141; case 'X': - case 'x': goto yy175; - default: goto yy47; + case 'x': goto yy142; + default: goto yy40; + } +yy37: + YYDEBUG(37, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'U') { + if (yych <= 'M') { + if (yych == 'I') goto yy143; + goto yy40; + } else { + if (yych <= 'N') goto yy144; + if (yych <= 'O') goto yy146; + if (yych <= 'T') goto yy40; + goto yy147; + } + } else { + if (yych <= 'n') { + if (yych == 'i') goto yy143; + if (yych <= 'm') goto yy40; + goto yy144; + } else { + if (yych <= 'o') goto yy146; + if (yych == 'u') goto yy147; + goto yy40; } + } +yy38: + YYDEBUG(38, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'O') { + if (yych == 'L') goto yy148; + if (yych <= 'N') goto yy40; + goto yy149; + } else { + if (yych <= 'l') { + if (yych <= 'k') goto yy40; + goto yy148; + } else { + if (yych == 'o') goto yy149; + goto yy40; + } + } +yy39: + YYDEBUG(39, yych); + yyaccept = 4; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; +yy40: + YYDEBUG(40, yych); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; + goto yy32; +yy41: + YYDEBUG(41, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'S') { + if (yych <= 'L') { + if (yych == 'F') goto yy150; + goto yy40; + } else { + if (yych <= 'M') goto yy152; + if (yych <= 'N') goto yy153; + if (yych <= 'R') goto yy40; + goto yy154; + } + } else { + if (yych <= 'm') { + if (yych == 'f') goto yy150; + if (yych <= 'l') goto yy40; + goto yy152; + } else { + if (yych <= 'n') goto yy153; + if (yych == 's') goto yy154; + goto yy40; + } + } +yy42: + YYDEBUG(42, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy155; + if (yych == 'i') goto yy155; + goto yy40; +yy43: + YYDEBUG(43, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy156; + if (yych == 'a') goto yy156; + goto yy40; yy44: - YYDEBUG(44, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'U') { - if (yych <= 'M') { - if (yych == 'I') goto yy176; - goto yy47; - } else { - if (yych <= 'N') goto yy177; - if (yych <= 'O') goto yy179; - if (yych <= 'T') goto yy47; - goto yy180; - } + YYDEBUG(44, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'E') { + if (yych == 'A') goto yy157; + if (yych <= 'D') goto yy40; + goto yy158; + } else { + if (yych <= 'a') { + if (yych <= '`') goto yy40; + goto yy157; } else { - if (yych <= 'n') { - if (yych == 'i') goto yy176; - if (yych <= 'm') goto yy47; - goto yy177; - } else { - if (yych <= 'o') goto yy179; - if (yych == 'u') goto yy180; - goto yy47; - } + if (yych == 'e') goto yy158; + goto yy40; } + } yy45: - YYDEBUG(45, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'O') { - if (yych == 'L') goto yy181; - if (yych <= 'N') goto yy47; - goto yy182; - } else { - if (yych <= 'l') { - if (yych <= 'k') goto yy47; - goto yy181; - } else { - if (yych == 'o') goto yy182; - goto yy47; - } - } + YYDEBUG(45, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy159; + if (yych == 'r') goto yy159; + goto yy40; yy46: - YYDEBUG(46, *YYCURSOR); - yyaccept = 4; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; -yy47: - YYDEBUG(47, *YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; + YYDEBUG(46, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'U') { + if (yych == 'R') goto yy161; + if (yych <= 'T') goto yy40; + goto yy162; + } else { + if (yych <= 'r') { + if (yych <= 'q') goto yy40; + goto yy161; + } else { + if (yych == 'u') goto yy162; + goto yy40; } - if (yych == '\\') goto yy160; - goto yy39; + } +yy47: + YYDEBUG(47, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy163; + if (yych == 'e') goto yy163; + goto yy40; yy48: - YYDEBUG(48, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'S') { - if (yych <= 'L') { - if (yych == 'F') goto yy183; - goto yy47; - } else { - if (yych <= 'M') goto yy185; - if (yych <= 'N') goto yy186; - if (yych <= 'R') goto yy47; - goto yy187; - } + YYDEBUG(48, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'W') { + if (yych == 'T') goto yy164; + if (yych <= 'V') goto yy40; + goto yy165; + } else { + if (yych <= 't') { + if (yych <= 's') goto yy40; + goto yy164; } else { - if (yych <= 'm') { - if (yych == 'f') goto yy183; - if (yych <= 'l') goto yy47; - goto yy185; - } else { - if (yych <= 'n') goto yy186; - if (yych == 's') goto yy187; - goto yy47; - } + if (yych == 'w') goto yy165; + goto yy40; } + } yy49: - YYDEBUG(49, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy188; - if (yych == 'i') goto yy188; - goto yy47; + YYDEBUG(49, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'R') { + if (yych == 'H') goto yy166; + if (yych <= 'Q') goto yy40; + goto yy167; + } else { + if (yych <= 'h') { + if (yych <= 'g') goto yy40; + goto yy166; + } else { + if (yych == 'r') goto yy167; + goto yy40; + } + } yy50: - YYDEBUG(50, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy189; - if (yych == 'a') goto yy189; - goto yy47; -yy51: - YYDEBUG(51, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'E') { - if (yych == 'A') goto yy190; - if (yych <= 'D') goto yy47; - goto yy191; - } else { - if (yych <= 'a') { - if (yych <= '`') goto yy47; - goto yy190; - } else { - if (yych == 'e') goto yy191; - goto yy47; - } + YYDEBUG(50, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'S') { + if (yych == 'N') goto yy168; + if (yych <= 'R') goto yy40; + goto yy169; + } else { + if (yych <= 'n') { + if (yych <= 'm') goto yy40; + goto yy168; + } else { + if (yych == 's') goto yy169; + goto yy40; } + } +yy51: + YYDEBUG(51, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy170; + if (yych == 'a') goto yy170; + goto yy40; yy52: - YYDEBUG(52, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy192; - if (yych == 'r') goto yy192; - goto yy47; + YYDEBUG(52, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'H') goto yy171; + if (yych == 'h') goto yy171; + goto yy40; yy53: - YYDEBUG(53, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'U') { - if (yych == 'R') goto yy194; - if (yych <= 'T') goto yy47; - goto yy195; - } else { - if (yych <= 'r') { - if (yych <= 'q') goto yy47; - goto yy194; - } else { - if (yych == 'u') goto yy195; - goto yy47; - } - } + YYDEBUG(53, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy172; + if (yych == 'o') goto yy172; + goto yy40; yy54: - YYDEBUG(54, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy196; - if (yych == 'e') goto yy196; - goto yy47; + YYDEBUG(54, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy173; + if (yych == 'i') goto yy173; + goto yy40; yy55: - YYDEBUG(55, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'W') { - if (yych == 'T') goto yy197; - if (yych <= 'V') goto yy47; - goto yy198; - } else { - if (yych <= 't') { - if (yych <= 's') goto yy47; - goto yy197; - } else { - if (yych == 'w') goto yy198; - goto yy47; - } - } + YYDEBUG(55, yych); + ++YYCURSOR; + goto yy14; yy56: - YYDEBUG(56, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'R') { - if (yych == 'H') goto yy199; - if (yych <= 'Q') goto yy47; - goto yy200; - } else { - if (yych <= 'h') { - if (yych <= 'g') goto yy47; - goto yy199; - } else { - if (yych == 'r') goto yy200; - goto yy47; - } - } + YYDEBUG(56, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy57; + if (yych <= 'Z') goto yy174; + if (yych >= '_') goto yy174; + } else { + if (yych <= '`') goto yy57; + if (yych <= 'z') goto yy174; + if (yych >= 0x80) goto yy174; + } yy57: - YYDEBUG(57, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'S') { - if (yych == 'N') goto yy201; - if (yych <= 'R') goto yy47; - goto yy202; - } else { - if (yych <= 'n') { - if (yych <= 'm') goto yy47; - goto yy201; - } else { - if (yych == 's') goto yy202; - goto yy47; - } - } + YYDEBUG(57, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN(T_NS_SEPARATOR); +} yy58: - YYDEBUG(58, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy203; - if (yych == 'a') goto yy203; - goto yy47; + YYDEBUG(58, yych); + yych = *++YYCURSOR; + if (yych == '=') goto yy176; + goto yy4; yy59: - YYDEBUG(59, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'H') goto yy204; - if (yych == 'h') goto yy204; - goto yy47; + YYDEBUG(59, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy177; + goto yy40; yy60: - YYDEBUG(60, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy205; - if (yych == 'o') goto yy205; - goto yy47; -yy61: - YYDEBUG(61, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy206; - if (yych == 'i') goto yy206; - goto yy47; -yy62: - YYDEBUG(62, *YYCURSOR); - ++YYCURSOR; - goto yy20; -yy63: - YYDEBUG(63, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy64; - if (yych <= 'Z') goto yy207; - if (yych >= '_') goto yy207; - } else { - if (yych <= '`') goto yy64; - if (yych <= 'z') goto yy207; - if (yych >= 0x80) goto yy207; - } -yy64: - YYDEBUG(64, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN(T_NS_SEPARATOR); -} -yy65: - YYDEBUG(65, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '=') goto yy210; - goto yy8; -yy66: - YYDEBUG(66, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy212; - goto yy47; -yy67: - YYDEBUG(67, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(68, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + YYDEBUG(60, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { BEGIN(ST_BACKQUOTE); RETURN_TOKEN('`'); } -yy69: - YYDEBUG(69, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(70, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy61: + YYDEBUG(61, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yy_push_state(ST_IN_SCRIPTING); enter_nesting('{'); RETURN_TOKEN('{'); } -yy71: - YYDEBUG(71, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '=') goto yy213; - if (yych == '|') goto yy215; - goto yy8; -yy72: - YYDEBUG(72, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(73, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy62: + YYDEBUG(62, yych); + yych = *++YYCURSOR; + if (yych == '=') goto yy178; + if (yych == '|') goto yy179; + goto yy4; +yy63: + YYDEBUG(63, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RESET_DOC_COMMENT(); if (!zend_stack_is_empty(&SCNG(state_stack))) { yy_pop_state(); } RETURN_EXIT_NESTING_TOKEN('}'); } -yy74: - YYDEBUG(74, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '=') goto yy217; -yy75: - YYDEBUG(75, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy64: + YYDEBUG(64, yych); + yych = *++YYCURSOR; + if (yych == '=') goto yy180; +yy65: + YYDEBUG(65, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_IS_NOT_EQUAL); } -yy76: - YYDEBUG(76, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(77, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy66: + YYDEBUG(66, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { enter_nesting('['); RETURN_TOKEN(T_ATTRIBUTE); } -yy78: - YYDEBUG(78, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(79, *YYCURSOR); - if (yych <= '^') { - if (yych <= '9') { - if (yych >= '0') goto yy78; - } else { - if (yych <= '@') goto yy80; - if (yych <= 'Z') goto yy78; - } +yy67: + YYDEBUG(67, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '^') { + if (yych <= '9') { + if (yych >= '0') goto yy67; } else { - if (yych <= '`') { - if (yych <= '_') goto yy78; - } else { - if (yych <= 'z') goto yy78; - if (yych >= 0x80) goto yy78; - } + if (yych <= '@') goto yy68; + if (yych <= 'Z') goto yy67; } -yy80: - YYDEBUG(80, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } else { + if (yych <= '`') { + if (yych <= '_') goto yy67; + } else { + if (yych <= 'z') goto yy67; + if (yych >= 0x80) goto yy67; + } + } +yy68: + YYDEBUG(68, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } -yy81: - YYDEBUG(81, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(82, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy69: + YYDEBUG(69, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_MOD_EQUAL); } -yy83: - YYDEBUG(83, *YYCURSOR); - ++YYCURSOR; - YYFILL(3); - yych = *YYCURSOR; - YYDEBUG(84, *YYCURSOR); - if (yych <= 0x1F) { - if (yych <= '\n') { - if (yych >= '\t') goto yy83; - } else { - if (yych == '\r') goto yy83; - } +yy70: + YYDEBUG(70, yych); + ++YYCURSOR; + YYFILL(3); + yych = *YYCURSOR; + if (yych <= 0x1F) { + if (yych <= '\n') { + if (yych >= '\t') goto yy70; } else { - if (yych <= '$') { - if (yych <= ' ') goto yy83; - if (yych >= '$') goto yy86; - } else { - if (yych == '.') goto yy90; - } + if (yych == '\r') goto yy70; } -yy85: - YYDEBUG(85, *YYCURSOR); - YYCURSOR = YYMARKER; - if (yyaccept <= 46) { - if (yyaccept <= 23) { - if (yyaccept <= 11) { - if (yyaccept <= 5) { - if (yyaccept <= 2) { - if (yyaccept <= 1) { - if (yyaccept == 0) { - goto yy16; - } else { - goto yy20; - } - } else { - goto yy8; - } + } else { + if (yych <= '$') { + if (yych <= ' ') goto yy70; + if (yych >= '$') goto yy72; + } else { + if (yych == '.') goto yy74; + } + } +yy71: + YYDEBUG(71, yych); + YYCURSOR = YYMARKER; + if (yyaccept <= 46) { + if (yyaccept <= 23) { + if (yyaccept <= 11) { + if (yyaccept <= 5) { + if (yyaccept <= 2) { + if (yyaccept <= 1) { + if (yyaccept == 0) goto yy11; + else goto yy14; } else { - if (yyaccept <= 4) { - if (yyaccept == 3) { - goto yy30; - } else { - goto yy39; - } - } else { - goto yy121; - } + goto yy4; } } else { - if (yyaccept <= 8) { - if (yyaccept <= 7) { - if (yyaccept == 6) { - goto yy125; - } else { - goto yy138; - } - } else { - goto yy159; - } + if (yyaccept <= 4) { + if (yyaccept == 3) goto yy23; + else goto yy32; } else { - if (yyaccept <= 10) { - if (yyaccept == 9) { - goto yy169; - } else { - goto yy178; - } - } else { - goto yy184; - } + goto yy97; } } } else { - if (yyaccept <= 17) { - if (yyaccept <= 14) { - if (yyaccept <= 13) { - if (yyaccept == 12) { - goto yy193; - } else { - goto yy209; - } - } else { - goto yy238; - } + if (yyaccept <= 8) { + if (yyaccept <= 7) { + if (yyaccept == 6) goto yy100; + else goto yy111; } else { - if (yyaccept <= 16) { - if (yyaccept == 15) { - goto yy244; - } else { - goto yy247; - } - } else { - goto yy266; - } + goto yy126; } } else { - if (yyaccept <= 20) { - if (yyaccept <= 19) { - if (yyaccept == 18) { - goto yy270; - } else { - goto yy282; - } - } else { - goto yy293; - } + if (yyaccept <= 10) { + if (yyaccept == 9) goto yy136; + else goto yy145; } else { - if (yyaccept <= 22) { - if (yyaccept == 21) { - goto yy306; - } else { - goto yy318; - } - } else { - goto yy321; - } + goto yy151; } } } } else { - if (yyaccept <= 35) { - if (yyaccept <= 29) { - if (yyaccept <= 26) { - if (yyaccept <= 25) { - if (yyaccept == 24) { - goto yy323; - } else { - goto yy326; - } - } else { - goto yy358; - } + if (yyaccept <= 17) { + if (yyaccept <= 14) { + if (yyaccept <= 13) { + if (yyaccept == 12) goto yy160; + else goto yy175; } else { - if (yyaccept <= 28) { - if (yyaccept == 27) { - goto yy367; - } else { - goto yy369; - } - } else { - goto yy378; - } + goto yy197; } } else { - if (yyaccept <= 32) { - if (yyaccept <= 31) { - if (yyaccept == 30) { - goto yy380; - } else { - goto yy387; - } - } else { - goto yy394; - } + if (yyaccept <= 16) { + if (yyaccept == 15) goto yy201; + else goto yy203; } else { - if (yyaccept <= 34) { - if (yyaccept == 33) { - goto yy444; - } else { - goto yy446; - } - } else { - goto yy449; - } + goto yy215; } } } else { - if (yyaccept <= 41) { - if (yyaccept <= 38) { - if (yyaccept <= 37) { - if (yyaccept == 36) { - goto yy451; - } else { - goto yy453; - } - } else { - goto yy455; - } + if (yyaccept <= 20) { + if (yyaccept <= 19) { + if (yyaccept == 18) goto yy218; + else goto yy230; } else { - if (yyaccept <= 40) { - if (yyaccept == 39) { - goto yy461; - } else { - goto yy465; - } - } else { - goto yy472; - } + goto yy241; } } else { - if (yyaccept <= 44) { - if (yyaccept <= 43) { - if (yyaccept == 42) { - goto yy482; - } else { - goto yy484; - } - } else { - goto yy487; - } + if (yyaccept <= 22) { + if (yyaccept == 21) goto yy254; + else goto yy266; } else { - if (yyaccept == 45) { - goto yy497; - } else { - goto yy499; - } + goto yy269; } } } } } else { - if (yyaccept <= 69) { - if (yyaccept <= 58) { - if (yyaccept <= 52) { - if (yyaccept <= 49) { - if (yyaccept <= 48) { - if (yyaccept == 47) { - goto yy501; - } else { - goto yy503; - } - } else { - goto yy505; - } + if (yyaccept <= 35) { + if (yyaccept <= 29) { + if (yyaccept <= 26) { + if (yyaccept <= 25) { + if (yyaccept == 24) goto yy271; + else goto yy274; } else { - if (yyaccept <= 51) { - if (yyaccept == 50) { - goto yy540; - } else { - goto yy543; - } - } else { - goto yy547; - } + goto yy304; } } else { - if (yyaccept <= 55) { - if (yyaccept <= 54) { - if (yyaccept == 53) { - goto yy555; - } else { - goto yy565; - } - } else { - goto yy569; - } + if (yyaccept <= 28) { + if (yyaccept == 27) goto yy313; + else goto yy315; } else { - if (yyaccept <= 57) { - if (yyaccept == 56) { - goto yy571; - } else { - goto yy573; - } - } else { - goto yy601; - } + goto yy324; } } } else { - if (yyaccept <= 64) { - if (yyaccept <= 61) { - if (yyaccept <= 60) { - if (yyaccept == 59) { - goto yy603; - } else { - goto yy611; - } - } else { - goto yy613; - } + if (yyaccept <= 32) { + if (yyaccept <= 31) { + if (yyaccept == 30) goto yy326; + else goto yy333; } else { - if (yyaccept <= 63) { - if (yyaccept == 62) { - goto yy615; - } else { - goto yy619; - } - } else { - goto yy625; - } + goto yy340; } } else { - if (yyaccept <= 67) { - if (yyaccept <= 66) { - if (yyaccept == 65) { - goto yy629; - } else { - goto yy633; - } - } else { - goto yy646; - } + if (yyaccept <= 34) { + if (yyaccept == 33) goto yy387; + else goto yy389; } else { - if (yyaccept == 68) { - goto yy648; - } else { - goto yy650; - } + goto yy392; } } } } else { - if (yyaccept <= 81) { - if (yyaccept <= 75) { - if (yyaccept <= 72) { - if (yyaccept <= 71) { - if (yyaccept == 70) { - goto yy655; - } else { - goto yy659; - } - } else { - goto yy668; - } + if (yyaccept <= 41) { + if (yyaccept <= 38) { + if (yyaccept <= 37) { + if (yyaccept == 36) goto yy394; + else goto yy396; } else { - if (yyaccept <= 74) { - if (yyaccept == 73) { - goto yy673; - } else { - goto yy677; - } - } else { - goto yy684; - } + goto yy398; } } else { - if (yyaccept <= 78) { - if (yyaccept <= 77) { - if (yyaccept == 76) { - goto yy691; - } else { - goto yy693; - } - } else { - goto yy695; - } + if (yyaccept <= 40) { + if (yyaccept == 39) goto yy404; + else goto yy408; } else { - if (yyaccept <= 80) { - if (yyaccept == 79) { - goto yy697; - } else { - goto yy701; - } - } else { - goto yy707; - } + goto yy414; } } } else { - if (yyaccept <= 87) { - if (yyaccept <= 84) { - if (yyaccept <= 83) { - if (yyaccept == 82) { - goto yy709; - } else { - goto yy711; - } - } else { - goto yy715; - } + if (yyaccept <= 44) { + if (yyaccept <= 43) { + if (yyaccept == 42) goto yy424; + else goto yy426; } else { - if (yyaccept <= 86) { - if (yyaccept == 85) { - goto yy718; - } else { - goto yy725; - } - } else { - goto yy732; - } + goto yy429; } } else { - if (yyaccept <= 90) { - if (yyaccept <= 89) { - if (yyaccept == 88) { - goto yy743; - } else { - goto yy745; - } - } else { - goto yy747; - } + if (yyaccept == 45) goto yy439; + else goto yy441; + } + } + } + } + } else { + if (yyaccept <= 69) { + if (yyaccept <= 58) { + if (yyaccept <= 52) { + if (yyaccept <= 49) { + if (yyaccept <= 48) { + if (yyaccept == 47) goto yy443; + else goto yy445; } else { - if (yyaccept == 91) { - goto yy753; - } else { - goto yy756; - } + goto yy447; + } + } else { + if (yyaccept <= 51) { + if (yyaccept == 50) goto yy476; + else goto yy479; + } else { + goto yy483; + } + } + } else { + if (yyaccept <= 55) { + if (yyaccept <= 54) { + if (yyaccept == 53) goto yy491; + else goto yy501; + } else { + goto yy505; + } + } else { + if (yyaccept <= 57) { + if (yyaccept == 56) goto yy507; + else goto yy509; + } else { + goto yy531; + } + } + } + } else { + if (yyaccept <= 64) { + if (yyaccept <= 61) { + if (yyaccept <= 60) { + if (yyaccept == 59) goto yy533; + else goto yy541; + } else { + goto yy543; + } + } else { + if (yyaccept <= 63) { + if (yyaccept == 62) goto yy545; + else goto yy549; + } else { + goto yy555; + } + } + } else { + if (yyaccept <= 67) { + if (yyaccept <= 66) { + if (yyaccept == 65) goto yy559; + else goto yy563; + } else { + goto yy574; + } + } else { + if (yyaccept == 68) goto yy576; + else goto yy578; + } + } + } + } else { + if (yyaccept <= 81) { + if (yyaccept <= 75) { + if (yyaccept <= 72) { + if (yyaccept <= 71) { + if (yyaccept == 70) goto yy583; + else goto yy587; + } else { + goto yy596; + } + } else { + if (yyaccept <= 74) { + if (yyaccept == 73) goto yy601; + else goto yy605; + } else { + goto yy612; + } + } + } else { + if (yyaccept <= 78) { + if (yyaccept <= 77) { + if (yyaccept == 76) goto yy619; + else goto yy621; + } else { + goto yy623; + } + } else { + if (yyaccept <= 80) { + if (yyaccept == 79) goto yy625; + else goto yy629; + } else { + goto yy635; } } } + } else { + if (yyaccept <= 87) { + if (yyaccept <= 84) { + if (yyaccept <= 83) { + if (yyaccept == 82) goto yy637; + else goto yy639; + } else { + goto yy643; + } + } else { + if (yyaccept <= 86) { + if (yyaccept == 85) goto yy646; + else goto yy653; + } else { + goto yy659; + } + } + } else { + if (yyaccept <= 90) { + if (yyaccept <= 89) { + if (yyaccept == 88) goto yy668; + else goto yy670; + } else { + goto yy672; + } + } else { + if (yyaccept == 91) goto yy678; + else goto yy681; + } + } } } -yy86: - YYDEBUG(86, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(87, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy72: + YYDEBUG(72, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(1); RETURN_TOKEN(T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG); } -yy88: - YYDEBUG(88, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(89, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy73: + YYDEBUG(73, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_BOOLEAN_AND); } -yy90: - YYDEBUG(90, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '.') goto yy219; - goto yy85; -yy91: - YYDEBUG(91, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(92, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy74: + YYDEBUG(74, yych); + yych = *++YYCURSOR; + if (yych == '.') goto yy181; + goto yy71; +yy75: + YYDEBUG(75, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_AND_EQUAL); } -yy93: - YYDEBUG(93, *YYCURSOR); - ++YYCURSOR; - YYFILL(7); - yych = *YYCURSOR; -yy94: - YYDEBUG(94, *YYCURSOR); - if (yybm[0+yych] & 16) { - goto yy93; - } - switch (yych) { +yy76: + YYDEBUG(76, yych); + ++YYCURSOR; + YYFILL(7); + yych = *YYCURSOR; +yy77: + YYDEBUG(77, yych); + if (yybm_ST_IN_SCRIPTING[0+yych] & 16) goto yy76; + switch (yych) { case 'A': - case 'a': goto yy95; + case 'a': goto yy78; case 'B': - case 'b': goto yy96; + case 'b': goto yy79; case 'D': - case 'd': goto yy97; + case 'd': goto yy80; case 'F': - case 'f': goto yy98; + case 'f': goto yy81; case 'I': - case 'i': goto yy99; + case 'i': goto yy82; case 'O': - case 'o': goto yy100; + case 'o': goto yy83; case 'R': - case 'r': goto yy101; + case 'r': goto yy84; case 'S': - case 's': goto yy102; + case 's': goto yy85; case 'U': - case 'u': goto yy103; - default: goto yy85; - } -yy95: - YYDEBUG(95, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'R') goto yy220; - if (yych == 'r') goto yy220; - goto yy85; -yy96: - YYDEBUG(96, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= 'O') { - if (yych == 'I') goto yy221; - if (yych <= 'N') goto yy85; - goto yy222; + case 'u': goto yy86; + default: goto yy71; + } +yy78: + YYDEBUG(78, yych); + yych = *++YYCURSOR; + if (yych == 'R') goto yy182; + if (yych == 'r') goto yy182; + goto yy71; +yy79: + YYDEBUG(79, yych); + yych = *++YYCURSOR; + if (yych <= 'O') { + if (yych == 'I') goto yy183; + if (yych <= 'N') goto yy71; + goto yy184; + } else { + if (yych <= 'i') { + if (yych <= 'h') goto yy71; + goto yy183; } else { - if (yych <= 'i') { - if (yych <= 'h') goto yy85; - goto yy221; - } else { - if (yych == 'o') goto yy222; - goto yy85; - } + if (yych == 'o') goto yy184; + goto yy71; } -yy97: - YYDEBUG(97, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'O') goto yy223; - if (yych == 'o') goto yy223; - goto yy85; -yy98: - YYDEBUG(98, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'L') goto yy224; - if (yych == 'l') goto yy224; - goto yy85; -yy99: - YYDEBUG(99, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'N') goto yy225; - if (yych == 'n') goto yy225; - goto yy85; -yy100: - YYDEBUG(100, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'B') goto yy226; - if (yych == 'b') goto yy226; - goto yy85; -yy101: - YYDEBUG(101, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy227; - if (yych == 'e') goto yy227; - goto yy85; -yy102: - YYDEBUG(102, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'T') goto yy228; - if (yych == 't') goto yy228; - goto yy85; -yy103: - YYDEBUG(103, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'N') goto yy229; - if (yych == 'n') goto yy229; - goto yy85; -yy104: - YYDEBUG(104, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '=') goto yy230; - YYDEBUG(105, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy80: + YYDEBUG(80, yych); + yych = *++YYCURSOR; + if (yych == 'O') goto yy185; + if (yych == 'o') goto yy185; + goto yy71; +yy81: + YYDEBUG(81, yych); + yych = *++YYCURSOR; + if (yych == 'L') goto yy186; + if (yych == 'l') goto yy186; + goto yy71; +yy82: + YYDEBUG(82, yych); + yych = *++YYCURSOR; + if (yych == 'N') goto yy187; + if (yych == 'n') goto yy187; + goto yy71; +yy83: + YYDEBUG(83, yych); + yych = *++YYCURSOR; + if (yych == 'B') goto yy188; + if (yych == 'b') goto yy188; + goto yy71; +yy84: + YYDEBUG(84, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy189; + if (yych == 'e') goto yy189; + goto yy71; +yy85: + YYDEBUG(85, yych); + yych = *++YYCURSOR; + if (yych == 'T') goto yy190; + if (yych == 't') goto yy190; + goto yy71; +yy86: + YYDEBUG(86, yych); + yych = *++YYCURSOR; + if (yych == 'N') goto yy191; + if (yych == 'n') goto yy191; + goto yy71; +yy87: + YYDEBUG(87, yych); + yych = *++YYCURSOR; + if (yych == '=') goto yy192; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_POW); } -yy106: - YYDEBUG(106, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(107, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy88: + YYDEBUG(88, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_MUL_EQUAL); } -yy108: - YYDEBUG(108, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(109, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy89: + YYDEBUG(89, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_INC); } -yy110: - YYDEBUG(110, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(111, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy90: + YYDEBUG(90, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_PLUS_EQUAL); } -yy112: - YYDEBUG(112, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(113, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy91: + YYDEBUG(91, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_DEC); } -yy114: - YYDEBUG(114, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(115, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy92: + YYDEBUG(92, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_MINUS_EQUAL); } -yy116: - YYDEBUG(116, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(117, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy93: + YYDEBUG(93, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yy_push_state(ST_LOOKING_FOR_PROPERTY); RETURN_TOKEN(T_OBJECT_OPERATOR); } -yy118: - YYDEBUG(118, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '.') goto yy232; - goto yy85; -yy119: - YYDEBUG(119, *YYCURSOR); - yyaccept = 5; - YYMARKER = ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; -yy120: - YYDEBUG(120, *YYCURSOR); - if (yych <= 'E') { - if (yych <= '/') goto yy121; - if (yych <= '9') goto yy119; - if (yych >= 'E') goto yy131; +yy94: + YYDEBUG(94, yych); + yych = *++YYCURSOR; + if (yych == '.') goto yy193; + goto yy71; +yy95: + YYDEBUG(95, yych); + yyaccept = 5; + YYMARKER = ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; +yy96: + YYDEBUG(96, yych); + if (yych <= 'E') { + if (yych <= '/') goto yy97; + if (yych <= '9') goto yy95; + if (yych >= 'E') goto yy105; + } else { + if (yych <= '_') { + if (yych >= '_') goto yy194; } else { - if (yych <= '_') { - if (yych >= '_') goto yy234; - } else { - if (yych == 'e') goto yy131; - } + if (yych == 'e') goto yy105; } -yy121: - YYDEBUG(121, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy97: + YYDEBUG(97, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { const char *end; size_t len = yyleng; char *dnum = yytext; @@ -3171,23 +3267,22 @@ } RETURN_TOKEN_WITH_VAL(T_DNUMBER); } -yy122: - YYDEBUG(122, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(123, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy98: + YYDEBUG(98, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_CONCAT_EQUAL); } -yy124: - YYDEBUG(124, *YYCURSOR); - yyaccept = 6; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '*') goto yy235; -yy125: - YYDEBUG(125, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy99: + YYDEBUG(99, yych); + yyaccept = 6; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '*') goto yy195; +yy100: + YYDEBUG(100, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { int doc_com; if (yyleng > 2) { @@ -3222,154 +3317,139 @@ RETURN_OR_SKIP_TOKEN(T_COMMENT); } -yy126: - YYDEBUG(126, *YYCURSOR); - ++YYCURSOR; - goto yy12; -yy127: - YYDEBUG(127, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(128, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy101: + YYDEBUG(101, yych); + ++YYCURSOR; + goto yy7; +yy102: + YYDEBUG(102, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_DIV_EQUAL); } -yy129: - YYDEBUG(129, *YYCURSOR); - yyaccept = 5; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy121; - goto yy120; -yy130: - YYDEBUG(130, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yybm[0+yych] & 32) { - goto yy236; - } - goto yy85; -yy131: - YYDEBUG(131, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= ',') { - if (yych == '+') goto yy239; - goto yy85; - } else { - if (yych <= '-') goto yy239; - if (yych <= '/') goto yy85; - if (yych <= '9') goto yy240; - goto yy85; - } -yy132: - YYDEBUG(132, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yybm[0+yych] & 64) { - goto yy242; - } - goto yy85; -yy133: - YYDEBUG(133, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy245; - } - goto yy85; -yy134: - YYDEBUG(134, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yybm[0+yych] & 4) { - goto yy31; - } - goto yy85; -yy135: - YYDEBUG(135, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(136, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy103: + YYDEBUG(103, yych); + yyaccept = 5; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy97; + goto yy96; +yy104: + YYDEBUG(104, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_IN_SCRIPTING[0+yych] & 32) goto yy196; + goto yy71; +yy105: + YYDEBUG(105, yych); + yych = *++YYCURSOR; + if (yych <= ',') { + if (yych == '+') goto yy198; + goto yy71; + } else { + if (yych <= '-') goto yy198; + if (yych <= '/') goto yy71; + if (yych <= '9') goto yy199; + goto yy71; + } +yy106: + YYDEBUG(106, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_IN_SCRIPTING[0+yych] & 64) goto yy200; + goto yy71; +yy107: + YYDEBUG(107, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_IN_SCRIPTING[0+yych] & 128) goto yy202; + goto yy71; +yy108: + YYDEBUG(108, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_IN_SCRIPTING[0+yych] & 4) goto yy24; + goto yy71; +yy109: + YYDEBUG(109, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_PAAMAYIM_NEKUDOTAYIM); } -yy137: - YYDEBUG(137, *YYCURSOR); - yyaccept = 7; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= ';') goto yy138; - if (yych <= '<') goto yy248; - if (yych <= '=') goto yy250; -yy138: - YYDEBUG(138, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy110: + YYDEBUG(110, yych); + yyaccept = 7; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= ';') goto yy111; + if (yych <= '<') goto yy204; + if (yych <= '=') goto yy205; +yy111: + YYDEBUG(111, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_SL); } -yy139: - YYDEBUG(139, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '>') goto yy252; - YYDEBUG(140, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy112: + YYDEBUG(112, yych); + yych = *++YYCURSOR; + if (yych == '>') goto yy206; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_IS_SMALLER_OR_EQUAL); } -yy141: - YYDEBUG(141, *YYCURSOR); - ++YYCURSOR; - goto yy75; -yy142: - YYDEBUG(142, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '=') goto yy254; - YYDEBUG(143, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy113: + YYDEBUG(113, yych); + ++YYCURSOR; + goto yy65; +yy114: + YYDEBUG(114, yych); + yych = *++YYCURSOR; + if (yych == '=') goto yy207; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_IS_EQUAL); } -yy144: - YYDEBUG(144, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(145, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy115: + YYDEBUG(115, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_DOUBLE_ARROW); } -yy146: - YYDEBUG(146, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(147, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy116: + YYDEBUG(116, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_IS_GREATER_OR_EQUAL); } -yy148: - YYDEBUG(148, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '=') goto yy256; - YYDEBUG(149, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy117: + YYDEBUG(117, yych); + yych = *++YYCURSOR; + if (yych == '=') goto yy208; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_SR); } -yy150: - YYDEBUG(150, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '>') goto yy258; - goto yy85; -yy151: - YYDEBUG(151, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy260; - if (yych == '\r') goto yy261; -yy152: - YYDEBUG(152, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy118: + YYDEBUG(118, yych); + yych = *++YYCURSOR; + if (yych == '>') goto yy209; + goto yy71; +yy119: + YYDEBUG(119, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy210; + if (yych == '\r') goto yy211; +yy120: + YYDEBUG(120, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { BEGIN(INITIAL); if (yytext[yyleng-1] != '>') { CG(increment_lineno) = 1; @@ -3379,694 +3459,673 @@ } RETURN_TOKEN(T_CLOSE_TAG); } -yy153: - YYDEBUG(153, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '=') goto yy262; - YYDEBUG(154, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy121: + YYDEBUG(121, yych); + yych = *++YYCURSOR; + if (yych == '=') goto yy212; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_COALESCE); } -yy155: - YYDEBUG(155, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy264; - if (yych == 's') goto yy264; - goto yy47; -yy156: - YYDEBUG(156, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'D') goto yy265; - if (yych == 'd') goto yy265; - goto yy47; -yy157: - YYDEBUG(157, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy267; - if (yych == 'r') goto yy267; - goto yy47; -yy158: - YYDEBUG(158, *YYCURSOR); - yyaccept = 8; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy159: - YYDEBUG(159, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy122: + YYDEBUG(122, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy213; + if (yych == 's') goto yy213; + goto yy40; +yy123: + YYDEBUG(123, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'D') goto yy214; + if (yych == 'd') goto yy214; + goto yy40; +yy124: + YYDEBUG(124, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy216; + if (yych == 'r') goto yy216; + goto yy40; +yy125: + YYDEBUG(125, yych); + yyaccept = 8; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy126: + YYDEBUG(126, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_IDENT(T_AS); } -yy160: - YYDEBUG(160, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy85; - if (yych <= 'Z') goto yy268; - if (yych <= '^') goto yy85; - goto yy268; - } else { - if (yych <= '`') goto yy85; - if (yych <= 'z') goto yy268; - if (yych <= 0x7F) goto yy85; - goto yy268; - } -yy161: - YYDEBUG(161, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '<') goto yy271; - goto yy85; -yy162: - YYDEBUG(162, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy272; - if (yych == 'e') goto yy272; - goto yy47; -yy163: - YYDEBUG(163, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'T') { - if (yych <= 'L') { - if (yych <= 'K') goto yy47; - goto yy273; - } else { - if (yych <= 'R') goto yy47; - if (yych <= 'S') goto yy274; - goto yy275; - } - } else { - if (yych <= 'r') { - if (yych == 'l') goto yy273; - goto yy47; - } else { - if (yych <= 's') goto yy274; - if (yych <= 't') goto yy275; - goto yy47; - } +yy127: + YYDEBUG(127, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy71; + if (yych <= 'Z') goto yy217; + if (yych <= '^') goto yy71; + goto yy217; + } else { + if (yych <= '`') goto yy71; + if (yych <= 'z') goto yy217; + if (yych <= 0x7F) goto yy71; + goto yy217; + } +yy128: + YYDEBUG(128, yych); + yych = *++YYCURSOR; + if (yych == '<') goto yy219; + goto yy71; +yy129: + YYDEBUG(129, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy220; + if (yych == 'e') goto yy220; + goto yy40; +yy130: + YYDEBUG(130, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'T') { + if (yych <= 'L') { + if (yych <= 'K') goto yy40; + goto yy221; + } else { + if (yych <= 'R') goto yy40; + if (yych <= 'S') goto yy222; + goto yy223; } -yy164: - YYDEBUG(164, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'O') { - if (yych == 'A') goto yy276; - if (yych <= 'N') goto yy47; - goto yy277; - } else { - if (yych <= 'a') { - if (yych <= '`') goto yy47; - goto yy276; - } else { - if (yych == 'o') goto yy277; - goto yy47; - } + } else { + if (yych <= 'r') { + if (yych == 'l') goto yy221; + goto yy40; + } else { + if (yych <= 's') goto yy222; + if (yych <= 't') goto yy223; + goto yy40; } -yy165: - YYDEBUG(165, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy278; - if (yych == 'n') goto yy278; - goto yy47; -yy166: - YYDEBUG(166, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'F') { - if (yych == 'C') goto yy279; - if (yych <= 'E') goto yy47; - goto yy280; - } else { - if (yych <= 'c') { - if (yych <= 'b') goto yy47; - goto yy279; - } else { - if (yych == 'f') goto yy280; - goto yy47; - } + } +yy131: + YYDEBUG(131, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'O') { + if (yych == 'A') goto yy224; + if (yych <= 'N') goto yy40; + goto yy225; + } else { + if (yych <= 'a') { + if (yych <= '`') goto yy40; + goto yy224; + } else { + if (yych == 'o') goto yy225; + goto yy40; } -yy167: - YYDEBUG(167, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy281; - if (yych == 'e') goto yy281; - goto yy47; -yy168: - YYDEBUG(168, *YYCURSOR); - yyaccept = 9; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; + } +yy132: + YYDEBUG(132, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy226; + if (yych == 'n') goto yy226; + goto yy40; +yy133: + YYDEBUG(133, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'F') { + if (yych == 'C') goto yy227; + if (yych <= 'E') goto yy40; + goto yy228; + } else { + if (yych <= 'c') { + if (yych <= 'b') goto yy40; + goto yy227; + } else { + if (yych == 'f') goto yy228; + goto yy40; } - if (yych == '\\') goto yy160; -yy169: - YYDEBUG(169, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy134: + YYDEBUG(134, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy229; + if (yych == 'e') goto yy229; + goto yy40; +yy135: + YYDEBUG(135, yych); + yyaccept = 9; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy136: + YYDEBUG(136, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_IDENT(T_DO); } -yy170: - YYDEBUG(170, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'H') goto yy283; - if (yych == 'h') goto yy283; - goto yy47; -yy171: - YYDEBUG(171, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy284; - if (yych == 's') goto yy284; - goto yy47; -yy172: - YYDEBUG(172, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'P') goto yy285; - if (yych == 'p') goto yy285; - goto yy47; -yy173: - YYDEBUG(173, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'U') { - if (yych == 'D') goto yy286; - if (yych <= 'T') goto yy47; - goto yy287; - } else { - if (yych <= 'd') { - if (yych <= 'c') goto yy47; - goto yy286; - } else { - if (yych == 'u') goto yy287; - goto yy47; - } - } -yy174: - YYDEBUG(174, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy288; - if (yych == 'a') goto yy288; - goto yy47; -yy175: - YYDEBUG(175, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'T') { - if (yych == 'I') goto yy289; - if (yych <= 'S') goto yy47; - goto yy290; +yy137: + YYDEBUG(137, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'H') goto yy231; + if (yych == 'h') goto yy231; + goto yy40; +yy138: + YYDEBUG(138, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy232; + if (yych == 's') goto yy232; + goto yy40; +yy139: + YYDEBUG(139, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'P') goto yy233; + if (yych == 'p') goto yy233; + goto yy40; +yy140: + YYDEBUG(140, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'U') { + if (yych == 'D') goto yy234; + if (yych <= 'T') goto yy40; + goto yy235; + } else { + if (yych <= 'd') { + if (yych <= 'c') goto yy40; + goto yy234; } else { - if (yych <= 'i') { - if (yych <= 'h') goto yy47; - goto yy289; - } else { - if (yych == 't') goto yy290; - goto yy47; - } + if (yych == 'u') goto yy235; + goto yy40; } -yy176: - YYDEBUG(176, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy291; - if (yych == 'n') goto yy291; - goto yy47; -yy177: - YYDEBUG(177, *YYCURSOR); - yyaccept = 10; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; + } +yy141: + YYDEBUG(141, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy236; + if (yych == 'a') goto yy236; + goto yy40; +yy142: + YYDEBUG(142, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'T') { + if (yych == 'I') goto yy237; + if (yych <= 'S') goto yy40; + goto yy238; + } else { + if (yych <= 'i') { + if (yych <= 'h') goto yy40; + goto yy237; + } else { + if (yych == 't') goto yy238; + goto yy40; } - if (yych == '\\') goto yy160; -yy178: - YYDEBUG(178, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy143: + YYDEBUG(143, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy239; + if (yych == 'n') goto yy239; + goto yy40; +yy144: + YYDEBUG(144, yych); + yyaccept = 10; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy145: + YYDEBUG(145, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_IDENT(T_FN); } -yy179: - YYDEBUG(179, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy292; - if (yych == 'r') goto yy292; - goto yy47; -yy180: - YYDEBUG(180, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy294; - if (yych == 'n') goto yy294; - goto yy47; -yy181: - YYDEBUG(181, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy295; - if (yych == 'o') goto yy295; - goto yy47; -yy182: - YYDEBUG(182, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy296; - if (yych == 't') goto yy296; - goto yy47; -yy183: - YYDEBUG(183, *YYCURSOR); - yyaccept = 11; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy184: - YYDEBUG(184, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy146: + YYDEBUG(146, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy240; + if (yych == 'r') goto yy240; + goto yy40; +yy147: + YYDEBUG(147, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy242; + if (yych == 'n') goto yy242; + goto yy40; +yy148: + YYDEBUG(148, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy243; + if (yych == 'o') goto yy243; + goto yy40; +yy149: + YYDEBUG(149, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy244; + if (yych == 't') goto yy244; + goto yy40; +yy150: + YYDEBUG(150, yych); + yyaccept = 11; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy151: + YYDEBUG(151, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_IDENT(T_IF); } -yy185: - YYDEBUG(185, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'P') goto yy297; - if (yych == 'p') goto yy297; - goto yy47; -yy186: - YYDEBUG(186, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'T') { - if (yych <= 'C') { - if (yych <= 'B') goto yy47; - goto yy298; - } else { - if (yych <= 'R') goto yy47; - if (yych <= 'S') goto yy299; - goto yy300; - } - } else { - if (yych <= 'r') { - if (yych == 'c') goto yy298; - goto yy47; - } else { - if (yych <= 's') goto yy299; - if (yych <= 't') goto yy300; - goto yy47; - } +yy152: + YYDEBUG(152, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'P') goto yy245; + if (yych == 'p') goto yy245; + goto yy40; +yy153: + YYDEBUG(153, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'T') { + if (yych <= 'C') { + if (yych <= 'B') goto yy40; + goto yy246; + } else { + if (yych <= 'R') goto yy40; + if (yych <= 'S') goto yy247; + goto yy248; } -yy187: - YYDEBUG(187, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy301; - if (yych == 's') goto yy301; - goto yy47; -yy188: - YYDEBUG(188, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy302; - if (yych == 's') goto yy302; - goto yy47; -yy189: - YYDEBUG(189, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy303; - if (yych == 't') goto yy303; - goto yy47; -yy190: - YYDEBUG(190, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'M') goto yy304; - if (yych == 'm') goto yy304; - goto yy47; -yy191: - YYDEBUG(191, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'W') goto yy305; - if (yych == 'w') goto yy305; - goto yy47; -yy192: - YYDEBUG(192, *YYCURSOR); - yyaccept = 12; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; + } else { + if (yych <= 'r') { + if (yych == 'c') goto yy246; + goto yy40; + } else { + if (yych <= 's') goto yy247; + if (yych <= 't') goto yy248; + goto yy40; } - if (yych == '\\') goto yy160; -yy193: - YYDEBUG(193, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy154: + YYDEBUG(154, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy249; + if (yych == 's') goto yy249; + goto yy40; +yy155: + YYDEBUG(155, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy250; + if (yych == 's') goto yy250; + goto yy40; +yy156: + YYDEBUG(156, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy251; + if (yych == 't') goto yy251; + goto yy40; +yy157: + YYDEBUG(157, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'M') goto yy252; + if (yych == 'm') goto yy252; + goto yy40; +yy158: + YYDEBUG(158, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'W') goto yy253; + if (yych == 'w') goto yy253; + goto yy40; +yy159: + YYDEBUG(159, yych); + yyaccept = 12; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy160: + YYDEBUG(160, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_IDENT(T_LOGICAL_OR); } -yy194: - YYDEBUG(194, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'O') { - if (yych == 'I') goto yy307; - if (yych <= 'N') goto yy47; - goto yy308; +yy161: + YYDEBUG(161, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'O') { + if (yych == 'I') goto yy255; + if (yych <= 'N') goto yy40; + goto yy256; + } else { + if (yych <= 'i') { + if (yych <= 'h') goto yy40; + goto yy255; } else { - if (yych <= 'i') { - if (yych <= 'h') goto yy47; - goto yy307; - } else { - if (yych == 'o') goto yy308; - goto yy47; - } + if (yych == 'o') goto yy256; + goto yy40; } -yy195: - YYDEBUG(195, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'B') goto yy309; - if (yych == 'b') goto yy309; - goto yy47; -yy196: - YYDEBUG(196, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'T') { - if (yych <= 'P') { - if (yych == 'A') goto yy310; - goto yy47; - } else { - if (yych <= 'Q') goto yy311; - if (yych <= 'S') goto yy47; - goto yy312; - } + } +yy162: + YYDEBUG(162, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'B') goto yy257; + if (yych == 'b') goto yy257; + goto yy40; +yy163: + YYDEBUG(163, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'T') { + if (yych <= 'P') { + if (yych == 'A') goto yy258; + goto yy40; + } else { + if (yych <= 'Q') goto yy259; + if (yych <= 'S') goto yy40; + goto yy260; + } + } else { + if (yych <= 'p') { + if (yych == 'a') goto yy258; + goto yy40; + } else { + if (yych <= 'q') goto yy259; + if (yych == 't') goto yy260; + goto yy40; + } + } +yy164: + YYDEBUG(164, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy261; + if (yych == 'a') goto yy261; + goto yy40; +yy165: + YYDEBUG(165, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy262; + if (yych == 'i') goto yy262; + goto yy40; +yy166: + YYDEBUG(166, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy263; + if (yych == 'r') goto yy263; + goto yy40; +yy167: + YYDEBUG(167, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'Y') { + if (yych == 'A') goto yy264; + if (yych <= 'X') goto yy40; + goto yy265; + } else { + if (yych <= 'a') { + if (yych <= '`') goto yy40; + goto yy264; } else { - if (yych <= 'p') { - if (yych == 'a') goto yy310; - goto yy47; - } else { - if (yych <= 'q') goto yy311; - if (yych == 't') goto yy312; - goto yy47; - } + if (yych == 'y') goto yy265; + goto yy40; } -yy197: - YYDEBUG(197, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy313; - if (yych == 'a') goto yy313; - goto yy47; -yy198: - YYDEBUG(198, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy314; - if (yych == 'i') goto yy314; - goto yy47; -yy199: - YYDEBUG(199, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy315; - if (yych == 'r') goto yy315; - goto yy47; -yy200: - YYDEBUG(200, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'Y') { - if (yych == 'A') goto yy316; - if (yych <= 'X') goto yy47; - goto yy317; - } else { - if (yych <= 'a') { - if (yych <= '`') goto yy47; - goto yy316; - } else { - if (yych == 'y') goto yy317; - goto yy47; - } + } +yy168: + YYDEBUG(168, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy267; + if (yych == 's') goto yy267; + goto yy40; +yy169: + YYDEBUG(169, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy268; + if (yych == 'e') goto yy268; + goto yy40; +yy170: + YYDEBUG(170, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy270; + if (yych == 'r') goto yy270; + goto yy40; +yy171: + YYDEBUG(171, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy272; + if (yych == 'i') goto yy272; + goto yy40; +yy172: + YYDEBUG(172, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy273; + if (yych == 'r') goto yy273; + goto yy40; +yy173: + YYDEBUG(173, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy275; + if (yych == 'e') goto yy275; + goto yy40; +yy174: + YYDEBUG(174, yych); + yyaccept = 13; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '\\') { + if (yych <= '@') { + if (yych <= '/') goto yy175; + if (yych <= '9') goto yy174; + } else { + if (yych <= 'Z') goto yy174; + if (yych >= '\\') goto yy276; } -yy201: - YYDEBUG(201, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy319; - if (yych == 's') goto yy319; - goto yy47; -yy202: - YYDEBUG(202, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy320; - if (yych == 'e') goto yy320; - goto yy47; -yy203: - YYDEBUG(203, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy322; - if (yych == 'r') goto yy322; - goto yy47; -yy204: - YYDEBUG(204, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy324; - if (yych == 'i') goto yy324; - goto yy47; -yy205: - YYDEBUG(205, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy325; - if (yych == 'r') goto yy325; - goto yy47; -yy206: - YYDEBUG(206, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy327; - if (yych == 'e') goto yy327; - goto yy47; -yy207: - YYDEBUG(207, *YYCURSOR); - yyaccept = 13; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(208, *YYCURSOR); - if (yych <= '\\') { - if (yych <= '@') { - if (yych <= '/') goto yy209; - if (yych <= '9') goto yy207; - } else { - if (yych <= 'Z') goto yy207; - if (yych >= '\\') goto yy328; - } + } else { + if (yych <= '`') { + if (yych == '_') goto yy174; } else { - if (yych <= '`') { - if (yych == '_') goto yy207; - } else { - if (yych <= 'z') goto yy207; - if (yych >= 0x80) goto yy207; - } + if (yych <= 'z') goto yy174; + if (yych >= 0x80) goto yy174; } -yy209: - YYDEBUG(209, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy175: + YYDEBUG(175, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_STR(T_NAME_FULLY_QUALIFIED, 1); } -yy210: - YYDEBUG(210, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(211, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy176: + YYDEBUG(176, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_XOR_EQUAL); } -yy212: - YYDEBUG(212, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - switch (yych) { +yy177: + YYDEBUG(177, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + switch (yych) { case 'C': - case 'c': goto yy329; + case 'c': goto yy277; case 'D': - case 'd': goto yy330; + case 'd': goto yy278; case 'F': - case 'f': goto yy331; + case 'f': goto yy279; case 'H': - case 'h': goto yy332; + case 'h': goto yy280; case 'L': - case 'l': goto yy333; + case 'l': goto yy281; case 'M': - case 'm': goto yy334; + case 'm': goto yy282; case 'N': - case 'n': goto yy335; + case 'n': goto yy283; case 'T': - case 't': goto yy336; - default: goto yy47; - } -yy213: - YYDEBUG(213, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(214, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + case 't': goto yy284; + default: goto yy40; + } +yy178: + YYDEBUG(178, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_OR_EQUAL); } -yy215: - YYDEBUG(215, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(216, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy179: + YYDEBUG(179, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_BOOLEAN_OR); } -yy217: - YYDEBUG(217, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(218, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy180: + YYDEBUG(180, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_IS_NOT_IDENTICAL); } -yy219: - YYDEBUG(219, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '.') goto yy86; - goto yy85; -yy220: - YYDEBUG(220, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'R') goto yy337; - if (yych == 'r') goto yy337; - goto yy85; -yy221: - YYDEBUG(221, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'N') goto yy338; - if (yych == 'n') goto yy338; - goto yy85; -yy222: - YYDEBUG(222, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'O') goto yy339; - if (yych == 'o') goto yy339; - goto yy85; -yy223: - YYDEBUG(223, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'U') goto yy340; - if (yych == 'u') goto yy340; - goto yy85; -yy224: - YYDEBUG(224, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'O') goto yy341; - if (yych == 'o') goto yy341; - goto yy85; -yy225: - YYDEBUG(225, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'T') goto yy342; - if (yych == 't') goto yy342; - goto yy85; -yy226: - YYDEBUG(226, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'J') goto yy343; - if (yych == 'j') goto yy343; - goto yy85; -yy227: - YYDEBUG(227, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'A') goto yy344; - if (yych == 'a') goto yy344; - goto yy85; -yy228: - YYDEBUG(228, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'R') goto yy345; - if (yych == 'r') goto yy345; - goto yy85; -yy229: - YYDEBUG(229, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'S') goto yy346; - if (yych == 's') goto yy346; - goto yy85; -yy230: - YYDEBUG(230, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(231, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy181: + YYDEBUG(181, yych); + yych = *++YYCURSOR; + if (yych == '.') goto yy72; + goto yy71; +yy182: + YYDEBUG(182, yych); + yych = *++YYCURSOR; + if (yych == 'R') goto yy285; + if (yych == 'r') goto yy285; + goto yy71; +yy183: + YYDEBUG(183, yych); + yych = *++YYCURSOR; + if (yych == 'N') goto yy286; + if (yych == 'n') goto yy286; + goto yy71; +yy184: + YYDEBUG(184, yych); + yych = *++YYCURSOR; + if (yych == 'O') goto yy287; + if (yych == 'o') goto yy287; + goto yy71; +yy185: + YYDEBUG(185, yych); + yych = *++YYCURSOR; + if (yych == 'U') goto yy288; + if (yych == 'u') goto yy288; + goto yy71; +yy186: + YYDEBUG(186, yych); + yych = *++YYCURSOR; + if (yych == 'O') goto yy289; + if (yych == 'o') goto yy289; + goto yy71; +yy187: + YYDEBUG(187, yych); + yych = *++YYCURSOR; + if (yych == 'T') goto yy290; + if (yych == 't') goto yy290; + goto yy71; +yy188: + YYDEBUG(188, yych); + yych = *++YYCURSOR; + if (yych == 'J') goto yy291; + if (yych == 'j') goto yy291; + goto yy71; +yy189: + YYDEBUG(189, yych); + yych = *++YYCURSOR; + if (yych == 'A') goto yy292; + if (yych == 'a') goto yy292; + goto yy71; +yy190: + YYDEBUG(190, yych); + yych = *++YYCURSOR; + if (yych == 'R') goto yy293; + if (yych == 'r') goto yy293; + goto yy71; +yy191: + YYDEBUG(191, yych); + yych = *++YYCURSOR; + if (yych == 'S') goto yy294; + if (yych == 's') goto yy294; + goto yy71; +yy192: + YYDEBUG(192, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_POW_EQUAL); } -yy232: - YYDEBUG(232, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(233, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy193: + YYDEBUG(193, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_ELLIPSIS); } -yy234: - YYDEBUG(234, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yych <= '/') goto yy85; - if (yych <= '9') goto yy119; - goto yy85; -yy235: - YYDEBUG(235, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '\f') { - if (yych <= 0x08) goto yy85; - if (yych <= '\n') goto yy347; - goto yy85; - } else { - if (yych <= '\r') goto yy347; - if (yych == ' ') goto yy347; - goto yy85; - } -yy236: - YYDEBUG(236, *YYCURSOR); - yyaccept = 14; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(237, *YYCURSOR); - if (yybm[0+yych] & 32) { - goto yy236; - } - if (yych == '_') goto yy130; -yy238: - YYDEBUG(238, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy194: + YYDEBUG(194, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '/') goto yy71; + if (yych <= '9') goto yy95; + goto yy71; +yy195: + YYDEBUG(195, yych); + yych = *++YYCURSOR; + if (yych <= '\f') { + if (yych <= 0x08) goto yy71; + if (yych <= '\n') goto yy295; + goto yy71; + } else { + if (yych <= '\r') goto yy295; + if (yych == ' ') goto yy295; + goto yy71; + } +yy196: + YYDEBUG(196, yych); + yyaccept = 14; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_IN_SCRIPTING[0+yych] & 32) goto yy196; + if (yych == '_') goto yy104; +yy197: + YYDEBUG(197, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* The +/- 2 skips "0b" */ size_t len = yyleng - 2; char *end, *bin = yytext + 2; @@ -4107,39 +4166,35 @@ RETURN_TOKEN_WITH_VAL(T_DNUMBER); } } -yy239: - YYDEBUG(239, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yych <= '/') goto yy85; - if (yych >= ':') goto yy85; -yy240: - YYDEBUG(240, *YYCURSOR); - yyaccept = 5; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(241, *YYCURSOR); - if (yych <= '/') goto yy121; - if (yych <= '9') goto yy240; - if (yych == '_') goto yy239; - goto yy121; -yy242: - YYDEBUG(242, *YYCURSOR); - yyaccept = 15; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(243, *YYCURSOR); - if (yybm[0+yych] & 64) { - goto yy242; - } - if (yych == '_') goto yy132; -yy244: - YYDEBUG(244, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy198: + YYDEBUG(198, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '/') goto yy71; + if (yych >= ':') goto yy71; +yy199: + YYDEBUG(199, yych); + yyaccept = 5; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '/') goto yy97; + if (yych <= '9') goto yy199; + if (yych == '_') goto yy198; + goto yy97; +yy200: + YYDEBUG(200, yych); + yyaccept = 15; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_IN_SCRIPTING[0+yych] & 64) goto yy200; + if (yych == '_') goto yy106; +yy201: + YYDEBUG(201, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* The +/- 2 skips "0o" */ size_t len = yyleng - 2; char *end, *octal = yytext + 2; @@ -4188,21 +4243,18 @@ } RETURN_TOKEN_WITH_VAL(T_DNUMBER); } -yy245: - YYDEBUG(245, *YYCURSOR); - yyaccept = 16; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(246, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy245; - } - if (yych == '_') goto yy133; -yy247: - YYDEBUG(247, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy202: + YYDEBUG(202, yych); + yyaccept = 16; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_IN_SCRIPTING[0+yych] & 128) goto yy202; + if (yych == '_') goto yy107; +yy203: + YYDEBUG(203, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* The +/- 2 skips "0x" */ size_t len = yyleng - 2; char *end, *hex = yytext + 2; @@ -4243,1438 +4295,1399 @@ RETURN_TOKEN_WITH_VAL(T_DNUMBER); } } -yy248: - YYDEBUG(248, *YYCURSOR); - ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; - YYDEBUG(249, *YYCURSOR); - if (yych <= '\'') { - if (yych <= ' ') { - if (yych == '\t') goto yy248; - if (yych <= 0x1F) goto yy85; - goto yy248; - } else { - if (yych == '"') goto yy349; - if (yych <= '&') goto yy85; - goto yy350; - } - } else { - if (yych <= '_') { - if (yych <= '@') goto yy85; - if (yych <= 'Z') goto yy351; - if (yych <= '^') goto yy85; - goto yy351; - } else { - if (yych <= '`') goto yy85; - if (yych <= 'z') goto yy351; - if (yych <= 0x7F) goto yy85; - goto yy351; - } +yy204: + YYDEBUG(204, yych); + ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; + if (yych <= '\'') { + if (yych <= ' ') { + if (yych == '\t') goto yy204; + if (yych <= 0x1F) goto yy71; + goto yy204; + } else { + if (yych == '"') goto yy296; + if (yych <= '&') goto yy71; + goto yy297; } -yy250: - YYDEBUG(250, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(251, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } else { + if (yych <= '_') { + if (yych <= '@') goto yy71; + if (yych <= 'Z') goto yy298; + if (yych <= '^') goto yy71; + goto yy298; + } else { + if (yych <= '`') goto yy71; + if (yych <= 'z') goto yy298; + if (yych <= 0x7F) goto yy71; + goto yy298; + } + } +yy205: + YYDEBUG(205, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_SL_EQUAL); } -yy252: - YYDEBUG(252, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(253, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy206: + YYDEBUG(206, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_SPACESHIP); } -yy254: - YYDEBUG(254, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(255, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy207: + YYDEBUG(207, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_IS_IDENTICAL); } -yy256: - YYDEBUG(256, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(257, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy208: + YYDEBUG(208, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_SR_EQUAL); } -yy258: - YYDEBUG(258, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(259, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy209: + YYDEBUG(209, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yy_push_state(ST_LOOKING_FOR_PROPERTY); RETURN_TOKEN(T_NULLSAFE_OBJECT_OPERATOR); } +yy210: + YYDEBUG(210, yych); + ++YYCURSOR; + goto yy120; +yy211: + YYDEBUG(211, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy210; + goto yy120; +yy212: + YYDEBUG(212, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN(T_COALESCE_EQUAL); +} +yy213: + YYDEBUG(213, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy299; + if (yych == 't') goto yy299; + goto yy40; +yy214: + YYDEBUG(214, yych); + yyaccept = 17; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy215: + YYDEBUG(215, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_LOGICAL_AND); +} +yy216: + YYDEBUG(216, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy300; + if (yych == 'a') goto yy300; + goto yy40; +yy217: + YYDEBUG(217, yych); + yyaccept = 18; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '\\') { + if (yych <= '@') { + if (yych <= '/') goto yy218; + if (yych <= '9') goto yy217; + } else { + if (yych <= 'Z') goto yy217; + if (yych >= '\\') goto yy127; + } + } else { + if (yych <= '`') { + if (yych == '_') goto yy217; + } else { + if (yych <= 'z') goto yy217; + if (yych >= 0x80) goto yy217; + } + } +yy218: + YYDEBUG(218, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_STR(T_NAME_QUALIFIED, 0); +} +yy219: + YYDEBUG(219, yych); + yych = *++YYCURSOR; + if (yych == '<') goto yy204; + goto yy71; +yy220: + YYDEBUG(220, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy301; + if (yych == 'a') goto yy301; + goto yy40; +yy221: + YYDEBUG(221, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy302; + if (yych == 'l') goto yy302; + goto yy40; +yy222: + YYDEBUG(222, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy303; + if (yych == 'e') goto yy303; + goto yy40; +yy223: + YYDEBUG(223, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy305; + if (yych == 'c') goto yy305; + goto yy40; +yy224: + YYDEBUG(224, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy306; + if (yych == 's') goto yy306; + goto yy40; +yy225: + YYDEBUG(225, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy307; + if (yych == 'n') goto yy307; + goto yy40; +yy226: + YYDEBUG(226, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'T') { + if (yych <= 'R') goto yy40; + if (yych <= 'S') goto yy308; + goto yy309; + } else { + if (yych <= 'r') goto yy40; + if (yych <= 's') goto yy308; + if (yych <= 't') goto yy309; + goto yy40; + } +yy227: + YYDEBUG(227, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy310; + if (yych == 'l') goto yy310; + goto yy40; +yy228: + YYDEBUG(228, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy311; + if (yych == 'a') goto yy311; + goto yy40; +yy229: + YYDEBUG(229, yych); + yyaccept = 19; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy230: + YYDEBUG(230, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_EXIT); +} +yy231: + YYDEBUG(231, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy312; + if (yych == 'o') goto yy312; + goto yy40; +yy232: + YYDEBUG(232, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy314; + if (yych == 'e') goto yy314; + goto yy40; +yy233: + YYDEBUG(233, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy316; + if (yych == 't') goto yy316; + goto yy40; +yy234: + YYDEBUG(234, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + switch (yych) { + case 'D': + case 'd': goto yy317; + case 'F': + case 'f': goto yy318; + case 'I': + case 'i': goto yy319; + case 'S': + case 's': goto yy320; + case 'W': + case 'w': goto yy321; + default: goto yy40; + } +yy235: + YYDEBUG(235, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'M') goto yy322; + if (yych == 'm') goto yy322; + goto yy40; +yy236: + YYDEBUG(236, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy323; + if (yych == 'l') goto yy323; + goto yy40; +yy237: + YYDEBUG(237, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy325; + if (yych == 't') goto yy325; + goto yy40; +yy238: + YYDEBUG(238, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy327; + if (yych == 'e') goto yy327; + goto yy40; +yy239: + YYDEBUG(239, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy328; + if (yych == 'a') goto yy328; + goto yy40; +yy240: + YYDEBUG(240, yych); + yyaccept = 20; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '\\') { + if (yych <= 'D') { + if (yych <= '/') goto yy241; + if (yych <= '9') goto yy39; + if (yych >= 'A') goto yy39; + } else { + if (yych <= 'E') goto yy329; + if (yych <= 'Z') goto yy39; + if (yych >= '\\') goto yy127; + } + } else { + if (yych <= 'd') { + if (yych == '_') goto yy39; + if (yych >= 'a') goto yy39; + } else { + if (yych <= 'e') goto yy329; + if (yych <= 'z') goto yy39; + if (yych >= 0x80) goto yy39; + } + } +yy241: + YYDEBUG(241, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_FOR); +} +yy242: + YYDEBUG(242, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy330; + if (yych == 'c') goto yy330; + goto yy40; +yy243: + YYDEBUG(243, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'B') goto yy331; + if (yych == 'b') goto yy331; + goto yy40; +yy244: + YYDEBUG(244, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy332; + if (yych == 'o') goto yy332; + goto yy40; +yy245: + YYDEBUG(245, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy334; + if (yych == 'l') goto yy334; + goto yy40; +yy246: + YYDEBUG(246, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy335; + if (yych == 'l') goto yy335; + goto yy40; +yy247: + YYDEBUG(247, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy336; + if (yych == 't') goto yy336; + goto yy40; +yy248: + YYDEBUG(248, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy337; + if (yych == 'e') goto yy337; + goto yy40; +yy249: + YYDEBUG(249, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy338; + if (yych == 'e') goto yy338; + goto yy40; +yy250: + YYDEBUG(250, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy339; + if (yych == 't') goto yy339; + goto yy40; +yy251: + YYDEBUG(251, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy341; + if (yych == 'c') goto yy341; + goto yy40; +yy252: + YYDEBUG(252, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy342; + if (yych == 'e') goto yy342; + goto yy40; +yy253: + YYDEBUG(253, yych); + yyaccept = 21; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy254: + YYDEBUG(254, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_NEW); +} +yy255: + YYDEBUG(255, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'V') { + if (yych == 'N') goto yy343; + if (yych <= 'U') goto yy40; + goto yy344; + } else { + if (yych <= 'n') { + if (yych <= 'm') goto yy40; + goto yy343; + } else { + if (yych == 'v') goto yy344; + goto yy40; + } + } +yy256: + YYDEBUG(256, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy345; + if (yych == 't') goto yy345; + goto yy40; +yy257: + YYDEBUG(257, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy346; + if (yych == 'l') goto yy346; + goto yy40; +yy258: + YYDEBUG(258, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'D') goto yy347; + if (yych == 'd') goto yy347; + goto yy40; +yy259: + YYDEBUG(259, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'U') goto yy348; + if (yych == 'u') goto yy348; + goto yy40; yy260: - YYDEBUG(260, *YYCURSOR); - ++YYCURSOR; - goto yy152; + YYDEBUG(260, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'U') goto yy349; + if (yych == 'u') goto yy349; + goto yy40; yy261: - YYDEBUG(261, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy260; - goto yy152; + YYDEBUG(261, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy350; + if (yych == 't') goto yy350; + goto yy40; yy262: - YYDEBUG(262, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(263, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN(T_COALESCE_EQUAL); -} + YYDEBUG(262, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy351; + if (yych == 't') goto yy351; + goto yy40; +yy263: + YYDEBUG(263, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy352; + if (yych == 'o') goto yy352; + goto yy40; yy264: - YYDEBUG(264, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy353; - if (yych == 't') goto yy353; - goto yy47; + YYDEBUG(264, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy353; + if (yych == 'i') goto yy353; + goto yy40; yy265: - YYDEBUG(265, *YYCURSOR); - yyaccept = 17; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(265, yych); + yyaccept = 22; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy266: - YYDEBUG(266, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_LOGICAL_AND); + YYDEBUG(266, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_TRY); } yy267: - YYDEBUG(267, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy354; - if (yych == 'a') goto yy354; - goto yy47; + YYDEBUG(267, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy354; + if (yych == 'e') goto yy354; + goto yy40; yy268: - YYDEBUG(268, *YYCURSOR); - yyaccept = 18; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(269, *YYCURSOR); - if (yych <= '\\') { - if (yych <= '@') { - if (yych <= '/') goto yy270; - if (yych <= '9') goto yy268; - } else { - if (yych <= 'Z') goto yy268; - if (yych >= '\\') goto yy160; - } - } else { - if (yych <= '`') { - if (yych == '_') goto yy268; - } else { - if (yych <= 'z') goto yy268; - if (yych >= 0x80) goto yy268; - } - } -yy270: - YYDEBUG(270, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_STR(T_NAME_QUALIFIED, 0); + YYDEBUG(268, yych); + yyaccept = 23; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy269: + YYDEBUG(269, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_USE); } +yy270: + YYDEBUG(270, yych); + yyaccept = 24; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy271: - YYDEBUG(271, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '<') goto yy248; - goto yy85; + YYDEBUG(271, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_VAR); +} yy272: - YYDEBUG(272, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy355; - if (yych == 'a') goto yy355; - goto yy47; + YYDEBUG(272, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy355; + if (yych == 'l') goto yy355; + goto yy40; yy273: - YYDEBUG(273, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy356; - if (yych == 'l') goto yy356; - goto yy47; + YYDEBUG(273, yych); + yyaccept = 25; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy274: - YYDEBUG(274, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy357; - if (yych == 'e') goto yy357; - goto yy47; + YYDEBUG(274, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_LOGICAL_XOR); +} yy275: - YYDEBUG(275, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy359; - if (yych == 'c') goto yy359; - goto yy47; + YYDEBUG(275, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy356; + if (yych == 'l') goto yy356; + goto yy40; yy276: - YYDEBUG(276, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy360; - if (yych == 's') goto yy360; - goto yy47; + YYDEBUG(276, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy71; + if (yych <= 'Z') goto yy174; + if (yych <= '^') goto yy71; + goto yy174; + } else { + if (yych <= '`') goto yy71; + if (yych <= 'z') goto yy174; + if (yych <= 0x7F) goto yy71; + goto yy174; + } yy277: - YYDEBUG(277, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy361; - if (yych == 'n') goto yy361; - goto yy47; + YYDEBUG(277, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy357; + if (yych == 'l') goto yy357; + goto yy40; yy278: - YYDEBUG(278, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'T') { - if (yych <= 'R') goto yy47; - if (yych <= 'S') goto yy362; - goto yy363; - } else { - if (yych <= 'r') goto yy47; - if (yych <= 's') goto yy362; - if (yych <= 't') goto yy363; - goto yy47; - } + YYDEBUG(278, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy358; + if (yych == 'i') goto yy358; + goto yy40; yy279: - YYDEBUG(279, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy364; - if (yych == 'l') goto yy364; - goto yy47; + YYDEBUG(279, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'U') { + if (yych == 'I') goto yy359; + if (yych <= 'T') goto yy40; + goto yy360; + } else { + if (yych <= 'i') { + if (yych <= 'h') goto yy40; + goto yy359; + } else { + if (yych == 'u') goto yy360; + goto yy40; + } + } yy280: - YYDEBUG(280, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy365; - if (yych == 'a') goto yy365; - goto yy47; + YYDEBUG(280, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy361; + if (yych == 'a') goto yy361; + goto yy40; yy281: - YYDEBUG(281, *YYCURSOR); - yyaccept = 19; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(281, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy362; + if (yych == 'i') goto yy362; + goto yy40; yy282: - YYDEBUG(282, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_EXIT); -} + YYDEBUG(282, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy363; + if (yych == 'e') goto yy363; + goto yy40; yy283: - YYDEBUG(283, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy366; - if (yych == 'o') goto yy366; - goto yy47; + YYDEBUG(283, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy364; + if (yych == 'a') goto yy364; + goto yy40; yy284: - YYDEBUG(284, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy368; - if (yych == 'e') goto yy368; - goto yy47; + YYDEBUG(284, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy365; + if (yych == 'r') goto yy365; + goto yy40; yy285: - YYDEBUG(285, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy370; - if (yych == 't') goto yy370; - goto yy47; + YYDEBUG(285, yych); + yych = *++YYCURSOR; + if (yych == 'A') goto yy366; + if (yych == 'a') goto yy366; + goto yy71; yy286: - YYDEBUG(286, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - switch (yych) { - case 'D': - case 'd': goto yy371; - case 'F': - case 'f': goto yy372; - case 'I': - case 'i': goto yy373; - case 'S': - case 's': goto yy374; - case 'W': - case 'w': goto yy375; - default: goto yy47; - } + YYDEBUG(286, yych); + yych = *++YYCURSOR; + if (yych == 'A') goto yy367; + if (yych == 'a') goto yy367; + goto yy71; yy287: - YYDEBUG(287, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'M') goto yy376; - if (yych == 'm') goto yy376; - goto yy47; + YYDEBUG(287, yych); + yych = *++YYCURSOR; + if (yych == 'L') goto yy368; + if (yych == 'l') goto yy368; + goto yy71; yy288: - YYDEBUG(288, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy377; - if (yych == 'l') goto yy377; - goto yy47; + YYDEBUG(288, yych); + yych = *++YYCURSOR; + if (yych == 'B') goto yy369; + if (yych == 'b') goto yy369; + goto yy71; yy289: - YYDEBUG(289, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy379; - if (yych == 't') goto yy379; - goto yy47; + YYDEBUG(289, yych); + yych = *++YYCURSOR; + if (yych == 'A') goto yy370; + if (yych == 'a') goto yy370; + goto yy71; yy290: - YYDEBUG(290, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy381; - if (yych == 'e') goto yy381; - goto yy47; + YYDEBUG(290, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy373; + if (yych == 'e') goto yy373; + goto yy372; yy291: - YYDEBUG(291, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy382; - if (yych == 'a') goto yy382; - goto yy47; + YYDEBUG(291, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy374; + if (yych == 'e') goto yy374; + goto yy71; yy292: - YYDEBUG(292, *YYCURSOR); - yyaccept = 20; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '\\') { - if (yych <= 'D') { - if (yych <= '/') goto yy293; - if (yych <= '9') goto yy46; - if (yych >= 'A') goto yy46; - } else { - if (yych <= 'E') goto yy383; - if (yych <= 'Z') goto yy46; - if (yych >= '\\') goto yy160; - } - } else { - if (yych <= 'd') { - if (yych == '_') goto yy46; - if (yych >= 'a') goto yy46; - } else { - if (yych <= 'e') goto yy383; - if (yych <= 'z') goto yy46; - if (yych >= 0x80) goto yy46; - } - } + YYDEBUG(292, yych); + yych = *++YYCURSOR; + if (yych == 'L') goto yy375; + if (yych == 'l') goto yy375; + goto yy71; yy293: - YYDEBUG(293, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_FOR); -} + YYDEBUG(293, yych); + yych = *++YYCURSOR; + if (yych == 'I') goto yy376; + if (yych == 'i') goto yy376; + goto yy71; yy294: - YYDEBUG(294, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy384; - if (yych == 'c') goto yy384; - goto yy47; + YYDEBUG(294, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy377; + if (yych == 'e') goto yy377; + goto yy71; yy295: - YYDEBUG(295, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'B') goto yy385; - if (yych == 'b') goto yy385; - goto yy47; + YYDEBUG(295, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '\f') { + if (yych <= 0x08) goto yy100; + if (yych <= '\n') goto yy295; + goto yy100; + } else { + if (yych <= '\r') goto yy295; + if (yych == ' ') goto yy295; + goto yy100; + } yy296: - YYDEBUG(296, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy386; - if (yych == 'o') goto yy386; - goto yy47; + YYDEBUG(296, yych); + yych = *++YYCURSOR; + if (yych == '"') goto yy71; + if (yych <= '/') goto yy379; + if (yych <= '9') goto yy71; + goto yy379; yy297: - YYDEBUG(297, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy388; - if (yych == 'l') goto yy388; - goto yy47; + YYDEBUG(297, yych); + yych = *++YYCURSOR; + if (yych == '\'') goto yy71; + if (yych <= '/') goto yy381; + if (yych <= '9') goto yy71; + goto yy381; yy298: - YYDEBUG(298, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy389; - if (yych == 'l') goto yy389; - goto yy47; + YYDEBUG(298, yych); + ++YYCURSOR; + YYFILL(2); + yych = *YYCURSOR; + if (yych <= '@') { + if (yych <= '\f') { + if (yych == '\n') goto yy382; + goto yy71; + } else { + if (yych <= '\r') goto yy384; + if (yych <= '/') goto yy71; + if (yych <= '9') goto yy298; + goto yy71; + } + } else { + if (yych <= '_') { + if (yych <= 'Z') goto yy298; + if (yych <= '^') goto yy71; + goto yy298; + } else { + if (yych <= '`') goto yy71; + if (yych <= 'z') goto yy298; + if (yych <= 0x7F) goto yy71; + goto yy298; + } + } yy299: - YYDEBUG(299, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy390; - if (yych == 't') goto yy390; - goto yy47; + YYDEBUG(299, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy385; + if (yych == 'r') goto yy385; + goto yy40; yy300: - YYDEBUG(300, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy391; - if (yych == 'e') goto yy391; - goto yy47; + YYDEBUG(300, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'Y') goto yy386; + if (yych == 'y') goto yy386; + goto yy40; yy301: - YYDEBUG(301, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy392; - if (yych == 'e') goto yy392; - goto yy47; + YYDEBUG(301, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'K') goto yy388; + if (yych == 'k') goto yy388; + goto yy40; yy302: - YYDEBUG(302, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy393; - if (yych == 't') goto yy393; - goto yy47; + YYDEBUG(302, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy390; + if (yych == 'a') goto yy390; + goto yy40; yy303: - YYDEBUG(303, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy395; - if (yych == 'c') goto yy395; - goto yy47; + YYDEBUG(303, yych); + yyaccept = 26; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy304: - YYDEBUG(304, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy396; - if (yych == 'e') goto yy396; - goto yy47; + YYDEBUG(304, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_CASE); +} yy305: - YYDEBUG(305, *YYCURSOR); - yyaccept = 21; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(305, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'H') goto yy391; + if (yych == 'h') goto yy391; + goto yy40; yy306: - YYDEBUG(306, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_NEW); -} + YYDEBUG(306, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy393; + if (yych == 's') goto yy393; + goto yy40; yy307: - YYDEBUG(307, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'V') { - if (yych == 'N') goto yy397; - if (yych <= 'U') goto yy47; - goto yy398; - } else { - if (yych <= 'n') { - if (yych <= 'm') goto yy47; - goto yy397; - } else { - if (yych == 'v') goto yy398; - goto yy47; - } - } + YYDEBUG(307, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy395; + if (yych == 'e') goto yy395; + goto yy40; yy308: - YYDEBUG(308, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy399; - if (yych == 't') goto yy399; - goto yy47; + YYDEBUG(308, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy397; + if (yych == 't') goto yy397; + goto yy40; yy309: - YYDEBUG(309, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy400; - if (yych == 'l') goto yy400; - goto yy47; + YYDEBUG(309, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy399; + if (yych == 'i') goto yy399; + goto yy40; yy310: - YYDEBUG(310, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'D') goto yy401; - if (yych == 'd') goto yy401; - goto yy47; + YYDEBUG(310, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy400; + if (yych == 'a') goto yy400; + goto yy40; yy311: - YYDEBUG(311, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'U') goto yy402; - if (yych == 'u') goto yy402; - goto yy47; + YYDEBUG(311, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'U') goto yy401; + if (yych == 'u') goto yy401; + goto yy40; yy312: - YYDEBUG(312, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'U') goto yy403; - if (yych == 'u') goto yy403; - goto yy47; + YYDEBUG(312, yych); + yyaccept = 27; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy313: - YYDEBUG(313, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy404; - if (yych == 't') goto yy404; - goto yy47; + YYDEBUG(313, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ECHO); +} yy314: - YYDEBUG(314, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy405; - if (yych == 't') goto yy405; - goto yy47; + YYDEBUG(314, yych); + yyaccept = 28; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '\\') { + if (yych <= 'H') { + if (yych <= '/') goto yy315; + if (yych <= '9') goto yy39; + if (yych >= 'A') goto yy39; + } else { + if (yych <= 'I') goto yy402; + if (yych <= 'Z') goto yy39; + if (yych >= '\\') goto yy127; + } + } else { + if (yych <= 'h') { + if (yych == '_') goto yy39; + if (yych >= 'a') goto yy39; + } else { + if (yych <= 'i') goto yy402; + if (yych <= 'z') goto yy39; + if (yych >= 0x80) goto yy39; + } + } yy315: - YYDEBUG(315, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy406; - if (yych == 'o') goto yy406; - goto yy47; + YYDEBUG(315, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ELSE); +} yy316: - YYDEBUG(316, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy407; - if (yych == 'i') goto yy407; - goto yy47; + YYDEBUG(316, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'Y') goto yy403; + if (yych == 'y') goto yy403; + goto yy40; yy317: - YYDEBUG(317, *YYCURSOR); - yyaccept = 22; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(317, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy405; + if (yych == 'e') goto yy405; + goto yy40; yy318: - YYDEBUG(318, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_TRY); -} + YYDEBUG(318, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy406; + if (yych == 'o') goto yy406; + goto yy40; yy319: - YYDEBUG(319, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy408; - if (yych == 'e') goto yy408; - goto yy47; + YYDEBUG(319, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'F') goto yy407; + if (yych == 'f') goto yy407; + goto yy40; yy320: - YYDEBUG(320, *YYCURSOR); - yyaccept = 23; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(320, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'W') goto yy409; + if (yych == 'w') goto yy409; + goto yy40; yy321: - YYDEBUG(321, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_USE); -} + YYDEBUG(321, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'H') goto yy410; + if (yych == 'h') goto yy410; + goto yy40; yy322: - YYDEBUG(322, *YYCURSOR); - yyaccept = 24; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(322, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '\f') { + if (yych <= 0x08) goto yy40; + if (yych <= '\n') goto yy411; + goto yy40; + } else { + if (yych <= '\r') goto yy411; + if (yych == ' ') goto yy411; + goto yy40; + } yy323: - YYDEBUG(323, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_VAR); -} + YYDEBUG(323, yych); + yyaccept = 29; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy324: - YYDEBUG(324, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy409; - if (yych == 'l') goto yy409; - goto yy47; + YYDEBUG(324, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_EVAL); +} yy325: - YYDEBUG(325, *YYCURSOR); - yyaccept = 25; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(325, yych); + yyaccept = 30; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy326: - YYDEBUG(326, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_LOGICAL_XOR); + YYDEBUG(326, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_EXIT); } yy327: - YYDEBUG(327, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy410; - if (yych == 'l') goto yy410; - goto yy47; + YYDEBUG(327, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy412; + if (yych == 'n') goto yy412; + goto yy40; yy328: - YYDEBUG(328, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy85; - if (yych <= 'Z') goto yy207; - if (yych <= '^') goto yy85; - goto yy207; - } else { - if (yych <= '`') goto yy85; - if (yych <= 'z') goto yy207; - if (yych <= 0x7F) goto yy85; - goto yy207; - } + YYDEBUG(328, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy413; + if (yych == 'l') goto yy413; + goto yy40; yy329: - YYDEBUG(329, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy411; - if (yych == 'l') goto yy411; - goto yy47; + YYDEBUG(329, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy415; + if (yych == 'a') goto yy415; + goto yy40; yy330: - YYDEBUG(330, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy412; - if (yych == 'i') goto yy412; - goto yy47; + YYDEBUG(330, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy416; + if (yych == 't') goto yy416; + goto yy40; yy331: - YYDEBUG(331, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'U') { - if (yych == 'I') goto yy413; - if (yych <= 'T') goto yy47; - goto yy414; - } else { - if (yych <= 'i') { - if (yych <= 'h') goto yy47; - goto yy413; - } else { - if (yych == 'u') goto yy414; - goto yy47; - } - } + YYDEBUG(331, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy417; + if (yych == 'a') goto yy417; + goto yy40; yy332: - YYDEBUG(332, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy415; - if (yych == 'a') goto yy415; - goto yy47; + YYDEBUG(332, yych); + yyaccept = 31; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy333: - YYDEBUG(333, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy416; - if (yych == 'i') goto yy416; - goto yy47; + YYDEBUG(333, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_GOTO); +} yy334: - YYDEBUG(334, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy417; - if (yych == 'e') goto yy417; - goto yy47; + YYDEBUG(334, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy418; + if (yych == 'e') goto yy418; + goto yy40; yy335: - YYDEBUG(335, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy418; - if (yych == 'a') goto yy418; - goto yy47; + YYDEBUG(335, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'U') goto yy419; + if (yych == 'u') goto yy419; + goto yy40; yy336: - YYDEBUG(336, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy419; - if (yych == 'r') goto yy419; - goto yy47; -yy337: - YYDEBUG(337, *YYCURSOR); - yych = *++YYCURSOR; + YYDEBUG(336, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'E') { if (yych == 'A') goto yy420; - if (yych == 'a') goto yy420; - goto yy85; + if (yych <= 'D') goto yy40; + goto yy421; + } else { + if (yych <= 'a') { + if (yych <= '`') goto yy40; + goto yy420; + } else { + if (yych == 'e') goto yy421; + goto yy40; + } + } +yy337: + YYDEBUG(337, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy422; + if (yych == 'r') goto yy422; + goto yy40; yy338: - YYDEBUG(338, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'A') goto yy421; - if (yych == 'a') goto yy421; - goto yy85; + YYDEBUG(338, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy423; + if (yych == 't') goto yy423; + goto yy40; yy339: - YYDEBUG(339, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'L') goto yy422; - if (yych == 'l') goto yy422; - goto yy85; + YYDEBUG(339, yych); + yyaccept = 32; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy340: - YYDEBUG(340, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'B') goto yy423; - if (yych == 'b') goto yy423; - goto yy85; + YYDEBUG(340, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_LIST); +} yy341: - YYDEBUG(341, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'A') goto yy424; - if (yych == 'a') goto yy424; - goto yy85; + YYDEBUG(341, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'H') goto yy425; + if (yych == 'h') goto yy425; + goto yy40; yy342: - YYDEBUG(342, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy429; - if (yych == 'e') goto yy429; - goto yy426; + YYDEBUG(342, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy427; + if (yych == 's') goto yy427; + goto yy40; yy343: - YYDEBUG(343, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy430; - if (yych == 'e') goto yy430; - goto yy85; + YYDEBUG(343, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy428; + if (yych == 't') goto yy428; + goto yy40; yy344: - YYDEBUG(344, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'L') goto yy431; - if (yych == 'l') goto yy431; - goto yy85; + YYDEBUG(344, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy430; + if (yych == 'a') goto yy430; + goto yy40; yy345: - YYDEBUG(345, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'I') goto yy433; - if (yych == 'i') goto yy433; - goto yy85; + YYDEBUG(345, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy431; + if (yych == 'e') goto yy431; + goto yy40; yy346: - YYDEBUG(346, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy434; - if (yych == 'e') goto yy434; - goto yy85; + YYDEBUG(346, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy432; + if (yych == 'i') goto yy432; + goto yy40; yy347: - YYDEBUG(347, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(348, *YYCURSOR); - if (yych <= '\f') { - if (yych <= 0x08) goto yy125; - if (yych <= '\n') goto yy347; - goto yy125; - } else { - if (yych <= '\r') goto yy347; - if (yych == ' ') goto yy347; - goto yy125; - } + YYDEBUG(347, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy433; + if (yych == 'o') goto yy433; + goto yy40; +yy348: + YYDEBUG(348, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy434; + if (yych == 'i') goto yy434; + goto yy40; yy349: - YYDEBUG(349, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '"') goto yy85; - if (yych <= '/') goto yy436; - if (yych <= '9') goto yy85; - goto yy436; + YYDEBUG(349, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy435; + if (yych == 'r') goto yy435; + goto yy40; yy350: - YYDEBUG(350, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\'') goto yy85; - if (yych <= '/') goto yy438; - if (yych <= '9') goto yy85; - goto yy438; + YYDEBUG(350, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy436; + if (yych == 'i') goto yy436; + goto yy40; yy351: - YYDEBUG(351, *YYCURSOR); - ++YYCURSOR; - YYFILL(2); - yych = *YYCURSOR; - YYDEBUG(352, *YYCURSOR); - if (yych <= '@') { - if (yych <= '\f') { - if (yych == '\n') goto yy439; - goto yy85; - } else { - if (yych <= '\r') goto yy441; - if (yych <= '/') goto yy85; - if (yych <= '9') goto yy351; - goto yy85; - } - } else { - if (yych <= '_') { - if (yych <= 'Z') goto yy351; - if (yych <= '^') goto yy85; - goto yy351; - } else { - if (yych <= '`') goto yy85; - if (yych <= 'z') goto yy351; - if (yych <= 0x7F) goto yy85; - goto yy351; - } - } + YYDEBUG(351, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy437; + if (yych == 'c') goto yy437; + goto yy40; +yy352: + YYDEBUG(352, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'W') goto yy438; + if (yych == 'w') goto yy438; + goto yy40; yy353: - YYDEBUG(353, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy442; - if (yych == 'r') goto yy442; - goto yy47; + YYDEBUG(353, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy440; + if (yych == 't') goto yy440; + goto yy40; yy354: - YYDEBUG(354, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'Y') goto yy443; - if (yych == 'y') goto yy443; - goto yy47; + YYDEBUG(354, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy442; + if (yych == 't') goto yy442; + goto yy40; yy355: - YYDEBUG(355, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'K') goto yy445; - if (yych == 'k') goto yy445; - goto yy47; + YYDEBUG(355, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy444; + if (yych == 'e') goto yy444; + goto yy40; yy356: - YYDEBUG(356, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy447; - if (yych == 'a') goto yy447; - goto yy47; + YYDEBUG(356, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'D') goto yy446; + if (yych == 'd') goto yy446; + goto yy40; yy357: - YYDEBUG(357, *YYCURSOR); - yyaccept = 26; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(357, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy448; + if (yych == 'a') goto yy448; + goto yy40; yy358: - YYDEBUG(358, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_CASE); -} + YYDEBUG(358, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy449; + if (yych == 'r') goto yy449; + goto yy40; yy359: - YYDEBUG(359, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'H') goto yy448; - if (yych == 'h') goto yy448; - goto yy47; + YYDEBUG(359, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy450; + if (yych == 'l') goto yy450; + goto yy40; yy360: - YYDEBUG(360, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy450; - if (yych == 's') goto yy450; - goto yy47; + YYDEBUG(360, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy451; + if (yych == 'n') goto yy451; + goto yy40; yy361: - YYDEBUG(361, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy452; - if (yych == 'e') goto yy452; - goto yy47; + YYDEBUG(361, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy452; + if (yych == 'l') goto yy452; + goto yy40; yy362: - YYDEBUG(362, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy454; - if (yych == 't') goto yy454; - goto yy47; + YYDEBUG(362, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy453; + if (yych == 'n') goto yy453; + goto yy40; yy363: - YYDEBUG(363, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy456; - if (yych == 'i') goto yy456; - goto yy47; + YYDEBUG(363, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy454; + if (yych == 't') goto yy454; + goto yy40; yy364: - YYDEBUG(364, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy457; - if (yych == 'a') goto yy457; - goto yy47; + YYDEBUG(364, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'M') goto yy455; + if (yych == 'm') goto yy455; + goto yy40; yy365: - YYDEBUG(365, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'U') goto yy458; - if (yych == 'u') goto yy458; - goto yy47; + YYDEBUG(365, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy456; + if (yych == 'a') goto yy456; + goto yy40; yy366: - YYDEBUG(366, *YYCURSOR); - yyaccept = 27; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(366, yych); + yych = *++YYCURSOR; + if (yych == 'Y') goto yy457; + if (yych == 'y') goto yy457; + goto yy71; yy367: - YYDEBUG(367, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ECHO); -} + YYDEBUG(367, yych); + yych = *++YYCURSOR; + if (yych == 'R') goto yy458; + if (yych == 'r') goto yy458; + goto yy71; yy368: - YYDEBUG(368, *YYCURSOR); - yyaccept = 28; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '\\') { - if (yych <= 'H') { - if (yych <= '/') goto yy369; - if (yych <= '9') goto yy46; - if (yych >= 'A') goto yy46; - } else { - if (yych <= 'I') goto yy459; - if (yych <= 'Z') goto yy46; - if (yych >= '\\') goto yy160; - } - } else { - if (yych <= 'h') { - if (yych == '_') goto yy46; - if (yych >= 'a') goto yy46; - } else { - if (yych <= 'i') goto yy459; - if (yych <= 'z') goto yy46; - if (yych >= 0x80) goto yy46; - } - } + YYDEBUG(368, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy461; + if (yych == 'e') goto yy461; + goto yy460; yy369: - YYDEBUG(369, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ELSE); -} + YYDEBUG(369, yych); + yych = *++YYCURSOR; + if (yych == 'L') goto yy462; + if (yych == 'l') goto yy462; + goto yy71; yy370: - YYDEBUG(370, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'Y') goto yy460; - if (yych == 'y') goto yy460; - goto yy47; + YYDEBUG(370, yych); + yych = *++YYCURSOR; + if (yych == 'T') goto yy463; + if (yych == 't') goto yy463; + goto yy71; yy371: - YYDEBUG(371, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy462; - if (yych == 'e') goto yy462; - goto yy47; + YYDEBUG(371, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; yy372: - YYDEBUG(372, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy463; - if (yych == 'o') goto yy463; - goto yy47; + YYDEBUG(372, yych); + if (yych <= 0x1F) { + if (yych == '\t') goto yy371; + goto yy71; + } else { + if (yych <= ' ') goto yy371; + if (yych != ')') goto yy71; + } + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN(T_INT_CAST); +} yy373: - YYDEBUG(373, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'F') goto yy464; - if (yych == 'f') goto yy464; - goto yy47; + YYDEBUG(373, yych); + yych = *++YYCURSOR; + if (yych == 'G') goto yy464; + if (yych == 'g') goto yy464; + goto yy71; yy374: - YYDEBUG(374, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'W') goto yy466; - if (yych == 'w') goto yy466; - goto yy47; + YYDEBUG(374, yych); + yych = *++YYCURSOR; + if (yych == 'C') goto yy465; + if (yych == 'c') goto yy465; + goto yy71; yy375: - YYDEBUG(375, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'H') goto yy467; - if (yych == 'h') goto yy467; - goto yy47; + YYDEBUG(375, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= 0x1F) { + if (yych == '\t') goto yy375; + goto yy71; + } else { + if (yych <= ' ') goto yy375; + if (yych == ')') goto yy466; + goto yy71; + } yy376: - YYDEBUG(376, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '\f') { - if (yych <= 0x08) goto yy47; - if (yych <= '\n') goto yy468; - goto yy47; - } else { - if (yych <= '\r') goto yy468; - if (yych == ' ') goto yy468; - goto yy47; - } + YYDEBUG(376, yych); + yych = *++YYCURSOR; + if (yych == 'N') goto yy467; + if (yych == 'n') goto yy467; + goto yy71; yy377: - YYDEBUG(377, *YYCURSOR); - yyaccept = 29; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(377, yych); + yych = *++YYCURSOR; + if (yych == 'T') goto yy468; + if (yych == 't') goto yy468; + goto yy71; yy378: - YYDEBUG(378, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_EVAL); -} + YYDEBUG(378, yych); + ++YYCURSOR; + YYFILL(3); + yych = *YYCURSOR; yy379: - YYDEBUG(379, *YYCURSOR); - yyaccept = 30; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy380: - YYDEBUG(380, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_EXIT); -} -yy381: - YYDEBUG(381, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy470; - if (yych == 'n') goto yy470; - goto yy47; -yy382: - YYDEBUG(382, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy471; - if (yych == 'l') goto yy471; - goto yy47; -yy383: - YYDEBUG(383, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy473; - if (yych == 'a') goto yy473; - goto yy47; -yy384: - YYDEBUG(384, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy474; - if (yych == 't') goto yy474; - goto yy47; -yy385: - YYDEBUG(385, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy475; - if (yych == 'a') goto yy475; - goto yy47; -yy386: - YYDEBUG(386, *YYCURSOR); - yyaccept = 31; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy387: - YYDEBUG(387, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_GOTO); -} -yy388: - YYDEBUG(388, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy476; - if (yych == 'e') goto yy476; - goto yy47; -yy389: - YYDEBUG(389, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'U') goto yy477; - if (yych == 'u') goto yy477; - goto yy47; -yy390: - YYDEBUG(390, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'E') { - if (yych == 'A') goto yy478; - if (yych <= 'D') goto yy47; - goto yy479; - } else { - if (yych <= 'a') { - if (yych <= '`') goto yy47; - goto yy478; - } else { - if (yych == 'e') goto yy479; - goto yy47; - } - } -yy391: - YYDEBUG(391, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy480; - if (yych == 'r') goto yy480; - goto yy47; -yy392: - YYDEBUG(392, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy481; - if (yych == 't') goto yy481; - goto yy47; -yy393: - YYDEBUG(393, *YYCURSOR); - yyaccept = 32; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy394: - YYDEBUG(394, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_LIST); -} -yy395: - YYDEBUG(395, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'H') goto yy483; - if (yych == 'h') goto yy483; - goto yy47; -yy396: - YYDEBUG(396, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy485; - if (yych == 's') goto yy485; - goto yy47; -yy397: - YYDEBUG(397, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy486; - if (yych == 't') goto yy486; - goto yy47; -yy398: - YYDEBUG(398, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy488; - if (yych == 'a') goto yy488; - goto yy47; -yy399: - YYDEBUG(399, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy489; - if (yych == 'e') goto yy489; - goto yy47; -yy400: - YYDEBUG(400, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy490; - if (yych == 'i') goto yy490; - goto yy47; -yy401: - YYDEBUG(401, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy491; - if (yych == 'o') goto yy491; - goto yy47; -yy402: - YYDEBUG(402, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy492; - if (yych == 'i') goto yy492; - goto yy47; -yy403: - YYDEBUG(403, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy493; - if (yych == 'r') goto yy493; - goto yy47; -yy404: - YYDEBUG(404, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy494; - if (yych == 'i') goto yy494; - goto yy47; -yy405: - YYDEBUG(405, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy495; - if (yych == 'c') goto yy495; - goto yy47; -yy406: - YYDEBUG(406, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'W') goto yy496; - if (yych == 'w') goto yy496; - goto yy47; -yy407: - YYDEBUG(407, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy498; - if (yych == 't') goto yy498; - goto yy47; -yy408: - YYDEBUG(408, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy500; - if (yych == 't') goto yy500; - goto yy47; -yy409: - YYDEBUG(409, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy502; - if (yych == 'e') goto yy502; - goto yy47; -yy410: - YYDEBUG(410, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'D') goto yy504; - if (yych == 'd') goto yy504; - goto yy47; -yy411: - YYDEBUG(411, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy506; - if (yych == 'a') goto yy506; - goto yy47; -yy412: - YYDEBUG(412, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy507; - if (yych == 'r') goto yy507; - goto yy47; -yy413: - YYDEBUG(413, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy508; - if (yych == 'l') goto yy508; - goto yy47; -yy414: - YYDEBUG(414, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy509; - if (yych == 'n') goto yy509; - goto yy47; -yy415: - YYDEBUG(415, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy510; - if (yych == 'l') goto yy510; - goto yy47; -yy416: - YYDEBUG(416, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy511; - if (yych == 'n') goto yy511; - goto yy47; -yy417: - YYDEBUG(417, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy512; - if (yych == 't') goto yy512; - goto yy47; -yy418: - YYDEBUG(418, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'M') goto yy513; - if (yych == 'm') goto yy513; - goto yy47; -yy419: - YYDEBUG(419, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy514; - if (yych == 'a') goto yy514; - goto yy47; -yy420: - YYDEBUG(420, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'Y') goto yy515; - if (yych == 'y') goto yy515; - goto yy85; -yy421: - YYDEBUG(421, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'R') goto yy517; - if (yych == 'r') goto yy517; - goto yy85; -yy422: - YYDEBUG(422, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy522; - if (yych == 'e') goto yy522; - goto yy519; -yy423: - YYDEBUG(423, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'L') goto yy523; - if (yych == 'l') goto yy523; - goto yy85; -yy424: - YYDEBUG(424, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'T') goto yy524; - if (yych == 't') goto yy524; - goto yy85; -yy425: - YYDEBUG(425, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; -yy426: - YYDEBUG(426, *YYCURSOR); - if (yych <= 0x1F) { - if (yych == '\t') goto yy425; - goto yy85; + YYDEBUG(379, yych); + if (yych <= 'Z') { + if (yych <= '/') { + if (yych == '"') goto yy469; + goto yy71; } else { - if (yych <= ' ') goto yy425; - if (yych != ')') goto yy85; + if (yych <= '9') goto yy378; + if (yych <= '@') goto yy71; + goto yy378; } - YYDEBUG(427, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(428, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN(T_INT_CAST); -} -yy429: - YYDEBUG(429, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'G') goto yy526; - if (yych == 'g') goto yy526; - goto yy85; -yy430: - YYDEBUG(430, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'C') goto yy527; - if (yych == 'c') goto yy527; - goto yy85; -yy431: - YYDEBUG(431, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(432, *YYCURSOR); - if (yych <= 0x1F) { - if (yych == '\t') goto yy431; - goto yy85; - } else { - if (yych <= ' ') goto yy431; - if (yych == ')') goto yy528; - goto yy85; + } else { + if (yych <= '`') { + if (yych == '_') goto yy378; + goto yy71; + } else { + if (yych <= 'z') goto yy378; + if (yych <= 0x7F) goto yy71; + goto yy378; } -yy433: - YYDEBUG(433, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'N') goto yy530; - if (yych == 'n') goto yy530; - goto yy85; -yy434: - YYDEBUG(434, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'T') goto yy531; - if (yych == 't') goto yy531; - goto yy85; -yy435: - YYDEBUG(435, *YYCURSOR); - ++YYCURSOR; - YYFILL(3); - yych = *YYCURSOR; -yy436: - YYDEBUG(436, *YYCURSOR); - if (yych <= 'Z') { - if (yych <= '/') { - if (yych == '"') goto yy533; - goto yy85; - } else { - if (yych <= '9') goto yy435; - if (yych <= '@') goto yy85; - goto yy435; - } + } +yy380: + YYDEBUG(380, yych); + ++YYCURSOR; + YYFILL(3); + yych = *YYCURSOR; +yy381: + YYDEBUG(381, yych); + if (yych <= 'Z') { + if (yych <= '/') { + if (yych == '\'') goto yy469; + goto yy71; } else { - if (yych <= '`') { - if (yych == '_') goto yy435; - goto yy85; - } else { - if (yych <= 'z') goto yy435; - if (yych <= 0x7F) goto yy85; - goto yy435; - } + if (yych <= '9') goto yy380; + if (yych <= '@') goto yy71; + goto yy380; } -yy437: - YYDEBUG(437, *YYCURSOR); - ++YYCURSOR; - YYFILL(3); - yych = *YYCURSOR; -yy438: - YYDEBUG(438, *YYCURSOR); - if (yych <= 'Z') { - if (yych <= '/') { - if (yych == '\'') goto yy533; - goto yy85; - } else { - if (yych <= '9') goto yy437; - if (yych <= '@') goto yy85; - goto yy437; - } - } else { - if (yych <= '`') { - if (yych == '_') goto yy437; - goto yy85; - } else { - if (yych <= 'z') goto yy437; - if (yych <= 0x7F) goto yy85; - goto yy437; - } + } else { + if (yych <= '`') { + if (yych == '_') goto yy380; + goto yy71; + } else { + if (yych <= 'z') goto yy380; + if (yych <= 0x7F) goto yy71; + goto yy380; } -yy439: - YYDEBUG(439, *YYCURSOR); - ++YYCURSOR; -yy440: - YYDEBUG(440, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy382: + YYDEBUG(382, yych); + ++YYCURSOR; +yy383: + YYDEBUG(383, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { char *s; unsigned char *saved_cursor; int bprefix = (yytext[0] != '<') ? 1 : 0, spacing = 0, indentation = 0; @@ -5818,2356 +5831,2187 @@ RETURN_TOKEN(T_START_HEREDOC); } +yy384: + YYDEBUG(384, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy382; + goto yy383; +yy385: + YYDEBUG(385, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy470; + if (yych == 'a') goto yy470; + goto yy40; +yy386: + YYDEBUG(386, yych); + yyaccept = 33; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy387: + YYDEBUG(387, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ARRAY); +} +yy388: + YYDEBUG(388, yych); + yyaccept = 34; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy389: + YYDEBUG(389, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_BREAK); +} +yy390: + YYDEBUG(390, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'B') goto yy471; + if (yych == 'b') goto yy471; + goto yy40; +yy391: + YYDEBUG(391, yych); + yyaccept = 35; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy392: + YYDEBUG(392, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_CATCH); +} +yy393: + YYDEBUG(393, yych); + yyaccept = 36; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy394: + YYDEBUG(394, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_CLASS); +} +yy395: + YYDEBUG(395, yych); + yyaccept = 37; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy396: + YYDEBUG(396, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_CLONE); +} +yy397: + YYDEBUG(397, yych); + yyaccept = 38; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy398: + YYDEBUG(398, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_CONST); +} +yy399: + YYDEBUG(399, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy472; + if (yych == 'n') goto yy472; + goto yy40; +yy400: + YYDEBUG(400, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy473; + if (yych == 'r') goto yy473; + goto yy40; +yy401: + YYDEBUG(401, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy474; + if (yych == 'l') goto yy474; + goto yy40; +yy402: + YYDEBUG(402, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'F') goto yy475; + if (yych == 'f') goto yy475; + goto yy40; +yy403: + YYDEBUG(403, yych); + yyaccept = 39; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy404: + YYDEBUG(404, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_EMPTY); +} +yy405: + YYDEBUG(405, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy477; + if (yych == 'c') goto yy477; + goto yy40; +yy406: + YYDEBUG(406, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy478; + if (yych == 'r') goto yy478; + goto yy40; +yy407: + YYDEBUG(407, yych); + yyaccept = 40; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy408: + YYDEBUG(408, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ENDIF); +} +yy409: + YYDEBUG(409, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy480; + if (yych == 'i') goto yy480; + goto yy40; +yy410: + YYDEBUG(410, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy481; + if (yych == 'i') goto yy481; + goto yy40; +yy411: + YYDEBUG(411, yych); + ++YYCURSOR; + YYFILL(10); + yych = *YYCURSOR; + if (yych <= 'I') { + if (yych <= 0x1F) { + if (yych <= '\n') { + if (yych <= 0x08) goto yy71; + goto yy411; + } else { + if (yych == '\r') goto yy411; + goto yy71; + } + } else { + if (yych <= 'D') { + if (yych <= ' ') goto yy411; + if (yych <= '@') goto yy71; + goto yy482; + } else { + if (yych <= 'E') goto yy484; + if (yych <= 'H') goto yy482; + goto yy485; + } + } + } else { + if (yych <= 'd') { + if (yych <= '^') { + if (yych <= 'Z') goto yy482; + goto yy71; + } else { + if (yych == '`') goto yy71; + goto yy482; + } + } else { + if (yych <= 'i') { + if (yych <= 'e') goto yy484; + if (yych <= 'h') goto yy482; + goto yy485; + } else { + if (yych <= 'z') goto yy482; + if (yych <= 0x7F) goto yy71; + goto yy482; + } + } + } +yy412: + YYDEBUG(412, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'D') goto yy486; + if (yych == 'd') goto yy486; + goto yy40; +yy413: + YYDEBUG(413, yych); + yyaccept = 41; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '\\') { + if (yych <= 'K') { + if (yych <= '/') goto yy414; + if (yych <= '9') goto yy39; + if (yych >= 'A') goto yy39; + } else { + if (yych <= 'L') goto yy487; + if (yych <= 'Z') goto yy39; + if (yych >= '\\') goto yy127; + } + } else { + if (yych <= 'k') { + if (yych == '_') goto yy39; + if (yych >= 'a') goto yy39; + } else { + if (yych <= 'l') goto yy487; + if (yych <= 'z') goto yy39; + if (yych >= 0x80) goto yy39; + } + } +yy414: + YYDEBUG(414, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_FINAL); +} +yy415: + YYDEBUG(415, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy488; + if (yych == 'c') goto yy488; + goto yy40; +yy416: + YYDEBUG(416, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy489; + if (yych == 'i') goto yy489; + goto yy40; +yy417: + YYDEBUG(417, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy490; + if (yych == 'l') goto yy490; + goto yy40; +yy418: + YYDEBUG(418, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'M') goto yy492; + if (yych == 'm') goto yy492; + goto yy40; +yy419: + YYDEBUG(419, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'D') goto yy493; + if (yych == 'd') goto yy493; + goto yy40; +yy420: + YYDEBUG(420, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy494; + if (yych == 'n') goto yy494; + goto yy40; +yy421: + YYDEBUG(421, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy495; + if (yych == 'a') goto yy495; + goto yy40; +yy422: + YYDEBUG(422, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'F') goto yy496; + if (yych == 'f') goto yy496; + goto yy40; +yy423: + YYDEBUG(423, yych); + yyaccept = 42; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy424: + YYDEBUG(424, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ISSET); +} +yy425: + YYDEBUG(425, yych); + yyaccept = 43; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy426: + YYDEBUG(426, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_MATCH); +} +yy427: + YYDEBUG(427, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'P') goto yy497; + if (yych == 'p') goto yy497; + goto yy40; +yy428: + YYDEBUG(428, yych); + yyaccept = 44; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy429: + YYDEBUG(429, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_PRINT); +} +yy430: + YYDEBUG(430, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy498; + if (yych == 't') goto yy498; + goto yy40; +yy431: + YYDEBUG(431, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy499; + if (yych == 'c') goto yy499; + goto yy40; +yy432: + YYDEBUG(432, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy500; + if (yych == 'c') goto yy500; + goto yy40; +yy433: + YYDEBUG(433, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy502; + if (yych == 'n') goto yy502; + goto yy40; +yy434: + YYDEBUG(434, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy503; + if (yych == 'r') goto yy503; + goto yy40; +yy435: + YYDEBUG(435, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy504; + if (yych == 'n') goto yy504; + goto yy40; +yy436: + YYDEBUG(436, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy506; + if (yych == 'c') goto yy506; + goto yy40; +yy437: + YYDEBUG(437, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'H') goto yy508; + if (yych == 'h') goto yy508; + goto yy40; +yy438: + YYDEBUG(438, yych); + yyaccept = 45; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy439: + YYDEBUG(439, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_THROW); +} +yy440: + YYDEBUG(440, yych); + yyaccept = 46; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy441: - YYDEBUG(441, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy439; - goto yy440; + YYDEBUG(441, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_TRAIT); +} yy442: - YYDEBUG(442, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy534; - if (yych == 'a') goto yy534; - goto yy47; + YYDEBUG(442, yych); + yyaccept = 47; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy443: - YYDEBUG(443, *YYCURSOR); - yyaccept = 33; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy444: - YYDEBUG(444, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ARRAY); + YYDEBUG(443, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_UNSET); } +yy444: + YYDEBUG(444, yych); + yyaccept = 48; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy445: - YYDEBUG(445, *YYCURSOR); - yyaccept = 34; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy446: - YYDEBUG(446, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_BREAK); + YYDEBUG(445, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_WHILE); } +yy446: + YYDEBUG(446, yych); + yyaccept = 49; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych <= '\r') { + if (yych <= 0x08) goto yy447; + if (yych <= '\n') goto yy510; + if (yych >= '\r') goto yy510; + } else { + if (yych <= ' ') { + if (yych >= ' ') goto yy510; + } else { + if (yych == '\\') goto yy127; + } + } yy447: - YYDEBUG(447, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'B') goto yy535; - if (yych == 'b') goto yy535; - goto yy47; + YYDEBUG(447, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_YIELD); +} yy448: - YYDEBUG(448, *YYCURSOR); - yyaccept = 35; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(448, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy511; + if (yych == 's') goto yy511; + goto yy40; yy449: - YYDEBUG(449, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_CATCH); -} + YYDEBUG(449, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy512; + goto yy40; yy450: - YYDEBUG(450, *YYCURSOR); - yyaccept = 36; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(450, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy513; + if (yych == 'e') goto yy513; + goto yy40; yy451: - YYDEBUG(451, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_CLASS); -} + YYDEBUG(451, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy514; + if (yych == 'c') goto yy514; + goto yy40; yy452: - YYDEBUG(452, *YYCURSOR); - yyaccept = 37; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(452, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy515; + if (yych == 't') goto yy515; + goto yy40; yy453: - YYDEBUG(453, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_CLONE); -} + YYDEBUG(453, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy516; + if (yych == 'e') goto yy516; + goto yy40; yy454: - YYDEBUG(454, *YYCURSOR); - yyaccept = 38; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(454, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'H') goto yy517; + if (yych == 'h') goto yy517; + goto yy40; yy455: - YYDEBUG(455, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_CONST); -} + YYDEBUG(455, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy518; + if (yych == 'e') goto yy518; + goto yy40; yy456: - YYDEBUG(456, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy536; - if (yych == 'n') goto yy536; - goto yy47; + YYDEBUG(456, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy519; + if (yych == 'i') goto yy519; + goto yy40; yy457: - YYDEBUG(457, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy537; - if (yych == 'r') goto yy537; - goto yy47; + YYDEBUG(457, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= 0x1F) { + if (yych == '\t') goto yy457; + goto yy71; + } else { + if (yych <= ' ') goto yy457; + if (yych == ')') goto yy520; + goto yy71; + } yy458: - YYDEBUG(458, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy538; - if (yych == 'l') goto yy538; - goto yy47; + YYDEBUG(458, yych); + yych = *++YYCURSOR; + if (yych == 'Y') goto yy521; + if (yych == 'y') goto yy521; + goto yy71; yy459: - YYDEBUG(459, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'F') goto yy539; - if (yych == 'f') goto yy539; - goto yy47; + YYDEBUG(459, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; yy460: - YYDEBUG(460, *YYCURSOR); - yyaccept = 39; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy461: - YYDEBUG(461, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_EMPTY); + YYDEBUG(460, yych); + if (yych <= 0x1F) { + if (yych == '\t') goto yy459; + goto yy71; + } else { + if (yych <= ' ') goto yy459; + if (yych != ')') goto yy71; + } + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN(T_BOOL_CAST); } +yy461: + YYDEBUG(461, yych); + yych = *++YYCURSOR; + if (yych == 'A') goto yy522; + if (yych == 'a') goto yy522; + goto yy71; yy462: - YYDEBUG(462, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy541; - if (yych == 'c') goto yy541; - goto yy47; + YYDEBUG(462, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy463; + if (yych != 'e') goto yy71; yy463: - YYDEBUG(463, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy542; - if (yych == 'r') goto yy542; - goto yy47; + YYDEBUG(463, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= 0x1F) { + if (yych == '\t') goto yy463; + goto yy71; + } else { + if (yych <= ' ') goto yy463; + if (yych == ')') goto yy523; + goto yy71; + } yy464: - YYDEBUG(464, *YYCURSOR); - yyaccept = 40; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(464, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy524; + if (yych == 'e') goto yy524; + goto yy71; yy465: - YYDEBUG(465, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ENDIF); -} + YYDEBUG(465, yych); + yych = *++YYCURSOR; + if (yych == 'T') goto yy525; + if (yych == 't') goto yy525; + goto yy71; yy466: - YYDEBUG(466, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy544; - if (yych == 'i') goto yy544; - goto yy47; + YYDEBUG(466, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { + if (PARSER_MODE()) { + zend_throw_exception(zend_ce_parse_error, "The (real) cast has been removed, use (float) instead", 0); + RETURN_TOKEN(T_ERROR); + } + RETURN_TOKEN(T_DOUBLE_CAST); +} yy467: - YYDEBUG(467, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy545; - if (yych == 'i') goto yy545; - goto yy47; + YYDEBUG(467, yych); + yych = *++YYCURSOR; + if (yych == 'G') goto yy521; + if (yych == 'g') goto yy521; + goto yy71; yy468: - YYDEBUG(468, *YYCURSOR); - ++YYCURSOR; - YYFILL(10); - yych = *YYCURSOR; - YYDEBUG(469, *YYCURSOR); - if (yych <= 'I') { - if (yych <= 0x1F) { - if (yych <= '\n') { - if (yych <= 0x08) goto yy85; - goto yy468; - } else { - if (yych == '\r') goto yy468; - goto yy85; - } - } else { - if (yych <= 'D') { - if (yych <= ' ') goto yy468; - if (yych <= '@') goto yy85; - goto yy546; - } else { - if (yych <= 'E') goto yy548; - if (yych <= 'H') goto yy546; - goto yy549; - } - } - } else { - if (yych <= 'd') { - if (yych <= '^') { - if (yych <= 'Z') goto yy546; - goto yy85; - } else { - if (yych == '`') goto yy85; - goto yy546; - } - } else { - if (yych <= 'i') { - if (yych <= 'e') goto yy548; - if (yych <= 'h') goto yy546; - goto yy549; - } else { - if (yych <= 'z') goto yy546; - if (yych <= 0x7F) goto yy85; - goto yy546; - } - } - } + YYDEBUG(468, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= 0x1F) { + if (yych == '\t') goto yy468; + goto yy71; + } else { + if (yych <= ' ') goto yy468; + if (yych == ')') goto yy526; + goto yy71; + } +yy469: + YYDEBUG(469, yych); + yych = *++YYCURSOR; + if (yych == '\n') goto yy382; + if (yych == '\r') goto yy384; + goto yy71; yy470: - YYDEBUG(470, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'D') goto yy550; - if (yych == 'd') goto yy550; - goto yy47; + YYDEBUG(470, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy527; + if (yych == 'c') goto yy527; + goto yy40; yy471: - YYDEBUG(471, *YYCURSOR); - yyaccept = 41; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '\\') { - if (yych <= 'K') { - if (yych <= '/') goto yy472; - if (yych <= '9') goto yy46; - if (yych >= 'A') goto yy46; - } else { - if (yych <= 'L') goto yy551; - if (yych <= 'Z') goto yy46; - if (yych >= '\\') goto yy160; - } - } else { - if (yych <= 'k') { - if (yych == '_') goto yy46; - if (yych >= 'a') goto yy46; - } else { - if (yych <= 'l') goto yy551; - if (yych <= 'z') goto yy46; - if (yych >= 0x80) goto yy46; - } - } + YYDEBUG(471, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy528; + if (yych == 'l') goto yy528; + goto yy40; yy472: - YYDEBUG(472, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_FINAL); -} + YYDEBUG(472, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'U') goto yy529; + if (yych == 'u') goto yy529; + goto yy40; yy473: - YYDEBUG(473, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy552; - if (yych == 'c') goto yy552; - goto yy47; + YYDEBUG(473, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy530; + if (yych == 'e') goto yy530; + goto yy40; yy474: - YYDEBUG(474, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy553; - if (yych == 'i') goto yy553; - goto yy47; + YYDEBUG(474, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy532; + if (yych == 't') goto yy532; + goto yy40; yy475: - YYDEBUG(475, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy554; - if (yych == 'l') goto yy554; - goto yy47; + YYDEBUG(475, yych); + yyaccept = 50; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy476: - YYDEBUG(476, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'M') goto yy556; - if (yych == 'm') goto yy556; - goto yy47; + YYDEBUG(476, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ELSEIF); +} yy477: - YYDEBUG(477, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'D') goto yy557; - if (yych == 'd') goto yy557; - goto yy47; + YYDEBUG(477, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy534; + if (yych == 'l') goto yy534; + goto yy40; yy478: - YYDEBUG(478, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy558; - if (yych == 'n') goto yy558; - goto yy47; + YYDEBUG(478, yych); + yyaccept = 51; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '\\') { + if (yych <= 'D') { + if (yych <= '/') goto yy479; + if (yych <= '9') goto yy39; + if (yych >= 'A') goto yy39; + } else { + if (yych <= 'E') goto yy535; + if (yych <= 'Z') goto yy39; + if (yych >= '\\') goto yy127; + } + } else { + if (yych <= 'd') { + if (yych == '_') goto yy39; + if (yych >= 'a') goto yy39; + } else { + if (yych <= 'e') goto yy535; + if (yych <= 'z') goto yy39; + if (yych >= 0x80) goto yy39; + } + } yy479: - YYDEBUG(479, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy559; - if (yych == 'a') goto yy559; - goto yy47; + YYDEBUG(479, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ENDFOR); +} yy480: - YYDEBUG(480, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'F') goto yy560; - if (yych == 'f') goto yy560; - goto yy47; + YYDEBUG(480, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy536; + if (yych == 't') goto yy536; + goto yy40; yy481: - YYDEBUG(481, *YYCURSOR); - yyaccept = 42; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(481, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy537; + if (yych == 'l') goto yy537; + goto yy40; yy482: - YYDEBUG(482, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ISSET); -} + YYDEBUG(482, yych); + ++YYCURSOR; yy483: - YYDEBUG(483, *YYCURSOR); - yyaccept = 43; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy484: - YYDEBUG(484, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_MATCH); + YYDEBUG(483, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + yyless(4); + RETURN_TOKEN_WITH_IDENT(T_ENUM); } +yy484: + YYDEBUG(484, yych); + yyaccept = 52; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'X') goto yy538; + if (yych == 'x') goto yy538; + goto yy483; yy485: - YYDEBUG(485, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'P') goto yy561; - if (yych == 'p') goto yy561; - goto yy47; + YYDEBUG(485, yych); + yyaccept = 52; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'M') goto yy539; + if (yych == 'm') goto yy539; + goto yy483; yy486: - YYDEBUG(486, *YYCURSOR); - yyaccept = 44; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(486, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy540; + if (yych == 's') goto yy540; + goto yy40; yy487: - YYDEBUG(487, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_PRINT); -} + YYDEBUG(487, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'Y') goto yy542; + if (yych == 'y') goto yy542; + goto yy40; yy488: - YYDEBUG(488, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy562; - if (yych == 't') goto yy562; - goto yy47; + YYDEBUG(488, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'H') goto yy544; + if (yych == 'h') goto yy544; + goto yy40; yy489: - YYDEBUG(489, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy563; - if (yych == 'c') goto yy563; - goto yy47; + YYDEBUG(489, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy546; + if (yych == 'o') goto yy546; + goto yy40; yy490: - YYDEBUG(490, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy564; - if (yych == 'c') goto yy564; - goto yy47; + YYDEBUG(490, yych); + yyaccept = 53; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy491: - YYDEBUG(491, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy566; - if (yych == 'n') goto yy566; - goto yy47; + YYDEBUG(491, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_GLOBAL); +} yy492: - YYDEBUG(492, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy567; - if (yych == 'r') goto yy567; - goto yy47; + YYDEBUG(492, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy547; + if (yych == 'e') goto yy547; + goto yy40; yy493: - YYDEBUG(493, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy568; - if (yych == 'n') goto yy568; - goto yy47; + YYDEBUG(493, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy548; + if (yych == 'e') goto yy548; + goto yy40; yy494: - YYDEBUG(494, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy570; - if (yych == 'c') goto yy570; - goto yy47; + YYDEBUG(494, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy550; + if (yych == 'c') goto yy550; + goto yy40; yy495: - YYDEBUG(495, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'H') goto yy572; - if (yych == 'h') goto yy572; - goto yy47; + YYDEBUG(495, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'D') goto yy551; + if (yych == 'd') goto yy551; + goto yy40; yy496: - YYDEBUG(496, *YYCURSOR); - yyaccept = 45; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(496, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy552; + if (yych == 'a') goto yy552; + goto yy40; yy497: - YYDEBUG(497, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_THROW); -} + YYDEBUG(497, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy553; + if (yych == 'a') goto yy553; + goto yy40; yy498: - YYDEBUG(498, *YYCURSOR); - yyaccept = 46; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(498, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy554; + if (yych == 'e') goto yy554; + goto yy40; yy499: - YYDEBUG(499, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_TRAIT); -} + YYDEBUG(499, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy556; + if (yych == 't') goto yy556; + goto yy40; yy500: - YYDEBUG(500, *YYCURSOR); - yyaccept = 47; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(500, yych); + yyaccept = 54; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy501: - YYDEBUG(501, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_UNSET); + YYDEBUG(501, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_PUBLIC); } yy502: - YYDEBUG(502, *YYCURSOR); - yyaccept = 48; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(502, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy557; + if (yych == 'l') goto yy557; + goto yy40; yy503: - YYDEBUG(503, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_WHILE); -} + YYDEBUG(503, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy558; + if (yych == 'e') goto yy558; + goto yy40; yy504: - YYDEBUG(504, *YYCURSOR); - yyaccept = 49; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych <= '\r') { - if (yych <= 0x08) goto yy505; - if (yych <= '\n') goto yy574; - if (yych >= '\r') goto yy574; - } else { - if (yych <= ' ') { - if (yych >= ' ') goto yy574; - } else { - if (yych == '\\') goto yy160; - } - } + YYDEBUG(504, yych); + yyaccept = 55; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy505: - YYDEBUG(505, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_YIELD); + YYDEBUG(505, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_RETURN); } yy506: - YYDEBUG(506, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy576; - if (yych == 's') goto yy576; - goto yy47; + YYDEBUG(506, yych); + yyaccept = 56; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy507: - YYDEBUG(507, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy577; - goto yy47; + YYDEBUG(507, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_STATIC); +} yy508: - YYDEBUG(508, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy578; - if (yych == 'e') goto yy578; - goto yy47; + YYDEBUG(508, yych); + yyaccept = 57; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy509: - YYDEBUG(509, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy579; - if (yych == 'c') goto yy579; - goto yy47; + YYDEBUG(509, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_SWITCH); +} yy510: - YYDEBUG(510, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy580; - if (yych == 't') goto yy580; - goto yy47; + YYDEBUG(510, yych); + ++YYCURSOR; + YYFILL(5); + yych = *YYCURSOR; + if (yych <= 0x1F) { + if (yych <= '\n') { + if (yych <= 0x08) goto yy71; + goto yy510; + } else { + if (yych == '\r') goto yy510; + goto yy71; + } + } else { + if (yych <= 'F') { + if (yych <= ' ') goto yy510; + if (yych <= 'E') goto yy71; + goto yy560; + } else { + if (yych == 'f') goto yy560; + goto yy71; + } + } yy511: - YYDEBUG(511, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy581; - if (yych == 'e') goto yy581; - goto yy47; + YYDEBUG(511, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy561; + if (yych == 's') goto yy561; + goto yy40; yy512: - YYDEBUG(512, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'H') goto yy582; - if (yych == 'h') goto yy582; - goto yy47; + YYDEBUG(512, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy562; + goto yy40; yy513: - YYDEBUG(513, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy583; - if (yych == 'e') goto yy583; - goto yy47; + YYDEBUG(513, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy564; + goto yy40; yy514: - YYDEBUG(514, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy584; - if (yych == 'i') goto yy584; - goto yy47; + YYDEBUG(514, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy565; + if (yych == 't') goto yy565; + goto yy40; yy515: - YYDEBUG(515, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(516, *YYCURSOR); - if (yych <= 0x1F) { - if (yych == '\t') goto yy515; - goto yy85; - } else { - if (yych <= ' ') goto yy515; - if (yych == ')') goto yy585; - goto yy85; - } + YYDEBUG(515, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy566; + goto yy40; +yy516: + YYDEBUG(516, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy567; + goto yy40; yy517: - YYDEBUG(517, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'Y') goto yy587; - if (yych == 'y') goto yy587; - goto yy85; + YYDEBUG(517, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy568; + if (yych == 'o') goto yy568; + goto yy40; yy518: - YYDEBUG(518, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; + YYDEBUG(518, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy569; + if (yych == 's') goto yy569; + goto yy40; yy519: - YYDEBUG(519, *YYCURSOR); - if (yych <= 0x1F) { - if (yych == '\t') goto yy518; - goto yy85; - } else { - if (yych <= ' ') goto yy518; - if (yych != ')') goto yy85; - } - YYDEBUG(520, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(521, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN(T_BOOL_CAST); + YYDEBUG(519, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy570; + if (yych == 't') goto yy570; + goto yy40; +yy520: + YYDEBUG(520, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN(T_ARRAY_CAST); } +yy521: + YYDEBUG(521, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= 0x1F) { + if (yych == '\t') goto yy521; + goto yy71; + } else { + if (yych <= ' ') goto yy521; + if (yych == ')') goto yy571; + goto yy71; + } yy522: - YYDEBUG(522, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'A') goto yy589; - if (yych == 'a') goto yy589; - goto yy85; + YYDEBUG(522, yych); + yych = *++YYCURSOR; + if (yych == 'N') goto yy459; + if (yych == 'n') goto yy459; + goto yy71; yy523: - YYDEBUG(523, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy524; - if (yych != 'e') goto yy85; + YYDEBUG(523, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN(T_DOUBLE_CAST); +} yy524: - YYDEBUG(524, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(525, *YYCURSOR); - if (yych <= 0x1F) { - if (yych == '\t') goto yy524; - goto yy85; - } else { - if (yych <= ' ') goto yy524; - if (yych == ')') goto yy590; - goto yy85; - } + YYDEBUG(524, yych); + yych = *++YYCURSOR; + if (yych == 'R') goto yy371; + if (yych == 'r') goto yy371; + goto yy71; +yy525: + YYDEBUG(525, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= 0x1F) { + if (yych == '\t') goto yy525; + goto yy71; + } else { + if (yych <= ' ') goto yy525; + if (yych == ')') goto yy572; + goto yy71; + } yy526: - YYDEBUG(526, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy592; - if (yych == 'e') goto yy592; - goto yy85; + YYDEBUG(526, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN(T_UNSET_CAST); +} yy527: - YYDEBUG(527, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'T') goto yy593; - if (yych == 't') goto yy593; - goto yy85; + YYDEBUG(527, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy573; + if (yych == 't') goto yy573; + goto yy40; yy528: - YYDEBUG(528, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(529, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - if (PARSER_MODE()) { - zend_throw_exception(zend_ce_parse_error, "The (real) cast has been removed, use (float) instead", 0); - RETURN_TOKEN(T_ERROR); - } - RETURN_TOKEN(T_DOUBLE_CAST); -} + YYDEBUG(528, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy575; + if (yych == 'e') goto yy575; + goto yy40; +yy529: + YYDEBUG(529, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy577; + if (yych == 'e') goto yy577; + goto yy40; yy530: - YYDEBUG(530, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'G') goto yy587; - if (yych == 'g') goto yy587; - goto yy85; + YYDEBUG(530, yych); + yyaccept = 58; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy531: - YYDEBUG(531, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(532, *YYCURSOR); - if (yych <= 0x1F) { - if (yych == '\t') goto yy531; - goto yy85; - } else { - if (yych <= ' ') goto yy531; - if (yych == ')') goto yy595; - goto yy85; - } + YYDEBUG(531, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_DECLARE); +} +yy532: + YYDEBUG(532, yych); + yyaccept = 59; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy533: - YYDEBUG(533, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '\n') goto yy439; - if (yych == '\r') goto yy441; - goto yy85; + YYDEBUG(533, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_DEFAULT); +} yy534: - YYDEBUG(534, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy597; - if (yych == 'c') goto yy597; - goto yy47; + YYDEBUG(534, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy579; + if (yych == 'a') goto yy579; + goto yy40; yy535: - YYDEBUG(535, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy598; - if (yych == 'l') goto yy598; - goto yy47; + YYDEBUG(535, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy580; + if (yych == 'a') goto yy580; + goto yy40; yy536: - YYDEBUG(536, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'U') goto yy599; - if (yych == 'u') goto yy599; - goto yy47; + YYDEBUG(536, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy581; + if (yych == 'c') goto yy581; + goto yy40; yy537: - YYDEBUG(537, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy600; - if (yych == 'e') goto yy600; - goto yy47; + YYDEBUG(537, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy582; + if (yych == 'e') goto yy582; + goto yy40; yy538: - YYDEBUG(538, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy602; - if (yych == 't') goto yy602; - goto yy47; + YYDEBUG(538, yych); + yych = *++YYCURSOR; + if (yych == 'T') goto yy584; + if (yych == 't') goto yy584; + goto yy71; yy539: - YYDEBUG(539, *YYCURSOR); - yyaccept = 50; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(539, yych); + yych = *++YYCURSOR; + if (yych == 'P') goto yy585; + if (yych == 'p') goto yy585; + goto yy71; yy540: - YYDEBUG(540, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ELSEIF); -} + YYDEBUG(540, yych); + yyaccept = 60; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy541: - YYDEBUG(541, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy604; - if (yych == 'l') goto yy604; - goto yy47; + YYDEBUG(541, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_EXTENDS); +} yy542: - YYDEBUG(542, *YYCURSOR); - yyaccept = 51; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '\\') { - if (yych <= 'D') { - if (yych <= '/') goto yy543; - if (yych <= '9') goto yy46; - if (yych >= 'A') goto yy46; - } else { - if (yych <= 'E') goto yy605; - if (yych <= 'Z') goto yy46; - if (yych >= '\\') goto yy160; - } - } else { - if (yych <= 'd') { - if (yych == '_') goto yy46; - if (yych >= 'a') goto yy46; - } else { - if (yych <= 'e') goto yy605; - if (yych <= 'z') goto yy46; - if (yych >= 0x80) goto yy46; - } - } + YYDEBUG(542, yych); + yyaccept = 61; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy543: - YYDEBUG(543, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ENDFOR); + YYDEBUG(543, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_FINALLY); } yy544: - YYDEBUG(544, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy606; - if (yych == 't') goto yy606; - goto yy47; + YYDEBUG(544, yych); + yyaccept = 62; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy545: - YYDEBUG(545, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy607; - if (yych == 'l') goto yy607; - goto yy47; + YYDEBUG(545, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_FOREACH); +} yy546: - YYDEBUG(546, *YYCURSOR); - ++YYCURSOR; + YYDEBUG(546, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy586; + if (yych == 'n') goto yy586; + goto yy40; yy547: - YYDEBUG(547, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - yyless(4); - RETURN_TOKEN_WITH_IDENT(T_ENUM); -} + YYDEBUG(547, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy588; + if (yych == 'n') goto yy588; + goto yy40; yy548: - YYDEBUG(548, *YYCURSOR); - yyaccept = 52; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'X') goto yy608; - if (yych == 'x') goto yy608; - goto yy547; + YYDEBUG(548, yych); + yyaccept = 63; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '\\') { + if (yych <= '@') { + if (yych <= '/') goto yy549; + if (yych <= '9') goto yy39; + } else { + if (yych <= 'Z') goto yy39; + if (yych >= '\\') goto yy127; + } + } else { + if (yych <= '`') { + if (yych == '_') goto yy589; + } else { + if (yych <= 'z') goto yy39; + if (yych >= 0x80) goto yy39; + } + } yy549: - YYDEBUG(549, *YYCURSOR); - yyaccept = 52; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'M') goto yy609; - if (yych == 'm') goto yy609; - goto yy547; + YYDEBUG(549, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_INCLUDE); +} yy550: - YYDEBUG(550, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy610; - if (yych == 's') goto yy610; - goto yy47; + YYDEBUG(550, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy590; + if (yych == 'e') goto yy590; + goto yy40; yy551: - YYDEBUG(551, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'Y') goto yy612; - if (yych == 'y') goto yy612; - goto yy47; + YYDEBUG(551, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy591; + if (yych == 'o') goto yy591; + goto yy40; yy552: - YYDEBUG(552, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'H') goto yy614; - if (yych == 'h') goto yy614; - goto yy47; + YYDEBUG(552, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy592; + if (yych == 'c') goto yy592; + goto yy40; yy553: - YYDEBUG(553, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy616; - if (yych == 'o') goto yy616; - goto yy47; + YYDEBUG(553, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy593; + if (yych == 'c') goto yy593; + goto yy40; yy554: - YYDEBUG(554, *YYCURSOR); - yyaccept = 53; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(554, yych); + yyaccept = 64; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy555: - YYDEBUG(555, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_GLOBAL); + YYDEBUG(555, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_PRIVATE); } yy556: - YYDEBUG(556, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy617; - if (yych == 'e') goto yy617; - goto yy47; + YYDEBUG(556, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy594; + if (yych == 'e') goto yy594; + goto yy40; yy557: - YYDEBUG(557, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy618; - if (yych == 'e') goto yy618; - goto yy47; + YYDEBUG(557, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'Y') goto yy595; + if (yych == 'y') goto yy595; + goto yy40; yy558: - YYDEBUG(558, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy620; - if (yych == 'c') goto yy620; - goto yy47; + YYDEBUG(558, yych); + yyaccept = 65; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '\\') { + if (yych <= '@') { + if (yych <= '/') goto yy559; + if (yych <= '9') goto yy39; + } else { + if (yych <= 'Z') goto yy39; + if (yych >= '\\') goto yy127; + } + } else { + if (yych <= '`') { + if (yych == '_') goto yy597; + } else { + if (yych <= 'z') goto yy39; + if (yych >= 0x80) goto yy39; + } + } yy559: - YYDEBUG(559, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'D') goto yy621; - if (yych == 'd') goto yy621; - goto yy47; + YYDEBUG(559, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_REQUIRE); +} yy560: - YYDEBUG(560, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy622; - if (yych == 'a') goto yy622; - goto yy47; + YYDEBUG(560, yych); + yych = *++YYCURSOR; + if (yych == 'R') goto yy598; + if (yych == 'r') goto yy598; + goto yy71; yy561: - YYDEBUG(561, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy623; - if (yych == 'a') goto yy623; - goto yy47; + YYDEBUG(561, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy599; + goto yy40; yy562: - YYDEBUG(562, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy624; - if (yych == 'e') goto yy624; - goto yy47; + YYDEBUG(562, yych); + yyaccept = 66; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy563: - YYDEBUG(563, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy626; - if (yych == 't') goto yy626; - goto yy47; + YYDEBUG(563, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_DIR); +} yy564: - YYDEBUG(564, *YYCURSOR); - yyaccept = 54; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(564, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy600; + goto yy40; yy565: - YYDEBUG(565, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_PUBLIC); -} + YYDEBUG(565, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy602; + if (yych == 'i') goto yy602; + goto yy40; yy566: - YYDEBUG(566, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy627; - if (yych == 'l') goto yy627; - goto yy47; + YYDEBUG(566, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy603; + if (yych == 'c') goto yy603; + goto yy40; yy567: - YYDEBUG(567, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy628; - if (yych == 'e') goto yy628; - goto yy47; + YYDEBUG(567, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy604; + goto yy40; yy568: - YYDEBUG(568, *YYCURSOR); - yyaccept = 55; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(568, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'D') goto yy606; + if (yych == 'd') goto yy606; + goto yy40; yy569: - YYDEBUG(569, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_RETURN); -} + YYDEBUG(569, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'P') goto yy607; + if (yych == 'p') goto yy607; + goto yy40; yy570: - YYDEBUG(570, *YYCURSOR); - yyaccept = 56; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(570, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy608; + goto yy40; yy571: - YYDEBUG(571, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_STATIC); + YYDEBUG(571, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN(T_STRING_CAST); } yy572: - YYDEBUG(572, *YYCURSOR); - yyaccept = 57; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy573: - YYDEBUG(573, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_SWITCH); + YYDEBUG(572, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN(T_OBJECT_CAST); } +yy573: + YYDEBUG(573, yych); + yyaccept = 67; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy574: - YYDEBUG(574, *YYCURSOR); - ++YYCURSOR; - YYFILL(5); - yych = *YYCURSOR; - YYDEBUG(575, *YYCURSOR); - if (yych <= 0x1F) { - if (yych <= '\n') { - if (yych <= 0x08) goto yy85; - goto yy574; - } else { - if (yych == '\r') goto yy574; - goto yy85; - } - } else { - if (yych <= 'F') { - if (yych <= ' ') goto yy574; - if (yych <= 'E') goto yy85; - goto yy630; - } else { - if (yych == 'f') goto yy630; - goto yy85; - } - } + YYDEBUG(574, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ABSTRACT); +} +yy575: + YYDEBUG(575, yych); + yyaccept = 68; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy576: - YYDEBUG(576, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy631; - if (yych == 's') goto yy631; - goto yy47; + YYDEBUG(576, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_CALLABLE); +} yy577: - YYDEBUG(577, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy632; - goto yy47; + YYDEBUG(577, yych); + yyaccept = 69; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy578: - YYDEBUG(578, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy634; - goto yy47; + YYDEBUG(578, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_CONTINUE); +} yy579: - YYDEBUG(579, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy635; - if (yych == 't') goto yy635; - goto yy47; + YYDEBUG(579, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy609; + if (yych == 'r') goto yy609; + goto yy40; yy580: - YYDEBUG(580, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy636; - goto yy47; + YYDEBUG(580, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy610; + if (yych == 'c') goto yy610; + goto yy40; yy581: - YYDEBUG(581, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy637; - goto yy47; + YYDEBUG(581, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'H') goto yy611; + if (yych == 'h') goto yy611; + goto yy40; yy582: - YYDEBUG(582, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy638; - if (yych == 'o') goto yy638; - goto yy47; + YYDEBUG(582, yych); + yyaccept = 70; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy583: - YYDEBUG(583, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy639; - if (yych == 's') goto yy639; - goto yy47; + YYDEBUG(583, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ENDWHILE); +} yy584: - YYDEBUG(584, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy640; - if (yych == 't') goto yy640; - goto yy47; + YYDEBUG(584, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy613; + if (yych == 'e') goto yy613; + goto yy71; yy585: - YYDEBUG(585, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(586, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN(T_ARRAY_CAST); -} + YYDEBUG(585, yych); + yych = *++YYCURSOR; + if (yych == 'L') goto yy614; + if (yych == 'l') goto yy614; + goto yy71; +yy586: + YYDEBUG(586, yych); + yyaccept = 71; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy587: - YYDEBUG(587, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(588, *YYCURSOR); - if (yych <= 0x1F) { - if (yych == '\t') goto yy587; - goto yy85; - } else { - if (yych <= ' ') goto yy587; - if (yych == ')') goto yy641; - goto yy85; - } + YYDEBUG(587, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_FUNCTION); +} +yy588: + YYDEBUG(588, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'T') goto yy615; + if (yych == 't') goto yy615; + goto yy40; yy589: - YYDEBUG(589, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'N') goto yy518; - if (yych == 'n') goto yy518; - goto yy85; + YYDEBUG(589, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy616; + if (yych == 'o') goto yy616; + goto yy40; yy590: - YYDEBUG(590, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(591, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN(T_DOUBLE_CAST); -} + YYDEBUG(590, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy617; + if (yych == 'o') goto yy617; + goto yy40; +yy591: + YYDEBUG(591, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'F') goto yy618; + if (yych == 'f') goto yy618; + goto yy40; yy592: - YYDEBUG(592, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'R') goto yy425; - if (yych == 'r') goto yy425; - goto yy85; + YYDEBUG(592, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy620; + if (yych == 'e') goto yy620; + goto yy40; yy593: - YYDEBUG(593, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(594, *YYCURSOR); - if (yych <= 0x1F) { - if (yych == '\t') goto yy593; - goto yy85; - } else { - if (yych <= ' ') goto yy593; - if (yych == ')') goto yy643; - goto yy85; - } + YYDEBUG(593, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy622; + if (yych == 'e') goto yy622; + goto yy40; +yy594: + YYDEBUG(594, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'D') goto yy624; + if (yych == 'd') goto yy624; + goto yy40; yy595: - YYDEBUG(595, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(596, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN(T_UNSET_CAST); + YYDEBUG(595, yych); + yyaccept = 72; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; +yy596: + YYDEBUG(596, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_READONLY); } yy597: - YYDEBUG(597, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy645; - if (yych == 't') goto yy645; - goto yy47; + YYDEBUG(597, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy626; + if (yych == 'o') goto yy626; + goto yy40; yy598: - YYDEBUG(598, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy647; - if (yych == 'e') goto yy647; - goto yy47; + YYDEBUG(598, yych); + yych = *++YYCURSOR; + if (yych == 'O') goto yy627; + if (yych == 'o') goto yy627; + goto yy71; yy599: - YYDEBUG(599, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy649; - if (yych == 'e') goto yy649; - goto yy47; + YYDEBUG(599, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy628; + goto yy40; yy600: - YYDEBUG(600, *YYCURSOR); - yyaccept = 58; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(600, yych); + yyaccept = 73; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy601: - YYDEBUG(601, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_DECLARE); + YYDEBUG(601, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_FILE); } yy602: - YYDEBUG(602, *YYCURSOR); - yyaccept = 59; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(602, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy630; + if (yych == 'o') goto yy630; + goto yy40; yy603: - YYDEBUG(603, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_DEFAULT); -} + YYDEBUG(603, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'O') goto yy631; + if (yych == 'o') goto yy631; + goto yy40; yy604: - YYDEBUG(604, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy651; - if (yych == 'a') goto yy651; - goto yy47; + YYDEBUG(604, yych); + yyaccept = 74; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy605: - YYDEBUG(605, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy652; - if (yych == 'a') goto yy652; - goto yy47; + YYDEBUG(605, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_LINE); +} yy606: - YYDEBUG(606, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy653; - if (yych == 'c') goto yy653; - goto yy47; + YYDEBUG(606, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy632; + goto yy40; yy607: - YYDEBUG(607, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy654; - if (yych == 'e') goto yy654; - goto yy47; + YYDEBUG(607, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'A') goto yy633; + if (yych == 'a') goto yy633; + goto yy40; yy608: - YYDEBUG(608, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'T') goto yy656; - if (yych == 't') goto yy656; - goto yy85; + YYDEBUG(608, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy634; + goto yy40; yy609: - YYDEBUG(609, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'P') goto yy657; - if (yych == 'p') goto yy657; - goto yy85; + YYDEBUG(609, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy636; + if (yych == 'e') goto yy636; + goto yy40; yy610: - YYDEBUG(610, *YYCURSOR); - yyaccept = 60; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(610, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'H') goto yy638; + if (yych == 'h') goto yy638; + goto yy40; yy611: - YYDEBUG(611, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_EXTENDS); -} + YYDEBUG(611, yych); + yyaccept = 75; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy612: - YYDEBUG(612, *YYCURSOR); - yyaccept = 61; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy613: - YYDEBUG(613, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_FINALLY); + YYDEBUG(612, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ENDSWITCH); } +yy613: + YYDEBUG(613, yych); + yych = *++YYCURSOR; + if (yych == 'N') goto yy640; + if (yych == 'n') goto yy640; + goto yy71; yy614: - YYDEBUG(614, *YYCURSOR); - yyaccept = 62; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(614, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy641; + if (yych == 'e') goto yy641; + goto yy71; yy615: - YYDEBUG(615, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_FOREACH); -} + YYDEBUG(615, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'S') goto yy642; + if (yych == 's') goto yy642; + goto yy40; yy616: - YYDEBUG(616, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy658; - if (yych == 'n') goto yy658; - goto yy47; + YYDEBUG(616, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy644; + if (yych == 'n') goto yy644; + goto yy40; yy617: - YYDEBUG(617, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy660; - if (yych == 'n') goto yy660; - goto yy47; + YYDEBUG(617, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'F') goto yy645; + if (yych == 'f') goto yy645; + goto yy40; yy618: - YYDEBUG(618, *YYCURSOR); - yyaccept = 63; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '\\') { - if (yych <= '@') { - if (yych <= '/') goto yy619; - if (yych <= '9') goto yy46; - } else { - if (yych <= 'Z') goto yy46; - if (yych >= '\\') goto yy160; - } - } else { - if (yych <= '`') { - if (yych == '_') goto yy661; - } else { - if (yych <= 'z') goto yy46; - if (yych >= 0x80) goto yy46; - } - } + YYDEBUG(618, yych); + yyaccept = 76; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy619: - YYDEBUG(619, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_INCLUDE); + YYDEBUG(619, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_INSTEADOF); } yy620: - YYDEBUG(620, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy662; - if (yych == 'e') goto yy662; - goto yy47; + YYDEBUG(620, yych); + yyaccept = 77; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy621: - YYDEBUG(621, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy663; - if (yych == 'o') goto yy663; - goto yy47; + YYDEBUG(621, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_INTERFACE); +} yy622: - YYDEBUG(622, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy664; - if (yych == 'c') goto yy664; - goto yy47; + YYDEBUG(622, yych); + yyaccept = 78; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy647; yy623: - YYDEBUG(623, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy665; - if (yych == 'c') goto yy665; - goto yy47; + YYDEBUG(623, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_NAMESPACE); +} yy624: - YYDEBUG(624, *YYCURSOR); - yyaccept = 64; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(624, yych); + yyaccept = 79; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy625: - YYDEBUG(625, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_PRIVATE); + YYDEBUG(625, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_PROTECTED); } yy626: - YYDEBUG(626, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy666; - if (yych == 'e') goto yy666; - goto yy47; + YYDEBUG(626, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy648; + if (yych == 'n') goto yy648; + goto yy40; yy627: - YYDEBUG(627, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'Y') goto yy667; - if (yych == 'y') goto yy667; - goto yy47; + YYDEBUG(627, yych); + yych = *++YYCURSOR; + if (yych == 'M') goto yy649; + if (yych == 'm') goto yy649; + goto yy71; yy628: - YYDEBUG(628, *YYCURSOR); - yyaccept = 65; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '\\') { - if (yych <= '@') { - if (yych <= '/') goto yy629; - if (yych <= '9') goto yy46; - } else { - if (yych <= 'Z') goto yy46; - if (yych >= '\\') goto yy160; - } - } else { - if (yych <= '`') { - if (yych == '_') goto yy669; - } else { - if (yych <= 'z') goto yy46; - if (yych >= 0x80) goto yy46; - } - } + YYDEBUG(628, yych); + yyaccept = 80; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy629: - YYDEBUG(629, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_REQUIRE); + YYDEBUG(629, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_CLASS_C); } yy630: - YYDEBUG(630, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'R') goto yy670; - if (yych == 'r') goto yy670; - goto yy85; + YYDEBUG(630, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'N') goto yy650; + if (yych == 'n') goto yy650; + goto yy40; yy631: - YYDEBUG(631, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy671; - goto yy47; + YYDEBUG(631, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'M') goto yy651; + if (yych == 'm') goto yy651; + goto yy40; yy632: - YYDEBUG(632, *YYCURSOR); - yyaccept = 66; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(632, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy652; + goto yy40; yy633: - YYDEBUG(633, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_DIR); -} + YYDEBUG(633, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy654; + if (yych == 'c') goto yy654; + goto yy40; yy634: - YYDEBUG(634, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy672; - goto yy47; + YYDEBUG(634, yych); + yyaccept = 81; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy635: - YYDEBUG(635, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy674; - if (yych == 'i') goto yy674; - goto yy47; + YYDEBUG(635, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_TRAIT_C); +} yy636: - YYDEBUG(636, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy675; - if (yych == 'c') goto yy675; - goto yy47; + YYDEBUG(636, yych); + yyaccept = 82; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy637: - YYDEBUG(637, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy676; - goto yy47; + YYDEBUG(637, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ENDDECLARE); +} yy638: - YYDEBUG(638, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'D') goto yy678; - if (yych == 'd') goto yy678; - goto yy47; + YYDEBUG(638, yych); + yyaccept = 83; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy639: - YYDEBUG(639, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'P') goto yy679; - if (yych == 'p') goto yy679; - goto yy47; + YYDEBUG(639, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_ENDFOREACH); +} yy640: - YYDEBUG(640, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy680; - goto yy47; + YYDEBUG(640, yych); + yych = *++YYCURSOR; + if (yych == 'D') goto yy655; + if (yych == 'd') goto yy655; + goto yy71; yy641: - YYDEBUG(641, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(642, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN(T_STRING_CAST); -} + YYDEBUG(641, yych); + yych = *++YYCURSOR; + if (yych == 'M') goto yy656; + if (yych == 'm') goto yy656; + goto yy71; +yy642: + YYDEBUG(642, yych); + yyaccept = 84; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy643: - YYDEBUG(643, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(644, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN(T_OBJECT_CAST); + YYDEBUG(643, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_IMPLEMENTS); } +yy644: + YYDEBUG(644, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy657; + if (yych == 'c') goto yy657; + goto yy40; yy645: - YYDEBUG(645, *YYCURSOR); - yyaccept = 67; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(645, yych); + yyaccept = 85; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy646: - YYDEBUG(646, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ABSTRACT); + YYDEBUG(646, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_INSTANCEOF); } yy647: - YYDEBUG(647, *YYCURSOR); - yyaccept = 68; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(647, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy71; + if (yych <= 'Z') goto yy658; + if (yych <= '^') goto yy71; + goto yy658; + } else { + if (yych <= '`') goto yy71; + if (yych <= 'z') goto yy658; + if (yych <= 0x7F) goto yy71; + goto yy658; + } yy648: - YYDEBUG(648, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_CALLABLE); -} + YYDEBUG(648, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'C') goto yy660; + if (yych == 'c') goto yy660; + goto yy40; yy649: - YYDEBUG(649, *YYCURSOR); - yyaccept = 69; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; + YYDEBUG(649, yych); + yych = *++YYCURSOR; + if (yych <= '^') { + if (yych <= '9') { + if (yych <= '/') goto yy661; + goto yy71; + } else { + if (yych <= '@') goto yy661; + if (yych <= 'Z') goto yy71; + goto yy661; + } + } else { + if (yych <= '`') { + if (yych <= '_') goto yy71; + goto yy661; + } else { + if (yych <= 'z') goto yy71; + if (yych <= 0x7F) goto yy661; + goto yy71; } - if (yych == '\\') goto yy160; + } yy650: - YYDEBUG(650, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_CONTINUE); -} + YYDEBUG(650, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy662; + goto yy40; yy651: - YYDEBUG(651, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy681; - if (yych == 'r') goto yy681; - goto yy47; + YYDEBUG(651, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'P') goto yy663; + if (yych == 'p') goto yy663; + goto yy40; yy652: - YYDEBUG(652, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy682; - if (yych == 'c') goto yy682; - goto yy47; + YYDEBUG(652, yych); + yyaccept = 86; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy653: - YYDEBUG(653, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'H') goto yy683; - if (yych == 'h') goto yy683; - goto yy47; + YYDEBUG(653, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_METHOD_C); +} yy654: - YYDEBUG(654, *YYCURSOR); - yyaccept = 70; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(654, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy664; + if (yych == 'e') goto yy664; + goto yy40; yy655: - YYDEBUG(655, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ENDWHILE); -} + YYDEBUG(655, yych); + yych = *++YYCURSOR; + if (yych == 'S') goto yy665; + if (yych == 's') goto yy665; + goto yy71; yy656: - YYDEBUG(656, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy685; - if (yych == 'e') goto yy685; - goto yy85; + YYDEBUG(656, yych); + yych = *++YYCURSOR; + if (yych == 'E') goto yy666; + if (yych == 'e') goto yy666; + goto yy71; yy657: - YYDEBUG(657, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'L') goto yy686; - if (yych == 'l') goto yy686; - goto yy85; + YYDEBUG(657, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy667; + if (yych == 'e') goto yy667; + goto yy40; yy658: - YYDEBUG(658, *YYCURSOR); - yyaccept = 71; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; + YYDEBUG(658, yych); + yyaccept = 87; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '\\') { + if (yych <= '@') { + if (yych <= '/') goto yy659; + if (yych <= '9') goto yy658; + } else { + if (yych <= 'Z') goto yy658; + if (yych >= '\\') goto yy647; + } + } else { + if (yych <= '`') { + if (yych == '_') goto yy658; + } else { + if (yych <= 'z') goto yy658; + if (yych >= 0x80) goto yy658; } - if (yych == '\\') goto yy160; + } yy659: - YYDEBUG(659, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_FUNCTION); + YYDEBUG(659, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_STR(T_NAME_RELATIVE, sizeof("namespace\\") - 1); } yy660: - YYDEBUG(660, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'T') goto yy687; - if (yych == 't') goto yy687; - goto yy47; + YYDEBUG(660, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy669; + if (yych == 'e') goto yy669; + goto yy40; yy661: - YYDEBUG(661, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy688; - if (yych == 'o') goto yy688; - goto yy47; + YYDEBUG(661, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { + yyless(yyleng - 1); + HANDLE_NEWLINES(yytext, yyleng); + RETURN_TOKEN_WITH_IDENT(T_YIELD_FROM); +} yy662: - YYDEBUG(662, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy689; - if (yych == 'o') goto yy689; - goto yy47; + YYDEBUG(662, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy671; + goto yy40; yy663: - YYDEBUG(663, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'F') goto yy690; - if (yych == 'f') goto yy690; - goto yy47; + YYDEBUG(663, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'I') goto yy673; + if (yych == 'i') goto yy673; + goto yy40; yy664: - YYDEBUG(664, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy692; - if (yych == 'e') goto yy692; - goto yy47; + YYDEBUG(664, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy674; + goto yy40; yy665: - YYDEBUG(665, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy694; - if (yych == 'e') goto yy694; - goto yy47; + YYDEBUG(665, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { + yyless(4); + RETURN_TOKEN_WITH_STR(T_STRING, 0); +} yy666: - YYDEBUG(666, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'D') goto yy696; - if (yych == 'd') goto yy696; - goto yy47; + YYDEBUG(666, yych); + yych = *++YYCURSOR; + if (yych == 'N') goto yy675; + if (yych == 'n') goto yy675; + goto yy71; yy667: - YYDEBUG(667, *YYCURSOR); - yyaccept = 72; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(667, yych); + yyaccept = 88; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy668: - YYDEBUG(668, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_READONLY); + YYDEBUG(668, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_INCLUDE_ONCE); } yy669: - YYDEBUG(669, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy698; - if (yych == 'o') goto yy698; - goto yy47; + YYDEBUG(669, yych); + yyaccept = 89; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy670: - YYDEBUG(670, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'O') goto yy699; - if (yych == 'o') goto yy699; - goto yy85; + YYDEBUG(670, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_REQUIRE_ONCE); +} yy671: - YYDEBUG(671, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy700; - goto yy47; + YYDEBUG(671, yych); + yyaccept = 90; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy672: - YYDEBUG(672, *YYCURSOR); - yyaccept = 73; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy673: - YYDEBUG(673, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_FILE); + YYDEBUG(672, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_FUNC_C); } +yy673: + YYDEBUG(673, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'L') goto yy676; + if (yych == 'l') goto yy676; + goto yy40; yy674: - YYDEBUG(674, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy702; - if (yych == 'o') goto yy702; - goto yy47; + YYDEBUG(674, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '_') goto yy677; + goto yy40; yy675: - YYDEBUG(675, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'O') goto yy703; - if (yych == 'o') goto yy703; - goto yy47; + YYDEBUG(675, yych); + yych = *++YYCURSOR; + if (yych == 'T') goto yy655; + if (yych == 't') goto yy655; + goto yy71; yy676: - YYDEBUG(676, *YYCURSOR); - yyaccept = 74; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; + YYDEBUG(676, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'E') goto yy679; + if (yych == 'e') goto yy679; + goto yy40; yy677: - YYDEBUG(677, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_LINE); -} + YYDEBUG(677, yych); + yyaccept = 91; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy678: - YYDEBUG(678, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy704; - goto yy47; + YYDEBUG(678, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { + RETURN_TOKEN_WITH_IDENT(T_NS_C); +} yy679: - YYDEBUG(679, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'A') goto yy705; - if (yych == 'a') goto yy705; - goto yy47; + YYDEBUG(679, yych); + yyaccept = 4; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'R') goto yy680; + if (yych != 'r') goto yy40; yy680: - YYDEBUG(680, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy706; - goto yy47; + YYDEBUG(680, yych); + yyaccept = 92; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_ST_IN_SCRIPTING[0+yych] & 8) goto yy39; + if (yych == '\\') goto yy127; yy681: - YYDEBUG(681, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy708; - if (yych == 'e') goto yy708; - goto yy47; -yy682: - YYDEBUG(682, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'H') goto yy710; - if (yych == 'h') goto yy710; - goto yy47; -yy683: - YYDEBUG(683, *YYCURSOR); - yyaccept = 75; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy684: - YYDEBUG(684, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ENDSWITCH); -} -yy685: - YYDEBUG(685, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'N') goto yy712; - if (yych == 'n') goto yy712; - goto yy85; -yy686: - YYDEBUG(686, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy713; - if (yych == 'e') goto yy713; - goto yy85; -yy687: - YYDEBUG(687, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'S') goto yy714; - if (yych == 's') goto yy714; - goto yy47; -yy688: - YYDEBUG(688, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy716; - if (yych == 'n') goto yy716; - goto yy47; -yy689: - YYDEBUG(689, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'F') goto yy717; - if (yych == 'f') goto yy717; - goto yy47; -yy690: - YYDEBUG(690, *YYCURSOR); - yyaccept = 76; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy691: - YYDEBUG(691, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_INSTEADOF); -} -yy692: - YYDEBUG(692, *YYCURSOR); - yyaccept = 77; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy693: - YYDEBUG(693, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_INTERFACE); -} -yy694: - YYDEBUG(694, *YYCURSOR); - yyaccept = 78; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy719; -yy695: - YYDEBUG(695, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_NAMESPACE); -} -yy696: - YYDEBUG(696, *YYCURSOR); - yyaccept = 79; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy697: - YYDEBUG(697, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_PROTECTED); -} -yy698: - YYDEBUG(698, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy720; - if (yych == 'n') goto yy720; - goto yy47; -yy699: - YYDEBUG(699, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'M') goto yy721; - if (yych == 'm') goto yy721; - goto yy85; -yy700: - YYDEBUG(700, *YYCURSOR); - yyaccept = 80; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy701: - YYDEBUG(701, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_CLASS_C); -} -yy702: - YYDEBUG(702, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'N') goto yy722; - if (yych == 'n') goto yy722; - goto yy47; -yy703: - YYDEBUG(703, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'M') goto yy723; - if (yych == 'm') goto yy723; - goto yy47; -yy704: - YYDEBUG(704, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy724; - goto yy47; -yy705: - YYDEBUG(705, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy726; - if (yych == 'c') goto yy726; - goto yy47; -yy706: - YYDEBUG(706, *YYCURSOR); - yyaccept = 81; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy707: - YYDEBUG(707, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_TRAIT_C); -} -yy708: - YYDEBUG(708, *YYCURSOR); - yyaccept = 82; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy709: - YYDEBUG(709, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ENDDECLARE); -} -yy710: - YYDEBUG(710, *YYCURSOR); - yyaccept = 83; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy711: - YYDEBUG(711, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_ENDFOREACH); -} -yy712: - YYDEBUG(712, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'D') goto yy727; - if (yych == 'd') goto yy727; - goto yy85; -yy713: - YYDEBUG(713, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'M') goto yy728; - if (yych == 'm') goto yy728; - goto yy85; -yy714: - YYDEBUG(714, *YYCURSOR); - yyaccept = 84; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy715: - YYDEBUG(715, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_IMPLEMENTS); -} -yy716: - YYDEBUG(716, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy729; - if (yych == 'c') goto yy729; - goto yy47; -yy717: - YYDEBUG(717, *YYCURSOR); - yyaccept = 85; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy718: - YYDEBUG(718, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_INSTANCEOF); -} -yy719: - YYDEBUG(719, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy85; - if (yych <= 'Z') goto yy730; - if (yych <= '^') goto yy85; - goto yy730; - } else { - if (yych <= '`') goto yy85; - if (yych <= 'z') goto yy730; - if (yych <= 0x7F) goto yy85; - goto yy730; - } -yy720: - YYDEBUG(720, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'C') goto yy733; - if (yych == 'c') goto yy733; - goto yy47; -yy721: - YYDEBUG(721, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '^') { - if (yych <= '9') { - if (yych <= '/') goto yy734; - goto yy85; - } else { - if (yych <= '@') goto yy734; - if (yych <= 'Z') goto yy85; - goto yy734; - } - } else { - if (yych <= '`') { - if (yych <= '_') goto yy85; - goto yy734; - } else { - if (yych <= 'z') goto yy85; - if (yych <= 0x7F) goto yy734; - goto yy85; - } - } -yy722: - YYDEBUG(722, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy736; - goto yy47; -yy723: - YYDEBUG(723, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'P') goto yy737; - if (yych == 'p') goto yy737; - goto yy47; -yy724: - YYDEBUG(724, *YYCURSOR); - yyaccept = 86; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy725: - YYDEBUG(725, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_METHOD_C); -} -yy726: - YYDEBUG(726, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy738; - if (yych == 'e') goto yy738; - goto yy47; -yy727: - YYDEBUG(727, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'S') goto yy739; - if (yych == 's') goto yy739; - goto yy85; -yy728: - YYDEBUG(728, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'E') goto yy741; - if (yych == 'e') goto yy741; - goto yy85; -yy729: - YYDEBUG(729, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy742; - if (yych == 'e') goto yy742; - goto yy47; -yy730: - YYDEBUG(730, *YYCURSOR); - yyaccept = 87; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(731, *YYCURSOR); - if (yych <= '\\') { - if (yych <= '@') { - if (yych <= '/') goto yy732; - if (yych <= '9') goto yy730; - } else { - if (yych <= 'Z') goto yy730; - if (yych >= '\\') goto yy719; - } - } else { - if (yych <= '`') { - if (yych == '_') goto yy730; - } else { - if (yych <= 'z') goto yy730; - if (yych >= 0x80) goto yy730; - } - } -yy732: - YYDEBUG(732, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_STR(T_NAME_RELATIVE, sizeof("namespace\\") - 1); -} -yy733: - YYDEBUG(733, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy744; - if (yych == 'e') goto yy744; - goto yy47; -yy734: - YYDEBUG(734, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(735, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - yyless(yyleng - 1); - HANDLE_NEWLINES(yytext, yyleng); - RETURN_TOKEN_WITH_IDENT(T_YIELD_FROM); -} -yy736: - YYDEBUG(736, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy746; - goto yy47; -yy737: - YYDEBUG(737, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'I') goto yy748; - if (yych == 'i') goto yy748; - goto yy47; -yy738: - YYDEBUG(738, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy749; - goto yy47; -yy739: - YYDEBUG(739, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(740, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - yyless(4); - RETURN_TOKEN_WITH_STR(T_STRING, 0); -} -yy741: - YYDEBUG(741, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'N') goto yy750; - if (yych == 'n') goto yy750; - goto yy85; -yy742: - YYDEBUG(742, *YYCURSOR); - yyaccept = 88; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy743: - YYDEBUG(743, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_INCLUDE_ONCE); -} -yy744: - YYDEBUG(744, *YYCURSOR); - yyaccept = 89; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy745: - YYDEBUG(745, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_REQUIRE_ONCE); -} -yy746: - YYDEBUG(746, *YYCURSOR); - yyaccept = 90; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy747: - YYDEBUG(747, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_FUNC_C); -} -yy748: - YYDEBUG(748, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'L') goto yy751; - if (yych == 'l') goto yy751; - goto yy47; -yy749: - YYDEBUG(749, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '_') goto yy752; - goto yy47; -yy750: - YYDEBUG(750, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'T') goto yy727; - if (yych == 't') goto yy727; - goto yy85; -yy751: - YYDEBUG(751, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'E') goto yy754; - if (yych == 'e') goto yy754; - goto yy47; -yy752: - YYDEBUG(752, *YYCURSOR); - yyaccept = 91; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy753: - YYDEBUG(753, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { - RETURN_TOKEN_WITH_IDENT(T_NS_C); -} -yy754: - YYDEBUG(754, *YYCURSOR); - yyaccept = 4; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'R') goto yy755; - if (yych != 'r') goto yy47; -yy755: - YYDEBUG(755, *YYCURSOR); - yyaccept = 92; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy46; - } - if (yych == '\\') goto yy160; -yy756: - YYDEBUG(756, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + YYDEBUG(681, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_IDENT(T_HALT_COMPILER); } - } /* *********************************** */ yyc_ST_LOOKING_FOR_PROPERTY: - { - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 64, 64, 0, 0, 64, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 64, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 0, 0, 0, 0, 0, 0, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 128, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - }; - YYDEBUG(757, *YYCURSOR); - YYFILL(4); - yych = *YYCURSOR; - if (yybm[0+yych] & 64) { - goto yy761; - } - if (yych <= '?') { - if (yych <= '-') { - if (yych == '#') goto yy764; - if (yych >= '-') goto yy766; - } else { - if (yych == '/') goto yy767; - if (yych >= '?') goto yy768; - } + YYFILL(4); + yych = *YYCURSOR; + YYDEBUG(682, yych); + if (yybm_ST_LOOKING_FOR_PROPERTY[0+yych] & 64) goto yy685; + if (yych <= '?') { + if (yych <= '-') { + if (yych == '#') goto yy686; + if (yych >= '-') goto yy687; } else { - if (yych <= '_') { - if (yych <= '@') goto yy759; - if (yych <= 'Z') goto yy769; - if (yych >= '_') goto yy769; - } else { - if (yych <= '`') goto yy759; - if (yych <= 'z') goto yy769; - if (yych >= 0x80) goto yy769; - } + if (yych == '/') goto yy688; + if (yych >= '?') goto yy689; } -yy759: - YYDEBUG(759, *YYCURSOR); - ++YYCURSOR; -yy760: - YYDEBUG(760, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } else { + if (yych <= '_') { + if (yych <= '@') goto yy683; + if (yych <= 'Z') goto yy690; + if (yych >= '_') goto yy690; + } else { + if (yych <= '`') goto yy683; + if (yych <= 'z') goto yy690; + if (yych >= 0x80) goto yy690; + } + } +yy683: + YYDEBUG(683, yych); + ++YYCURSOR; +yy684: + YYDEBUG(684, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(0); yy_pop_state(); goto restart; } -yy761: - YYDEBUG(761, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(762, *YYCURSOR); - if (yybm[0+yych] & 64) { - goto yy761; - } - YYDEBUG(763, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy685: + YYDEBUG(685, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_LOOKING_FOR_PROPERTY[0+yych] & 64) goto yy685; + yyleng = YYCURSOR - SCNG(yy_text); + { goto return_whitespace; } -yy764: - YYDEBUG(764, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(765, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy686: + YYDEBUG(686, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { while (YYCURSOR < YYLIMIT) { switch (*YYCURSOR++) { case '\r': @@ -8190,55 +8034,50 @@ yyleng = YYCURSOR - SCNG(yy_text); RETURN_OR_SKIP_TOKEN(T_COMMENT); } -yy766: - YYDEBUG(766, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '>') goto yy772; - goto yy760; -yy767: - YYDEBUG(767, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '*') goto yy774; - if (yych == '/') goto yy764; - goto yy760; -yy768: - YYDEBUG(768, *YYCURSOR); - yyaccept = 0; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '-') goto yy776; - goto yy760; -yy769: - YYDEBUG(769, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(770, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy769; - } - YYDEBUG(771, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy687: + YYDEBUG(687, yych); + yych = *++YYCURSOR; + if (yych == '>') goto yy691; + goto yy684; +yy688: + YYDEBUG(688, yych); + yych = *++YYCURSOR; + if (yych == '*') goto yy692; + if (yych == '/') goto yy686; + goto yy684; +yy689: + YYDEBUG(689, yych); + yyaccept = 0; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '-') goto yy694; + goto yy684; +yy690: + YYDEBUG(690, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_LOOKING_FOR_PROPERTY[0+yych] & 128) goto yy690; + yyleng = YYCURSOR - SCNG(yy_text); + { yy_pop_state(); RETURN_TOKEN_WITH_STR(T_STRING, 0); } -yy772: - YYDEBUG(772, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(773, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy691: + YYDEBUG(691, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_OBJECT_OPERATOR); } -yy774: - YYDEBUG(774, *YYCURSOR); - yyaccept = 1; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == '*') goto yy778; -yy775: - YYDEBUG(775, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy692: + YYDEBUG(692, yych); + yyaccept = 1; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == '*') goto yy696; +yy693: + YYDEBUG(693, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { int doc_com; if (yyleng > 2) { @@ -8273,106 +8112,64 @@ RETURN_OR_SKIP_TOKEN(T_COMMENT); } -yy776: - YYDEBUG(776, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '>') goto yy779; -yy777: - YYDEBUG(777, *YYCURSOR); - YYCURSOR = YYMARKER; - if (yyaccept == 0) { - goto yy760; - } else { - goto yy775; - } -yy778: - YYDEBUG(778, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '\f') { - if (yych <= 0x08) goto yy777; - if (yych <= '\n') goto yy781; - goto yy777; - } else { - if (yych <= '\r') goto yy781; - if (yych == ' ') goto yy781; - goto yy777; - } -yy779: - YYDEBUG(779, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(780, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy694: + YYDEBUG(694, yych); + yych = *++YYCURSOR; + if (yych == '>') goto yy697; +yy695: + YYDEBUG(695, yych); + YYCURSOR = YYMARKER; + if (yyaccept == 0) goto yy684; + else goto yy693; +yy696: + YYDEBUG(696, yych); + yych = *++YYCURSOR; + if (yych <= '\f') { + if (yych <= 0x08) goto yy695; + if (yych <= '\n') goto yy698; + goto yy695; + } else { + if (yych <= '\r') goto yy698; + if (yych == ' ') goto yy698; + goto yy695; + } +yy697: + YYDEBUG(697, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN(T_NULLSAFE_OBJECT_OPERATOR); } -yy781: - YYDEBUG(781, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(782, *YYCURSOR); - if (yych <= '\f') { - if (yych <= 0x08) goto yy775; - if (yych <= '\n') goto yy781; - goto yy775; - } else { - if (yych <= '\r') goto yy781; - if (yych == ' ') goto yy781; - goto yy775; - } +yy698: + YYDEBUG(698, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '\f') { + if (yych <= 0x08) goto yy693; + if (yych <= '\n') goto yy698; + goto yy693; + } else { + if (yych <= '\r') goto yy698; + if (yych == ' ') goto yy698; + goto yy693; } /* *********************************** */ yyc_ST_BACKQUOTE: + YYFILL(2); + yych = *YYCURSOR; + YYDEBUG(699, yych); + if (yych <= '_') { + if (yych == '$') goto yy701; + } else { + if (yych <= '`') goto yy702; + if (yych == '{') goto yy703; + } + ++YYCURSOR; +yy700: + YYDEBUG(700, yych); + yyleng = YYCURSOR - SCNG(yy_text); { - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 0, 0, 0, 0, 0, 0, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 128, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - }; - YYDEBUG(783, *YYCURSOR); - YYFILL(2); - yych = *YYCURSOR; - if (yych <= '_') { - if (yych == '$') goto yy787; - } else { - if (yych <= '`') goto yy788; - if (yych == '{') goto yy790; - } - YYDEBUG(785, *YYCURSOR); - ++YYCURSOR; -yy786: - YYDEBUG(786, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { if (YYCURSOR > YYLIMIT) { RETURN_END_TOKEN; } @@ -8416,208 +8213,162 @@ RETURN_TOKEN(T_ERROR); } } -yy787: - YYDEBUG(787, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy786; - if (yych <= 'Z') goto yy791; - if (yych <= '^') goto yy786; - goto yy791; - } else { - if (yych <= 'z') { - if (yych <= '`') goto yy786; - goto yy791; - } else { - if (yych <= '{') goto yy794; - if (yych <= 0x7F) goto yy786; - goto yy791; - } +yy701: + YYDEBUG(701, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy700; + if (yych <= 'Z') goto yy704; + if (yych <= '^') goto yy700; + goto yy704; + } else { + if (yych <= 'z') { + if (yych <= '`') goto yy700; + goto yy704; + } else { + if (yych <= '{') goto yy706; + if (yych <= 0x7F) goto yy700; + goto yy704; } -yy788: - YYDEBUG(788, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(789, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy702: + YYDEBUG(702, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { BEGIN(ST_IN_SCRIPTING); RETURN_TOKEN('`'); } -yy790: - YYDEBUG(790, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '$') goto yy796; - goto yy786; -yy791: - YYDEBUG(791, *YYCURSOR); - YYMARKER = ++YYCURSOR; - YYFILL(4); - yych = *YYCURSOR; - YYDEBUG(792, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy791; - } - if (yych <= '>') { - if (yych == '-') goto yy798; - } else { - if (yych <= '?') goto yy800; - if (yych <= '@') goto yy793; - if (yych <= '[') goto yy801; - } -yy793: - YYDEBUG(793, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy703: + YYDEBUG(703, yych); + yych = *++YYCURSOR; + if (yych == '$') goto yy707; + goto yy700; +yy704: + YYDEBUG(704, yych); + YYMARKER = ++YYCURSOR; + YYFILL(4); + yych = *YYCURSOR; + if (yybm_ST_BACKQUOTE[0+yych] & 128) goto yy704; + if (yych <= '>') { + if (yych == '-') goto yy708; + } else { + if (yych <= '?') goto yy710; + if (yych <= '@') goto yy705; + if (yych <= '[') goto yy711; + } +yy705: + YYDEBUG(705, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } -yy794: - YYDEBUG(794, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(795, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy706: + YYDEBUG(706, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yy_push_state(ST_LOOKING_FOR_VARNAME); enter_nesting('{'); RETURN_TOKEN(T_DOLLAR_OPEN_CURLY_BRACES); } -yy796: - YYDEBUG(796, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(797, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy707: + YYDEBUG(707, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yy_push_state(ST_IN_SCRIPTING); yyless(1); enter_nesting('{'); RETURN_TOKEN(T_CURLY_OPEN); } -yy798: - YYDEBUG(798, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '>') goto yy803; -yy799: - YYDEBUG(799, *YYCURSOR); - YYCURSOR = YYMARKER; - goto yy793; -yy800: - YYDEBUG(800, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '-') goto yy804; - goto yy799; -yy801: - YYDEBUG(801, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(802, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy708: + YYDEBUG(708, yych); + yych = *++YYCURSOR; + if (yych == '>') goto yy712; +yy709: + YYDEBUG(709, yych); + YYCURSOR = YYMARKER; + goto yy705; +yy710: + YYDEBUG(710, yych); + yych = *++YYCURSOR; + if (yych == '-') goto yy713; + goto yy709; +yy711: + YYDEBUG(711, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(yyleng - 1); yy_push_state(ST_VAR_OFFSET); RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } -yy803: - YYDEBUG(803, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy799; - if (yych <= 'Z') goto yy805; - if (yych <= '^') goto yy799; - goto yy805; - } else { - if (yych <= '`') goto yy799; - if (yych <= 'z') goto yy805; - if (yych <= 0x7F) goto yy799; - goto yy805; - } -yy804: - YYDEBUG(804, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '>') goto yy807; - goto yy799; -yy805: - YYDEBUG(805, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(806, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy712: + YYDEBUG(712, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy709; + if (yych <= 'Z') goto yy714; + if (yych <= '^') goto yy709; + goto yy714; + } else { + if (yych <= '`') goto yy709; + if (yych <= 'z') goto yy714; + if (yych <= 0x7F) goto yy709; + goto yy714; + } +yy713: + YYDEBUG(713, yych); + yych = *++YYCURSOR; + if (yych == '>') goto yy715; + goto yy709; +yy714: + YYDEBUG(714, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(yyleng - 3); yy_push_state(ST_LOOKING_FOR_PROPERTY); RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } -yy807: - YYDEBUG(807, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy799; - if (yych <= 'Z') goto yy808; - if (yych <= '^') goto yy799; - } else { - if (yych <= '`') goto yy799; - if (yych <= 'z') goto yy808; - if (yych <= 0x7F) goto yy799; - } -yy808: - YYDEBUG(808, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(809, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy715: + YYDEBUG(715, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy709; + if (yych <= 'Z') goto yy716; + if (yych <= '^') goto yy709; + } else { + if (yych <= '`') goto yy709; + if (yych <= 'z') goto yy716; + if (yych <= 0x7F) goto yy709; + } +yy716: + YYDEBUG(716, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(yyleng - 4); yy_push_state(ST_LOOKING_FOR_PROPERTY); RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } - } /* *********************************** */ yyc_ST_DOUBLE_QUOTES: + YYFILL(2); + yych = *YYCURSOR; + YYDEBUG(717, yych); + if (yych <= '#') { + if (yych == '"') goto yy719; + } else { + if (yych <= '$') goto yy720; + if (yych == '{') goto yy721; + } + ++YYCURSOR; +yy718: + YYDEBUG(718, yych); + yyleng = YYCURSOR - SCNG(yy_text); { - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 0, 0, 0, 0, 0, 0, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 128, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - }; - YYDEBUG(810, *YYCURSOR); - YYFILL(2); - yych = *YYCURSOR; - if (yych <= '#') { - if (yych == '"') goto yy814; - } else { - if (yych <= '$') goto yy816; - if (yych == '{') goto yy817; - } - YYDEBUG(812, *YYCURSOR); - ++YYCURSOR; -yy813: - YYDEBUG(813, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { if (GET_DOUBLE_QUOTES_SCANNED_LENGTH()) { YYCURSOR += GET_DOUBLE_QUOTES_SCANNED_LENGTH() - 1; SET_DOUBLE_QUOTES_SCANNED_LENGTH(0); @@ -8669,204 +8420,158 @@ RETURN_TOKEN(T_ERROR); } } -yy814: - YYDEBUG(814, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(815, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy719: + YYDEBUG(719, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { BEGIN(ST_IN_SCRIPTING); RETURN_TOKEN('"'); } -yy816: - YYDEBUG(816, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy813; - if (yych <= 'Z') goto yy818; - if (yych <= '^') goto yy813; - goto yy818; - } else { - if (yych <= 'z') { - if (yych <= '`') goto yy813; - goto yy818; - } else { - if (yych <= '{') goto yy821; - if (yych <= 0x7F) goto yy813; - goto yy818; - } - } -yy817: - YYDEBUG(817, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '$') goto yy823; - goto yy813; -yy818: - YYDEBUG(818, *YYCURSOR); - YYMARKER = ++YYCURSOR; - YYFILL(4); - yych = *YYCURSOR; - YYDEBUG(819, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy818; - } - if (yych <= '>') { - if (yych == '-') goto yy825; - } else { - if (yych <= '?') goto yy827; - if (yych <= '@') goto yy820; - if (yych <= '[') goto yy828; - } -yy820: - YYDEBUG(820, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy720: + YYDEBUG(720, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy718; + if (yych <= 'Z') goto yy722; + if (yych <= '^') goto yy718; + goto yy722; + } else { + if (yych <= 'z') { + if (yych <= '`') goto yy718; + goto yy722; + } else { + if (yych <= '{') goto yy724; + if (yych <= 0x7F) goto yy718; + goto yy722; + } + } +yy721: + YYDEBUG(721, yych); + yych = *++YYCURSOR; + if (yych == '$') goto yy725; + goto yy718; +yy722: + YYDEBUG(722, yych); + YYMARKER = ++YYCURSOR; + YYFILL(4); + yych = *YYCURSOR; + if (yybm_ST_DOUBLE_QUOTES[0+yych] & 128) goto yy722; + if (yych <= '>') { + if (yych == '-') goto yy726; + } else { + if (yych <= '?') goto yy728; + if (yych <= '@') goto yy723; + if (yych <= '[') goto yy729; + } +yy723: + YYDEBUG(723, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } -yy821: - YYDEBUG(821, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(822, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy724: + YYDEBUG(724, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yy_push_state(ST_LOOKING_FOR_VARNAME); enter_nesting('{'); RETURN_TOKEN(T_DOLLAR_OPEN_CURLY_BRACES); } -yy823: - YYDEBUG(823, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(824, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy725: + YYDEBUG(725, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yy_push_state(ST_IN_SCRIPTING); yyless(1); enter_nesting('{'); RETURN_TOKEN(T_CURLY_OPEN); } -yy825: - YYDEBUG(825, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '>') goto yy830; -yy826: - YYDEBUG(826, *YYCURSOR); - YYCURSOR = YYMARKER; - goto yy820; -yy827: - YYDEBUG(827, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '-') goto yy831; - goto yy826; -yy828: - YYDEBUG(828, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(829, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy726: + YYDEBUG(726, yych); + yych = *++YYCURSOR; + if (yych == '>') goto yy730; +yy727: + YYDEBUG(727, yych); + YYCURSOR = YYMARKER; + goto yy723; +yy728: + YYDEBUG(728, yych); + yych = *++YYCURSOR; + if (yych == '-') goto yy731; + goto yy727; +yy729: + YYDEBUG(729, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(yyleng - 1); yy_push_state(ST_VAR_OFFSET); RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } -yy830: - YYDEBUG(830, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy826; - if (yych <= 'Z') goto yy832; - if (yych <= '^') goto yy826; - goto yy832; - } else { - if (yych <= '`') goto yy826; - if (yych <= 'z') goto yy832; - if (yych <= 0x7F) goto yy826; - goto yy832; - } -yy831: - YYDEBUG(831, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '>') goto yy834; - goto yy826; -yy832: - YYDEBUG(832, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(833, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy730: + YYDEBUG(730, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy727; + if (yych <= 'Z') goto yy732; + if (yych <= '^') goto yy727; + goto yy732; + } else { + if (yych <= '`') goto yy727; + if (yych <= 'z') goto yy732; + if (yych <= 0x7F) goto yy727; + goto yy732; + } +yy731: + YYDEBUG(731, yych); + yych = *++YYCURSOR; + if (yych == '>') goto yy733; + goto yy727; +yy732: + YYDEBUG(732, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(yyleng - 3); yy_push_state(ST_LOOKING_FOR_PROPERTY); RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } -yy834: - YYDEBUG(834, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy826; - if (yych <= 'Z') goto yy835; - if (yych <= '^') goto yy826; - } else { - if (yych <= '`') goto yy826; - if (yych <= 'z') goto yy835; - if (yych <= 0x7F) goto yy826; - } -yy835: - YYDEBUG(835, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(836, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy733: + YYDEBUG(733, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy727; + if (yych <= 'Z') goto yy734; + if (yych <= '^') goto yy727; + } else { + if (yych <= '`') goto yy727; + if (yych <= 'z') goto yy734; + if (yych <= 0x7F) goto yy727; + } +yy734: + YYDEBUG(734, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(yyleng - 4); yy_push_state(ST_LOOKING_FOR_PROPERTY); RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } - } /* *********************************** */ yyc_ST_HEREDOC: + YYFILL(2); + yych = *YYCURSOR; + YYDEBUG(735, yych); + if (yych == '$') goto yy737; + if (yych == '{') goto yy738; + ++YYCURSOR; +yy736: + YYDEBUG(736, yych); + yyleng = YYCURSOR - SCNG(yy_text); { - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 0, 0, 0, 0, 0, 0, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 128, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - }; - YYDEBUG(837, *YYCURSOR); - YYFILL(2); - yych = *YYCURSOR; - if (yych == '$') goto yy841; - if (yych == '{') goto yy842; - YYDEBUG(839, *YYCURSOR); - ++YYCURSOR; -yy840: - YYDEBUG(840, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { zend_heredoc_label *heredoc_label = zend_ptr_stack_top(&SCNG(heredoc_label_stack)); int newline = 0, indentation = 0, spacing = 0; @@ -8988,420 +8693,335 @@ RETURN_TOKEN_WITH_VAL(T_ENCAPSED_AND_WHITESPACE); } -yy841: - YYDEBUG(841, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy840; - if (yych <= 'Z') goto yy843; - if (yych <= '^') goto yy840; - goto yy843; - } else { - if (yych <= 'z') { - if (yych <= '`') goto yy840; - goto yy843; - } else { - if (yych <= '{') goto yy846; - if (yych <= 0x7F) goto yy840; - goto yy843; - } - } -yy842: - YYDEBUG(842, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '$') goto yy848; - goto yy840; -yy843: - YYDEBUG(843, *YYCURSOR); - YYMARKER = ++YYCURSOR; - YYFILL(4); - yych = *YYCURSOR; - YYDEBUG(844, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy843; - } - if (yych <= '>') { - if (yych == '-') goto yy850; - } else { - if (yych <= '?') goto yy852; - if (yych <= '@') goto yy845; - if (yych <= '[') goto yy853; - } -yy845: - YYDEBUG(845, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy737: + YYDEBUG(737, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy736; + if (yych <= 'Z') goto yy739; + if (yych <= '^') goto yy736; + goto yy739; + } else { + if (yych <= 'z') { + if (yych <= '`') goto yy736; + goto yy739; + } else { + if (yych <= '{') goto yy741; + if (yych <= 0x7F) goto yy736; + goto yy739; + } + } +yy738: + YYDEBUG(738, yych); + yych = *++YYCURSOR; + if (yych == '$') goto yy742; + goto yy736; +yy739: + YYDEBUG(739, yych); + YYMARKER = ++YYCURSOR; + YYFILL(4); + yych = *YYCURSOR; + if (yybm_ST_HEREDOC[0+yych] & 128) goto yy739; + if (yych <= '>') { + if (yych == '-') goto yy743; + } else { + if (yych <= '?') goto yy745; + if (yych <= '@') goto yy740; + if (yych <= '[') goto yy746; + } +yy740: + YYDEBUG(740, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } -yy846: - YYDEBUG(846, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(847, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy741: + YYDEBUG(741, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yy_push_state(ST_LOOKING_FOR_VARNAME); enter_nesting('{'); RETURN_TOKEN(T_DOLLAR_OPEN_CURLY_BRACES); } -yy848: - YYDEBUG(848, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(849, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy742: + YYDEBUG(742, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yy_push_state(ST_IN_SCRIPTING); yyless(1); enter_nesting('{'); RETURN_TOKEN(T_CURLY_OPEN); } -yy850: - YYDEBUG(850, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '>') goto yy855; -yy851: - YYDEBUG(851, *YYCURSOR); - YYCURSOR = YYMARKER; - goto yy845; -yy852: - YYDEBUG(852, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '-') goto yy856; - goto yy851; -yy853: - YYDEBUG(853, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(854, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy743: + YYDEBUG(743, yych); + yych = *++YYCURSOR; + if (yych == '>') goto yy747; +yy744: + YYDEBUG(744, yych); + YYCURSOR = YYMARKER; + goto yy740; +yy745: + YYDEBUG(745, yych); + yych = *++YYCURSOR; + if (yych == '-') goto yy748; + goto yy744; +yy746: + YYDEBUG(746, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(yyleng - 1); yy_push_state(ST_VAR_OFFSET); RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } -yy855: - YYDEBUG(855, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy851; - if (yych <= 'Z') goto yy857; - if (yych <= '^') goto yy851; - goto yy857; - } else { - if (yych <= '`') goto yy851; - if (yych <= 'z') goto yy857; - if (yych <= 0x7F) goto yy851; - goto yy857; - } -yy856: - YYDEBUG(856, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == '>') goto yy859; - goto yy851; -yy857: - YYDEBUG(857, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(858, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy747: + YYDEBUG(747, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy744; + if (yych <= 'Z') goto yy749; + if (yych <= '^') goto yy744; + goto yy749; + } else { + if (yych <= '`') goto yy744; + if (yych <= 'z') goto yy749; + if (yych <= 0x7F) goto yy744; + goto yy749; + } +yy748: + YYDEBUG(748, yych); + yych = *++YYCURSOR; + if (yych == '>') goto yy750; + goto yy744; +yy749: + YYDEBUG(749, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(yyleng - 3); yy_push_state(ST_LOOKING_FOR_PROPERTY); RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } -yy859: - YYDEBUG(859, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy851; - if (yych <= 'Z') goto yy860; - if (yych <= '^') goto yy851; - } else { - if (yych <= '`') goto yy851; - if (yych <= 'z') goto yy860; - if (yych <= 0x7F) goto yy851; - } -yy860: - YYDEBUG(860, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(861, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy750: + YYDEBUG(750, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy744; + if (yych <= 'Z') goto yy751; + if (yych <= '^') goto yy744; + } else { + if (yych <= '`') goto yy744; + if (yych <= 'z') goto yy751; + if (yych <= 0x7F) goto yy744; + } +yy751: + YYDEBUG(751, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(yyleng - 4); yy_push_state(ST_LOOKING_FOR_PROPERTY); RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } - } /* *********************************** */ yyc_ST_LOOKING_FOR_VARNAME: + YYFILL(2); + yych = *YYCURSOR; + YYDEBUG(752, yych); + if (yych <= '_') { + if (yych <= '@') goto yy753; + if (yych <= 'Z') goto yy755; + if (yych >= '_') goto yy755; + } else { + if (yych <= '`') goto yy753; + if (yych <= 'z') goto yy755; + if (yych >= 0x80) goto yy755; + } +yy753: + YYDEBUG(753, yych); + ++YYCURSOR; +yy754: + YYDEBUG(754, yych); + yyleng = YYCURSOR - SCNG(yy_text); { - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 0, 0, 0, 0, 0, 0, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 128, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - }; - YYDEBUG(862, *YYCURSOR); - YYFILL(2); - yych = *YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy864; - if (yych <= 'Z') goto yy866; - if (yych >= '_') goto yy866; - } else { - if (yych <= '`') goto yy864; - if (yych <= 'z') goto yy866; - if (yych >= 0x80) goto yy866; - } -yy864: - YYDEBUG(864, *YYCURSOR); - ++YYCURSOR; -yy865: - YYDEBUG(865, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { yyless(0); yy_pop_state(); yy_push_state(ST_IN_SCRIPTING); goto restart; } -yy866: - YYDEBUG(866, *YYCURSOR); - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '_') { - if (yych <= '@') { - if (yych <= '/') goto yy865; - if (yych <= '9') goto yy868; - goto yy865; - } else { - if (yych <= '[') goto yy868; - if (yych <= '^') goto yy865; - goto yy868; - } - } else { - if (yych <= '|') { - if (yych <= '`') goto yy865; - if (yych <= 'z') goto yy868; - goto yy865; - } else { - if (yych <= '}') goto yy868; - if (yych <= 0x7F) goto yy865; - goto yy868; - } +yy755: + YYDEBUG(755, yych); + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= '_') { + if (yych <= '@') { + if (yych <= '/') goto yy754; + if (yych <= '9') goto yy757; + goto yy754; + } else { + if (yych <= '[') goto yy757; + if (yych <= '^') goto yy754; + goto yy757; } -yy867: - YYDEBUG(867, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; -yy868: - YYDEBUG(868, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy867; - } - if (yych <= '@') goto yy869; - if (yych <= '[') goto yy870; - if (yych == '}') goto yy870; -yy869: - YYDEBUG(869, *YYCURSOR); - YYCURSOR = YYMARKER; - goto yy865; -yy870: - YYDEBUG(870, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(871, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } else { + if (yych <= '|') { + if (yych <= '`') goto yy754; + if (yych <= 'z') goto yy757; + goto yy754; + } else { + if (yych <= '}') goto yy757; + if (yych <= 0x7F) goto yy754; + goto yy757; + } + } +yy756: + YYDEBUG(756, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; +yy757: + YYDEBUG(757, yych); + if (yybm_ST_LOOKING_FOR_VARNAME[0+yych] & 128) goto yy756; + if (yych <= '@') goto yy758; + if (yych <= '[') goto yy759; + if (yych == '}') goto yy759; +yy758: + YYDEBUG(758, yych); + YYCURSOR = YYMARKER; + goto yy754; +yy759: + YYDEBUG(759, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yyless(yyleng - 1); yy_pop_state(); yy_push_state(ST_IN_SCRIPTING); RETURN_TOKEN_WITH_STR(T_STRING_VARNAME, 0); } - } /* *********************************** */ yyc_ST_VAR_OFFSET: - { - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 248, 248, 216, 216, 216, 216, 216, 216, - 152, 152, 0, 0, 0, 0, 0, 0, - 0, 144, 144, 144, 144, 144, 144, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 0, 0, 0, 0, 16, - 0, 144, 144, 144, 144, 144, 144, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 0, 0, 0, 0, 0, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, - }; - YYDEBUG(872, *YYCURSOR); - YYFILL(2); - yych = *YYCURSOR; - if (yych <= '0') { - if (yych <= ' ') { - if (yych <= '\f') { - if (yych <= 0x08) goto yy874; - if (yych <= '\n') goto yy876; - } else { - if (yych <= '\r') goto yy876; - if (yych >= ' ') goto yy876; - } + YYFILL(2); + yych = *YYCURSOR; + YYDEBUG(760, yych); + if (yych <= '0') { + if (yych <= ' ') { + if (yych <= '\f') { + if (yych <= 0x08) goto yy761; + if (yych <= '\n') goto yy762; } else { - if (yych <= '$') { - if (yych <= '"') goto yy878; - if (yych <= '#') goto yy876; - goto yy880; - } else { - if (yych == '\'') goto yy876; - if (yych <= '/') goto yy878; - goto yy881; - } + if (yych <= '\r') goto yy762; + if (yych >= ' ') goto yy762; } } else { - if (yych <= ']') { - if (yych <= 'Z') { - if (yych <= '9') goto yy883; - if (yych <= '@') goto yy878; - goto yy885; - } else { - if (yych <= '[') goto yy878; - if (yych <= '\\') goto yy876; - goto yy888; - } + if (yych <= '$') { + if (yych <= '"') goto yy763; + if (yych <= '#') goto yy762; + goto yy765; + } else { + if (yych == '\'') goto yy762; + if (yych <= '/') goto yy763; + goto yy766; + } + } + } else { + if (yych <= ']') { + if (yych <= 'Z') { + if (yych <= '9') goto yy768; + if (yych <= '@') goto yy763; + goto yy769; + } else { + if (yych <= '[') goto yy763; + if (yych <= '\\') goto yy762; + goto yy770; + } + } else { + if (yych <= '`') { + if (yych == '_') goto yy769; + goto yy763; } else { - if (yych <= '`') { - if (yych == '_') goto yy885; - goto yy878; - } else { - if (yych <= 'z') goto yy885; - if (yych <= '~') goto yy878; - if (yych >= 0x80) goto yy885; - } + if (yych <= 'z') goto yy769; + if (yych <= '~') goto yy763; + if (yych >= 0x80) goto yy769; } } -yy874: - YYDEBUG(874, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(875, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy761: + YYDEBUG(761, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { if (YYCURSOR > YYLIMIT) { RETURN_END_TOKEN; } RETURN_TOKEN(T_BAD_CHARACTER); } -yy876: - YYDEBUG(876, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(877, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy762: + YYDEBUG(762, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { /* Invalid rule to return a more explicit parse error with proper line number */ yyless(0); yy_pop_state(); ZVAL_NULL(zendlval); RETURN_TOKEN_WITH_VAL(T_ENCAPSED_AND_WHITESPACE); } -yy878: - YYDEBUG(878, *YYCURSOR); - ++YYCURSOR; -yy879: - YYDEBUG(879, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy763: + YYDEBUG(763, yych); + ++YYCURSOR; +yy764: + YYDEBUG(764, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Only '[' or '-' can be valid, but returning other tokens will allow a more explicit parse error */ RETURN_TOKEN(yytext[0]); } -yy880: - YYDEBUG(880, *YYCURSOR); - yych = *++YYCURSOR; - if (yych <= '_') { - if (yych <= '@') goto yy879; - if (yych <= 'Z') goto yy890; - if (yych <= '^') goto yy879; - goto yy890; - } else { - if (yych <= '`') goto yy879; - if (yych <= 'z') goto yy890; - if (yych <= 0x7F) goto yy879; - goto yy890; - } -yy881: - YYDEBUG(881, *YYCURSOR); - yyaccept = 0; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'X') { - if (yych <= 'B') { - if (yych <= '/') goto yy882; - if (yych <= '9') goto yy893; - if (yych >= 'B') goto yy896; - } else { - if (yych == 'O') goto yy898; - if (yych >= 'X') goto yy899; - } +yy765: + YYDEBUG(765, yych); + yych = *++YYCURSOR; + if (yych <= '_') { + if (yych <= '@') goto yy764; + if (yych <= 'Z') goto yy771; + if (yych <= '^') goto yy764; + goto yy771; + } else { + if (yych <= '`') goto yy764; + if (yych <= 'z') goto yy771; + if (yych <= 0x7F) goto yy764; + goto yy771; + } +yy766: + YYDEBUG(766, yych); + yyaccept = 0; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'X') { + if (yych <= 'B') { + if (yych <= '/') goto yy767; + if (yych <= '9') goto yy773; + if (yych >= 'B') goto yy775; } else { - if (yych <= 'b') { - if (yych == '_') goto yy900; - if (yych >= 'b') goto yy896; + if (yych == 'O') goto yy777; + if (yych >= 'X') goto yy778; + } + } else { + if (yych <= 'b') { + if (yych == '_') goto yy779; + if (yych >= 'b') goto yy775; + } else { + if (yych <= 'o') { + if (yych >= 'o') goto yy777; } else { - if (yych <= 'o') { - if (yych >= 'o') goto yy898; - } else { - if (yych == 'x') goto yy899; - } + if (yych == 'x') goto yy778; } } -yy882: - YYDEBUG(882, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Offset could be treated as a long */ + } +yy767: + YYDEBUG(767, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Offset could be treated as a long */ if (yyleng < MAX_LENGTH_OF_LONG - 1 || (yyleng == MAX_LENGTH_OF_LONG - 1 && strcmp(yytext, long_min_digits) < 0)) { char *end; errno = 0; @@ -9416,82 +9036,72 @@ } RETURN_TOKEN_WITH_VAL(T_NUM_STRING); } -yy883: - YYDEBUG(883, *YYCURSOR); - yyaccept = 0; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(884, *YYCURSOR); - if (yybm[0+yych] & 8) { - goto yy883; - } - if (yych == '_') goto yy900; - goto yy882; -yy885: - YYDEBUG(885, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(886, *YYCURSOR); - if (yybm[0+yych] & 16) { - goto yy885; - } - YYDEBUG(887, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy768: + YYDEBUG(768, yych); + yyaccept = 0; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VAR_OFFSET[0+yych] & 8) goto yy768; + if (yych == '_') goto yy779; + goto yy767; +yy769: + YYDEBUG(769, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VAR_OFFSET[0+yych] & 16) goto yy769; + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_STR(T_STRING, 0); } -yy888: - YYDEBUG(888, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(889, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy770: + YYDEBUG(770, yych); + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { yy_pop_state(); RETURN_TOKEN(']'); } -yy890: - YYDEBUG(890, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(891, *YYCURSOR); - if (yych <= '^') { - if (yych <= '9') { - if (yych >= '0') goto yy890; - } else { - if (yych <= '@') goto yy892; - if (yych <= 'Z') goto yy890; - } +yy771: + YYDEBUG(771, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '^') { + if (yych <= '9') { + if (yych >= '0') goto yy771; } else { - if (yych <= '`') { - if (yych <= '_') goto yy890; - } else { - if (yych <= 'z') goto yy890; - if (yych >= 0x80) goto yy890; - } + if (yych <= '@') goto yy772; + if (yych <= 'Z') goto yy771; + } + } else { + if (yych <= '`') { + if (yych <= '_') goto yy771; + } else { + if (yych <= 'z') goto yy771; + if (yych >= 0x80) goto yy771; } -yy892: - YYDEBUG(892, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { + } +yy772: + YYDEBUG(772, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { RETURN_TOKEN_WITH_STR(T_VARIABLE, 1); } -yy893: - YYDEBUG(893, *YYCURSOR); - yyaccept = 1; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(894, *YYCURSOR); - if (yych <= '/') goto yy895; - if (yych <= '9') goto yy893; - if (yych == '_') goto yy900; -yy895: - YYDEBUG(895, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { /* Offset must be treated as a string */ +yy773: + YYDEBUG(773, yych); + yyaccept = 1; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '/') goto yy774; + if (yych <= '9') goto yy773; + if (yych == '_') goto yy779; +yy774: + YYDEBUG(774, yych); + yyleng = YYCURSOR - SCNG(yy_text); + { /* Offset must be treated as a string */ if (yyleng == 1) { ZVAL_INTERNED_STR(zendlval, ZSTR_CHAR((zend_uchar)*(yytext))); } else { @@ -9499,169 +9109,107 @@ } RETURN_TOKEN_WITH_VAL(T_NUM_STRING); } -yy896: - YYDEBUG(896, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yybm[0+yych] & 32) { - goto yy901; - } -yy897: - YYDEBUG(897, *YYCURSOR); - YYCURSOR = YYMARKER; - if (yyaccept == 0) { - goto yy882; - } else { - goto yy895; - } -yy898: - YYDEBUG(898, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yybm[0+yych] & 64) { - goto yy903; - } - goto yy897; -yy899: - YYDEBUG(899, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy905; - } - goto yy897; -yy900: - YYDEBUG(900, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - if (yych <= '/') goto yy897; - if (yych <= '9') goto yy893; - goto yy897; -yy901: - YYDEBUG(901, *YYCURSOR); - yyaccept = 1; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(902, *YYCURSOR); - if (yybm[0+yych] & 32) { - goto yy901; - } - if (yych == '_') goto yy896; - goto yy895; -yy903: - YYDEBUG(903, *YYCURSOR); - yyaccept = 1; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(904, *YYCURSOR); - if (yybm[0+yych] & 64) { - goto yy903; - } - if (yych == '_') goto yy898; - goto yy895; -yy905: - YYDEBUG(905, *YYCURSOR); - yyaccept = 1; - YYMARKER = ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(906, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy905; - } - if (yych == '_') goto yy899; - goto yy895; - } +yy775: + YYDEBUG(775, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VAR_OFFSET[0+yych] & 32) goto yy780; +yy776: + YYDEBUG(776, yych); + YYCURSOR = YYMARKER; + if (yyaccept == 0) goto yy767; + else goto yy774; +yy777: + YYDEBUG(777, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VAR_OFFSET[0+yych] & 64) goto yy781; + goto yy776; +yy778: + YYDEBUG(778, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VAR_OFFSET[0+yych] & 128) goto yy782; + goto yy776; +yy779: + YYDEBUG(779, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yych <= '/') goto yy776; + if (yych <= '9') goto yy773; + goto yy776; +yy780: + YYDEBUG(780, yych); + yyaccept = 1; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VAR_OFFSET[0+yych] & 32) goto yy780; + if (yych == '_') goto yy775; + goto yy774; +yy781: + YYDEBUG(781, yych); + yyaccept = 1; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VAR_OFFSET[0+yych] & 64) goto yy781; + if (yych == '_') goto yy777; + goto yy774; +yy782: + YYDEBUG(782, yych); + yyaccept = 1; + YYMARKER = ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_ST_VAR_OFFSET[0+yych] & 128) goto yy782; + if (yych == '_') goto yy778; + goto yy774; /* *********************************** */ yyc_SHEBANG: + YYFILL(2); + yych = *YYCURSOR; + YYDEBUG(783, yych); + if (yych == '#') goto yy785; + ++YYCURSOR; +yy784: + YYDEBUG(784, yych); + yyleng = YYCURSOR - SCNG(yy_text); { - static const unsigned char yybm[] = { - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 0, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - }; - YYDEBUG(907, *YYCURSOR); - YYFILL(2); - yych = *YYCURSOR; - if (yych == '#') goto yy911; - YYDEBUG(909, *YYCURSOR); - ++YYCURSOR; -yy910: - YYDEBUG(910, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { yyless(0); BEGIN(INITIAL); goto restart; } -yy911: - YYDEBUG(911, *YYCURSOR); - yych = *++YYCURSOR; - if (yych != '!') goto yy910; -yy912: - YYDEBUG(912, *YYCURSOR); - ++YYCURSOR; - YYFILL(1); - yych = *YYCURSOR; - YYDEBUG(913, *YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy912; - } - YYDEBUG(914, *YYCURSOR); - ++YYCURSOR; - YYDEBUG(915, *YYCURSOR); - yyleng = YYCURSOR - SCNG(yy_text); - { +yy785: + YYDEBUG(785, yych); + yych = *++YYCURSOR; + if (yych != '!') goto yy784; +yy786: + YYDEBUG(786, yych); + ++YYCURSOR; + YYFILL(1); + yych = *YYCURSOR; + if (yybm_SHEBANG[0+yych] & 128) goto yy786; + ++YYCURSOR; + yyleng = YYCURSOR - SCNG(yy_text); + { CG(zend_lineno)++; BEGIN(INITIAL); goto restart; } - } /* *********************************** */ yyc_INITIAL: - YYDEBUG(916, *YYCURSOR); YYFILL(7); yych = *YYCURSOR; - if (yych == '<') goto yy920; - YYDEBUG(918, *YYCURSOR); + YYDEBUG(787, yych); + if (yych == '<') goto yy789; ++YYCURSOR; -yy919: - YYDEBUG(919, *YYCURSOR); +yy788: + YYDEBUG(788, yych); yyleng = YYCURSOR - SCNG(yy_text); { if (YYCURSOR > YYLIMIT) { @@ -9714,20 +9262,19 @@ HANDLE_NEWLINES(yytext, yyleng); RETURN_TOKEN_WITH_VAL(T_INLINE_HTML); } -yy920: - YYDEBUG(920, *YYCURSOR); +yy789: + YYDEBUG(789, yych); yych = *++YYCURSOR; - if (yych != '?') goto yy919; - YYDEBUG(921, *YYCURSOR); + if (yych != '?') goto yy788; yych = *(YYMARKER = ++YYCURSOR); if (yych <= 'O') { - if (yych == '=') goto yy923; + if (yych == '=') goto yy791; } else { - if (yych <= 'P') goto yy925; - if (yych == 'p') goto yy925; + if (yych <= 'P') goto yy792; + if (yych == 'p') goto yy792; } -yy922: - YYDEBUG(922, *YYCURSOR); +yy790: + YYDEBUG(790, yych); yyleng = YYCURSOR - SCNG(yy_text); { if (CG(short_tags)) { @@ -9737,10 +9284,9 @@ goto inline_char_handler; } } -yy923: - YYDEBUG(923, *YYCURSOR); +yy791: + YYDEBUG(791, yych); ++YYCURSOR; - YYDEBUG(924, *YYCURSOR); yyleng = YYCURSOR - SCNG(yy_text); { BEGIN(ST_IN_SCRIPTING); @@ -9750,32 +9296,32 @@ } RETURN_TOKEN(T_OPEN_TAG_WITH_ECHO); } -yy925: - YYDEBUG(925, *YYCURSOR); +yy792: + YYDEBUG(792, yych); yych = *++YYCURSOR; - if (yych == 'H') goto yy927; - if (yych == 'h') goto yy927; -yy926: - YYDEBUG(926, *YYCURSOR); + if (yych == 'H') goto yy794; + if (yych == 'h') goto yy794; +yy793: + YYDEBUG(793, yych); YYCURSOR = YYMARKER; - goto yy922; -yy927: - YYDEBUG(927, *YYCURSOR); - yych = *++YYCURSOR; - if (yych == 'P') goto yy928; - if (yych != 'p') goto yy926; -yy928: - YYDEBUG(928, *YYCURSOR); + goto yy790; +yy794: + YYDEBUG(794, yych); + yych = *++YYCURSOR; + if (yych == 'P') goto yy795; + if (yych != 'p') goto yy793; +yy795: + YYDEBUG(795, yych); yych = *++YYCURSOR; if (yych <= '\f') { - if (yych <= 0x08) goto yy929; - if (yych <= '\n') goto yy930; + if (yych <= 0x08) goto yy796; + if (yych <= '\n') goto yy797; } else { - if (yych <= '\r') goto yy932; - if (yych == ' ') goto yy930; + if (yych <= '\r') goto yy799; + if (yych == ' ') goto yy797; } -yy929: - YYDEBUG(929, *YYCURSOR); +yy796: + YYDEBUG(796, yych); yyleng = YYCURSOR - SCNG(yy_text); { /* Allow = 2 && cwd[1] == ':') { - cwd[0] = toupper(cwd[0]); + cwd[0] = toupper((unsigned char)cwd[0]); } #endif main_cwd_state.cwd = strdup(cwd); @@ -273,7 +273,7 @@ *length = state->cwd_length+1; retval = (char *) emalloc(*length+1); memcpy(retval, state->cwd, *length); - retval[0] = toupper(retval[0]); + retval[0] = toupper((unsigned char)retval[0]); retval[*length-1] = DEFAULT_SLASH; retval[*length] = '\0'; return retval; @@ -1115,7 +1115,7 @@ if (resolved_path[start] == 0) { goto verify; } - resolved_path[start] = toupper(resolved_path[start]); + resolved_path[start] = toupper((unsigned char)resolved_path[start]); start++; } resolved_path[start++] = DEFAULT_SLASH; @@ -1123,13 +1123,13 @@ if (resolved_path[start] == 0) { goto verify; } - resolved_path[start] = toupper(resolved_path[start]); + resolved_path[start] = toupper((unsigned char)resolved_path[start]); start++; } resolved_path[start++] = DEFAULT_SLASH; } else if (IS_ABSOLUTE_PATH(resolved_path, path_length)) { /* skip DRIVE name */ - resolved_path[0] = toupper(resolved_path[0]); + resolved_path[0] = toupper((unsigned char)resolved_path[0]); resolved_path[2] = DEFAULT_SLASH; start = 3; } diff -Nru php8.2-8.2.30/Zend/zend_virtual_cwd.h php8.2-8.2.31/Zend/zend_virtual_cwd.h --- php8.2-8.2.30/Zend/zend_virtual_cwd.h 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/Zend/zend_virtual_cwd.h 2026-05-05 13:59:08.000000000 +0000 @@ -85,7 +85,7 @@ #define IS_UNC_PATH(path, len) \ (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1])) #define IS_ABSOLUTE_PATH(path, len) \ - (len >= 2 && (/* is local */isalpha(path[0]) && path[1] == ':' || /* is UNC */IS_SLASH(path[0]) && IS_SLASH(path[1]))) + (len >= 2 && (/* is local */isalpha((unsigned char)(path)[0]) && path[1] == ':' || /* is UNC */IS_SLASH(path[0]) && IS_SLASH(path[1]))) #else #ifdef HAVE_DIRENT_H diff -Nru php8.2-8.2.30/configure php8.2-8.2.31/configure --- php8.2-8.2.30/configure 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/configure 2026-05-05 13:59:08.000000000 +0000 @@ -1,11 +1,12 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for PHP 8.2.30. +# Generated by GNU Autoconf 2.72 for PHP 8.2.31. # # Report bugs to . # # -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, +# Inc. # # # This configure script is free software; the Free Software Foundation @@ -16,63 +17,65 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -81,13 +84,6 @@ fi -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( @@ -96,43 +92,27 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. @@ -153,26 +133,28 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 +# out after a failed 'exec'. +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in #( +else case e in #( + e) case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi " @@ -187,42 +169,55 @@ as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : +if ( set x; as_fn_ret_success y && test x = \"\$1\" ) +then : -else - exitcode=1; echo positional parameters were not saved. +else case e in #( + e) exitcode=1; echo positional parameters were not saved. ;; +esac fi test x\$exitcode = x0 || exit 1 +blah=\$(echo \$(echo blah)) +test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" - if (eval "$as_required") 2>/dev/null; then : + if (eval "$as_required") 2>/dev/null +then : as_have_required=yes -else - as_have_required=no +else case e in #( + e) as_have_required=no ;; +esac fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null +then : -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base + as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null +then : break 2 fi fi @@ -230,14 +225,22 @@ esac as_found=false done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } IFS=$as_save_IFS +if $as_found +then : + +else case e in #( + e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi ;; +esac +fi - if test "x$CONFIG_SHELL" != x; then : + if test "x$CONFIG_SHELL" != x +then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also @@ -254,26 +257,28 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +# out after a failed 'exec'. +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." + if test x$as_have_required = xno +then : + printf "%s\n" "$0: This script requires a shell more modern than all" + printf "%s\n" "$0: the shells that I found on your system." + if test ${ZSH_VERSION+y} ; then + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else - $as_echo "$0: Please tell bug-autoconf@gnu.org and + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: https://github.com/php/php-src/issues about your $0: system, including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -294,6 +299,7 @@ } as_unset=as_fn_unset + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -325,7 +331,7 @@ as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -334,7 +340,7 @@ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -373,16 +379,18 @@ # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -390,16 +398,18 @@ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -413,9 +423,9 @@ as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error @@ -442,7 +452,7 @@ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -475,6 +485,8 @@ /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -486,7 +498,7 @@ s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall @@ -500,6 +512,10 @@ exit } + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -513,6 +529,12 @@ ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -524,9 +546,9 @@ if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -551,10 +573,12 @@ as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated @@ -732,48 +756,44 @@ # Identity of this package. PACKAGE_NAME='PHP' PACKAGE_TARNAME='php' -PACKAGE_VERSION='8.2.30' -PACKAGE_STRING='PHP 8.2.30' +PACKAGE_VERSION='8.2.31' +PACKAGE_STRING='PHP 8.2.31' PACKAGE_BUGREPORT='https://github.com/php/php-src/issues' PACKAGE_URL='https://www.php.net' ac_unique_file="main/php_version.h" # Factoring default headers for most tests. ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include +#include +#ifdef HAVE_STDIO_H +# include #endif -#ifdef STDC_HEADERS +#ifdef HAVE_STDLIB_H # include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif #endif #ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif # include #endif -#ifdef HAVE_STRINGS_H -# include -#endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif #ifdef HAVE_UNISTD_H # include #endif" +ac_header_c_list= ac_subst_vars='LTLIBOBJS LIBTOOL NMEDIT @@ -1099,7 +1119,6 @@ enable_huge_code_pages enable_opcache_jit enable_pcntl -enable_pdo with_pdo_dblib with_pdo_firebird with_pdo_mysql @@ -1108,6 +1127,7 @@ with_pdo_odbc with_pdo_pgsql with_pdo_sqlite +enable_pdo with_pgsql enable_phar enable_posix @@ -1297,8 +1317,6 @@ *) ac_optarg=yes ;; esac - # Accept the important Cygnus configure options, so we can diagnose typos. - case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; @@ -1339,9 +1357,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1365,9 +1383,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1578,9 +1596,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1594,9 +1612,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1624,8 +1642,8 @@ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" + -*) as_fn_error $? "unrecognized option: '$ac_option' +Try '$0 --help' for more information" ;; *=*) @@ -1633,16 +1651,16 @@ # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; @@ -1658,7 +1676,7 @@ case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -1683,7 +1701,7 @@ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done -# There might be people who depend on the old broken behavior: `$host' +# There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias @@ -1722,7 +1740,7 @@ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | +printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -1751,7 +1769,7 @@ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` @@ -1779,7 +1797,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures PHP 8.2.30 to adapt to many kinds of systems. +'configure' configures PHP 8.2.31 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1793,11 +1811,11 @@ --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages + -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' + -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] + --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1805,10 +1823,10 @@ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +By default, 'make install' will install all the files in +'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify +an installation prefix other than '$ac_default_prefix' using '--prefix', +for instance '--prefix=\$HOME'. For better control, use the options below. @@ -1851,7 +1869,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of PHP 8.2.30:";; + short | recursive ) echo "Configuration of PHP 8.2.31:";; esac cat <<\_ACEOF @@ -2046,7 +2064,6 @@ Disable copying PHP CODE pages into HUGE PAGES --disable-opcache-jit Disable JIT --enable-pcntl Enable pcntl support (CLI/CGI only) - --disable-pdo Disable PHP Data Objects support --with-pdo-dblib[=DIR] PDO: DBLIB-DB support. DIR is the FreeTDS home directory --with-pdo-firebird[=DIR] @@ -2076,6 +2093,7 @@ --with-pdo-pgsql[=DIR] PDO: PostgreSQL support. DIR is the PostgreSQL base install directory or the path to pg_config --without-pdo-sqlite PDO: sqlite 3 support. + --disable-pdo Disable PHP Data Objects support --with-pgsql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL base install directory or the path to pg_config --disable-phar Disable phar support @@ -2247,7 +2265,7 @@ C compiler flags for LIBZIP, overriding pkg-config LIBZIP_LIBS linker flags for LIBZIP, overriding pkg-config -Use these variables to override the choices made by `configure' or to help +Use these variables to override the choices made by 'configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . @@ -2267,9 +2285,9 @@ case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -2297,7 +2315,8 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. + # Check for configure.gnu first; this name is used for a wrapper for + # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive @@ -2305,7 +2324,7 @@ echo && $SHELL "$ac_srcdir/configure" --help=recursive else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -2314,10 +2333,10 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -PHP configure 8.2.30 -generated by GNU Autoconf 2.69 +PHP configure 8.2.31 +generated by GNU Autoconf 2.72 -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -2334,14 +2353,14 @@ ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2349,17 +2368,19 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2378,7 +2399,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2386,155 +2407,24 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_cpp - -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists, giving a warning if it cannot be compiled using -# the include files in INCLUDES and setting the cache variable VAR -# accordingly. -ac_fn_c_check_header_mongrel () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if eval \${$3+:} false; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 -$as_echo_n "checking $2 usability... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_header_compiler=yes -else - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 -$as_echo_n "checking $2 presence... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <$2> -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - ac_header_preproc=yes -else - ac_header_preproc=no -fi -rm -f conftest.err conftest.i conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( - yes:no: ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; - no:yes:* ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} -( $as_echo "## ---------------------------------------------------- ## -## Report this to https://github.com/php/php-src/issues ## -## ---------------------------------------------------- ##" - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=\$ac_header_compiler" -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_mongrel - -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_c_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + ac_retval=1 ;; esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval -} # ac_fn_c_try_run +} # ac_fn_c_try_cpp # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- @@ -2543,26 +2433,30 @@ ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$3=yes" -else - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile @@ -2573,14 +2467,14 @@ ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2588,20 +2482,22 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -2619,28 +2515,22 @@ ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif + which can conflict with char $2 (void); below. */ +#include #undef $2 /* Override any GCC internal prototype to avoid an error. @@ -2649,7 +2539,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +char $2 (void); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ @@ -2658,42 +2548,89 @@ #endif int -main () +main (void) { return $2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$3=yes" -else - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that +# executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } +then : + ac_retval=0 +else case e in #( + e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 + printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status ;; +esac +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2701,17 +2638,19 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2730,7 +2669,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2738,17 +2677,19 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2762,16 +2703,17 @@ ac_fn_c_check_member () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 -$as_echo_n "checking for $2.$3... " >&6; } -if eval \${$4+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +printf %s "checking for $2.$3... " >&6; } +if eval test \${$4+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int -main () +main (void) { static $2 ac_aggr; if (ac_aggr.$3) @@ -2780,14 +2722,15 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$4=yes" -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int -main () +main (void) { static $2 ac_aggr; if (sizeof ac_aggr.$3) @@ -2796,41 +2739,48 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$4=yes" -else - eval "$4=no" +else case e in #( + e) eval "$4=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$4 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member -# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES -# --------------------------------------------- +# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR +# ------------------------------------------------------------------ # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR -# accordingly. -ac_fn_c_check_decl () +# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. +ac_fn_check_decl () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_decl_name=`echo $2|sed 's/ *(.*//'` - as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 -$as_echo_n "checking whether $as_decl_name is declared... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +printf %s "checking whether $as_decl_name is declared... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` + eval ac_save_FLAGS=\$$6 + as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { #ifndef $as_decl_name #ifdef __cplusplus @@ -2844,19 +2794,24 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$3=yes" -else - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + eval $6=\$ac_save_FLAGS + ;; +esac fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno -} # ac_fn_c_check_decl +} # ac_fn_check_decl # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- @@ -2865,17 +2820,18 @@ ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=no" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof ($2)) return 0; @@ -2883,12 +2839,13 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof (($2))) return 0; @@ -2896,18 +2853,21 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else - eval "$3=yes" +else case e in #( + e) eval "$3=yes" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type @@ -2926,7 +2886,7 @@ /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; @@ -2936,14 +2896,15 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -2953,24 +2914,26 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=$ac_mid; break -else - as_fn_arith $ac_mid + 1 && ac_lo=$as_val +else case e in #( + e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi - as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; @@ -2980,14 +2943,15 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; @@ -2997,24 +2961,28 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_lo=$ac_mid; break -else - as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val +else case e in #( + e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi - as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else - ac_lo= ac_hi= +else case e in #( + e) ac_lo= ac_hi= ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val @@ -3022,7 +2990,7 @@ /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -3032,12 +3000,14 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=$ac_mid -else - as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +else case e in #( + e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; @@ -3047,12 +3017,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 -static long int longval () { return $2; } -static unsigned long int ulongval () { return $2; } +static long int longval (void) { return $2; } +static unsigned long int ulongval (void) { return $2; } #include #include int -main () +main (void) { FILE *f = fopen ("conftest.val", "w"); @@ -3080,10 +3050,12 @@ return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : echo >>conftest.val; read $3 config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by PHP $as_me 8.2.30, which was -generated by GNU Autoconf 2.69. Invocation command line was +It was created by PHP $as_me 8.2.31, which was +generated by GNU Autoconf 2.72. Invocation command line was - $ $0 $@ + $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log @@ -3134,8 +3126,12 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS @@ -3170,7 +3166,7 @@ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; @@ -3205,11 +3201,13 @@ # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? + # Sanitize IFS. + IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo - $as_echo "## ---------------- ## + printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo @@ -3220,8 +3218,8 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -3245,7 +3243,7 @@ ) echo - $as_echo "## ----------------- ## + printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -3253,14 +3251,14 @@ do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## + printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo @@ -3268,15 +3266,15 @@ do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then - $as_echo "## ----------- ## + printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo @@ -3284,8 +3282,8 @@ echo fi test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" + printf "%s\n" "$as_me: caught signal $ac_signal" + printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && @@ -3299,65 +3297,50 @@ # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h -$as_echo "/* confdefs.h */" > confdefs.h +printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF +printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF +printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF +printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF +printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF +printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF +printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac + ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site + ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" + +for ac_site_file in $ac_site_files do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} + case $ac_site_file in #( + */*) : + ;; #( + *) : + ac_site_file=./$ac_site_file ;; +esac + if test -f "$ac_site_file" && test -r "$ac_site_file"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi done @@ -3365,19 +3348,670 @@ # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi +# Test code for whether the C compiler supports C89 (global declarations) +ac_c_conftest_c89_globals=' +/* Does the compiler advertise C89 conformance? + Do not test the value of __STDC__, because some compilers set it to 0 + while being otherwise adequately conformant. */ +#if !defined __STDC__ +# error "Compiler does not advertise C89 conformance" +#endif + +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ +struct buf { int x; }; +struct buf * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (char **p, int i) +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* C89 style stringification. */ +#define noexpand_stringify(a) #a +const char *stringified = noexpand_stringify(arbitrary+token=sequence); + +/* C89 style token pasting. Exercises some of the corner cases that + e.g. old MSVC gets wrong, but not very hard. */ +#define noexpand_concat(a,b) a##b +#define expand_concat(a,b) noexpand_concat(a,b) +extern int vA; +extern int vbee; +#define aye A +#define bee B +int *pvA = &expand_concat(v,aye); +int *pvbee = &noexpand_concat(v,bee); + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not \xHH hex character constants. + These do not provoke an error unfortunately, instead are silently treated + as an "x". The following induces an error, until -std is added to get + proper ANSI mode. Curiously \x00 != x always comes out true, for an + array size at least. It is necessary to write \x00 == 0 to get something + that is true only with -std. */ +int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) '\''x'\'' +int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), + int, int);' + +# Test code for whether the C compiler supports C89 (body of main). +ac_c_conftest_c89_main=' +ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); +' + +# Test code for whether the C compiler supports C99 (global declarations) +ac_c_conftest_c99_globals=' +/* Does the compiler advertise C99 conformance? */ +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L +# error "Compiler does not advertise C99 conformance" +#endif + +// See if C++-style comments work. + +#include +extern int puts (const char *); +extern int printf (const char *, ...); +extern int dprintf (int, const char *, ...); +extern void *malloc (size_t); +extern void free (void *); + +// Check varargs macros. These examples are taken from C99 6.10.3.5. +// dprintf is used instead of fprintf to avoid needing to declare +// FILE and stderr. +#define debug(...) dprintf (2, __VA_ARGS__) +#define showlist(...) puts (#__VA_ARGS__) +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) +static void +test_varargs_macros (void) +{ + int x = 1234; + int y = 5678; + debug ("Flag"); + debug ("X = %d\n", x); + showlist (The first, second, and third items.); + report (x>y, "x is %d but y is %d", x, y); +} + +// Check long long types. +#define BIG64 18446744073709551615ull +#define BIG32 4294967295ul +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) +#if !BIG_OK + #error "your preprocessor is broken" +#endif +#if BIG_OK +#else + #error "your preprocessor is broken" +#endif +static long long int bignum = -9223372036854775807LL; +static unsigned long long int ubignum = BIG64; + +struct incomplete_array +{ + int datasize; + double data[]; +}; + +struct named_init { + int number; + const wchar_t *name; + double average; +}; + +typedef const char *ccp; + +static inline int +test_restrict (ccp restrict text) +{ + // Iterate through items via the restricted pointer. + // Also check for declarations in for loops. + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) + continue; + return 0; +} + +// Check varargs and va_copy. +static bool +test_varargs (const char *format, ...) +{ + va_list args; + va_start (args, format); + va_list args_copy; + va_copy (args_copy, args); + + const char *str = ""; + int number = 0; + float fnumber = 0; + + while (*format) + { + switch (*format++) + { + case '\''s'\'': // string + str = va_arg (args_copy, const char *); + break; + case '\''d'\'': // int + number = va_arg (args_copy, int); + break; + case '\''f'\'': // float + fnumber = va_arg (args_copy, double); + break; + default: + break; + } + } + va_end (args_copy); + va_end (args); + + return *str && number && fnumber; +} +' + +# Test code for whether the C compiler supports C99 (body of main). +ac_c_conftest_c99_main=' + // Check bool. + _Bool success = false; + success |= (argc != 0); + + // Check restrict. + if (test_restrict ("String literal") == 0) + success = true; + char *restrict newvar = "Another string"; + + // Check varargs. + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); + test_varargs_macros (); + + // Check flexible array members. + struct incomplete_array *ia = + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); + ia->datasize = 10; + for (int i = 0; i < ia->datasize; ++i) + ia->data[i] = i * 1.234; + // Work around memory leak warnings. + free (ia); + + // Check named initializers. + struct named_init ni = { + .number = 34, + .name = L"Test wide string", + .average = 543.34343, + }; + + ni.number = 58; + + int dynamic_array[ni.number]; + dynamic_array[0] = argv[0][0]; + dynamic_array[ni.number - 1] = 543; + + // work around unused variable warnings + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' + || dynamic_array[ni.number - 1] != 543); +' + +# Test code for whether the C compiler supports C11 (global declarations) +ac_c_conftest_c11_globals=' +/* Does the compiler advertise C11 conformance? */ +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L +# error "Compiler does not advertise C11 conformance" +#endif + +// Check _Alignas. +char _Alignas (double) aligned_as_double; +char _Alignas (0) no_special_alignment; +extern char aligned_as_int; +char _Alignas (0) _Alignas (int) aligned_as_int; + +// Check _Alignof. +enum +{ + int_alignment = _Alignof (int), + int_array_alignment = _Alignof (int[100]), + char_alignment = _Alignof (char) +}; +_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); + +// Check _Noreturn. +int _Noreturn does_not_return (void) { for (;;) continue; } + +// Check _Static_assert. +struct test_static_assert +{ + int x; + _Static_assert (sizeof (int) <= sizeof (long int), + "_Static_assert does not work in struct"); + long int y; +}; + +// Check UTF-8 literals. +#define u8 syntax error! +char const utf8_literal[] = u8"happens to be ASCII" "another string"; + +// Check duplicate typedefs. +typedef long *long_ptr; +typedef long int *long_ptr; +typedef long_ptr long_ptr; + +// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. +struct anonymous +{ + union { + struct { int i; int j; }; + struct { int k; long int l; } w; + }; + int m; +} v1; +' + +# Test code for whether the C compiler supports C11 (body of main). +ac_c_conftest_c11_main=' + _Static_assert ((offsetof (struct anonymous, i) + == offsetof (struct anonymous, w.k)), + "Anonymous union alignment botch"); + v1.i = 2; + v1.w.k = 5; + ok |= v1.i != 5; +' + +# Test code for whether the C compiler supports C11 (complete). +ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} +${ac_c_conftest_c11_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + ${ac_c_conftest_c11_main} + return ok; +} +" + +# Test code for whether the C compiler supports C99 (complete). +ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + return ok; +} +" + +# Test code for whether the C compiler supports C89 (complete). +ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + return ok; +} +" + +as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" +as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" +as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" +as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" +as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" +as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" +as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" +as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" +as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" +as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" +as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" +# Test code for whether the C++ compiler supports C++98 (global declarations) +ac_cxx_conftest_cxx98_globals=' +// Does the compiler advertise C++98 conformance? +#if !defined __cplusplus || __cplusplus < 199711L +# error "Compiler does not advertise C++98 conformance" +#endif + +// These inclusions are to reject old compilers that +// lack the unsuffixed header files. +#include +#include + +// and are *not* freestanding headers in C++98. +extern void assert (int); +namespace std { + extern int strcmp (const char *, const char *); +} + +// Namespaces, exceptions, and templates were all added after "C++ 2.0". +using std::exception; +using std::strcmp; + +namespace { + +void test_exception_syntax() +{ + try { + throw "test"; + } catch (const char *s) { + // Extra parentheses suppress a warning when building autoconf itself, + // due to lint rules shared with more typical C programs. + assert (!(strcmp) (s, "test")); + } +} + +template struct test_template +{ + T const val; + explicit test_template(T t) : val(t) {} + template T add(U u) { return static_cast(u) + val; } +}; + +} // anonymous namespace +' + +# Test code for whether the C++ compiler supports C++98 (body of main) +ac_cxx_conftest_cxx98_main=' + assert (argc); + assert (! argv[0]); +{ + test_exception_syntax (); + test_template tt (2.0); + assert (tt.add (4) == 6.0); + assert (true && !false); +} +' + +# Test code for whether the C++ compiler supports C++11 (global declarations) +ac_cxx_conftest_cxx11_globals=' +// Does the compiler advertise C++ 2011 conformance? +#if !defined __cplusplus || __cplusplus < 201103L +# error "Compiler does not advertise C++11 conformance" +#endif + +namespace cxx11test +{ + constexpr int get_val() { return 20; } + + struct testinit + { + int i; + double d; + }; + + class delegate + { + public: + delegate(int n) : n(n) {} + delegate(): delegate(2354) {} + + virtual int getval() { return this->n; }; + protected: + int n; + }; + + class overridden : public delegate + { + public: + overridden(int n): delegate(n) {} + virtual int getval() override final { return this->n * 2; } + }; + + class nocopy + { + public: + nocopy(int i): i(i) {} + nocopy() = default; + nocopy(const nocopy&) = delete; + nocopy & operator=(const nocopy&) = delete; + private: + int i; + }; + + // for testing lambda expressions + template Ret eval(Fn f, Ret v) + { + return f(v); + } + + // for testing variadic templates and trailing return types + template auto sum(V first) -> V + { + return first; + } + template auto sum(V first, Args... rest) -> V + { + return first + sum(rest...); + } +} +' + +# Test code for whether the C++ compiler supports C++11 (body of main) +ac_cxx_conftest_cxx11_main=' +{ + // Test auto and decltype + auto a1 = 6538; + auto a2 = 48573953.4; + auto a3 = "String literal"; + + int total = 0; + for (auto i = a3; *i; ++i) { total += *i; } + + decltype(a2) a4 = 34895.034; +} +{ + // Test constexpr + short sa[cxx11test::get_val()] = { 0 }; +} +{ + // Test initializer lists + cxx11test::testinit il = { 4323, 435234.23544 }; +} +{ + // Test range-based for + int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, + 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; + for (auto &x : array) { x += 23; } +} +{ + // Test lambda expressions + using cxx11test::eval; + assert (eval ([](int x) { return x*2; }, 21) == 42); + double d = 2.0; + assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); + assert (d == 5.0); + assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); + assert (d == 5.0); +} +{ + // Test use of variadic templates + using cxx11test::sum; + auto a = sum(1); + auto b = sum(1, 2); + auto c = sum(1.0, 2.0, 3.0); +} +{ + // Test constructor delegation + cxx11test::delegate d1; + cxx11test::delegate d2(); + cxx11test::delegate d3(45); +} +{ + // Test override and final + cxx11test::overridden o1(55464); +} +{ + // Test nullptr + char *c = nullptr; +} +{ + // Test template brackets + test_template<::test_template> v(test_template(12)); +} +{ + // Unicode literals + char const *utf8 = u8"UTF-8 string \u2500"; + char16_t const *utf16 = u"UTF-8 string \u2500"; + char32_t const *utf32 = U"UTF-32 string \u2500"; +} +' + +# Test code for whether the C compiler supports C++11 (complete). +ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} +${ac_cxx_conftest_cxx11_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + ${ac_cxx_conftest_cxx11_main} + return ok; +} +" + +# Test code for whether the C compiler supports C++98 (complete). +ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + return ok; +} +" + + +# Auxiliary files required by this configure script. +ac_aux_files="config.guess config.sub" + +# Locations in which to look for auxiliary files. +ac_aux_dir_candidates="${srcdir}/build" + +# Search for a directory containing all of the required auxiliary files, +# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. +# If we don't find one directory that contains all the files we need, +# we report the set of missing files from the *first* directory in +# $ac_aux_dir_candidates and give up. +ac_missing_aux_files="" +ac_first_candidate=: +printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in $ac_aux_dir_candidates +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + as_found=: + + printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 + ac_aux_dir_found=yes + ac_install_sh= + for ac_aux in $ac_aux_files + do + # As a special case, if "install-sh" is required, that requirement + # can be satisfied by any of "install-sh", "install.sh", or "shtool", + # and $ac_install_sh is set appropriately for whichever one is found. + if test x"$ac_aux" = x"install-sh" + then + if test -f "${as_dir}install-sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 + ac_install_sh="${as_dir}install-sh -c" + elif test -f "${as_dir}install.sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 + ac_install_sh="${as_dir}install.sh -c" + elif test -f "${as_dir}shtool"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 + ac_install_sh="${as_dir}shtool install -c" + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} install-sh" + else + break + fi + fi + else + if test -f "${as_dir}${ac_aux}"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" + else + break + fi + fi + fi + done + if test "$ac_aux_dir_found" = yes; then + ac_aux_dir="$as_dir" + break + fi + ac_first_candidate=false + + as_found=false +done +IFS=$as_save_IFS +if $as_found +then : + +else case e in #( + e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; +esac +fi + + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +if test -f "${ac_aux_dir}config.guess"; then + ac_config_guess="$SHELL ${ac_aux_dir}config.guess" +fi +if test -f "${ac_aux_dir}config.sub"; then + ac_config_sub="$SHELL ${ac_aux_dir}config.sub" +fi +if test -f "$ac_aux_dir/configure"; then + ac_configure="$SHELL ${ac_aux_dir}configure" +fi + # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false @@ -3388,12 +4022,12 @@ eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -3402,24 +4036,24 @@ ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in @@ -3429,11 +4063,12 @@ fi done if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' + and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## @@ -3447,70 +4082,49 @@ -ac_aux_dir= -for ac_dir in build "$srcdir"/build; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$GREP"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in grep ggrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in +case `"$ac_path_GREP" --version 2>&1` in #( *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +#( *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -3536,19 +4150,21 @@ else ac_cv_path_GREP=$GREP fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then @@ -3558,25 +4174,31 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in egrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in +case `"$ac_path_EGREP" --version 2>&1` in #( *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +#( *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -3603,19 +4225,23 @@ ac_cv_path_EGREP=$EGREP fi - fi + fi ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" + EGREP_TRADITIONAL=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +printf %s "checking for a sed that does not truncate output... " >&6; } +if test ${ac_cv_path_SED+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done @@ -3628,25 +4254,31 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in sed gsed + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + ac_path_SED="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in +case `"$ac_path_SED" --version 2>&1` in #( *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +#( *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo '' >> "conftest.nl" + printf "%s\n" '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -3672,10 +4304,11 @@ else ac_cv_path_SED=$SED fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed @@ -3733,7 +4366,7 @@ else break fi - $as_echo "$CURRENT_ARG \\" >>config.nice + printf "%s\n" "$CURRENT_ARG \\" >>config.nice CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $CURRENT_ARG" done echo '"$@"' >> config.nice @@ -3753,26 +4386,31 @@ -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_build_alias=$build_alias + + + + # Make sure we can run config.sub. +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +printf %s "checking build system type... " >&6; } +if test ${ac_cv_build+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_build_alias=$build_alias test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 - +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +printf "%s\n" "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; @@ -3791,21 +4429,23 @@ case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$host_alias" = x; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; @@ -3824,21 +4464,23 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 -$as_echo_n "checking target system type... " >&6; } -if ${ac_cv_target+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$target_alias" = x; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +printf %s "checking target system type... " >&6; } +if test ${ac_cv_target+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else - ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 + ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 -$as_echo "$ac_cv_target" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +printf "%s\n" "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; @@ -3879,7 +4521,7 @@ ac_IFS=$IFS; IFS="." -set $(echo 8.2.30 | "${SED}" 's/\([0-9\.]*\)\(.*\)/\1\.\2/') +set $(echo 8.2.31 | "${SED}" 's/\([0-9\.]*\)\(.*\)/\1\.\2/') IFS=$ac_IFS PHP_MAJOR_VERSION=$1 PHP_MINOR_VERSION=$2 @@ -3953,12 +4595,13 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PKG_CONFIG in +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PKG_CONFIG+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; @@ -3967,11 +4610,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3979,15 +4626,16 @@ IFS=$as_save_IFS ;; +esac ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +printf "%s\n" "$PKG_CONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3996,12 +4644,13 @@ ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ac_pt_PKG_CONFIG in +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; @@ -4010,11 +4659,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4022,15 +4675,16 @@ IFS=$as_save_IFS ;; +esac ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then @@ -4038,8 +4692,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG @@ -4051,17 +4705,26 @@ fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } PKG_CONFIG="" fi fi + + + + + + + + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4072,38 +4735,44 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4116,38 +4785,44 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4159,8 +4834,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -4168,23 +4843,23 @@ fi -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 -for ac_option in --version -v -V -qversion; do +for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -4194,7 +4869,7 @@ cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done @@ -4202,7 +4877,7 @@ /* end confdefs.h. */ int -main () +main (void) { ; @@ -4214,9 +4889,9 @@ # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +printf %s "checking whether the C compiler works... " >&6; } +ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" @@ -4237,13 +4912,14 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : + # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. +# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. @@ -4258,12 +4934,12 @@ # certainly right. break;; *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' + # safe: cross compilers may not add the suffix if given an '-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. @@ -4274,48 +4950,52 @@ done test "$ac_cv_exeext" = no && ac_cv_exeext= -else - ac_file='' +else case e in #( + e) ac_file='' ;; +esac fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 +if test -z "$ac_file" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +See 'config.log' for more details" "$LINENO" 5; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +printf %s "checking for C compiler default output file name... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : + # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) +# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will +# work properly (i.e., refer to 'conftest.exe'), while it won't with +# 'rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in @@ -4325,15 +5005,16 @@ * ) break;; esac done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext @@ -4342,9 +5023,11 @@ /* end confdefs.h. */ #include int -main () +main (void) { FILE *f = fopen ("conftest.out", "w"); + if (!f) + return 1; return ferror (f) || fclose (f) != 0; ; @@ -4354,8 +5037,8 @@ ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in @@ -4363,10 +5046,10 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in @@ -4374,39 +5057,41 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} +as_fn_error 77 "cannot run C compiled programs. +If you meant to cross compile, use '--host'. +See 'config.log' for more details" "$LINENO" 5; } fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +printf "%s\n" "$cross_compiling" >&6; } -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +rm -f conftest.$ac_ext conftest$ac_cv_exeext \ + conftest.o conftest.obj conftest.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +printf %s "checking for suffix of object files... " >&6; } +if test ${ac_cv_objext+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -4420,11 +5105,12 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in @@ -4433,31 +5119,34 @@ break;; esac done -else - $as_echo "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext +rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 +printf %s "checking whether the compiler supports GNU C... " >&6; } +if test ${ac_cv_c_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -4467,30 +5156,36 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_c_compiler_gnu + if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi -ac_test_CFLAGS=${CFLAGS+set} +ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +printf %s "checking whether $CC accepts -g... " >&6; } +if test ${ac_cv_prog_cc_g+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" @@ -4498,57 +5193,63 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes -else - CFLAGS="" +else case e in #( + e) CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else - ac_c_werror_flag=$ac_save_c_werror_flag +else case e in #( + e) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +printf "%s\n" "$ac_cv_prog_cc_g" >&6; } +if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then @@ -4563,94 +5264,153 @@ CFLAGS= fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no +ac_prog_cc_stdc=no +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 +printf %s "checking for $CC option to enable C11 features... " >&6; } +if test ${ac_cv_prog_cc_c11+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; +$ac_c_conftest_c11_program +_ACEOF +for ac_arg in '' -std=gnu11 +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c11" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC ;; +esac +fi -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; +if test "x$ac_cv_prog_cc_c11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else case e in #( + e) if test "x$ac_cv_prog_cc_c11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } + CC="$CC $ac_cv_prog_cc_c11" ;; +esac +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 + ac_prog_cc_stdc=c11 ;; +esac +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 +printf %s "checking for $CC option to enable C99 features... " >&6; } +if test ${ac_cv_prog_cc_c99+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c99_program +_ACEOF +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c99=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c99" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC ;; +esac +fi -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} +if test "x$ac_cv_prog_cc_c99" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else case e in #( + e) if test "x$ac_cv_prog_cc_c99" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } + CC="$CC $ac_cv_prog_cc_c99" ;; +esac +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 + ac_prog_cc_stdc=c99 ;; +esac +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 +printf %s "checking for $CC option to enable C89 features... " >&6; } +if test ${ac_cv_prog_cc_c89+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c89_program _ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : + if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_c89=$ac_arg fi -rm -f core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac +fi +if test "x$ac_cv_prog_cc_c89" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else case e in #( + e) if test "x$ac_cv_prog_cc_c89" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } + CC="$CC $ac_cv_prog_cc_c89" ;; +esac fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 + ac_prog_cc_stdc=c89 ;; esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - +fi fi ac_ext=c @@ -4665,42 +5425,39 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +printf %s "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + if test ${ac_cv_prog_CPP+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # Double quotes because $CC needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -4710,56 +5467,56 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi done ac_cv_prog_CPP=$CPP - + ;; +esac fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +printf "%s\n" "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -4769,26 +5526,30 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -4798,230 +5559,192 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in grep ggrep + do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( +*GNU*) + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_TRADITIONAL_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : + fi +else + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL +fi + + if test "$ac_cv_path_EGREP_TRADITIONAL" +then : + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in egrep + do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( +*GNU*) + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_TRADITIONAL_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL +fi + ;; +esac +fi ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL + ICC="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5 -$as_echo_n "checking for icc... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icc" >&5 +printf %s "checking for icc... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ __INTEL_COMPILER _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "^__INTEL_COMPILER" >/dev/null 2>&1 +then : ICC="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -else - ICC="yes" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +else case e in #( + e) ICC="yes" GCC="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ;; +esac fi -rm -f conftest* +rm -rf conftest* SUNCC="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5 -$as_echo_n "checking for suncc... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5 +printf %s "checking for suncc... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ __SUNPRO_C _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "^__SUNPRO_C" >/dev/null 2>&1 +then : SUNCC="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -else - SUNCC="yes" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +else case e in #( + e) SUNCC="yes" GCC="no" test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload" GCC="" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi -rm -f conftest* - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 -$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } -if ${ac_cv_prog_cc_c99+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c99=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -#include - -// Check varargs macros. These examples are taken from C99 6.10.3.5. -#define debug(...) fprintf (stderr, __VA_ARGS__) -#define showlist(...) puts (#__VA_ARGS__) -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) -static void -test_varargs_macros (void) -{ - int x = 1234; - int y = 5678; - debug ("Flag"); - debug ("X = %d\n", x); - showlist (The first, second, and third items.); - report (x>y, "x is %d but y is %d", x, y); -} - -// Check long long types. -#define BIG64 18446744073709551615ull -#define BIG32 4294967295ul -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) -#if !BIG_OK - your preprocessor is broken; -#endif -#if BIG_OK -#else - your preprocessor is broken; -#endif -static long long int bignum = -9223372036854775807LL; -static unsigned long long int ubignum = BIG64; - -struct incomplete_array -{ - int datasize; - double data[]; -}; - -struct named_init { - int number; - const wchar_t *name; - double average; -}; - -typedef const char *ccp; - -static inline int -test_restrict (ccp restrict text) -{ - // See if C++-style comments work. - // Iterate through items via the restricted pointer. - // Also check for declarations in for loops. - for (unsigned int i = 0; *(text+i) != '\0'; ++i) - continue; - return 0; -} - -// Check varargs and va_copy. -static void -test_varargs (const char *format, ...) -{ - va_list args; - va_start (args, format); - va_list args_copy; - va_copy (args_copy, args); - - const char *str; - int number; - float fnumber; - - while (*format) - { - switch (*format++) - { - case 's': // string - str = va_arg (args_copy, const char *); - break; - case 'd': // int - number = va_arg (args_copy, int); - break; - case 'f': // float - fnumber = va_arg (args_copy, double); - break; - default: - break; - } - } - va_end (args_copy); - va_end (args); -} - -int -main () -{ - - // Check bool. - _Bool success = false; - - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; - - // Check varargs. - test_varargs ("s, d' f .", "string", 65, 34.234); - test_varargs_macros (); - - // Check flexible array members. - struct incomplete_array *ia = - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); - ia->datasize = 10; - for (int i = 0; i < ia->datasize; ++i) - ia->data[i] = i * 1.234; - - // Check named initializers. - struct named_init ni = { - .number = 34, - .name = L"Test wide string", - .average = 543.34343, - }; - - ni.number = 58; - - int dynamic_array[ni.number]; - dynamic_array[ni.number - 1] = 543; - - // work around unused variable warnings - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' - || dynamic_array[ni.number - 1] != 543); - - ; - return 0; -} -_ACEOF -for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c99=$ac_arg + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c99" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC +rm -rf conftest* -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c99" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c99" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 -$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c99" != xno; then : -fi ac_ext=c @@ -5029,42 +5752,39 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +printf %s "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + if test ${ac_cv_prog_CPP+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # Double quotes because $CC needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -5074,56 +5794,56 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi done ac_cv_prog_CPP=$CPP - + ;; +esac fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +printf "%s\n" "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -5133,26 +5853,30 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -5161,247 +5885,240 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +ac_header= ac_cache= +for ac_item in $ac_header_c_list +do + if test $ac_cache; then + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h + fi + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item + fi +done + + + + + + + + +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes +then : + +printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h + +fi + + + + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test ${ac_cv_safe_to_define___extensions__+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#include -#include +# define __EXTENSIONS__ 1 + $ac_includes_default int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_safe_to_define___extensions__=yes +else case e in #( + e) ac_cv_safe_to_define___extensions__=no ;; +esac fi -rm -f conftest* - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 +printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } +if test ${ac_cv_should_define__xopen_source+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_should_define__xopen_source=no + if test $ac_cv_header_wchar_h = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : -else - ac_cv_header_stdc=no -fi -rm -f conftest* + #include + mbstate_t x; +int +main (void) +{ -fi + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) + #define _XOPEN_SOURCE 500 + #include + mbstate_t x; int -main () +main (void) { - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; + + ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_should_define__xopen_source=yes fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 +printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } -$as_echo "#define STDC_HEADERS 1" >>confdefs.h + printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h -fi + printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h -fi + printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h -done + printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h + printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h + printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h - ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" -if test "x$ac_cv_header_minix_config_h" = xyes; then : - MINIX=yes -else - MINIX= -fi + printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h - if test "$MINIX" = yes; then + printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h -$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h -$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h -$as_echo "#define _MINIX 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h - fi + printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h + if test $ac_cv_header_minix_config_h = yes +then : + MINIX=yes + printf "%s\n" "#define _MINIX 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 -$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if ${ac_cv_safe_to_define___extensions__+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main () -{ + printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_safe_to_define___extensions__=yes -else - ac_cv_safe_to_define___extensions__=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else case e in #( + e) MINIX= ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 -$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } - test $ac_cv_safe_to_define___extensions__ = yes && - $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h - - $as_echo "#define _ALL_SOURCE 1" >>confdefs.h + if test $ac_cv_safe_to_define___extensions__ = yes +then : + printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h - $as_echo "#define _GNU_SOURCE 1" >>confdefs.h - - $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h - - $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h +fi + if test $ac_cv_should_define__xopen_source = yes +then : + printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h +fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 -$as_echo_n "checking whether ln -s works... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +printf %s "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 -$as_echo "no, using $LN_S" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +printf "%s\n" "no, using $LN_S" >&6; } fi if test "$cross_compiling" = yes ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native build C compiler" >&5 -$as_echo_n "checking for native build C compiler... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native build C compiler" >&5 +printf %s "checking for native build C compiler... " >&6; } for ac_prog in gcc clang c99 c89 cc cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_BUILD_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$BUILD_CC"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_BUILD_CC+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$BUILD_CC"; then ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_BUILD_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi BUILD_CC=$ac_cv_prog_BUILD_CC if test -n "$BUILD_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 -$as_echo "$BUILD_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 +printf "%s\n" "$BUILD_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5409,8 +6126,8 @@ done test -n "$BUILD_CC" || BUILD_CC="none" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 -$as_echo "$BUILD_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 +printf "%s\n" "$BUILD_CC" >&6; } else BUILD_CC=$CC fi @@ -5418,23 +6135,25 @@ php_with_libdir=lib -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5 -$as_echo_n "checking for system library directory... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5 +printf %s "checking for system library directory... " >&6; } # Check whether --with-libdir was given. -if test "${with_libdir+set}" = set; then : +if test ${with_libdir+y} +then : withval=$with_libdir; PHP_LIBDIR=$withval -else - +else case e in #( + e) PHP_LIBDIR=lib - + ;; +esac fi ext_output=$PHP_LIBDIR -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -5442,92 +6161,102 @@ php_enable_rpath=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable runpaths" >&5 -$as_echo_n "checking whether to enable runpaths... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable runpaths" >&5 +printf %s "checking whether to enable runpaths... " >&6; } # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then : +if test ${enable_rpath+y} +then : enableval=$enable_rpath; PHP_RPATH=$enableval -else - +else case e in #( + e) PHP_RPATH=yes - + ;; +esac fi ext_output=$PHP_RPATH -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5 -$as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; } -if ${php_cv_cc_rpath+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5 +printf %s "checking if compiler supports -Wl,-rpath,... " >&6; } +if test ${php_cv_cc_rpath+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) SAVE_LIBS=$LIBS LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : php_cv_cc_rpath=yes -else - php_cv_cc_rpath=no +else case e in #( + e) php_cv_cc_rpath=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - LIBS=$SAVE_LIBS + LIBS=$SAVE_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5 -$as_echo "$php_cv_cc_rpath" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5 +printf "%s\n" "$php_cv_cc_rpath" >&6; } if test $php_cv_cc_rpath = "yes"; then ld_runpath_switch=-Wl,-rpath, else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5 -$as_echo_n "checking if compiler supports -R... " >&6; } - if ${php_cv_cc_dashr+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5 +printf %s "checking if compiler supports -R... " >&6; } + if test ${php_cv_cc_dashr+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) SAVE_LIBS=$LIBS LIBS="-R /usr/$PHP_LIBDIR $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : php_cv_cc_dashr=yes -else - php_cv_cc_dashr=no +else case e in #( + e) php_cv_cc_dashr=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - LIBS=$SAVE_LIBS + LIBS=$SAVE_LIBS ;; +esac fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5 -$as_echo "$php_cv_cc_dashr" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5 +printf "%s\n" "$php_cv_cc_dashr" >&6; } if test $php_cv_cc_dashr = "yes"; then ld_runpath_switch=-R else @@ -5544,12 +6273,13 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AWK"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AWK+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5557,26 +6287,31 @@ for as_dir in $as_dummy do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +printf "%s\n" "$AWK" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5586,8 +6321,8 @@ case "$AWK" in *mawk) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5 -$as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5 +printf "%s\n" "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;} ;; *gawk) ;; @@ -5595,15 +6330,15 @@ as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5 ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5 -$as_echo_n "checking if $AWK is broken... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5 +printf %s "checking if $AWK is broken... " >&6; } if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } as_fn_error $? "You should install GNU awk" "$LINENO" 5 else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi ;; esac @@ -5614,38 +6349,44 @@ # Extract the first word of "bison", so it can be a program name with args. set dummy bison; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_YACC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$YACC"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_YACC+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_YACC="bison" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi YACC=$ac_cv_prog_YACC if test -n "$YACC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 -$as_echo "$YACC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 +printf "%s\n" "$YACC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5654,8 +6395,8 @@ php_bison_excluded_versions='none' if test -n "$YACC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5 -$as_echo_n "checking for bison version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5 +printf %s "checking for bison version... " >&6; } php_bison_version=$($YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | tr -d a-z) if test -z "$php_bison_version"; then @@ -5697,11 +6438,11 @@ PHP_VAR_SUBST="$PHP_VAR_SUBST YFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_bison_version (ok)" >&5 -$as_echo "$php_bison_version (ok)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_bison_version (ok)" >&5 +printf "%s\n" "$php_bison_version (ok)" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_bison_version" >&5 -$as_echo "$php_bison_version" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_bison_version" >&5 +printf "%s\n" "$php_bison_version" >&6; } fi fi @@ -5722,38 +6463,44 @@ # Extract the first word of "re2c", so it can be a program name with args. set dummy re2c; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RE2C+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$RE2C"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_RE2C+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$RE2C"; then ac_cv_prog_RE2C="$RE2C" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RE2C="re2c" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi RE2C=$ac_cv_prog_RE2C if test -n "$RE2C"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5 -$as_echo "$RE2C" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5 +printf "%s\n" "$RE2C" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5761,8 +6508,8 @@ php_re2c_required_version="0.13.4" if test -n "$RE2C"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5 -$as_echo_n "checking for re2c version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5 +printf %s "checking for re2c version... " >&6; } php_re2c_version=$($RE2C --version | cut -d ' ' -f 2 2>/dev/null) if test -z "$php_re2c_version"; then @@ -5789,11 +6536,11 @@ fi if test "$php_re2c_check" != "invalid"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_re2c_version (ok)" >&5 -$as_echo "$php_re2c_version (ok)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_re2c_version (ok)" >&5 +printf "%s\n" "$php_re2c_version (ok)" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_re2c_version" >&5 -$as_echo "$php_re2c_version" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_re2c_version" >&5 +printf "%s\n" "$php_re2c_version" >&6; } fi fi @@ -5814,45 +6561,51 @@ # Extract the first word of "php", so it can be a program name with args. set dummy php; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_PHP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$PHP"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_PHP+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$PHP"; then ac_cv_prog_PHP="$PHP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_PHP="php" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi PHP=$ac_cv_prog_PHP if test -n "$PHP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5 -$as_echo "$PHP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5 +printf "%s\n" "$PHP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test -n "$PHP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for php version" >&5 -$as_echo_n "checking for php version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for php version" >&5 +printf %s "checking for php version... " >&6; } php_version=$($PHP -v | head -n1 | cut -d ' ' -f 2 | cut -d '-' -f 1) if test -z "$php_version"; then php_version=0.0.0 @@ -5862,12 +6615,12 @@ IFS=$ac_IFS php_version_num=`expr ${1:-0} \* 10000 + ${2:-0} \* 100 + ${3:-0}` if test "$php_version_num" -lt 70400; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version (too old)" >&5 -$as_echo "$php_version (too old)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_version (too old)" >&5 +printf "%s\n" "$php_version (too old)" >&6; } unset PHP else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version (ok)" >&5 -$as_echo "$php_version (ok)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_version (ok)" >&5 +printf "%s\n" "$php_version (ok)" >&6; } fi fi @@ -5878,22 +6631,24 @@ php_enable_re2c_cgoto=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable computed goto gcc extension with re2c" >&5 -$as_echo_n "checking whether to enable computed goto gcc extension with re2c... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable computed goto gcc extension with re2c" >&5 +printf %s "checking whether to enable computed goto gcc extension with re2c... " >&6; } # Check whether --enable-re2c-cgoto was given. -if test "${enable_re2c_cgoto+set}" = set; then : +if test ${enable_re2c_cgoto+y} +then : enableval=$enable_re2c_cgoto; PHP_RE2C_CGOTO=$enableval -else - +else case e in #( + e) PHP_RE2C_CGOTO=no - + ;; +esac fi ext_output=$PHP_RE2C_CGOTO -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -5901,13 +6656,13 @@ if test "$PHP_RE2C_CGOTO" = "no"; then RE2C_FLAGS="" else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether re2c -g works" >&5 -$as_echo_n "checking whether re2c -g works... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether re2c -g works" >&5 +printf %s "checking whether re2c -g works... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { int main(int argc, const char **argv) @@ -5925,20 +6680,22 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : RE2C_FLAGS="" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +else case e in #( + e) RE2C_FLAGS="-g" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C_FLAGS" @@ -5960,75 +6717,87 @@ ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffp-contract=off" >&5 -$as_echo_n "checking whether C compiler accepts -ffp-contract=off... " >&6; } -if ${ax_cv_check_cflags___ffp_contract_off+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffp-contract=off" >&5 +printf %s "checking whether C compiler accepts -ffp-contract=off... " >&6; } +if test ${ax_cv_check_cflags___ffp_contract_off+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -ffp-contract=off" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags___ffp_contract_off=yes -else - ax_cv_check_cflags___ffp_contract_off=no +else case e in #( + e) ax_cv_check_cflags___ffp_contract_off=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffp_contract_off" >&5 -$as_echo "$ax_cv_check_cflags___ffp_contract_off" >&6; } -if test "x$ax_cv_check_cflags___ffp_contract_off" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffp_contract_off" >&5 +printf "%s\n" "$ax_cv_check_cflags___ffp_contract_off" >&6; } +if test "x$ax_cv_check_cflags___ffp_contract_off" = xyes +then : CFLAGS="$CFLAGS -ffp-contract=off" -else - : +else case e in #( + e) : ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5 -$as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; } -if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5 +printf %s "checking whether C compiler accepts -fvisibility=hidden... " >&6; } +if test ${ax_cv_check_cflags___fvisibility_hidden+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -fvisibility=hidden" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags___fvisibility_hidden=yes -else - ax_cv_check_cflags___fvisibility_hidden=no +else case e in #( + e) ax_cv_check_cflags___fvisibility_hidden=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5 -$as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; } -if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5 +printf "%s\n" "$ax_cv_check_cflags___fvisibility_hidden" >&6; } +if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes +then : CFLAGS="$CFLAGS -fvisibility=hidden" -else - : +else case e in #( + e) : ;; +esac fi @@ -6049,45 +6818,45 @@ ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force non-PIC code in shared modules" >&5 -$as_echo_n "checking whether to force non-PIC code in shared modules... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to force non-PIC code in shared modules" >&5 +printf %s "checking whether to force non-PIC code in shared modules... " >&6; } case $host_alias in i?86-*-linux*|i?86-*-freebsd*) if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then with_pic=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using musl libc" >&5 -$as_echo_n "checking whether we are using musl libc... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using musl libc" >&5 +printf %s "checking whether we are using musl libc... " >&6; } if command -v ldd >/dev/null && ldd --version 2>&1 | grep ^musl >/dev/null 2>&1 then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define __MUSL__ 1" >>confdefs.h +printf "%s\n" "#define __MUSL__ 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "$ac_cv_safe_to_define___extensions__" = yes ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use -D_GNU_SOURCE cflag" >&5 -$as_echo_n "checking whether to use -D_GNU_SOURCE cflag... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use -D_GNU_SOURCE cflag" >&5 +printf %s "checking whether to use -D_GNU_SOURCE cflag... " >&6; } CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -6098,29 +6867,31 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/urandom exists" >&5 -$as_echo_n "checking whether /dev/urandom exists... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether /dev/urandom exists" >&5 +printf %s "checking whether /dev/urandom exists... " >&6; } if test -r "/dev/urandom" && test -c "/dev/urandom"; then -$as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h +printf "%s\n" "#define HAVE_DEV_URANDOM 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --enable-gcc-global-regs was given. -if test "${enable_gcc_global_regs+set}" = set; then : +if test ${enable_gcc_global_regs+y} +then : enableval=$enable_gcc_global_regs; ZEND_GCC_GLOBAL_REGS=$enableval -else - ZEND_GCC_GLOBAL_REGS=yes +else case e in #( + e) ZEND_GCC_GLOBAL_REGS=yes ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for global register variables support" >&5 -$as_echo_n "checking for global register variables support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for global register variables support" >&5 +printf %s "checking for global register variables support... " >&6; } if test "$ZEND_GCC_GLOBAL_REGS" != "no"; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6162,7 +6933,7 @@ } int -main () +main (void) { @@ -6170,40 +6941,43 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ZEND_GCC_GLOBAL_REGS=yes -else - +else case e in #( + e) ZEND_GCC_GLOBAL_REGS=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$ZEND_GCC_GLOBAL_REGS" = "yes"; then -$as_echo "#define HAVE_GCC_GLOBAL_REGS 1" >>confdefs.h +printf "%s\n" "#define HAVE_GCC_GLOBAL_REGS 1" >>confdefs.h else HAVE_GCC_GLOBAL_REGS=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_GCC_GLOBAL_REGS" >&5 -$as_echo "$ZEND_GCC_GLOBAL_REGS" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __cpuid_count is available" >&5 -$as_echo_n "checking whether __cpuid_count is available... " >&6; } -if ${ac_cv_cpuid_count_available+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZEND_GCC_GLOBAL_REGS" >&5 +printf "%s\n" "$ZEND_GCC_GLOBAL_REGS" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __cpuid_count is available" >&5 +printf %s "checking whether __cpuid_count is available... " >&6; } +if test ${ac_cv_cpuid_count_available+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { unsigned eax, ebx, ecx, edx; @@ -6213,35 +6987,39 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_cpuid_count_available=yes -else - +else case e in #( + e) ac_cv_cpuid_count_available=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpuid_count_available" >&5 -$as_echo "$ac_cv_cpuid_count_available" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpuid_count_available" >&5 +printf "%s\n" "$ac_cv_cpuid_count_available" >&6; } if test "$ac_cv_cpuid_count_available" = "yes"; then -$as_echo "#define HAVE_CPUID_COUNT 1" >>confdefs.h +printf "%s\n" "#define HAVE_CPUID_COUNT 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 -$as_echo_n "checking for pthreads_cflags... " >&6; } -if ${ac_cv_pthreads_cflags+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 +printf %s "checking for pthreads_cflags... " >&6; } +if test ${ac_cv_pthreads_cflags+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_pthreads_cflags= if test "$pthreads_working" != "yes"; then for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do @@ -6266,17 +7044,19 @@ return pthread_create(&thd, NULL, thread_routine, &data); } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : pthreads_checked=yes -else - +else case e in #( + e) pthreads_checked=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS=$ac_save if test "$pthreads_checked" = "yes"; then @@ -6285,17 +7065,19 @@ fi done fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 -$as_echo "$ac_cv_pthreads_cflags" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 -$as_echo_n "checking for pthreads_lib... " >&6; } -if ${ac_cv_pthreads_lib+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 +printf "%s\n" "$ac_cv_pthreads_cflags" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 +printf %s "checking for pthreads_lib... " >&6; } +if test ${ac_cv_pthreads_lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_pthreads_lib= if test "$pthreads_working" != "yes"; then for lib in pthread pthreads c_r; do @@ -6320,17 +7102,19 @@ return pthread_create(&thd, NULL, thread_routine, &data); } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : pthreads_checked=yes -else - +else case e in #( + e) pthreads_checked=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_save if test "$pthreads_checked" = "yes"; then @@ -6339,10 +7123,11 @@ fi done fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 -$as_echo "$ac_cv_pthreads_lib" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 +printf "%s\n" "$ac_cv_pthreads_lib" >&6; } if test "x$ac_cv_pthreads_cflags" != "x" -o "x$ac_cv_pthreads_lib" != "x"; then pthreads_working="yes" @@ -6350,7 +7135,8 @@ # Check whether --enable- was given. -if test "${enable_+set}" = set; then : +if test ${enable_+y} +then : enableval=$enable_; fi @@ -6411,10 +7197,10 @@ SAPI_LIBTOOL=libphp.la - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5 -$as_echo "${T_MD}Configuring SAPI modules${T_ME}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5 +printf "%s\n" "${T_MD}Configuring SAPI modules${T_ME}" >&6; } @@ -6430,13 +7216,15 @@ # Check whether --with-apxs2 was given. -if test "${with_apxs2+set}" = set; then : +if test ${with_apxs2+y} +then : withval=$with_apxs2; PHP_APXS2=$withval -else - +else case e in #( + e) PHP_APXS2=no - + ;; +esac fi @@ -6446,8 +7234,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2 handler module support via DSO through APXS" >&5 -$as_echo_n "checking for Apache 2 handler module support via DSO through APXS... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Apache 2 handler module support via DSO through APXS" >&5 +printf %s "checking for Apache 2 handler module support via DSO through APXS... " >&6; } if test "$PHP_APXS2" != "no"; then if test "$PHP_APXS2" = "yes"; then @@ -6472,24 +7260,24 @@ $APXS -q CFLAGS >/dev/null 2>&1 if test "$?" != "0"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5 -$as_echo "Sorry, I cannot run apxs. Possible reasons follow:" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5 -$as_echo "1. Perl is not installed" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&5 -$as_echo "2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5 -$as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5 -$as_echo "The output of $APXS follows:" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5 +printf "%s\n" "Sorry, I cannot run apxs. Possible reasons follow:" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5 +printf "%s\n" "1. Perl is not installed" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&5 +printf "%s\n" "2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5 +printf "%s\n" "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5 +printf "%s\n" "The output of $APXS follows:" >&6; } $APXS -q CFLAGS as_fn_error $? "Aborting" "$LINENO" 5 fi @@ -7081,14 +7869,14 @@ fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } PHP_VAR_SUBST="$PHP_VAR_SUBST APXS" else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7099,13 +7887,15 @@ # Check whether --enable-cli was given. -if test "${enable_cli+set}" = set; then : +if test ${enable_cli+y} +then : enableval=$enable_cli; PHP_CLI=$enableval -else - +else case e in #( + e) PHP_CLI=yes - + ;; +esac fi @@ -7115,43 +7905,35 @@ -for ac_func in setproctitle -do : - ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" -if test "x$ac_cv_func_setproctitle" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SETPROCTITLE 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" +if test "x$ac_cv_func_setproctitle" = xyes +then : + printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h fi -done -for ac_header in sys/pstat.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_pstat_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_PSTAT_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_pstat_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_PSTAT_H 1" >>confdefs.h fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5 -$as_echo_n "checking for PS_STRINGS... " >&6; } -if ${cli_cv_var_PS_STRINGS+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5 +printf %s "checking for PS_STRINGS... " >&6; } +if test ${cli_cv_var_PS_STRINGS+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int -main () +main (void) { PS_STRINGS->ps_nargvstr = 1; PS_STRINGS->ps_argvstr = "foo"; @@ -7159,24 +7941,27 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : cli_cv_var_PS_STRINGS=yes -else - cli_cv_var_PS_STRINGS=no +else case e in #( + e) cli_cv_var_PS_STRINGS=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cli_cv_var_PS_STRINGS" >&5 -$as_echo "$cli_cv_var_PS_STRINGS" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cli_cv_var_PS_STRINGS" >&5 +printf "%s\n" "$cli_cv_var_PS_STRINGS" >&6; } if test "$cli_cv_var_PS_STRINGS" = yes ; then -$as_echo "#define HAVE_PS_STRINGS /**/" >>confdefs.h +printf "%s\n" "#define HAVE_PS_STRINGS /**/" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLI build" >&5 -$as_echo_n "checking for CLI build... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CLI build" >&5 +printf %s "checking for CLI build... " >&6; } if test "$PHP_CLI" != "no"; then src=$abs_srcdir/sapi/cli/Makefile.frag @@ -7337,8 +8122,8 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CLI" >&5 -$as_echo "$PHP_CLI" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PHP_CLI" >&5 +printf "%s\n" "$PHP_CLI" >&6; } @@ -7348,13 +8133,15 @@ # Check whether --enable-embed was given. -if test "${enable_embed+set}" = set; then : +if test ${enable_embed+y} +then : enableval=$enable_embed; PHP_EMBED=$enableval -else - +else case e in #( + e) PHP_EMBED=no - + ;; +esac fi @@ -7364,8 +8151,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for embedded SAPI library support" >&5 -$as_echo_n "checking for embedded SAPI library support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for embedded SAPI library support" >&5 +printf %s "checking for embedded SAPI library support... " >&6; } if test "$PHP_EMBED" != "no"; then case "$PHP_EMBED" in @@ -7568,11 +8355,11 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_EMBED_TYPE" >&5 -$as_echo "$PHP_EMBED_TYPE" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PHP_EMBED_TYPE" >&5 +printf "%s\n" "$PHP_EMBED_TYPE" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7583,13 +8370,15 @@ # Check whether --enable-fpm was given. -if test "${enable_fpm+set}" = set; then : +if test ${enable_fpm+y} +then : enableval=$enable_fpm; PHP_FPM=$enableval -else - +else case e in #( + e) PHP_FPM=no - + ;; +esac fi @@ -7629,267 +8418,304 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPM build" >&5 -$as_echo_n "checking for FPM build... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FPM build" >&5 +printf %s "checking for FPM build... " >&6; } if test "$PHP_FPM" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_FPM" >&5 -$as_echo "$PHP_FPM" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PHP_FPM" >&5 +printf "%s\n" "$PHP_FPM" >&6; } - for ac_func in clearenv setproctitle setproctitle_fast -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv" +if test "x$ac_cv_func_clearenv" = xyes +then : + printf "%s\n" "#define HAVE_CLEARENV 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" +if test "x$ac_cv_func_setproctitle" = xyes +then : + printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h +fi +ac_fn_c_check_func "$LINENO" "setproctitle_fast" "ac_cv_func_setproctitle_fast" +if test "x$ac_cv_func_setproctitle_fast" = xyes +then : + printf "%s\n" "#define HAVE_SETPROCTITLE_FAST 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 -$as_echo_n "checking for library containing socket... " >&6; } -if ${ac_cv_search_socket+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +printf %s "checking for library containing socket... " >&6; } +if test ${ac_cv_search_socket+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char socket (); +char socket (void); int -main () +main (void) { return socket (); ; return 0; } _ACEOF -for ac_lib in '' socket; do +for ac_lib in '' socket +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_socket=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_socket+:} false; then : + if test ${ac_cv_search_socket+y} +then : break fi done -if ${ac_cv_search_socket+:} false; then : +if test ${ac_cv_search_socket+y} +then : -else - ac_cv_search_socket=no +else case e in #( + e) ac_cv_search_socket=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 -$as_echo "$ac_cv_search_socket" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +printf "%s\n" "$ac_cv_search_socket" >&6; } ac_res=$ac_cv_search_socket -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 -$as_echo_n "checking for library containing inet_addr... " >&6; } -if ${ac_cv_search_inet_addr+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 +printf %s "checking for library containing inet_addr... " >&6; } +if test ${ac_cv_search_inet_addr+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char inet_addr (); +char inet_addr (void); int -main () +main (void) { return inet_addr (); ; return 0; } _ACEOF -for ac_lib in '' nsl; do +for ac_lib in '' nsl +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_inet_addr=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_inet_addr+:} false; then : + if test ${ac_cv_search_inet_addr+y} +then : break fi done -if ${ac_cv_search_inet_addr+:} false; then : +if test ${ac_cv_search_inet_addr+y} +then : -else - ac_cv_search_inet_addr=no +else case e in #( + e) ac_cv_search_inet_addr=no ;; +esac fi rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +LIBS=$ac_func_search_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 -$as_echo "$ac_cv_search_inet_addr" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 +printf "%s\n" "$ac_cv_search_inet_addr" >&6; } ac_res=$ac_cv_search_inet_addr -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5 -$as_echo_n "checking for prctl... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5 +printf %s "checking for prctl... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { prctl(0, 0, 0, 0, 0); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_PRCTL 1" >>confdefs.h +printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procctl" >&5 -$as_echo_n "checking for procctl... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for procctl" >&5 +printf %s "checking for procctl... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { procctl(0, 0, 0, 0); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_PROCCTL 1" >>confdefs.h +printf "%s\n" "#define HAVE_PROCCTL 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpflags" >&5 -$as_echo_n "checking for setpflags... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setpflags" >&5 +printf %s "checking for setpflags... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { setpflags(0, 0); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_SETPFLAGS 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else +printf "%s\n" "#define HAVE_SETPFLAGS 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext have_clock_gettime=no - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime" >&5 -$as_echo_n "checking for clock_gettime... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime" >&5 +printf %s "checking for clock_gettime... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_clock_gettime=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$have_clock_gettime" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 -$as_echo_n "checking for clock_gettime in -lrt... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 +printf %s "checking for clock_gettime in -lrt... " >&6; } SAVED_LIBS="$LIBS" LIBS="$LIBS -lrt" @@ -7898,47 +8724,50 @@ /* end confdefs.h. */ #include int -main () +main (void) { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_clock_gettime=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) LIBS="$SAVED_LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi if test "$have_clock_gettime" = "yes"; then -$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h +printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h fi have_clock_get_time=no if test "$have_clock_gettime" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_get_time" >&5 -$as_echo_n "checking for clock_get_time... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_get_time" >&5 +printf %s "checking for clock_get_time... " >&6; } - if test "$cross_compiling" = yes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross-compiling)" >&5 -$as_echo "no (cross-compiling)" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + if test "$cross_compiling" = yes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (cross-compiling)" >&5 +printf "%s\n" "no (cross-compiling)" >&6; } +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -7962,27 +8791,30 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : have_clock_get_time=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi fi if test "$have_clock_get_time" = "yes"; then -$as_echo "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h +printf "%s\n" "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h fi @@ -7990,8 +8822,8 @@ have_ptrace=no have_broken_ptrace=no - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace" >&5 -$as_echo_n "checking for ptrace... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ptrace" >&5 +printf %s "checking for ptrace... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7999,38 +8831,41 @@ #include #include int -main () +main (void) { ptrace(0, 0, (void *) 0, 0); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : have_ptrace=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test "$have_ptrace" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ptrace works" >&5 -$as_echo_n "checking whether ptrace works... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ptrace works" >&5 +printf %s "checking whether ptrace works... " >&6; } - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross-compiling)" >&5 -$as_echo "skipped (cross-compiling)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skipped (cross-compiling)" >&5 +printf "%s\n" "skipped (cross-compiling)" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -8101,36 +8936,39 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_ptrace=no have_broken_ptrace=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi fi if test "$have_ptrace" = "yes"; then -$as_echo "#define HAVE_PTRACE 1" >>confdefs.h +printf "%s\n" "#define HAVE_PTRACE 1" >>confdefs.h fi have_mach_vm_read=no if test "$have_broken_ptrace" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mach_vm_read" >&5 -$as_echo_n "checking for mach_vm_read... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mach_vm_read" >&5 +printf %s "checking for mach_vm_read... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8138,7 +8976,7 @@ #include int -main () +main (void) { mach_vm_read((vm_map_t)0, (mach_vm_address_t)0, (mach_vm_size_t)0, (vm_offset_t *)0, (mach_msg_type_number_t*)0); @@ -8147,24 +8985,26 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : have_mach_vm_read=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$have_mach_vm_read" = "yes"; then -$as_echo "#define HAVE_MACH_VM_READ 1" >>confdefs.h +printf "%s\n" "#define HAVE_MACH_VM_READ 1" >>confdefs.h fi @@ -8179,16 +9019,17 @@ fi if test -n "$proc_mem_file" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proc mem file" >&5 -$as_echo_n "checking for proc mem file... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for proc mem file" >&5 +printf %s "checking for proc mem file... " >&6; } - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross-compiling)" >&5 -$as_echo "skipped (cross-compiling)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skipped (cross-compiling)" >&5 +printf "%s\n" "skipped (cross-compiling)" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _GNU_SOURCE @@ -8218,29 +9059,30 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proc_mem_file" >&5 -$as_echo "$proc_mem_file" >&6; } +if ac_fn_c_try_run "$LINENO" +then : -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $proc_mem_file" >&5 +printf "%s\n" "$proc_mem_file" >&6; } +else case e in #( + e) proc_mem_file="" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi fi if test -n "$proc_mem_file"; then -cat >>confdefs.h <<_ACEOF -#define PROC_MEM_FILE "$proc_mem_file" -_ACEOF +printf "%s\n" "#define PROC_MEM_FILE \"$proc_mem_file\"" >>confdefs.h fi @@ -8256,19 +9098,19 @@ fpm_trace_type=mach else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5 -$as_echo "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5 +printf "%s\n" "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;} fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5 -$as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5 +printf %s "checking if gcc supports __sync_bool_compare_and_swap... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { int variable = 1; @@ -8279,195 +9121,207 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +if ac_fn_c_try_link "$LINENO" +then : -$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext have_lq=no - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_INFO" >&5 -$as_echo_n "checking for TCP_INFO... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TCP_INFO" >&5 +printf %s "checking for TCP_INFO... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { struct tcp_info ti; int x = TCP_INFO; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : have_lq=tcp_info - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test "$have_lq" = "tcp_info"; then -$as_echo "#define HAVE_LQ_TCP_INFO 1" >>confdefs.h +printf "%s\n" "#define HAVE_LQ_TCP_INFO 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CONNECTION_INFO" >&5 -$as_echo_n "checking for TCP_CONNECTION_INFO... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TCP_CONNECTION_INFO" >&5 +printf %s "checking for TCP_CONNECTION_INFO... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { struct tcp_connection_info ti; int x = TCP_CONNECTION_INFO; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : have_lq=tcp_connection_info - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test "$have_lq" = "tcp_connection_info"; then -$as_echo "#define HAVE_LQ_TCP_CONNECTION_INFO 1" >>confdefs.h +printf "%s\n" "#define HAVE_LQ_TCP_CONNECTION_INFO 1" >>confdefs.h fi if test "$have_lq" = "no" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_LISTENQLEN" >&5 -$as_echo_n "checking for SO_LISTENQLEN... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SO_LISTENQLEN" >&5 +printf %s "checking for SO_LISTENQLEN... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { int x = SO_LISTENQLIMIT; int y = SO_LISTENQLEN; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : have_lq=so_listenq - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test "$have_lq" = "tcp_info"; then -$as_echo "#define HAVE_LQ_SO_LISTENQ 1" >>confdefs.h +printf "%s\n" "#define HAVE_LQ_SO_LISTENQ 1" >>confdefs.h fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 -$as_echo_n "checking for sysconf... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 +printf %s "checking for sysconf... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { sysconf(_SC_CLK_TCK); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_SYSCONF 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else +printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times" >&5 -$as_echo_n "checking for times... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for times" >&5 +printf %s "checking for times... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { struct tms t; times(&t); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_TIMES 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else +printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 -$as_echo_n "checking for kqueue... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 +printf %s "checking for kqueue... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8477,7 +9331,7 @@ #include int -main () +main (void) { int kfd; @@ -8490,25 +9344,27 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else +printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port framework" >&5 -$as_echo_n "checking for port framework... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for port framework" >&5 +printf %s "checking for port framework... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8516,7 +9372,7 @@ #include int -main () +main (void) { int port; @@ -8530,25 +9386,27 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_PORT 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else +printf "%s\n" "#define HAVE_PORT 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5 -$as_echo_n "checking for /dev/poll... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5 +printf %s "checking for /dev/poll... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8557,7 +9415,7 @@ #include int -main () +main (void) { int n, dp; @@ -8572,25 +9430,27 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else +printf "%s\n" "#define HAVE_DEVPOLL 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 -$as_echo_n "checking for epoll... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 +printf %s "checking for epoll... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8598,7 +9458,7 @@ #include int -main () +main (void) { int epollfd; @@ -8625,25 +9485,27 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_EPOLL 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else +printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5 -$as_echo_n "checking for select... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5 +printf %s "checking for select... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8657,7 +9519,7 @@ #include int -main () +main (void) { fd_set fds; @@ -8673,21 +9535,23 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_SELECT 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else +printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -8696,13 +9560,15 @@ # Check whether --with-fpm-user was given. -if test "${with_fpm_user+set}" = set; then : +if test ${with_fpm_user+y} +then : withval=$with_fpm_user; PHP_FPM_USER=$withval -else - +else case e in #( + e) PHP_FPM_USER=nobody - + ;; +esac fi @@ -8718,13 +9584,15 @@ # Check whether --with-fpm-group was given. -if test "${with_fpm_group+set}" = set; then : +if test ${with_fpm_group+y} +then : withval=$with_fpm_group; PHP_FPM_GROUP=$withval -else - +else case e in #( + e) PHP_FPM_GROUP=nobody - + ;; +esac fi @@ -8740,13 +9608,15 @@ # Check whether --with-fpm-systemd was given. -if test "${with_fpm_systemd+set}" = set; then : +if test ${with_fpm_systemd+y} +then : withval=$with_fpm_systemd; PHP_FPM_SYSTEMD=$withval -else - +else case e in #( + e) PHP_FPM_SYSTEMD=no - + ;; +esac fi @@ -8762,13 +9632,15 @@ # Check whether --with-fpm-acl was given. -if test "${with_fpm_acl+set}" = set; then : +if test ${with_fpm_acl+y} +then : withval=$with_fpm_acl; PHP_FPM_ACL=$withval -else - +else case e in #( + e) PHP_FPM_ACL=no - + ;; +esac fi @@ -8784,13 +9656,15 @@ # Check whether --with-fpm-apparmor was given. -if test "${with_fpm_apparmor+set}" = set; then : +if test ${with_fpm_apparmor+y} +then : withval=$with_fpm_apparmor; PHP_FPM_APPARMOR=$withval -else - +else case e in #( + e) PHP_FPM_APPARMOR=no - + ;; +esac fi @@ -8806,13 +9680,15 @@ # Check whether --with-fpm-selinux was given. -if test "${with_fpm_selinux+set}" = set; then : +if test ${with_fpm_selinux+y} +then : withval=$with_fpm_selinux; PHP_FPM_SELINUX=$withval -else - +else case e in #( + e) PHP_FPM_SELINUX=no - + ;; +esac fi @@ -8825,17 +9701,17 @@ if test "$PHP_FPM_SYSTEMD" != "no" ; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd >= 209" >&5 -$as_echo_n "checking for libsystemd >= 209... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd >= 209" >&5 +printf %s "checking for libsystemd >= 209... " >&6; } if test -n "$SYSTEMD_CFLAGS"; then pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -8849,10 +9725,10 @@ pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -8866,8 +9742,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -8893,10 +9769,10 @@ and SYSTEMD_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -8906,34 +9782,33 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi - for ac_header in systemd/sd-daemon.h + for ac_header in systemd/sd-daemon.h do : - ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default" -if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYSTEMD_SD_DAEMON_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default" +if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes +then : + printf "%s\n" "#define HAVE_SYSTEMD_SD_DAEMON_H 1" >>confdefs.h HAVE_SD_DAEMON_H="yes" -else - HAVE_SD_DAEMON_H="no" +else case e in #( + e) HAVE_SD_DAEMON_H="no" ;; +esac fi done - if test $HAVE_SD_DAEMON_H = "no"; then as_fn_error $? "Your system does not support systemd." "$LINENO" 5 else -$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h +printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h PHP_FPM_SD_FILES="fpm/fpm_systemd.c" @@ -9064,20 +9939,15 @@ fi if test "$PHP_FPM_ACL" != "no" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl user/group permissions support" >&5 -$as_echo_n "checking for acl user/group permissions support... " >&6; } - for ac_header in sys/acl.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_acl_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_ACL_H 1 -_ACEOF + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl user/group permissions support" >&5 +printf %s "checking for acl user/group permissions support... " >&6; } + ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_acl_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h fi -done - cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -9096,45 +9966,54 @@ } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_free in -lacl" >&5 -$as_echo_n "checking for acl_free in -lacl... " >&6; } -if ${ac_cv_lib_acl_acl_free+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_free in -lacl" >&5 +printf %s "checking for acl_free in -lacl... " >&6; } +if test ${ac_cv_lib_acl_acl_free+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lacl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char acl_free (); +char acl_free (void); int -main () +main (void) { return acl_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_acl_acl_free=yes -else - ac_cv_lib_acl_acl_free=no +else case e in #( + e) ac_cv_lib_acl_acl_free=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_free" >&5 -$as_echo "$ac_cv_lib_acl_acl_free" >&6; } -if test "x$ac_cv_lib_acl_acl_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_free" >&5 +printf "%s\n" "$ac_cv_lib_acl_acl_free" >&6; } +if test "x$ac_cv_lib_acl_acl_free" = xyes +then : case acl in @@ -9146,16 +10025,17 @@ have_fpm_acl=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } - if test "$cross_compiling" = yes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 -$as_echo "skipped" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) + if test "$cross_compiling" = yes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skipped" >&5 +printf "%s\n" "skipped" >&6; } +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main(void) @@ -9172,93 +10052,101 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : have_fpm_acl=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_fpm_acl=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -else - +else case e in #( + e) have_fpm_acl=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test "$have_fpm_acl" = "yes"; then -$as_echo "#define HAVE_FPM_ACL 1" >>confdefs.h +printf "%s\n" "#define HAVE_FPM_ACL 1" >>confdefs.h fi fi if test "x$PHP_FPM_APPARMOR" != "xno" ; then - for ac_header in sys/apparmor.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "sys/apparmor.h" "ac_cv_header_sys_apparmor_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_apparmor_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_APPARMOR_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "sys/apparmor.h" "ac_cv_header_sys_apparmor_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_apparmor_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_APPARMOR_H 1" >>confdefs.h fi -done - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aa_change_profile in -lapparmor" >&5 -$as_echo_n "checking for aa_change_profile in -lapparmor... " >&6; } -if ${ac_cv_lib_apparmor_aa_change_profile+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aa_change_profile in -lapparmor" >&5 +printf %s "checking for aa_change_profile in -lapparmor... " >&6; } +if test ${ac_cv_lib_apparmor_aa_change_profile+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lapparmor $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char aa_change_profile (); +char aa_change_profile (void); int -main () +main (void) { return aa_change_profile (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_apparmor_aa_change_profile=yes -else - ac_cv_lib_apparmor_aa_change_profile=no +else case e in #( + e) ac_cv_lib_apparmor_aa_change_profile=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apparmor_aa_change_profile" >&5 -$as_echo "$ac_cv_lib_apparmor_aa_change_profile" >&6; } -if test "x$ac_cv_lib_apparmor_aa_change_profile" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apparmor_aa_change_profile" >&5 +printf "%s\n" "$ac_cv_lib_apparmor_aa_change_profile" >&6; } +if test "x$ac_cv_lib_apparmor_aa_change_profile" = xyes +then : @@ -9271,67 +10159,71 @@ -$as_echo "#define HAVE_APPARMOR 1" >>confdefs.h - +printf "%s\n" "#define HAVE_APPARMOR 1" >>confdefs.h -else +else case e in #( + e) as_fn_error $? "libapparmor required but not found" "$LINENO" 5 - + ;; +esac fi fi if test "x$PHP_FPM_SELINUX" != "xno" ; then - for ac_header in selinux/selinux.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" -if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SELINUX_SELINUX_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" +if test "x$ac_cv_header_selinux_selinux_h" = xyes +then : + printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 1" >>confdefs.h fi -done - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_setenforce in -lselinux" >&5 -$as_echo_n "checking for security_setenforce in -lselinux... " >&6; } -if ${ac_cv_lib_selinux_security_setenforce+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for security_setenforce in -lselinux" >&5 +printf %s "checking for security_setenforce in -lselinux... " >&6; } +if test ${ac_cv_lib_selinux_security_setenforce+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lselinux $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char security_setenforce (); +char security_setenforce (void); int -main () +main (void) { return security_setenforce (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_selinux_security_setenforce=yes -else - ac_cv_lib_selinux_security_setenforce=no +else case e in #( + e) ac_cv_lib_selinux_security_setenforce=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_setenforce" >&5 -$as_echo "$ac_cv_lib_selinux_security_setenforce" >&6; } -if test "x$ac_cv_lib_selinux_security_setenforce" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_setenforce" >&5 +printf "%s\n" "$ac_cv_lib_selinux_security_setenforce" >&6; } +if test "x$ac_cv_lib_selinux_security_setenforce" = xyes +then : @@ -9344,7 +10236,7 @@ -$as_echo "#define HAVE_SELINUX 1" >>confdefs.h +printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h fi @@ -9358,9 +10250,7 @@ -cat >>confdefs.h <<_ACEOF -#define PHP_FPM_SYSTEMD "$php_fpm_systemd" -_ACEOF +printf "%s\n" "#define PHP_FPM_SYSTEMD \"$php_fpm_systemd\"" >>confdefs.h if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o "$PHP_FPM_USER" = "no"; then @@ -9410,14 +10300,10 @@ -cat >>confdefs.h <<_ACEOF -#define PHP_FPM_USER "$php_fpm_user" -_ACEOF +printf "%s\n" "#define PHP_FPM_USER \"$php_fpm_user\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PHP_FPM_GROUP "$php_fpm_group" -_ACEOF +printf "%s\n" "#define PHP_FPM_GROUP \"$php_fpm_group\"" >>confdefs.h @@ -9597,28 +10483,30 @@ else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang fuzzer SAPI" >&5 -$as_echo_n "checking for clang fuzzer SAPI... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang fuzzer SAPI" >&5 +printf %s "checking for clang fuzzer SAPI... " >&6; } php_enable_fuzzer=no # Check whether --enable-fuzzer was given. -if test "${enable_fuzzer+set}" = set; then : +if test ${enable_fuzzer+y} +then : enableval=$enable_fuzzer; PHP_FUZZER=$enableval -else - +else case e in #( + e) PHP_FUZZER=no - + ;; +esac fi @@ -9632,9 +10520,15 @@ if test "$PHP_FUZZER" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_ext=cpp + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + + + + + + +ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' @@ -9644,42 +10538,48 @@ CXX=$CCC else if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CXX"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9688,42 +10588,48 @@ fi if test -z "$CXX"; then ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CXX"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CXX+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +printf "%s\n" "$ac_ct_CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9735,8 +10641,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX @@ -9746,7 +10652,7 @@ fi fi # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -9756,7 +10662,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -9766,20 +10672,21 @@ cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } -if ${ac_cv_cxx_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 +printf %s "checking whether the compiler supports GNU C++... " >&6; } +if test ${ac_cv_cxx_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -9789,30 +10696,36 @@ return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi -ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 -$as_echo_n "checking whether $CXX accepts -g... " >&6; } -if ${ac_cv_prog_cxx_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +printf %s "checking whether $CXX accepts -g... " >&6; } +if test ${ac_cv_prog_cxx_g+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -9820,57 +10733,63 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes -else - CXXFLAGS="" +else case e in #( + e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : -else - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in #( + e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 -$as_echo "$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } +if test $ac_test_CXXFLAGS; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then @@ -9885,6 +10804,106 @@ CXXFLAGS= fi fi +ac_prog_cxx_stdcxx=no +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 +printf %s "checking for $CXX option to enable C++11 features... " >&6; } +if test ${ac_cv_prog_cxx_cxx11+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_prog_cxx_cxx11=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx11_program +_ACEOF +for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx11" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX ;; +esac +fi + +if test "x$ac_cv_prog_cxx_cxx11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; +esac +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac +fi +fi +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 +printf %s "checking for $CXX option to enable C++98 features... " >&6; } +if test ${ac_cv_prog_cxx_cxx98+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_prog_cxx_cxx98=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx98_program +_ACEOF +for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx98=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx98" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX ;; +esac +fi + +if test "x$ac_cv_prog_cxx_cxx98" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx98" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; +esac +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac +fi +fi + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9896,38 +10915,35 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +printf %s "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then - if ${ac_cv_prog_CXXCPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" + if test ${ac_cv_prog_CXXCPP+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # Double quotes because $CXX needs to be expanded + for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -9937,56 +10953,56 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi done ac_cv_prog_CXXCPP=$CXXCPP - + ;; +esac fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +printf "%s\n" "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -9996,26 +11012,30 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -10037,44 +11057,50 @@ if test -z "$LIB_FUZZING_ENGINE"; then FUZZING_LIB="-fsanitize=fuzzer" FUZZING_CC="$CC" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=fuzzer-no-link" >&5 -$as_echo_n "checking whether C compiler accepts -fsanitize=fuzzer-no-link... " >&6; } -if ${ax_cv_check_cflags___fsanitize_fuzzer_no_link+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=fuzzer-no-link" >&5 +printf %s "checking whether C compiler accepts -fsanitize=fuzzer-no-link... " >&6; } +if test ${ax_cv_check_cflags___fsanitize_fuzzer_no_link+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -fsanitize=fuzzer-no-link" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags___fsanitize_fuzzer_no_link=yes -else - ax_cv_check_cflags___fsanitize_fuzzer_no_link=no +else case e in #( + e) ax_cv_check_cflags___fsanitize_fuzzer_no_link=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_fuzzer_no_link" >&5 -$as_echo "$ax_cv_check_cflags___fsanitize_fuzzer_no_link" >&6; } -if test "x$ax_cv_check_cflags___fsanitize_fuzzer_no_link" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_fuzzer_no_link" >&5 +printf "%s\n" "$ax_cv_check_cflags___fsanitize_fuzzer_no_link" >&6; } +if test "x$ax_cv_check_cflags___fsanitize_fuzzer_no_link" = xyes +then : CFLAGS="$CFLAGS -fsanitize=fuzzer-no-link" CXXFLAGS="$CXXFLAGS -fsanitize=fuzzer-no-link" -else - +else case e in #( + e) as_fn_error $? "Compiler doesn't support -fsanitize=fuzzer-no-link" "$LINENO" 5 - + ;; +esac fi else @@ -10666,27 +11692,29 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_FUZZER" >&5 -$as_echo "$PHP_FUZZER" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PHP_FUZZER" >&5 +printf "%s\n" "$PHP_FUZZER" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LiteSpeed support" >&5 -$as_echo_n "checking for LiteSpeed support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LiteSpeed support" >&5 +printf %s "checking for LiteSpeed support... " >&6; } php_enable_litespeed=no # Check whether --enable-litespeed was given. -if test "${enable_litespeed+set}" = set; then : +if test ${enable_litespeed+y} +then : enableval=$enable_litespeed; PHP_LITESPEED=$enableval -else - +else case e in #( + e) PHP_LITESPEED=no test "$PHP_ENABLE_ALL" && PHP_LITESPEED=$PHP_ENABLE_ALL - + ;; +esac fi @@ -10844,8 +11872,8 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_LITESPEED" >&5 -$as_echo "$PHP_LITESPEED" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PHP_LITESPEED" >&5 +printf "%s\n" "$PHP_LITESPEED" >&6; } @@ -10853,16 +11881,18 @@ php_enable_phpdbg=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg support" >&5 -$as_echo_n "checking for phpdbg support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for phpdbg support" >&5 +printf %s "checking for phpdbg support... " >&6; } # Check whether --enable-phpdbg was given. -if test "${enable_phpdbg+set}" = set; then : +if test ${enable_phpdbg+y} +then : enableval=$enable_phpdbg; PHP_PHPDBG=$enableval -else - +else case e in #( + e) PHP_PHPDBG=yes test "$PHP_ENABLE_ALL" && PHP_PHPDBG=$PHP_ENABLE_ALL - + ;; +esac fi @@ -10888,8 +11918,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -10897,22 +11927,24 @@ php_enable_phpdbg_debug=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg debug build" >&5 -$as_echo_n "checking for phpdbg debug build... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for phpdbg debug build" >&5 +printf %s "checking for phpdbg debug build... " >&6; } # Check whether --enable-phpdbg-debug was given. -if test "${enable_phpdbg_debug+set}" = set; then : +if test ${enable_phpdbg_debug+y} +then : enableval=$enable_phpdbg_debug; PHP_PHPDBG_DEBUG=$enableval -else - +else case e in #( + e) PHP_PHPDBG_DEBUG=no - + ;; +esac fi ext_output=$PHP_PHPDBG_DEBUG -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -10920,129 +11952,132 @@ php_enable_phpdbg_readline=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg readline support" >&5 -$as_echo_n "checking for phpdbg readline support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for phpdbg readline support" >&5 +printf %s "checking for phpdbg readline support... " >&6; } # Check whether --enable-phpdbg-readline was given. -if test "${enable_phpdbg_readline+set}" = set; then : +if test ${enable_phpdbg_readline+y} +then : enableval=$enable_phpdbg_readline; PHP_PHPDBG_READLINE=$enableval -else - +else case e in #( + e) PHP_PHPDBG_READLINE=no - + ;; +esac fi ext_output=$PHP_PHPDBG_READLINE -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$BUILD_PHPDBG" = "" && test "$PHP_PHPDBG" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 -$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; } -if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5 +printf %s "checking whether termios.h defines TIOCGWINSZ... " >&6; } +if test ${ac_cv_sys_tiocgwinsz_in_termios_h+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +$ac_includes_default #include -#ifdef TIOCGWINSZ - yes -#endif +const int tiocgwinsz = TIOCGWINSZ; _ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_tiocgwinsz_in_termios_h=yes -else - ac_cv_sys_tiocgwinsz_in_termios_h=no +else case e in #( + e) ac_cv_sys_tiocgwinsz_in_termios_h=no ;; +esac fi -rm -f conftest* - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 -$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 +printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 -$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } -if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 +printf %s "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; } +if test ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +$ac_includes_default #include -#ifdef TIOCGWINSZ - yes -#endif +const int tiocgwinsz = TIOCGWINSZ; _ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes -else - ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no +else case e in #( + e) ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no ;; +esac fi -rm -f conftest* - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 -$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 +printf "%s\n" "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then -$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h +printf "%s\n" "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h fi fi -$as_echo "#define HAVE_PHPDBG 1" >>confdefs.h +printf "%s\n" "#define HAVE_PHPDBG 1" >>confdefs.h if test "$PHP_PHPDBG_DEBUG" != "no"; then -$as_echo "#define PHPDBG_DEBUG 1" >>confdefs.h +printf "%s\n" "#define PHPDBG_DEBUG 1" >>confdefs.h else -$as_echo "#define PHPDBG_DEBUG 0" >>confdefs.h +printf "%s\n" "#define PHPDBG_DEBUG 0" >>confdefs.h fi PHP_PHPDBG_CFLAGS="-D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" PHP_PHPDBG_FILES="phpdbg.c phpdbg_parser.c phpdbg_lexer.c phpdbg_prompt.c phpdbg_help.c phpdbg_break.c phpdbg_print.c phpdbg_bp.c phpdbg_list.c phpdbg_utils.c phpdbg_info.c phpdbg_cmd.c phpdbg_set.c phpdbg_frame.c phpdbg_watch.c phpdbg_btree.c phpdbg_sigsafe.c phpdbg_io.c phpdbg_out.c" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg and readline integration" >&5 -$as_echo_n "checking for phpdbg and readline integration... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for phpdbg and readline integration" >&5 +printf %s "checking for phpdbg and readline integration... " >&6; } if test "$PHP_PHPDBG_READLINE" = "yes"; then if test "$PHP_READLINE" != "no" -o "$PHP_LIBEDIT" != "no"; then -$as_echo "#define HAVE_PHPDBG_READLINE 1" >>confdefs.h +printf "%s\n" "#define HAVE_PHPDBG_READLINE 1" >>confdefs.h PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: readline is not available" >&5 -$as_echo "readline is not available" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: readline is not available" >&5 +printf "%s\n" "readline is not available" >&6; } fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 -$as_echo "disabled" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 +printf "%s\n" "disabled" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for userfaultfd faulting on write-protected memory support" >&5 -$as_echo_n "checking for userfaultfd faulting on write-protected memory support... " >&6; } -if ${ac_cv_phpdbg_userfaultfd_writefault+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for userfaultfd faulting on write-protected memory support" >&5 +printf %s "checking for userfaultfd faulting on write-protected memory support... " >&6; } +if test ${ac_cv_phpdbg_userfaultfd_writefault+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -11051,27 +12086,31 @@ #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_phpdbg_userfaultfd_writefault=yes -else - ac_cv_phpdbg_userfaultfd_writefault=no +else case e in #( + e) ac_cv_phpdbg_userfaultfd_writefault=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_phpdbg_userfaultfd_writefault" >&5 -$as_echo "$ac_cv_phpdbg_userfaultfd_writefault" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_phpdbg_userfaultfd_writefault" >&5 +printf "%s\n" "$ac_cv_phpdbg_userfaultfd_writefault" >&6; } if test "$ac_cv_phpdbg_userfaultfd_writefault" = "yes"; then if test "$enable_zts" != "yes"; then CFLAGS_SAVE="$CFLAGS" LIBS_SAVE="$LIBS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 -$as_echo_n "checking for pthreads_cflags... " >&6; } -if ${ac_cv_pthreads_cflags+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 +printf %s "checking for pthreads_cflags... " >&6; } +if test ${ac_cv_pthreads_cflags+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_pthreads_cflags= if test "$pthreads_working" != "yes"; then for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do @@ -11096,17 +12135,19 @@ return pthread_create(&thd, NULL, thread_routine, &data); } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : pthreads_checked=yes -else - +else case e in #( + e) pthreads_checked=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS=$ac_save if test "$pthreads_checked" = "yes"; then @@ -11115,17 +12156,19 @@ fi done fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 -$as_echo "$ac_cv_pthreads_cflags" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 -$as_echo_n "checking for pthreads_lib... " >&6; } -if ${ac_cv_pthreads_lib+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 +printf "%s\n" "$ac_cv_pthreads_cflags" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 +printf %s "checking for pthreads_lib... " >&6; } +if test ${ac_cv_pthreads_lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_pthreads_lib= if test "$pthreads_working" != "yes"; then for lib in pthread pthreads c_r; do @@ -11150,17 +12193,19 @@ return pthread_create(&thd, NULL, thread_routine, &data); } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : pthreads_checked=yes -else - +else case e in #( + e) pthreads_checked=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_save if test "$pthreads_checked" = "yes"; then @@ -11169,36 +12214,37 @@ fi done fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 -$as_echo "$ac_cv_pthreads_lib" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 +printf "%s\n" "$ac_cv_pthreads_lib" >&6; } if test "x$ac_cv_pthreads_cflags" != "x" -o "x$ac_cv_pthreads_lib" != "x"; then pthreads_working="yes" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking working pthreads" >&5 -$as_echo_n "checking working pthreads... " >&6; }; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking working pthreads" >&5 +printf %s "checking working pthreads... " >&6; }; if test "$pthreads_working" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags -l$ac_cv_pthreads_lib" >&5 -$as_echo "$ac_cv_pthreads_cflags -l$ac_cv_pthreads_lib" >&6; }; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags -l$ac_cv_pthreads_lib" >&5 +printf "%s\n" "$ac_cv_pthreads_cflags -l$ac_cv_pthreads_lib" >&6; }; PHP_PHPDBG_CFLAGS="$PHP_PHPDBG_CFLAGS $ac_cv_pthreads_cflags" PHPDBG_EXTRA_LIBS="$PHPDBG_EXTRA_LIBS -l$ac_cv_pthreads_lib" -$as_echo "#define HAVE_USERFAULTFD_WRITEFAULT 1" >>confdefs.h +printf "%s\n" "#define HAVE_USERFAULTFD_WRITEFAULT 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthreads not available" >&5 -$as_echo "$as_me: WARNING: pthreads not available" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pthreads not available" >&5 +printf "%s\n" "$as_me: WARNING: pthreads not available" >&2;} fi CFLAGS="$CFLAGS_SAVE" LIBS="$LIBS_SAVE" else -$as_echo "#define HAVE_USERFAULTFD_WRITEFAULT 1" >>confdefs.h +printf "%s\n" "#define HAVE_USERFAULTFD_WRITEFAULT 1" >>confdefs.h fi fi @@ -11369,13 +12415,15 @@ # Check whether --enable-cgi was given. -if test "${enable_cgi+set}" = set; then : +if test ${enable_cgi+y} +then : enableval=$enable_cgi; PHP_CGI=$enableval -else - +else case e in #( + e) PHP_CGI=yes - + ;; +esac fi @@ -11385,46 +12433,48 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CGI build" >&5 -$as_echo_n "checking for CGI build... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CGI build" >&5 +printf %s "checking for CGI build... " >&6; } if test "$PHP_CGI" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sun_len in sys/un.h" >&5 -$as_echo_n "checking for sun_len in sys/un.h... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sun_len in sys/un.h" >&5 +printf %s "checking for sun_len in sys/un.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "sun_len" >/dev/null 2>&1; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + $EGREP_TRADITIONAL "sun_len" >/dev/null 2>&1 +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; +esac fi -rm -f conftest* +rm -rf conftest* - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cross-process locking is required by accept()" >&5 -$as_echo_n "checking whether cross-process locking is required by accept()... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cross-process locking is required by accept()" >&5 +printf %s "checking whether cross-process locking is required by accept()... " >&6; } case "`uname -sr`" in IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define USE_LOCKING 1" >>confdefs.h +printf "%s\n" "#define USE_LOCKING 1" >>confdefs.h ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; esac @@ -11570,25 +12620,25 @@ PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cgi/php-cgi.1" else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen SAPI module" >&5 -$as_echo_n "checking for chosen SAPI module... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_SAPI" >&5 -$as_echo "$PHP_SAPI" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chosen SAPI module" >&5 +printf %s "checking for chosen SAPI module... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PHP_SAPI" >&5 +printf "%s\n" "$PHP_SAPI" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable SAPI binaries" >&5 -$as_echo_n "checking for executable SAPI binaries... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for executable SAPI binaries" >&5 +printf %s "checking for executable SAPI binaries... " >&6; } if test "$PHP_BINARIES"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_BINARIES" >&5 -$as_echo "$PHP_BINARIES" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PHP_BINARIES" >&5 +printf "%s\n" "$PHP_BINARIES" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 +printf "%s\n" "none" >&6; } fi if test -z "$PHP_INSTALLED_SAPIS"; then @@ -11635,22 +12685,23 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Running system checks${T_ME}" >&5 -$as_echo "${T_MD}Running system checks${T_ME}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Running system checks${T_ME}" >&5 +printf "%s\n" "${T_MD}Running system checks${T_ME}" >&6; } PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib # Extract the first word of "sendmail", so it can be a program name with args. set dummy sendmail; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PROG_SENDMAIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PROG_SENDMAIL in +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PROG_SENDMAIL+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $PROG_SENDMAIL in [\\/]* | ?:[\\/]*) ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path. ;; @@ -11660,11 +12711,15 @@ for as_dir in $as_dummy do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PROG_SENDMAIL="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11673,15 +12728,16 @@ test -z "$ac_cv_path_PROG_SENDMAIL" && ac_cv_path_PROG_SENDMAIL="/usr/sbin/sendmail" ;; +esac ;; esac fi PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL if test -n "$PROG_SENDMAIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SENDMAIL" >&5 -$as_echo "$PROG_SENDMAIL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROG_SENDMAIL" >&5 +printf "%s\n" "$PROG_SENDMAIL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -11691,18 +12747,20 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5 -$as_echo_n "checking whether system uses EBCDIC... " >&6; } -if ${ac_cv_ebcdic+:} false; then : - $as_echo_n "(cached) " >&6 -else - - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5 +printf %s "checking whether system uses EBCDIC... " >&6; } +if test ${ac_cv_ebcdic+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + if test "$cross_compiling" = yes +then : ac_cv_ebcdic=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(void) { @@ -11710,38 +12768,44 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_ebcdic=yes -else - +else case e in #( + e) ac_cv_ebcdic=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5 -$as_echo "$ac_cv_ebcdic" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5 +printf "%s\n" "$ac_cv_ebcdic" >&6; } if test "$ac_cv_ebcdic" = "yes"; then as_fn_error $? "PHP does not support EBCDIC targets" "$LINENO" 5 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -$as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if ${ac_cv_c_bigendian_php+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +printf %s "checking whether byte ordering is bigendian... " >&6; } +if test ${ac_cv_c_bigendian_php+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_c_bigendian_php=unknown - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : ac_cv_c_bigendian_php=unknown -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(void) @@ -11757,34 +12821,40 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_c_bigendian_php=yes -else - ac_cv_c_bigendian_php=no +else case e in #( + e) ac_cv_c_bigendian_php=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5 -$as_echo "$ac_cv_c_bigendian_php" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5 +printf "%s\n" "$ac_cv_c_bigendian_php" >&6; } if test $ac_cv_c_bigendian_php = yes; then -$as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h +printf "%s\n" "#define WORDS_BIGENDIAN /**/" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether writing to stdout works" >&5 -$as_echo_n "checking whether writing to stdout works... " >&6; } -if ${ac_cv_write_stdout+:} false; then : - $as_echo_n "(cached) " >&6 -else - - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether writing to stdout works" >&5 +printf %s "checking whether writing to stdout works... " >&6; } +if test ${ac_cv_write_stdout+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + if test "$cross_compiling" = yes +then : case $host_alias in *linux*) @@ -11795,8 +12865,8 @@ ;; esac -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_UNISTD_H @@ -11814,26 +12884,30 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_write_stdout=yes -else - +else case e in #( + e) ac_cv_write_stdout=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_write_stdout" >&5 -$as_echo "$ac_cv_write_stdout" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_write_stdout" >&5 +printf "%s\n" "$ac_cv_write_stdout" >&6; } if test "$ac_cv_write_stdout" = "yes"; then -$as_echo "#define PHP_WRITE_STDOUT 1" >>confdefs.h +printf "%s\n" "#define PHP_WRITE_STDOUT 1" >>confdefs.h fi @@ -11884,23 +12958,27 @@ unset found ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" -if test "x$ac_cv_func_socket" = xyes; then : +if test "x$ac_cv_func_socket" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__socket" "ac_cv_func___socket" -if test "x$ac_cv_func___socket" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__socket" "ac_cv_func___socket" +if test "x$ac_cv_func___socket" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_SOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h ac_cv_func_socket=yes ;; @@ -11910,118 +12988,140 @@ unset ac_cv_lib_socket_socket unset ac_cv_lib_socket___socket unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 -$as_echo_n "checking for socket in -lsocket... " >&6; } -if ${ac_cv_lib_socket_socket+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 +printf %s "checking for socket in -lsocket... " >&6; } +if test ${ac_cv_lib_socket_socket+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char socket (); +char socket (void); int -main () +main (void) { return socket (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket_socket=yes -else - ac_cv_lib_socket_socket=no +else case e in #( + e) ac_cv_lib_socket_socket=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 -$as_echo "$ac_cv_lib_socket_socket" >&6; } -if test "x$ac_cv_lib_socket_socket" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 +printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } +if test "x$ac_cv_lib_socket_socket" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socket in -lsocket" >&5 -$as_echo_n "checking for __socket in -lsocket... " >&6; } -if ${ac_cv_lib_socket___socket+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __socket in -lsocket" >&5 +printf %s "checking for __socket in -lsocket... " >&6; } +if test ${ac_cv_lib_socket___socket+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __socket (); +char __socket (void); int -main () +main (void) { return __socket (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket___socket=yes -else - ac_cv_lib_socket___socket=no +else case e in #( + e) ac_cv_lib_socket___socket=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socket" >&5 -$as_echo "$ac_cv_lib_socket___socket" >&6; } -if test "x$ac_cv_lib_socket___socket" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socket" >&5 +printf "%s\n" "$ac_cv_lib_socket___socket" >&6; } +if test "x$ac_cv_lib_socket___socket" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lsocket" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -12039,10 +13139,10 @@ -$as_echo "#define HAVE_SOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h -$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h ac_cv_func_socket=yes else @@ -12051,118 +13151,140 @@ unset ac_cv_lib_network_socket unset ac_cv_lib_network___socket unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 -$as_echo_n "checking for socket in -lnetwork... " >&6; } -if ${ac_cv_lib_network_socket+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 +printf %s "checking for socket in -lnetwork... " >&6; } +if test ${ac_cv_lib_network_socket+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char socket (); +char socket (void); int -main () +main (void) { return socket (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network_socket=yes -else - ac_cv_lib_network_socket=no +else case e in #( + e) ac_cv_lib_network_socket=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 -$as_echo "$ac_cv_lib_network_socket" >&6; } -if test "x$ac_cv_lib_network_socket" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 +printf "%s\n" "$ac_cv_lib_network_socket" >&6; } +if test "x$ac_cv_lib_network_socket" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socket in -lnetwork" >&5 -$as_echo_n "checking for __socket in -lnetwork... " >&6; } -if ${ac_cv_lib_network___socket+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __socket in -lnetwork" >&5 +printf %s "checking for __socket in -lnetwork... " >&6; } +if test ${ac_cv_lib_network___socket+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __socket (); +char __socket (void); int -main () +main (void) { return __socket (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network___socket=yes -else - ac_cv_lib_network___socket=no +else case e in #( + e) ac_cv_lib_network___socket=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___socket" >&5 -$as_echo "$ac_cv_lib_network___socket" >&6; } -if test "x$ac_cv_lib_network___socket" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___socket" >&5 +printf "%s\n" "$ac_cv_lib_network___socket" >&6; } +if test "x$ac_cv_lib_network___socket" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lnetwork" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -12180,10 +13302,10 @@ -$as_echo "#define HAVE_SOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h -$as_echo "#define HAVE_LIBNETWORK 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBNETWORK 1" >>confdefs.h ac_cv_func_socket=yes else @@ -12205,23 +13327,27 @@ unset found ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" -if test "x$ac_cv_func_socketpair" = xyes; then : +if test "x$ac_cv_func_socketpair" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__socketpair" "ac_cv_func___socketpair" -if test "x$ac_cv_func___socketpair" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__socketpair" "ac_cv_func___socketpair" +if test "x$ac_cv_func___socketpair" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h ac_cv_func_socketpair=yes ;; @@ -12231,118 +13357,140 @@ unset ac_cv_lib_socket_socketpair unset ac_cv_lib_socket___socketpair unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5 -$as_echo_n "checking for socketpair in -lsocket... " >&6; } -if ${ac_cv_lib_socket_socketpair+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5 +printf %s "checking for socketpair in -lsocket... " >&6; } +if test ${ac_cv_lib_socket_socketpair+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char socketpair (); +char socketpair (void); int -main () +main (void) { return socketpair (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket_socketpair=yes -else - ac_cv_lib_socket_socketpair=no +else case e in #( + e) ac_cv_lib_socket_socketpair=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5 -$as_echo "$ac_cv_lib_socket_socketpair" >&6; } -if test "x$ac_cv_lib_socket_socketpair" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5 +printf "%s\n" "$ac_cv_lib_socket_socketpair" >&6; } +if test "x$ac_cv_lib_socket_socketpair" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lsocket" >&5 -$as_echo_n "checking for __socketpair in -lsocket... " >&6; } -if ${ac_cv_lib_socket___socketpair+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lsocket" >&5 +printf %s "checking for __socketpair in -lsocket... " >&6; } +if test ${ac_cv_lib_socket___socketpair+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __socketpair (); +char __socketpair (void); int -main () +main (void) { return __socketpair (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket___socketpair=yes -else - ac_cv_lib_socket___socketpair=no +else case e in #( + e) ac_cv_lib_socket___socketpair=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socketpair" >&5 -$as_echo "$ac_cv_lib_socket___socketpair" >&6; } -if test "x$ac_cv_lib_socket___socketpair" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socketpair" >&5 +printf "%s\n" "$ac_cv_lib_socket___socketpair" >&6; } +if test "x$ac_cv_lib_socket___socketpair" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lsocket" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -12360,10 +13508,10 @@ -$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h -$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h ac_cv_func_socketpair=yes else @@ -12372,118 +13520,140 @@ unset ac_cv_lib_network_socketpair unset ac_cv_lib_network___socketpair unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lnetwork" >&5 -$as_echo_n "checking for socketpair in -lnetwork... " >&6; } -if ${ac_cv_lib_network_socketpair+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lnetwork" >&5 +printf %s "checking for socketpair in -lnetwork... " >&6; } +if test ${ac_cv_lib_network_socketpair+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char socketpair (); +char socketpair (void); int -main () +main (void) { return socketpair (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network_socketpair=yes -else - ac_cv_lib_network_socketpair=no +else case e in #( + e) ac_cv_lib_network_socketpair=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socketpair" >&5 -$as_echo "$ac_cv_lib_network_socketpair" >&6; } -if test "x$ac_cv_lib_network_socketpair" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socketpair" >&5 +printf "%s\n" "$ac_cv_lib_network_socketpair" >&6; } +if test "x$ac_cv_lib_network_socketpair" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lnetwork" >&5 -$as_echo_n "checking for __socketpair in -lnetwork... " >&6; } -if ${ac_cv_lib_network___socketpair+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lnetwork" >&5 +printf %s "checking for __socketpair in -lnetwork... " >&6; } +if test ${ac_cv_lib_network___socketpair+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __socketpair (); +char __socketpair (void); int -main () +main (void) { return __socketpair (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network___socketpair=yes -else - ac_cv_lib_network___socketpair=no +else case e in #( + e) ac_cv_lib_network___socketpair=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___socketpair" >&5 -$as_echo "$ac_cv_lib_network___socketpair" >&6; } -if test "x$ac_cv_lib_network___socketpair" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___socketpair" >&5 +printf "%s\n" "$ac_cv_lib_network___socketpair" >&6; } +if test "x$ac_cv_lib_network___socketpair" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lnetwork" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -12501,10 +13671,10 @@ -$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h -$as_echo "#define HAVE_LIBNETWORK 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBNETWORK 1" >>confdefs.h ac_cv_func_socketpair=yes else @@ -12526,23 +13696,27 @@ unset found ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl" -if test "x$ac_cv_func_htonl" = xyes; then : +if test "x$ac_cv_func_htonl" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__htonl" "ac_cv_func___htonl" -if test "x$ac_cv_func___htonl" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__htonl" "ac_cv_func___htonl" +if test "x$ac_cv_func___htonl" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_HTONL 1" >>confdefs.h +printf "%s\n" "#define HAVE_HTONL 1" >>confdefs.h ac_cv_func_htonl=yes ;; @@ -12552,118 +13726,140 @@ unset ac_cv_lib_socket_htonl unset ac_cv_lib_socket___htonl unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lsocket" >&5 -$as_echo_n "checking for htonl in -lsocket... " >&6; } -if ${ac_cv_lib_socket_htonl+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htonl in -lsocket" >&5 +printf %s "checking for htonl in -lsocket... " >&6; } +if test ${ac_cv_lib_socket_htonl+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char htonl (); +char htonl (void); int -main () +main (void) { return htonl (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket_htonl=yes -else - ac_cv_lib_socket_htonl=no +else case e in #( + e) ac_cv_lib_socket_htonl=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_htonl" >&5 -$as_echo "$ac_cv_lib_socket_htonl" >&6; } -if test "x$ac_cv_lib_socket_htonl" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_htonl" >&5 +printf "%s\n" "$ac_cv_lib_socket_htonl" >&6; } +if test "x$ac_cv_lib_socket_htonl" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lsocket" >&5 -$as_echo_n "checking for __htonl in -lsocket... " >&6; } -if ${ac_cv_lib_socket___htonl+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lsocket" >&5 +printf %s "checking for __htonl in -lsocket... " >&6; } +if test ${ac_cv_lib_socket___htonl+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __htonl (); +char __htonl (void); int -main () +main (void) { return __htonl (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket___htonl=yes -else - ac_cv_lib_socket___htonl=no +else case e in #( + e) ac_cv_lib_socket___htonl=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___htonl" >&5 -$as_echo "$ac_cv_lib_socket___htonl" >&6; } -if test "x$ac_cv_lib_socket___htonl" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___htonl" >&5 +printf "%s\n" "$ac_cv_lib_socket___htonl" >&6; } +if test "x$ac_cv_lib_socket___htonl" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lsocket" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -12681,10 +13877,10 @@ -$as_echo "#define HAVE_HTONL 1" >>confdefs.h +printf "%s\n" "#define HAVE_HTONL 1" >>confdefs.h -$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h ac_cv_func_htonl=yes else @@ -12693,118 +13889,140 @@ unset ac_cv_lib_network_htonl unset ac_cv_lib_network___htonl unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lnetwork" >&5 -$as_echo_n "checking for htonl in -lnetwork... " >&6; } -if ${ac_cv_lib_network_htonl+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htonl in -lnetwork" >&5 +printf %s "checking for htonl in -lnetwork... " >&6; } +if test ${ac_cv_lib_network_htonl+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char htonl (); +char htonl (void); int -main () +main (void) { return htonl (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network_htonl=yes -else - ac_cv_lib_network_htonl=no +else case e in #( + e) ac_cv_lib_network_htonl=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_htonl" >&5 -$as_echo "$ac_cv_lib_network_htonl" >&6; } -if test "x$ac_cv_lib_network_htonl" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_htonl" >&5 +printf "%s\n" "$ac_cv_lib_network_htonl" >&6; } +if test "x$ac_cv_lib_network_htonl" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lnetwork" >&5 -$as_echo_n "checking for __htonl in -lnetwork... " >&6; } -if ${ac_cv_lib_network___htonl+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lnetwork" >&5 +printf %s "checking for __htonl in -lnetwork... " >&6; } +if test ${ac_cv_lib_network___htonl+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __htonl (); +char __htonl (void); int -main () +main (void) { return __htonl (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network___htonl=yes -else - ac_cv_lib_network___htonl=no +else case e in #( + e) ac_cv_lib_network___htonl=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___htonl" >&5 -$as_echo "$ac_cv_lib_network___htonl" >&6; } -if test "x$ac_cv_lib_network___htonl" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___htonl" >&5 +printf "%s\n" "$ac_cv_lib_network___htonl" >&6; } +if test "x$ac_cv_lib_network___htonl" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lnetwork" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -12822,10 +14040,10 @@ -$as_echo "#define HAVE_HTONL 1" >>confdefs.h +printf "%s\n" "#define HAVE_HTONL 1" >>confdefs.h -$as_echo "#define HAVE_LIBNETWORK 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBNETWORK 1" >>confdefs.h ac_cv_func_htonl=yes else @@ -12847,23 +14065,27 @@ unset found ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" -if test "x$ac_cv_func_gethostname" = xyes; then : +if test "x$ac_cv_func_gethostname" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__gethostname" "ac_cv_func___gethostname" -if test "x$ac_cv_func___gethostname" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__gethostname" "ac_cv_func___gethostname" +if test "x$ac_cv_func___gethostname" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h ac_cv_func_gethostname=yes ;; @@ -12873,118 +14095,140 @@ unset ac_cv_lib_nsl_gethostname unset ac_cv_lib_nsl___gethostname unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5 -$as_echo_n "checking for gethostname in -lnsl... " >&6; } -if ${ac_cv_lib_nsl_gethostname+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5 +printf %s "checking for gethostname in -lnsl... " >&6; } +if test ${ac_cv_lib_nsl_gethostname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char gethostname (); +char gethostname (void); int -main () +main (void) { return gethostname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_nsl_gethostname=yes -else - ac_cv_lib_nsl_gethostname=no +else case e in #( + e) ac_cv_lib_nsl_gethostname=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5 -$as_echo "$ac_cv_lib_nsl_gethostname" >&6; } -if test "x$ac_cv_lib_nsl_gethostname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5 +printf "%s\n" "$ac_cv_lib_nsl_gethostname" >&6; } +if test "x$ac_cv_lib_nsl_gethostname" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnsl" >&5 -$as_echo_n "checking for __gethostname in -lnsl... " >&6; } -if ${ac_cv_lib_nsl___gethostname+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnsl" >&5 +printf %s "checking for __gethostname in -lnsl... " >&6; } +if test ${ac_cv_lib_nsl___gethostname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __gethostname (); +char __gethostname (void); int -main () +main (void) { return __gethostname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_nsl___gethostname=yes -else - ac_cv_lib_nsl___gethostname=no +else case e in #( + e) ac_cv_lib_nsl___gethostname=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostname" >&5 -$as_echo "$ac_cv_lib_nsl___gethostname" >&6; } -if test "x$ac_cv_lib_nsl___gethostname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostname" >&5 +printf "%s\n" "$ac_cv_lib_nsl___gethostname" >&6; } +if test "x$ac_cv_lib_nsl___gethostname" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lnsl" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -13002,10 +14246,10 @@ -$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h -$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h ac_cv_func_gethostname=yes else @@ -13014,118 +14258,140 @@ unset ac_cv_lib_network_gethostname unset ac_cv_lib_network___gethostname unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnetwork" >&5 -$as_echo_n "checking for gethostname in -lnetwork... " >&6; } -if ${ac_cv_lib_network_gethostname+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnetwork" >&5 +printf %s "checking for gethostname in -lnetwork... " >&6; } +if test ${ac_cv_lib_network_gethostname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char gethostname (); +char gethostname (void); int -main () +main (void) { return gethostname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network_gethostname=yes -else - ac_cv_lib_network_gethostname=no +else case e in #( + e) ac_cv_lib_network_gethostname=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostname" >&5 -$as_echo "$ac_cv_lib_network_gethostname" >&6; } -if test "x$ac_cv_lib_network_gethostname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostname" >&5 +printf "%s\n" "$ac_cv_lib_network_gethostname" >&6; } +if test "x$ac_cv_lib_network_gethostname" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnetwork" >&5 -$as_echo_n "checking for __gethostname in -lnetwork... " >&6; } -if ${ac_cv_lib_network___gethostname+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnetwork" >&5 +printf %s "checking for __gethostname in -lnetwork... " >&6; } +if test ${ac_cv_lib_network___gethostname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __gethostname (); +char __gethostname (void); int -main () +main (void) { return __gethostname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network___gethostname=yes -else - ac_cv_lib_network___gethostname=no +else case e in #( + e) ac_cv_lib_network___gethostname=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___gethostname" >&5 -$as_echo "$ac_cv_lib_network___gethostname" >&6; } -if test "x$ac_cv_lib_network___gethostname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___gethostname" >&5 +printf "%s\n" "$ac_cv_lib_network___gethostname" >&6; } +if test "x$ac_cv_lib_network___gethostname" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lnetwork" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -13143,10 +14409,10 @@ -$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h -$as_echo "#define HAVE_LIBNETWORK 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBNETWORK 1" >>confdefs.h ac_cv_func_gethostname=yes else @@ -13168,23 +14434,27 @@ unset found ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr" -if test "x$ac_cv_func_gethostbyaddr" = xyes; then : +if test "x$ac_cv_func_gethostbyaddr" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__gethostbyaddr" "ac_cv_func___gethostbyaddr" -if test "x$ac_cv_func___gethostbyaddr" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__gethostbyaddr" "ac_cv_func___gethostbyaddr" +if test "x$ac_cv_func___gethostbyaddr" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h ac_cv_func_gethostbyaddr=yes ;; @@ -13194,118 +14464,140 @@ unset ac_cv_lib_nsl_gethostbyaddr unset ac_cv_lib_nsl___gethostbyaddr unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5 -$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; } -if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5 +printf %s "checking for gethostbyaddr in -lnsl... " >&6; } +if test ${ac_cv_lib_nsl_gethostbyaddr+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char gethostbyaddr (); +char gethostbyaddr (void); int -main () +main (void) { return gethostbyaddr (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_nsl_gethostbyaddr=yes -else - ac_cv_lib_nsl_gethostbyaddr=no +else case e in #( + e) ac_cv_lib_nsl_gethostbyaddr=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 -$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; } -if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 +printf "%s\n" "$ac_cv_lib_nsl_gethostbyaddr" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnsl" >&5 -$as_echo_n "checking for __gethostbyaddr in -lnsl... " >&6; } -if ${ac_cv_lib_nsl___gethostbyaddr+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnsl" >&5 +printf %s "checking for __gethostbyaddr in -lnsl... " >&6; } +if test ${ac_cv_lib_nsl___gethostbyaddr+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __gethostbyaddr (); +char __gethostbyaddr (void); int -main () +main (void) { return __gethostbyaddr (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_nsl___gethostbyaddr=yes -else - ac_cv_lib_nsl___gethostbyaddr=no +else case e in #( + e) ac_cv_lib_nsl___gethostbyaddr=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostbyaddr" >&5 -$as_echo "$ac_cv_lib_nsl___gethostbyaddr" >&6; } -if test "x$ac_cv_lib_nsl___gethostbyaddr" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostbyaddr" >&5 +printf "%s\n" "$ac_cv_lib_nsl___gethostbyaddr" >&6; } +if test "x$ac_cv_lib_nsl___gethostbyaddr" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lnsl" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -13323,10 +14615,10 @@ -$as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h -$as_echo "#define HAVE_LIBNSL 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h ac_cv_func_gethostbyaddr=yes else @@ -13335,118 +14627,140 @@ unset ac_cv_lib_network_gethostbyaddr unset ac_cv_lib_network___gethostbyaddr unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnetwork" >&5 -$as_echo_n "checking for gethostbyaddr in -lnetwork... " >&6; } -if ${ac_cv_lib_network_gethostbyaddr+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnetwork" >&5 +printf %s "checking for gethostbyaddr in -lnetwork... " >&6; } +if test ${ac_cv_lib_network_gethostbyaddr+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char gethostbyaddr (); +char gethostbyaddr (void); int -main () +main (void) { return gethostbyaddr (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network_gethostbyaddr=yes -else - ac_cv_lib_network_gethostbyaddr=no +else case e in #( + e) ac_cv_lib_network_gethostbyaddr=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyaddr" >&5 -$as_echo "$ac_cv_lib_network_gethostbyaddr" >&6; } -if test "x$ac_cv_lib_network_gethostbyaddr" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyaddr" >&5 +printf "%s\n" "$ac_cv_lib_network_gethostbyaddr" >&6; } +if test "x$ac_cv_lib_network_gethostbyaddr" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnetwork" >&5 -$as_echo_n "checking for __gethostbyaddr in -lnetwork... " >&6; } -if ${ac_cv_lib_network___gethostbyaddr+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnetwork" >&5 +printf %s "checking for __gethostbyaddr in -lnetwork... " >&6; } +if test ${ac_cv_lib_network___gethostbyaddr+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __gethostbyaddr (); +char __gethostbyaddr (void); int -main () +main (void) { return __gethostbyaddr (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network___gethostbyaddr=yes -else - ac_cv_lib_network___gethostbyaddr=no +else case e in #( + e) ac_cv_lib_network___gethostbyaddr=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___gethostbyaddr" >&5 -$as_echo "$ac_cv_lib_network___gethostbyaddr" >&6; } -if test "x$ac_cv_lib_network___gethostbyaddr" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___gethostbyaddr" >&5 +printf "%s\n" "$ac_cv_lib_network___gethostbyaddr" >&6; } +if test "x$ac_cv_lib_network___gethostbyaddr" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lnetwork" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -13464,10 +14778,10 @@ -$as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h -$as_echo "#define HAVE_LIBNETWORK 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBNETWORK 1" >>confdefs.h ac_cv_func_gethostbyaddr=yes else @@ -13489,23 +14803,27 @@ unset found ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : +if test "x$ac_cv_func_dlopen" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__dlopen" "ac_cv_func___dlopen" -if test "x$ac_cv_func___dlopen" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__dlopen" "ac_cv_func___dlopen" +if test "x$ac_cv_func___dlopen" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h +printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h ac_cv_func_dlopen=yes ;; @@ -13515,118 +14833,140 @@ unset ac_cv_lib_dl_dlopen unset ac_cv_lib_dl___dlopen unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dlopen (); +char dlopen (void); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else - ac_cv_lib_dl_dlopen=no +else case e in #( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -ldl" >&5 -$as_echo_n "checking for __dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl___dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -ldl" >&5 +printf %s "checking for __dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl___dlopen+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dlopen (); +char __dlopen (void); int -main () +main (void) { return __dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl___dlopen=yes -else - ac_cv_lib_dl___dlopen=no +else case e in #( + e) ac_cv_lib_dl___dlopen=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlopen" >&5 -$as_echo "$ac_cv_lib_dl___dlopen" >&6; } -if test "x$ac_cv_lib_dl___dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl___dlopen" >&6; } +if test "x$ac_cv_lib_dl___dlopen" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -ldl" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -13644,10 +14984,10 @@ -$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h +printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h -$as_echo "#define HAVE_LIBDL 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h ac_cv_func_dlopen=yes else @@ -13656,118 +14996,140 @@ unset ac_cv_lib_root_dlopen unset ac_cv_lib_root___dlopen unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lroot" >&5 -$as_echo_n "checking for dlopen in -lroot... " >&6; } -if ${ac_cv_lib_root_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lroot" >&5 +printf %s "checking for dlopen in -lroot... " >&6; } +if test ${ac_cv_lib_root_dlopen+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lroot $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dlopen (); +char dlopen (void); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_root_dlopen=yes -else - ac_cv_lib_root_dlopen=no +else case e in #( + e) ac_cv_lib_root_dlopen=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_dlopen" >&5 -$as_echo "$ac_cv_lib_root_dlopen" >&6; } -if test "x$ac_cv_lib_root_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_root_dlopen" >&6; } +if test "x$ac_cv_lib_root_dlopen" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -lroot" >&5 -$as_echo_n "checking for __dlopen in -lroot... " >&6; } -if ${ac_cv_lib_root___dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -lroot" >&5 +printf %s "checking for __dlopen in -lroot... " >&6; } +if test ${ac_cv_lib_root___dlopen+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lroot $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dlopen (); +char __dlopen (void); int -main () +main (void) { return __dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_root___dlopen=yes -else - ac_cv_lib_root___dlopen=no +else case e in #( + e) ac_cv_lib_root___dlopen=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root___dlopen" >&5 -$as_echo "$ac_cv_lib_root___dlopen" >&6; } -if test "x$ac_cv_lib_root___dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root___dlopen" >&5 +printf "%s\n" "$ac_cv_lib_root___dlopen" >&6; } +if test "x$ac_cv_lib_root___dlopen" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lroot" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -13785,10 +15147,10 @@ -$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h +printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h -$as_echo "#define HAVE_LIBROOT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBROOT 1" >>confdefs.h ac_cv_func_dlopen=yes else @@ -13810,23 +15172,27 @@ unset found ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" -if test "x$ac_cv_func_dlsym" = xyes; then : +if test "x$ac_cv_func_dlsym" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__dlsym" "ac_cv_func___dlsym" -if test "x$ac_cv_func___dlsym" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__dlsym" "ac_cv_func___dlsym" +if test "x$ac_cv_func___dlsym" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_DLSYM 1" >>confdefs.h +printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h ac_cv_func_dlsym=yes ;; @@ -13836,118 +15202,140 @@ unset ac_cv_lib_dl_dlsym unset ac_cv_lib_dl___dlsym unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 -$as_echo_n "checking for dlsym in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlsym+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 +printf %s "checking for dlsym in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlsym+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dlsym (); +char dlsym (void); int -main () +main (void) { return dlsym (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlsym=yes -else - ac_cv_lib_dl_dlsym=no +else case e in #( + e) ac_cv_lib_dl_dlsym=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 -$as_echo "$ac_cv_lib_dl_dlsym" >&6; } -if test "x$ac_cv_lib_dl_dlsym" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; } +if test "x$ac_cv_lib_dl_dlsym" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlsym in -ldl" >&5 -$as_echo_n "checking for __dlsym in -ldl... " >&6; } -if ${ac_cv_lib_dl___dlsym+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dlsym in -ldl" >&5 +printf %s "checking for __dlsym in -ldl... " >&6; } +if test ${ac_cv_lib_dl___dlsym+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dlsym (); +char __dlsym (void); int -main () +main (void) { return __dlsym (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl___dlsym=yes -else - ac_cv_lib_dl___dlsym=no +else case e in #( + e) ac_cv_lib_dl___dlsym=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlsym" >&5 -$as_echo "$ac_cv_lib_dl___dlsym" >&6; } -if test "x$ac_cv_lib_dl___dlsym" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlsym" >&5 +printf "%s\n" "$ac_cv_lib_dl___dlsym" >&6; } +if test "x$ac_cv_lib_dl___dlsym" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -ldl" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -13965,10 +15353,10 @@ -$as_echo "#define HAVE_DLSYM 1" >>confdefs.h +printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h -$as_echo "#define HAVE_LIBDL 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h ac_cv_func_dlsym=yes else @@ -13977,118 +15365,140 @@ unset ac_cv_lib_root_dlsym unset ac_cv_lib_root___dlsym unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -lroot" >&5 -$as_echo_n "checking for dlsym in -lroot... " >&6; } -if ${ac_cv_lib_root_dlsym+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -lroot" >&5 +printf %s "checking for dlsym in -lroot... " >&6; } +if test ${ac_cv_lib_root_dlsym+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lroot $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dlsym (); +char dlsym (void); int -main () +main (void) { return dlsym (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_root_dlsym=yes -else - ac_cv_lib_root_dlsym=no +else case e in #( + e) ac_cv_lib_root_dlsym=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_dlsym" >&5 -$as_echo "$ac_cv_lib_root_dlsym" >&6; } -if test "x$ac_cv_lib_root_dlsym" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_dlsym" >&5 +printf "%s\n" "$ac_cv_lib_root_dlsym" >&6; } +if test "x$ac_cv_lib_root_dlsym" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlsym in -lroot" >&5 -$as_echo_n "checking for __dlsym in -lroot... " >&6; } -if ${ac_cv_lib_root___dlsym+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dlsym in -lroot" >&5 +printf %s "checking for __dlsym in -lroot... " >&6; } +if test ${ac_cv_lib_root___dlsym+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lroot $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dlsym (); +char __dlsym (void); int -main () +main (void) { return __dlsym (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_root___dlsym=yes -else - ac_cv_lib_root___dlsym=no +else case e in #( + e) ac_cv_lib_root___dlsym=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root___dlsym" >&5 -$as_echo "$ac_cv_lib_root___dlsym" >&6; } -if test "x$ac_cv_lib_root___dlsym" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root___dlsym" >&5 +printf "%s\n" "$ac_cv_lib_root___dlsym" >&6; } +if test "x$ac_cv_lib_root___dlsym" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lroot" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -14106,10 +15516,10 @@ -$as_echo "#define HAVE_DLSYM 1" >>confdefs.h +printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h -$as_echo "#define HAVE_LIBROOT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBROOT 1" >>confdefs.h ac_cv_func_dlsym=yes else @@ -14127,49 +15537,55 @@ if test "$ac_cv_func_dlopen" = "yes"; then -$as_echo "#define HAVE_LIBDL 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 -$as_echo_n "checking for sin in -lm... " >&6; } -if ${ac_cv_lib_m_sin+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 +printf %s "checking for sin in -lm... " >&6; } +if test ${ac_cv_lib_m_sin+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char sin (); +char sin (void); int -main () +main (void) { return sin (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_m_sin=yes -else - ac_cv_lib_m_sin=no +else case e in #( + e) ac_cv_lib_m_sin=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 -$as_echo "$ac_cv_lib_m_sin" >&6; } -if test "x$ac_cv_lib_m_sin" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBM 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 +printf "%s\n" "$ac_cv_lib_m_sin" >&6; } +if test "x$ac_cv_lib_m_sin" = xyes +then : + printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h LIBS="-lm $LIBS" @@ -14184,23 +15600,27 @@ unset found ac_fn_c_check_func "$LINENO" "__atomic_exchange_1" "ac_cv_func___atomic_exchange_1" -if test "x$ac_cv_func___atomic_exchange_1" = xyes; then : +if test "x$ac_cv_func___atomic_exchange_1" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "____atomic_exchange_1" "ac_cv_func_____atomic_exchange_1" -if test "x$ac_cv_func_____atomic_exchange_1" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "____atomic_exchange_1" "ac_cv_func_____atomic_exchange_1" +if test "x$ac_cv_func_____atomic_exchange_1" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE___ATOMIC_EXCHANGE_1 1" >>confdefs.h +printf "%s\n" "#define HAVE___ATOMIC_EXCHANGE_1 1" >>confdefs.h ac_cv_func___atomic_exchange_1=yes ;; @@ -14210,118 +15630,140 @@ unset ac_cv_lib_atomic___atomic_exchange_1 unset ac_cv_lib_atomic_____atomic_exchange_1 unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange_1 in -latomic" >&5 -$as_echo_n "checking for __atomic_exchange_1 in -latomic... " >&6; } -if ${ac_cv_lib_atomic___atomic_exchange_1+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange_1 in -latomic" >&5 +printf %s "checking for __atomic_exchange_1 in -latomic... " >&6; } +if test ${ac_cv_lib_atomic___atomic_exchange_1+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-latomic $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __atomic_exchange_1 (); +char __atomic_exchange_1 (void); int -main () +main (void) { return __atomic_exchange_1 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_atomic___atomic_exchange_1=yes -else - ac_cv_lib_atomic___atomic_exchange_1=no +else case e in #( + e) ac_cv_lib_atomic___atomic_exchange_1=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_exchange_1" >&5 -$as_echo "$ac_cv_lib_atomic___atomic_exchange_1" >&6; } -if test "x$ac_cv_lib_atomic___atomic_exchange_1" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_exchange_1" >&5 +printf "%s\n" "$ac_cv_lib_atomic___atomic_exchange_1" >&6; } +if test "x$ac_cv_lib_atomic___atomic_exchange_1" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ____atomic_exchange_1 in -latomic" >&5 -$as_echo_n "checking for ____atomic_exchange_1 in -latomic... " >&6; } -if ${ac_cv_lib_atomic_____atomic_exchange_1+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ____atomic_exchange_1 in -latomic" >&5 +printf %s "checking for ____atomic_exchange_1 in -latomic... " >&6; } +if test ${ac_cv_lib_atomic_____atomic_exchange_1+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-latomic $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char ____atomic_exchange_1 (); +char ____atomic_exchange_1 (void); int -main () +main (void) { return ____atomic_exchange_1 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_atomic_____atomic_exchange_1=yes -else - ac_cv_lib_atomic_____atomic_exchange_1=no +else case e in #( + e) ac_cv_lib_atomic_____atomic_exchange_1=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic_____atomic_exchange_1" >&5 -$as_echo "$ac_cv_lib_atomic_____atomic_exchange_1" >&6; } -if test "x$ac_cv_lib_atomic_____atomic_exchange_1" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic_____atomic_exchange_1" >&5 +printf "%s\n" "$ac_cv_lib_atomic_____atomic_exchange_1" >&6; } +if test "x$ac_cv_lib_atomic_____atomic_exchange_1" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -latomic" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -14339,10 +15781,10 @@ -$as_echo "#define HAVE___ATOMIC_EXCHANGE_1 1" >>confdefs.h +printf "%s\n" "#define HAVE___ATOMIC_EXCHANGE_1 1" >>confdefs.h -$as_echo "#define HAVE_LIBATOMIC 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBATOMIC 1" >>confdefs.h ac_cv_func___atomic_exchange_1=yes else @@ -14364,23 +15806,27 @@ unset found ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" -if test "x$ac_cv_func_inet_aton" = xyes; then : +if test "x$ac_cv_func_inet_aton" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton" -if test "x$ac_cv_func___inet_aton" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton" +if test "x$ac_cv_func___inet_aton" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h +printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h ac_cv_func_inet_aton=yes ;; @@ -14390,118 +15836,140 @@ unset ac_cv_lib_resolv_inet_aton unset ac_cv_lib_resolv___inet_aton unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 -$as_echo_n "checking for inet_aton in -lresolv... " >&6; } -if ${ac_cv_lib_resolv_inet_aton+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 +printf %s "checking for inet_aton in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv_inet_aton+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char inet_aton (); +char inet_aton (void); int -main () +main (void) { return inet_aton (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv_inet_aton=yes -else - ac_cv_lib_resolv_inet_aton=no +else case e in #( + e) ac_cv_lib_resolv_inet_aton=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 -$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } -if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 +printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; } +if test "x$ac_cv_lib_resolv_inet_aton" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lresolv" >&5 -$as_echo_n "checking for __inet_aton in -lresolv... " >&6; } -if ${ac_cv_lib_resolv___inet_aton+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lresolv" >&5 +printf %s "checking for __inet_aton in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv___inet_aton+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __inet_aton (); +char __inet_aton (void); int -main () +main (void) { return __inet_aton (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv___inet_aton=yes -else - ac_cv_lib_resolv___inet_aton=no +else case e in #( + e) ac_cv_lib_resolv___inet_aton=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___inet_aton" >&5 -$as_echo "$ac_cv_lib_resolv___inet_aton" >&6; } -if test "x$ac_cv_lib_resolv___inet_aton" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___inet_aton" >&5 +printf "%s\n" "$ac_cv_lib_resolv___inet_aton" >&6; } +if test "x$ac_cv_lib_resolv___inet_aton" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lresolv" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -14519,10 +15987,10 @@ -$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h +printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h -$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h ac_cv_func_inet_aton=yes else @@ -14531,118 +15999,140 @@ unset ac_cv_lib_bind_inet_aton unset ac_cv_lib_bind___inet_aton unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5 -$as_echo_n "checking for inet_aton in -lbind... " >&6; } -if ${ac_cv_lib_bind_inet_aton+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5 +printf %s "checking for inet_aton in -lbind... " >&6; } +if test ${ac_cv_lib_bind_inet_aton+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char inet_aton (); +char inet_aton (void); int -main () +main (void) { return inet_aton (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind_inet_aton=yes -else - ac_cv_lib_bind_inet_aton=no +else case e in #( + e) ac_cv_lib_bind_inet_aton=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5 -$as_echo "$ac_cv_lib_bind_inet_aton" >&6; } -if test "x$ac_cv_lib_bind_inet_aton" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5 +printf "%s\n" "$ac_cv_lib_bind_inet_aton" >&6; } +if test "x$ac_cv_lib_bind_inet_aton" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lbind" >&5 -$as_echo_n "checking for __inet_aton in -lbind... " >&6; } -if ${ac_cv_lib_bind___inet_aton+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lbind" >&5 +printf %s "checking for __inet_aton in -lbind... " >&6; } +if test ${ac_cv_lib_bind___inet_aton+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __inet_aton (); +char __inet_aton (void); int -main () +main (void) { return __inet_aton (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind___inet_aton=yes -else - ac_cv_lib_bind___inet_aton=no +else case e in #( + e) ac_cv_lib_bind___inet_aton=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___inet_aton" >&5 -$as_echo "$ac_cv_lib_bind___inet_aton" >&6; } -if test "x$ac_cv_lib_bind___inet_aton" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___inet_aton" >&5 +printf "%s\n" "$ac_cv_lib_bind___inet_aton" >&6; } +if test "x$ac_cv_lib_bind___inet_aton" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lbind" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -14660,10 +16150,10 @@ -$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h +printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h -$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBBIND 1" >>confdefs.h ac_cv_func_inet_aton=yes else @@ -14681,63 +16171,30 @@ -for ac_header in \ -stdint.h \ -dirent.h \ -sys/param.h \ -sys/types.h \ -sys/time.h \ -netinet/in.h \ -alloca.h \ -arpa/inet.h \ -arpa/nameser.h \ -crypt.h \ -dns.h \ -fcntl.h \ -grp.h \ -ieeefp.h \ -langinfo.h \ -linux/filter.h \ -linux/sock_diag.h \ -malloc.h \ -os/signpost.h \ -poll.h \ -pty.h \ -pwd.h \ -resolv.h \ -strings.h \ -syslog.h \ -sysexits.h \ -sys/ioctl.h \ -sys/file.h \ -sys/mman.h \ -sys/mount.h \ -sys/poll.h \ -sys/resource.h \ -sys/select.h \ -sys/socket.h \ -sys/stat.h \ -sys/statfs.h \ -sys/statvfs.h \ -sys/vfs.h \ -sys/sysexits.h \ -sys/uio.h \ -sys/wait.h \ -sys/loadavg.h \ -unistd.h \ -unix.h \ -utime.h \ -sys/utsname.h \ -sys/ipc.h \ -dlfcn.h \ -tmmintrin.h \ -nmmintrin.h \ -wmmintrin.h \ -immintrin.h +ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " +" +if test "x$ac_cv_header_stdint_h" = xyes +then : + printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" " #ifdef HAVE_SYS_PARAM_H #include #endif @@ -14755,19 +16212,1167 @@ #endif " -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +if test "x$ac_cv_header_dirent_h" = xyes +then : + printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif -done +" +if test "x$ac_cv_header_sys_param_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_types_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_time_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_netinet_in_h" = xyes +then : + printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_alloca_h" = xyes +then : + printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_arpa_inet_h" = xyes +then : + printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_arpa_nameser_h" = xyes +then : + printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_crypt_h" = xyes +then : + printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "dns.h" "ac_cv_header_dns_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_dns_h" = xyes +then : + printf "%s\n" "#define HAVE_DNS_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_fcntl_h" = xyes +then : + printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_grp_h" = xyes +then : + printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_ieeefp_h" = xyes +then : + printf "%s\n" "#define HAVE_IEEEFP_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_langinfo_h" = xyes +then : + printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_linux_filter_h" = xyes +then : + printf "%s\n" "#define HAVE_LINUX_FILTER_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "linux/sock_diag.h" "ac_cv_header_linux_sock_diag_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_linux_sock_diag_h" = xyes +then : + printf "%s\n" "#define HAVE_LINUX_SOCK_DIAG_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_malloc_h" = xyes +then : + printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "os/signpost.h" "ac_cv_header_os_signpost_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_os_signpost_h" = xyes +then : + printf "%s\n" "#define HAVE_OS_SIGNPOST_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_poll_h" = xyes +then : + printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_pty_h" = xyes +then : + printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_pwd_h" = xyes +then : + printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_resolv_h" = xyes +then : + printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_strings_h" = xyes +then : + printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_syslog_h" = xyes +then : + printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sysexits_h" = xyes +then : + printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_ioctl_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_file_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_mman_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_mount_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_poll_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_resource_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_select_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_socket_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_stat_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_statfs_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_statvfs_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_vfs_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/sysexits.h" "ac_cv_header_sys_sysexits_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_sysexits_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SYSEXITS_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_uio_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_wait_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_loadavg_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_unistd_h" = xyes +then : + printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "unix.h" "ac_cv_header_unix_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_unix_h" = xyes +then : + printf "%s\n" "#define HAVE_UNIX_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_utime_h" = xyes +then : + printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_utsname_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_sys_ipc_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_dlfcn_h" = xyes +then : + printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "tmmintrin.h" "ac_cv_header_tmmintrin_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_tmmintrin_h" = xyes +then : + printf "%s\n" "#define HAVE_TMMINTRIN_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "nmmintrin.h" "ac_cv_header_nmmintrin_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_nmmintrin_h" = xyes +then : + printf "%s\n" "#define HAVE_NMMINTRIN_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "wmmintrin.h" "ac_cv_header_wmmintrin_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_wmmintrin_h" = xyes +then : + printf "%s\n" "#define HAVE_WMMINTRIN_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" " +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_NAMESER_H +#include +#endif + +" +if test "x$ac_cv_header_immintrin_h" = xyes +then : + printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h + +fi ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie" -if test "x$ac_cv_func_fopencookie" = xyes; then : +if test "x$ac_cv_func_fopencookie" = xyes +then : have_glibc_fopencookie=yes fi @@ -14780,23 +17385,25 @@ #include int -main () +main (void) { cookie_io_functions_t cookie; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : have_cookie_io_functions_t=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test "$have_cookie_io_functions_t" = "yes"; then cookie_io_functions_t=cookie_io_functions_t have_fopen_cookie=yes -if test "$cross_compiling" = yes; then : +if test "$cross_compiling" = yes +then : case $host_alias in *linux*) @@ -14807,8 +17414,8 @@ ;; esac -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _GNU_SOURCE @@ -14841,17 +17448,20 @@ _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : cookie_io_functions_use_off64_t=yes -else - +else case e in #( + e) cookie_io_functions_use_off64_t=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi @@ -14864,17 +17474,18 @@ #include int -main () +main (void) { _IO_cookie_io_functions_t cookie; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : have_IO_cookie_io_functions_t=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test "$have_cookie_io_functions_t" = "yes" ; then cookie_io_functions_t=_IO_cookie_io_functions_t have_fopen_cookie=yes @@ -14883,51 +17494,51 @@ if test "$have_fopen_cookie" = "yes" ; then -$as_echo "#define HAVE_FOPENCOOKIE 1" >>confdefs.h +printf "%s\n" "#define HAVE_FOPENCOOKIE 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t -_ACEOF +printf "%s\n" "#define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t" >>confdefs.h if test "$cookie_io_functions_use_off64_t" = "yes" ; then -$as_echo "#define COOKIE_SEEKER_USES_OFF64_T 1" >>confdefs.h +printf "%s\n" "#define COOKIE_SEEKER_USES_OFF64_T 1" >>confdefs.h fi fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken getcwd" >&5 -$as_echo_n "checking for broken getcwd... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken getcwd" >&5 +printf %s "checking for broken getcwd... " >&6; } os=`uname -sr 2>/dev/null` case $os in SunOS*) -$as_echo "#define HAVE_BROKEN_GETCWD 1" >>confdefs.h +printf "%s\n" "#define HAVE_BROKEN_GETCWD 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; };; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; };; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; };; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; };; esac if test "$GCC" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken gcc optimize-strlen" >&5 -$as_echo_n "checking for broken gcc optimize-strlen... " >&6; } -if ${ac_cv_have_broken_gcc_strlen_opt+:} false; then : - $as_echo_n "(cached) " >&6 -else - - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken gcc optimize-strlen" >&5 +printf %s "checking for broken gcc optimize-strlen... " >&6; } +if test ${ac_cv_have_broken_gcc_strlen_opt+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + if test "$cross_compiling" = yes +then : ac_cv_have_broken_gcc_strlen_opt=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -14947,22 +17558,26 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_have_broken_gcc_strlen_opt=yes -else - +else case e in #( + e) ac_cv_have_broken_gcc_strlen_opt=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_gcc_strlen_opt" >&5 -$as_echo "$ac_cv_have_broken_gcc_strlen_opt" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_gcc_strlen_opt" >&5 +printf "%s\n" "$ac_cv_have_broken_gcc_strlen_opt" >&6; } if test "$ac_cv_have_broken_gcc_strlen_opt" = "yes"; then CFLAGS="$CFLAGS -fno-optimize-strlen" fi @@ -14970,18 +17585,19 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 -$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } -if ${ac_cv_struct_tm+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 +printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } +if test ${ac_cv_struct_tm+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int -main () +main (void) { struct tm tm; int *p = &tm.tm_sec; @@ -14990,57 +17606,142 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_struct_tm=time.h -else - ac_cv_struct_tm=sys/time.h +else case e in #( + e) ac_cv_struct_tm=sys/time.h ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 -$as_echo "$ac_cv_struct_tm" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 +printf "%s\n" "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then -$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h +printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 +printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } +if test ${ac_cv_c_undeclared_builtin_options+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_save_CFLAGS=$CFLAGS + ac_cv_c_undeclared_builtin_options='cannot detect' + for ac_arg in '' -fno-builtin; do + CFLAGS="$ac_save_CFLAGS $ac_arg" + # This test program should *not* compile successfully. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ +(void) strchr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + +else case e in #( + e) # This test program should compile successfully. + # No library function is consistently available on + # freestanding implementations, so test against a dummy + # declaration. Include always-available headers on the + # off chance that they somehow elicit warnings. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +extern void ac_decl (int, char *); + +int +main (void) +{ +(void) ac_decl (0, (char *) 0); + (void) ac_decl; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + if test x"$ac_arg" = x +then : + ac_cv_c_undeclared_builtin_options='none needed' +else case e in #( + e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; +esac +fi + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + done + CFLAGS=$ac_save_CFLAGS + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } + case $ac_cv_c_undeclared_builtin_options in #( + 'cannot detect') : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} +as_fn_error $? "cannot make $CC report undeclared builtins +See 'config.log' for more details" "$LINENO" 5; } ;; #( + 'none needed') : + ac_c_undeclared_builtin_options='' ;; #( + *) : + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; +esac + ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include #include <$ac_cv_struct_tm> " -if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_TM_TM_ZONE 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h fi if test "$ac_cv_member_struct_tm_tm_zone" = yes; then -$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h +printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h else - ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include -" -if test "x$ac_cv_have_decl_tzname" = xyes; then : + ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_tzname" = xyes +then : ac_have_decl=1 -else - ac_have_decl=0 +else case e in #( + e) ac_have_decl=0 ;; +esac fi +printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_TZNAME $ac_have_decl -_ACEOF - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 -$as_echo_n "checking for tzname... " >&6; } -if ${ac_cv_var_tzname+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 +printf %s "checking for tzname... " >&6; } +if test ${ac_cv_var_tzname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if !HAVE_DECL_TZNAME @@ -15048,153 +17749,167 @@ #endif int -main () +main (void) { return tzname[0][0]; ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_var_tzname=yes -else - ac_cv_var_tzname=no +else case e in #( + e) ac_cv_var_tzname=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 -$as_echo "$ac_cv_var_tzname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 +printf "%s\n" "$ac_cv_var_tzname" >&6; } if test $ac_cv_var_tzname = yes; then -$as_echo "#define HAVE_TZNAME 1" >>confdefs.h +printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h fi fi -ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include -" -if test "x$ac_cv_have_decl_localtime_r" = xyes; then : - -else - -$as_echo "#define MISSING_LOCALTIME_R_DECL 1" >>confdefs.h +ac_fn_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_localtime_r" = xyes +then : +else case e in #( + e) +printf "%s\n" "#define MISSING_LOCALTIME_R_DECL 1" >>confdefs.h + ;; +esac fi - -ac_fn_c_check_decl "$LINENO" "gmtime_r" "ac_cv_have_decl_gmtime_r" "#include -" -if test "x$ac_cv_have_decl_gmtime_r" = xyes; then : - -else - -$as_echo "#define MISSING_GMTIME_R_DECL 1" >>confdefs.h - +ac_fn_check_decl "$LINENO" "gmtime_r" "ac_cv_have_decl_gmtime_r" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_gmtime_r" = xyes +then : + +else case e in #( + e) +printf "%s\n" "#define MISSING_GMTIME_R_DECL 1" >>confdefs.h + ;; +esac fi - -ac_fn_c_check_decl "$LINENO" "asctime_r" "ac_cv_have_decl_asctime_r" "#include -" -if test "x$ac_cv_have_decl_asctime_r" = xyes; then : - -else - -$as_echo "#define MISSING_ASCTIME_R_DECL 1" >>confdefs.h - +ac_fn_check_decl "$LINENO" "asctime_r" "ac_cv_have_decl_asctime_r" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_asctime_r" = xyes +then : + +else case e in #( + e) +printf "%s\n" "#define MISSING_ASCTIME_R_DECL 1" >>confdefs.h + ;; +esac fi - -ac_fn_c_check_decl "$LINENO" "ctime_r" "ac_cv_have_decl_ctime_r" "#include -" -if test "x$ac_cv_have_decl_ctime_r" = xyes; then : - -else - -$as_echo "#define MISSING_CTIME_R_DECL 1" >>confdefs.h - +ac_fn_check_decl "$LINENO" "ctime_r" "ac_cv_have_decl_ctime_r" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_ctime_r" = xyes +then : + +else case e in #( + e) +printf "%s\n" "#define MISSING_CTIME_R_DECL 1" >>confdefs.h + ;; +esac fi - -ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "#include -" -if test "x$ac_cv_have_decl_strtok_r" = xyes; then : - -else - -$as_echo "#define MISSING_STRTOK_R_DECL 1" >>confdefs.h - +ac_fn_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_strtok_r" = xyes +then : + +else case e in #( + e) +printf "%s\n" "#define MISSING_STRTOK_R_DECL 1" >>confdefs.h + ;; +esac fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration" >&5 -$as_echo_n "checking for fclose declaration... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fclose declaration" >&5 +printf %s "checking for fclose declaration... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { int (*func)(FILE *) = fclose ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define MISSING_FCLOSE_DECL 0" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } - -else +printf "%s\n" "#define MISSING_FCLOSE_DECL 0" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } -$as_echo "#define MISSING_FCLOSE_DECL 1" >>confdefs.h +else case e in #( + e) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 -$as_echo "missing" >&6; } +printf "%s\n" "#define MISSING_FCLOSE_DECL 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +printf "%s\n" "missing" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock" >&5 -$as_echo_n "checking for struct flock... " >&6; } -if ${ac_cv_struct_flock+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct flock" >&5 +printf %s "checking for struct flock... " >&6; } +if test ${ac_cv_struct_flock+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int -main () +main (void) { struct flock x; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_struct_flock=yes -else - +else case e in #( + e) ac_cv_struct_flock=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_flock" >&5 -$as_echo "$ac_cv_struct_flock" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_flock" >&5 +printf "%s\n" "$ac_cv_struct_flock" >&6; } if test "$ac_cv_struct_flock" = "yes" ; then -$as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h +printf "%s\n" "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h fi @@ -15208,35 +17923,36 @@ #endif " -if test "x$ac_cv_type_socklen_t" = xyes; then : +if test "x$ac_cv_type_socklen_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_SOCKLEN_T 1 -_ACEOF +printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 -$as_echo_n "checking size of intmax_t... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 +printf %s "checking size of intmax_t... " >&6; } php_cache_value=php_cv_sizeof_intmax_t - if ${php_cv_sizeof_intmax_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - + if test ${php_cv_sizeof_intmax_t+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) old_LIBS=$LIBS LIBS= old_LDFLAGS=$LDFLAGS LDFLAGS= - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : eval $php_cache_value=0 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -15256,62 +17972,64 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : eval $php_cache_value=`cat conftestval` -else - +else case e in #( + e) eval $php_cache_value=0 - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS - + ;; +esac fi if eval test "\$$php_cache_value" != "0"; then -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t -_ACEOF +printf "%s\n" "#define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_INTMAX_T 1 -_ACEOF +printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_intmax_t" >&5 -$as_echo "$php_cv_sizeof_intmax_t" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_intmax_t" >&5 +printf "%s\n" "$php_cv_sizeof_intmax_t" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 -$as_echo_n "checking size of ssize_t... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 +printf %s "checking size of ssize_t... " >&6; } php_cache_value=php_cv_sizeof_ssize_t - if ${php_cv_sizeof_ssize_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - + if test ${php_cv_sizeof_ssize_t+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) old_LIBS=$LIBS LIBS= old_LDFLAGS=$LDFLAGS LDFLAGS= - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : eval $php_cache_value=8 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -15331,62 +18049,64 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : eval $php_cache_value=`cat conftestval` -else - +else case e in #( + e) eval $php_cache_value=0 - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS - + ;; +esac fi if eval test "\$$php_cache_value" != "0"; then -cat >>confdefs.h <<_ACEOF -#define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t -_ACEOF +printf "%s\n" "#define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_SSIZE_T 1 -_ACEOF +printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ssize_t" >&5 -$as_echo "$php_cv_sizeof_ssize_t" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ssize_t" >&5 +printf "%s\n" "$php_cv_sizeof_ssize_t" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 -$as_echo_n "checking size of ptrdiff_t... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 +printf %s "checking size of ptrdiff_t... " >&6; } php_cache_value=php_cv_sizeof_ptrdiff_t - if ${php_cv_sizeof_ptrdiff_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - + if test ${php_cv_sizeof_ptrdiff_t+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) old_LIBS=$LIBS LIBS= old_LDFLAGS=$LDFLAGS LDFLAGS= - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : eval $php_cache_value=8 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -15406,241 +18126,253 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : eval $php_cache_value=`cat conftestval` -else - +else case e in #( + e) eval $php_cache_value=0 - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS - + ;; +esac fi if eval test "\$$php_cache_value" != "0"; then -cat >>confdefs.h <<_ACEOF -#define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t -_ACEOF +printf "%s\n" "#define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_PTRDIFF_T 1 -_ACEOF +printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ptrdiff_t" >&5 -$as_echo "$php_cv_sizeof_ptrdiff_t" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ptrdiff_t" >&5 +printf "%s\n" "$php_cv_sizeof_ptrdiff_t" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 -$as_echo_n "checking size of short... " >&6; } -if ${ac_cv_sizeof_short+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_short" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 +printf %s "checking size of short... " >&6; } +if test ${ac_cv_sizeof_short+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_short" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (short) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_short=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 -$as_echo "$ac_cv_sizeof_short" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 +printf "%s\n" "$ac_cv_sizeof_short" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_SHORT $ac_cv_sizeof_short -_ACEOF +printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 -$as_echo_n "checking size of int... " >&6; } -if ${ac_cv_sizeof_int+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_int" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +printf %s "checking size of int... " >&6; } +if test ${ac_cv_sizeof_int+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_int" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (int) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 -$as_echo "$ac_cv_sizeof_int" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +printf "%s\n" "$ac_cv_sizeof_int" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT $ac_cv_sizeof_int -_ACEOF +printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +printf %s "checking size of long... " >&6; } +if test ${ac_cv_sizeof_long+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_long" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 -$as_echo_n "checking size of long long... " >&6; } -if ${ac_cv_sizeof_long_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_long_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +printf %s "checking size of long long... " >&6; } +if test ${ac_cv_sizeof_long_long+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_long_long" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long long) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_long=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 -$as_echo "$ac_cv_sizeof_long_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 -$as_echo_n "checking size of size_t... " >&6; } -if ${ac_cv_sizeof_size_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_size_t" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 +printf %s "checking size of size_t... " >&6; } +if test ${ac_cv_sizeof_size_t+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_size_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (size_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_size_t=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 -$as_echo "$ac_cv_sizeof_size_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 +printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t -_ACEOF +printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 -$as_echo_n "checking size of off_t... " >&6; } -if ${ac_cv_sizeof_off_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_off_t" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 +printf %s "checking size of off_t... " >&6; } +if test ${ac_cv_sizeof_off_t+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_off_t" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (off_t) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_off_t=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 -$as_echo "$ac_cv_sizeof_off_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 +printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_OFF_T $ac_cv_sizeof_off_t -_ACEOF +printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" " @@ -15650,17 +18382,17 @@ #endif " -if test "x$ac_cv_type_int8_t" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_INT8_T 1 -_ACEOF +if test "x$ac_cv_type_int8_t" = xyes +then : +printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h -else +else case e in #( + e) as_fn_error $? "One of the intN_t or uintN_t types is not available" "$LINENO" 5 - + ;; +esac fi ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" " #include @@ -15669,17 +18401,17 @@ #endif " -if test "x$ac_cv_type_int16_t" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_INT16_T 1 -_ACEOF +if test "x$ac_cv_type_int16_t" = xyes +then : +printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h -else +else case e in #( + e) as_fn_error $? "One of the intN_t or uintN_t types is not available" "$LINENO" 5 - + ;; +esac fi ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" " #include @@ -15688,17 +18420,17 @@ #endif " -if test "x$ac_cv_type_int32_t" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_INT32_T 1 -_ACEOF +if test "x$ac_cv_type_int32_t" = xyes +then : +printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h -else +else case e in #( + e) as_fn_error $? "One of the intN_t or uintN_t types is not available" "$LINENO" 5 - + ;; +esac fi ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" " #include @@ -15707,17 +18439,17 @@ #endif " -if test "x$ac_cv_type_int64_t" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_INT64_T 1 -_ACEOF +if test "x$ac_cv_type_int64_t" = xyes +then : +printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h -else +else case e in #( + e) as_fn_error $? "One of the intN_t or uintN_t types is not available" "$LINENO" 5 - + ;; +esac fi ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" " #include @@ -15726,17 +18458,17 @@ #endif " -if test "x$ac_cv_type_uint8_t" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_UINT8_T 1 -_ACEOF +if test "x$ac_cv_type_uint8_t" = xyes +then : +printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h -else +else case e in #( + e) as_fn_error $? "One of the intN_t or uintN_t types is not available" "$LINENO" 5 - + ;; +esac fi ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" " #include @@ -15745,17 +18477,17 @@ #endif " -if test "x$ac_cv_type_uint16_t" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_UINT16_T 1 -_ACEOF +if test "x$ac_cv_type_uint16_t" = xyes +then : +printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h -else +else case e in #( + e) as_fn_error $? "One of the intN_t or uintN_t types is not available" "$LINENO" 5 - + ;; +esac fi ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" " #include @@ -15764,17 +18496,17 @@ #endif " -if test "x$ac_cv_type_uint32_t" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_UINT32_T 1 -_ACEOF +if test "x$ac_cv_type_uint32_t" = xyes +then : +printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h -else +else case e in #( + e) as_fn_error $? "One of the intN_t or uintN_t types is not available" "$LINENO" 5 - + ;; +esac fi ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" " #include @@ -15783,30 +18515,30 @@ #endif " -if test "x$ac_cv_type_uint64_t" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_UINT64_T 1 -_ACEOF +if test "x$ac_cv_type_uint64_t" = xyes +then : +printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h -else +else case e in #( + e) as_fn_error $? "One of the intN_t or uintN_t types is not available" "$LINENO" 5 - + ;; +esac fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 -$as_echo_n "checking for __builtin_expect... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 +printf %s "checking for __builtin_expect... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return __builtin_expect(1,1) ? 1 : 0; @@ -15815,37 +18547,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_expect=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_expect=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_EXPECT $have_builtin_expect -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_EXPECT $have_builtin_expect" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 -$as_echo_n "checking for __builtin_clz... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 +printf %s "checking for __builtin_clz... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return __builtin_clz(1) ? 1 : 0; @@ -15854,37 +18586,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_clz=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_clz=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_CLZ $have_builtin_clz -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_CLZ $have_builtin_clz" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5 -$as_echo_n "checking for __builtin_clzl... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5 +printf %s "checking for __builtin_clzl... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return __builtin_clzl(1) ? 1 : 0; @@ -15893,37 +18625,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_clzl=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_clzl=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_CLZL $have_builtin_clzl -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_CLZL $have_builtin_clzl" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5 -$as_echo_n "checking for __builtin_clzll... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5 +printf %s "checking for __builtin_clzll... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return __builtin_clzll(1) ? 1 : 0; @@ -15932,37 +18664,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_clzll=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_clzll=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_CLZLL $have_builtin_clzll -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_CLZLL $have_builtin_clzll" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzl" >&5 -$as_echo_n "checking for __builtin_ctzl... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzl" >&5 +printf %s "checking for __builtin_ctzl... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return __builtin_ctzl(2L) ? 1 : 0; @@ -15971,37 +18703,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_ctzl=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_ctzl=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_CTZL $have_builtin_ctzl -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_CTZL $have_builtin_ctzl" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzll" >&5 -$as_echo_n "checking for __builtin_ctzll... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzll" >&5 +printf %s "checking for __builtin_ctzll... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return __builtin_ctzll(2LL) ? 1 : 0; @@ -16010,37 +18742,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_ctzll=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_ctzll=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_CTZLL $have_builtin_ctzll -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_CTZLL $have_builtin_ctzll" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_smull_overflow" >&5 -$as_echo_n "checking for __builtin_smull_overflow... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_smull_overflow" >&5 +printf %s "checking for __builtin_smull_overflow... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { long tmpvar; @@ -16050,37 +18782,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_smull_overflow=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_smull_overflow=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_SMULL_OVERFLOW $have_builtin_smull_overflow -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_SMULL_OVERFLOW $have_builtin_smull_overflow" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_smulll_overflow" >&5 -$as_echo_n "checking for __builtin_smulll_overflow... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_smulll_overflow" >&5 +printf %s "checking for __builtin_smulll_overflow... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { long long tmpvar; @@ -16090,37 +18822,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_smulll_overflow=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_smulll_overflow=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_SMULLL_OVERFLOW $have_builtin_smulll_overflow -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_SMULLL_OVERFLOW $have_builtin_smulll_overflow" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_saddl_overflow" >&5 -$as_echo_n "checking for __builtin_saddl_overflow... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_saddl_overflow" >&5 +printf %s "checking for __builtin_saddl_overflow... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { long tmpvar; @@ -16130,37 +18862,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_saddl_overflow=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_saddl_overflow=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_SADDL_OVERFLOW $have_builtin_saddl_overflow -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_SADDL_OVERFLOW $have_builtin_saddl_overflow" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_saddll_overflow" >&5 -$as_echo_n "checking for __builtin_saddll_overflow... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_saddll_overflow" >&5 +printf %s "checking for __builtin_saddll_overflow... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { long long tmpvar; @@ -16170,37 +18902,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_saddll_overflow=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_saddll_overflow=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_SADDLL_OVERFLOW $have_builtin_saddll_overflow -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_SADDLL_OVERFLOW $have_builtin_saddll_overflow" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ssubl_overflow" >&5 -$as_echo_n "checking for __builtin_ssubl_overflow... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ssubl_overflow" >&5 +printf %s "checking for __builtin_ssubl_overflow... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { long tmpvar; @@ -16210,37 +18942,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_ssubl_overflow=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_ssubl_overflow=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_SSUBL_OVERFLOW $have_builtin_ssubl_overflow -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_SSUBL_OVERFLOW $have_builtin_ssubl_overflow" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ssubll_overflow" >&5 -$as_echo_n "checking for __builtin_ssubll_overflow... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ssubll_overflow" >&5 +printf %s "checking for __builtin_ssubll_overflow... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { long long tmpvar; @@ -16250,37 +18982,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_ssubll_overflow=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_ssubll_overflow=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_SSUBLL_OVERFLOW $have_builtin_ssubll_overflow -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_SSUBLL_OVERFLOW $have_builtin_ssubll_overflow" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_cpu_init" >&5 -$as_echo_n "checking for __builtin_cpu_init... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_cpu_init" >&5 +printf %s "checking for __builtin_cpu_init... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { __builtin_cpu_init(); @@ -16289,37 +19021,37 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_cpu_init=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_cpu_init=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_CPU_INIT $have_builtin_cpu_init -_ACEOF +printf "%s\n" "#define PHP_HAVE_BUILTIN_CPU_INIT $have_builtin_cpu_init" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_cpu_supports" >&5 -$as_echo_n "checking for __builtin_cpu_supports... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_cpu_supports" >&5 +printf %s "checking for __builtin_cpu_supports... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { return __builtin_cpu_supports("sse")? 1 : 0; @@ -16328,41 +19060,42 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : have_builtin_cpu_supports=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) have_builtin_cpu_supports=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define PHP_HAVE_BUILTIN_CPU_SUPPORTS $have_builtin_cpu_supports -_ACEOF - +printf "%s\n" "#define PHP_HAVE_BUILTIN_CPU_SUPPORTS $have_builtin_cpu_supports" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __alignof__" >&5 -$as_echo_n "checking whether the compiler supports __alignof__... " >&6; } -if ${ac_cv_alignof_exists+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __alignof__" >&5 +printf %s "checking whether the compiler supports __alignof__... " >&6; } +if test ${ac_cv_alignof_exists+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { int align = __alignof__(int); @@ -16371,184 +19104,184 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_alignof_exists=yes -else - +else case e in #( + e) ac_cv_alignof_exists=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_exists" >&5 -$as_echo "$ac_cv_alignof_exists" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_exists" >&5 +printf "%s\n" "$ac_cv_alignof_exists" >&6; } if test "$ac_cv_alignof_exists" = "yes"; then -$as_echo "#define HAVE_ALIGNOF 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALIGNOF 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include " -if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : +if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_TM_TM_GMTOFF 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_blksize" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_rdev" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_RDEV 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h fi if test "`uname -s 2>/dev/null`" != "QNX"; then ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_blocks" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_BLOCKS 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h -$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h +printf "%s\n" "#define HAVE_ST_BLOCKS 1" >>confdefs.h -else - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" fileblocks.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; esac - + ;; +esac fi fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : - -else +if test "x$ac_cv_type_size_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 -$as_echo_n "checking for uid_t in sys/types.h... " >&6; } -if ${ac_cv_type_uid_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uid_t" >/dev/null 2>&1; then : - ac_cv_type_uid_t=yes -else - ac_cv_type_uid_t=no +else case e in #( + e) +printf "%s\n" "#define size_t unsigned int" >>confdefs.h + ;; +esac fi -rm -f conftest* +ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" +if test "x$ac_cv_type_uid_t" = xyes +then : + +else case e in #( + e) +printf "%s\n" "#define uid_t int" >>confdefs.h + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 -$as_echo "$ac_cv_type_uid_t" >&6; } -if test $ac_cv_type_uid_t = no; then - -$as_echo "#define uid_t int" >>confdefs.h - - -$as_echo "#define gid_t int" >>confdefs.h +ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" +if test "x$ac_cv_type_gid_t" = xyes +then : + +else case e in #( + e) +printf "%s\n" "#define gid_t int" >>confdefs.h + ;; +esac fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 -$as_echo_n "checking for struct sockaddr_storage... " >&6; } -if ${ac_cv_sockaddr_storage+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 +printf %s "checking for struct sockaddr_storage... " >&6; } +if test ${ac_cv_sockaddr_storage+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int -main () +main (void) { struct sockaddr_storage s; s ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sockaddr_storage=yes -else - ac_cv_sockaddr_storage=no +else case e in #( + e) ac_cv_sockaddr_storage=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_storage" >&5 -$as_echo "$ac_cv_sockaddr_storage" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_storage" >&5 +printf "%s\n" "$ac_cv_sockaddr_storage" >&6; } if test "$ac_cv_sockaddr_storage" = "yes"; then -$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sa_len in struct sockaddr" >&5 -$as_echo_n "checking for field sa_len in struct sockaddr... " >&6; } -if ${ac_cv_sockaddr_sa_len+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for field sa_len in struct sockaddr" >&5 +printf %s "checking for field sa_len in struct sockaddr... " >&6; } +if test ${ac_cv_sockaddr_sa_len+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int -main () +main (void) { static struct sockaddr sa; int n = (int) sa.sa_len; return n; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sockaddr_sa_len=yes -else - ac_cv_sockaddr_sa_len=no +else case e in #( + e) ac_cv_sockaddr_sa_len=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_sa_len" >&5 -$as_echo "$ac_cv_sockaddr_sa_len" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_sa_len" >&5 +printf "%s\n" "$ac_cv_sockaddr_sa_len" >&6; } if test "$ac_cv_sockaddr_sa_len" = "yes"; then -$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h fi @@ -16561,12 +19294,13 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((ifunc))" >&5 -$as_echo_n "checking for __attribute__((ifunc))... " >&6; } -if ${ax_cv_have_func_attribute_ifunc+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((ifunc))" >&5 +printf %s "checking for __attribute__((ifunc))... " >&6; } +if test ${ax_cv_have_func_attribute_ifunc+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -16576,7 +19310,7 @@ int foo( void ) __attribute__((ifunc("resolve_foo"))); int -main () +main (void) { ; @@ -16584,27 +19318,31 @@ } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - if test -s conftest.err; then : +if ac_fn_c_try_link "$LINENO" +then : + if test -s conftest.err +then : ax_cv_have_func_attribute_ifunc=no -else - ax_cv_have_func_attribute_ifunc=yes +else case e in #( + e) ax_cv_have_func_attribute_ifunc=yes ;; +esac fi -else - ax_cv_have_func_attribute_ifunc=no +else case e in #( + e) ax_cv_have_func_attribute_ifunc=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_ifunc" >&5 -$as_echo "$ax_cv_have_func_attribute_ifunc" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_ifunc" >&5 +printf "%s\n" "$ax_cv_have_func_attribute_ifunc" >&6; } - if test yes = $ax_cv_have_func_attribute_ifunc; then : + if test yes = $ax_cv_have_func_attribute_ifunc +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_FUNC_ATTRIBUTE_IFUNC 1 -_ACEOF +printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_IFUNC 1" >>confdefs.h fi @@ -16613,12 +19351,13 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((target))" >&5 -$as_echo_n "checking for __attribute__((target))... " >&6; } -if ${ax_cv_have_func_attribute_target+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((target))" >&5 +printf %s "checking for __attribute__((target))... " >&6; } +if test ${ax_cv_have_func_attribute_target+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -16626,7 +19365,7 @@ int bar( void ) __attribute__((target("sse2"))); int -main () +main (void) { ; @@ -16634,27 +19373,31 @@ } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - if test -s conftest.err; then : +if ac_fn_c_try_link "$LINENO" +then : + if test -s conftest.err +then : ax_cv_have_func_attribute_target=no -else - ax_cv_have_func_attribute_target=yes +else case e in #( + e) ax_cv_have_func_attribute_target=yes ;; +esac fi -else - ax_cv_have_func_attribute_target=no +else case e in #( + e) ax_cv_have_func_attribute_target=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_target" >&5 -$as_echo "$ax_cv_have_func_attribute_target" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_target" >&5 +printf "%s\n" "$ax_cv_have_func_attribute_target" >&6; } - if test yes = $ax_cv_have_func_attribute_target; then : + if test yes = $ax_cv_have_func_attribute_target +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_FUNC_ATTRIBUTE_TARGET 1 -_ACEOF +printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_TARGET 1" >>confdefs.h fi @@ -16663,145 +19406,442 @@ ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5 -$as_echo_n "checking for IPv6 support... " >&6; } -if ${ac_cv_ipv6_support+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5 +printf %s "checking for IPv6 support... " >&6; } +if test ${ac_cv_ipv6_support+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int -main () +main (void) { struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0; ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_ipv6_support=yes -else - ac_cv_ipv6_support=no +else case e in #( + e) ac_cv_ipv6_support=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5 -$as_echo "$ac_cv_ipv6_support" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5 +printf "%s\n" "$ac_cv_ipv6_support" >&6; } -for ac_func in alphasort \ -asctime_r \ -chroot \ -ctime_r \ -explicit_memset \ -fdatasync \ -flock \ -ftok \ -funopen \ -gai_strerror \ -getcwd \ -getloadavg \ -getlogin \ -getprotobyname \ -getprotobynumber \ -getservbyname \ -getservbyport \ -getrusage \ -gettimeofday \ -gmtime_r \ -getpwnam_r \ -getgrnam_r \ -getpwuid_r \ -getwd \ -glob \ -inet_ntoa \ -inet_ntop \ -inet_pton \ -localtime_r \ -lchown \ -memcntl \ -memmove \ -mkstemp \ -mmap \ -nice \ -nl_langinfo \ -poll \ -pthread_jit_write_protect_np \ -putenv \ -scandir \ -setitimer \ -setenv \ -shutdown \ -sigprocmask \ -statfs \ -statvfs \ -std_syslog \ -strcasecmp \ -strnlen \ -strptime \ -strtok_r \ -symlink \ -tzset \ -unsetenv \ -usleep \ -utime \ -vasprintf \ -asprintf \ -nanosleep \ -memmem \ -memrchr \ +ac_fn_c_check_func "$LINENO" "alphasort" "ac_cv_func_alphasort" +if test "x$ac_cv_func_alphasort" = xyes +then : + printf "%s\n" "#define HAVE_ALPHASORT 1" >>confdefs.h -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +fi +ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" +if test "x$ac_cv_func_asctime_r" = xyes +then : + printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" +if test "x$ac_cv_func_chroot" = xyes +then : + printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h +fi +ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" +if test "x$ac_cv_func_ctime_r" = xyes +then : + printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h -ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" -if test "x$ac_cv_have_decl_strerror_r" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 fi +ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset" +if test "x$ac_cv_func_explicit_memset" = xyes +then : + printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR_R $ac_have_decl -_ACEOF +fi +ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync" +if test "x$ac_cv_func_fdatasync" = xyes +then : + printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h -for ac_func in strerror_r -do : - ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" -if test "x$ac_cv_func_strerror_r" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRERROR_R 1 -_ACEOF +fi +ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" +if test "x$ac_cv_func_flock" = xyes +then : + printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "ftok" "ac_cv_func_ftok" +if test "x$ac_cv_func_ftok" = xyes +then : + printf "%s\n" "#define HAVE_FTOK 1" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 -$as_echo_n "checking whether strerror_r returns char *... " >&6; } -if ${ac_cv_func_strerror_r_char_p+:} false; then : - $as_echo_n "(cached) " >&6 -else +fi +ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen" +if test "x$ac_cv_func_funopen" = xyes +then : + printf "%s\n" "#define HAVE_FUNOPEN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" +if test "x$ac_cv_func_gai_strerror" = xyes +then : + printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" +if test "x$ac_cv_func_getcwd" = xyes +then : + printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" +if test "x$ac_cv_func_getloadavg" = xyes +then : + printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin" +if test "x$ac_cv_func_getlogin" = xyes +then : + printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getprotobyname" "ac_cv_func_getprotobyname" +if test "x$ac_cv_func_getprotobyname" = xyes +then : + printf "%s\n" "#define HAVE_GETPROTOBYNAME 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getprotobynumber" "ac_cv_func_getprotobynumber" +if test "x$ac_cv_func_getprotobynumber" = xyes +then : + printf "%s\n" "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" +if test "x$ac_cv_func_getservbyname" = xyes +then : + printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getservbyport" "ac_cv_func_getservbyport" +if test "x$ac_cv_func_getservbyport" = xyes +then : + printf "%s\n" "#define HAVE_GETSERVBYPORT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" +if test "x$ac_cv_func_getrusage" = xyes +then : + printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" +if test "x$ac_cv_func_gettimeofday" = xyes +then : + printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" +if test "x$ac_cv_func_gmtime_r" = xyes +then : + printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" +if test "x$ac_cv_func_getpwnam_r" = xyes +then : + printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r" +if test "x$ac_cv_func_getgrnam_r" = xyes +then : + printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" +if test "x$ac_cv_func_getpwuid_r" = xyes +then : + printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd" +if test "x$ac_cv_func_getwd" = xyes +then : + printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob" +if test "x$ac_cv_func_glob" = xyes +then : + printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa" +if test "x$ac_cv_func_inet_ntoa" = xyes +then : + printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" +if test "x$ac_cv_func_inet_ntop" = xyes +then : + printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" +if test "x$ac_cv_func_inet_pton" = xyes +then : + printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" +if test "x$ac_cv_func_localtime_r" = xyes +then : + printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown" +if test "x$ac_cv_func_lchown" = xyes +then : + printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "memcntl" "ac_cv_func_memcntl" +if test "x$ac_cv_func_memcntl" = xyes +then : + printf "%s\n" "#define HAVE_MEMCNTL 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" +if test "x$ac_cv_func_memmove" = xyes +then : + printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" +if test "x$ac_cv_func_mkstemp" = xyes +then : + printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" +if test "x$ac_cv_func_mmap" = xyes +then : + printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice" +if test "x$ac_cv_func_nice" = xyes +then : + printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" +if test "x$ac_cv_func_nl_langinfo" = xyes +then : + printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" +if test "x$ac_cv_func_poll" = xyes +then : + printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "pthread_jit_write_protect_np" "ac_cv_func_pthread_jit_write_protect_np" +if test "x$ac_cv_func_pthread_jit_write_protect_np" = xyes +then : + printf "%s\n" "#define HAVE_PTHREAD_JIT_WRITE_PROTECT_NP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" +if test "x$ac_cv_func_putenv" = xyes +then : + printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "scandir" "ac_cv_func_scandir" +if test "x$ac_cv_func_scandir" = xyes +then : + printf "%s\n" "#define HAVE_SCANDIR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" +if test "x$ac_cv_func_setitimer" = xyes +then : + printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" +if test "x$ac_cv_func_setenv" = xyes +then : + printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" +if test "x$ac_cv_func_shutdown" = xyes +then : + printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" +if test "x$ac_cv_func_sigprocmask" = xyes +then : + printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs" +if test "x$ac_cv_func_statfs" = xyes +then : + printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" +if test "x$ac_cv_func_statvfs" = xyes +then : + printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "std_syslog" "ac_cv_func_std_syslog" +if test "x$ac_cv_func_std_syslog" = xyes +then : + printf "%s\n" "#define HAVE_STD_SYSLOG 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" +if test "x$ac_cv_func_strcasecmp" = xyes +then : + printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" +if test "x$ac_cv_func_strnlen" = xyes +then : + printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" +if test "x$ac_cv_func_strptime" = xyes +then : + printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" +if test "x$ac_cv_func_strtok_r" = xyes +then : + printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink" +if test "x$ac_cv_func_symlink" = xyes +then : + printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" +if test "x$ac_cv_func_tzset" = xyes +then : + printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" +if test "x$ac_cv_func_unsetenv" = xyes +then : + printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" +if test "x$ac_cv_func_usleep" = xyes +then : + printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" +if test "x$ac_cv_func_utime" = xyes +then : + printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" +if test "x$ac_cv_func_vasprintf" = xyes +then : + printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" +if test "x$ac_cv_func_asprintf" = xyes +then : + printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" +if test "x$ac_cv_func_nanosleep" = xyes +then : + printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" +if test "x$ac_cv_func_memmem" = xyes +then : + printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" +if test "x$ac_cv_func_memrchr" = xyes +then : + printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h + +fi + + +ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_strerror_r" = xyes +then : + ac_have_decl=1 +else case e in #( + e) ac_have_decl=0 ;; +esac +fi +printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h + + +if test $ac_cv_have_decl_strerror_r = yes; then + # For backward compatibility's sake, define HAVE_STRERROR_R. + # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well + # as AC_CHECK_DECLS_ONCE.) + +printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h +fi + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 +printf %s "checking whether strerror_r returns char *... " >&6; } +if test ${ac_cv_func_strerror_r_char_p+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_func_strerror_r_char_p=no if test $ac_cv_have_decl_strerror_r = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +#include int -main () +main (void) { char buf[100]; @@ -16813,49 +19853,21 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_func_strerror_r_char_p=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - else - # strerror_r is not declared. Choose between - # systems that have relatively inaccessible declarations for the - # function. BeOS and DEC UNIX 4.0 fall in this category, but the - # former has a strerror_r that returns char*, while the latter - # has a strerror_r that returns `int'. - # This test should segfault on the DEC system. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default - extern char *strerror_r (); -int -main () -{ -char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - return ! isalpha (x); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_func_strerror_r_char_p=yes fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 -$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 +printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } if test $ac_cv_func_strerror_r_char_p = yes; then -$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h +printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h fi @@ -16868,13 +19880,14 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5 -$as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; } - - if ${ac_cv_func_which_gethostbyname_r+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5 +printf %s "checking how many arguments gethostbyname_r() takes... " >&6; } + if test ${ac_cv_func_which_gethostbyname_r+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ################################################################ @@ -16893,7 +19906,7 @@ /* end confdefs.h. */ #include int -main () +main (void) { char *name = "www.gnu.org"; @@ -16903,10 +19916,11 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_func_which_gethostbyname_r=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # # SIX ARGUMENTS @@ -16919,7 +19933,7 @@ /* end confdefs.h. */ #include int -main () +main (void) { char *name = "www.gnu.org"; @@ -16933,10 +19947,11 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_func_which_gethostbyname_r=six fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi @@ -16951,7 +19966,7 @@ /* end confdefs.h. */ #include int -main () +main (void) { char *name = "www.gnu.org"; @@ -16965,10 +19980,11 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_func_which_gethostbyname_r=five fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi @@ -16983,7 +19999,7 @@ /* end confdefs.h. */ #include int -main () +main (void) { char *name = "www.gnu.org"; @@ -16995,59 +20011,61 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_func_which_gethostbyname_r=three fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi ################################################################ - + ;; +esac fi case "$ac_cv_func_which_gethostbyname_r" in three|five|six) -$as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h ;; esac case "$ac_cv_func_which_gethostbyname_r" in three) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5 -$as_echo "three" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: three" >&5 +printf "%s\n" "three" >&6; } -$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h +printf "%s\n" "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h ;; five) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5 -$as_echo "five" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: five" >&5 +printf "%s\n" "five" >&6; } -$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h +printf "%s\n" "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h ;; six) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5 -$as_echo "six" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: six" >&5 +printf "%s\n" "six" >&6; } -$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h +printf "%s\n" "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h ;; no) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5 -$as_echo "cannot find function declaration in netdb.h" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5 +printf "%s\n" "cannot find function declaration in netdb.h" >&6; } ;; unknown) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5 -$as_echo "can't tell" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5 +printf "%s\n" "can't tell" >&6; } ;; *) @@ -17069,118 +20087,140 @@ unset ac_cv_lib_rt_nanosleep unset ac_cv_lib_rt___nanosleep unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 -$as_echo_n "checking for nanosleep in -lrt... " >&6; } -if ${ac_cv_lib_rt_nanosleep+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 +printf %s "checking for nanosleep in -lrt... " >&6; } +if test ${ac_cv_lib_rt_nanosleep+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char nanosleep (); +char nanosleep (void); int -main () +main (void) { return nanosleep (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt_nanosleep=yes -else - ac_cv_lib_rt_nanosleep=no +else case e in #( + e) ac_cv_lib_rt_nanosleep=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 -$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } -if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 +printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } +if test "x$ac_cv_lib_rt_nanosleep" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __nanosleep in -lrt" >&5 -$as_echo_n "checking for __nanosleep in -lrt... " >&6; } -if ${ac_cv_lib_rt___nanosleep+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __nanosleep in -lrt" >&5 +printf %s "checking for __nanosleep in -lrt... " >&6; } +if test ${ac_cv_lib_rt___nanosleep+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __nanosleep (); +char __nanosleep (void); int -main () +main (void) { return __nanosleep (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt___nanosleep=yes -else - ac_cv_lib_rt___nanosleep=no +else case e in #( + e) ac_cv_lib_rt___nanosleep=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___nanosleep" >&5 -$as_echo "$ac_cv_lib_rt___nanosleep" >&6; } -if test "x$ac_cv_lib_rt___nanosleep" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___nanosleep" >&5 +printf "%s\n" "$ac_cv_lib_rt___nanosleep" >&6; } +if test "x$ac_cv_lib_rt___nanosleep" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lrt" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -17198,10 +20238,10 @@ -$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h +printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h -$as_echo "#define HAVE_LIBRT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h ac_cv_func_nanosleep=yes else @@ -17217,118 +20257,140 @@ unset ac_cv_lib_network_setsockopt unset ac_cv_lib_network___setsockopt unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lnetwork" >&5 -$as_echo_n "checking for setsockopt in -lnetwork... " >&6; } -if ${ac_cv_lib_network_setsockopt+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lnetwork" >&5 +printf %s "checking for setsockopt in -lnetwork... " >&6; } +if test ${ac_cv_lib_network_setsockopt+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char setsockopt (); +char setsockopt (void); int -main () +main (void) { return setsockopt (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network_setsockopt=yes -else - ac_cv_lib_network_setsockopt=no +else case e in #( + e) ac_cv_lib_network_setsockopt=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_setsockopt" >&5 -$as_echo "$ac_cv_lib_network_setsockopt" >&6; } -if test "x$ac_cv_lib_network_setsockopt" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_setsockopt" >&5 +printf "%s\n" "$ac_cv_lib_network_setsockopt" >&6; } +if test "x$ac_cv_lib_network_setsockopt" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __setsockopt in -lnetwork" >&5 -$as_echo_n "checking for __setsockopt in -lnetwork... " >&6; } -if ${ac_cv_lib_network___setsockopt+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __setsockopt in -lnetwork" >&5 +printf %s "checking for __setsockopt in -lnetwork... " >&6; } +if test ${ac_cv_lib_network___setsockopt+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetwork $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __setsockopt (); +char __setsockopt (void); int -main () +main (void) { return __setsockopt (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_network___setsockopt=yes -else - ac_cv_lib_network___setsockopt=no +else case e in #( + e) ac_cv_lib_network___setsockopt=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___setsockopt" >&5 -$as_echo "$ac_cv_lib_network___setsockopt" >&6; } -if test "x$ac_cv_lib_network___setsockopt" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network___setsockopt" >&5 +printf "%s\n" "$ac_cv_lib_network___setsockopt" >&6; } +if test "x$ac_cv_lib_network___setsockopt" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lnetwork" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -17346,10 +20408,10 @@ -$as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h +printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h -$as_echo "#define HAVE_LIBNETWORK 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBNETWORK 1" >>confdefs.h ac_cv_func_setsockopt=yes else @@ -17360,24 +20422,27 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 -$as_echo_n "checking for getaddrinfo... " >&6; } -if ${ac_cv_func_getaddrinfo+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 +printf %s "checking for getaddrinfo... " >&6; } +if test ${ac_cv_func_getaddrinfo+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - if test "$cross_compiling" = yes; then : +if ac_fn_c_try_link "$LINENO" +then : + if test "$cross_compiling" = yes +then : case $host_alias in *linux*) @@ -17388,8 +20453,8 @@ ;; esac -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -17432,38 +20497,45 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_getaddrinfo=yes -else - ac_cv_func_getaddrinfo=no +else case e in #( + e) ac_cv_func_getaddrinfo=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -else - ac_cv_func_getaddrinfo=no +else case e in #( + e) ac_cv_func_getaddrinfo=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 -$as_echo "$ac_cv_func_getaddrinfo" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 +printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; } if test "$ac_cv_func_getaddrinfo" = yes; then -$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 -$as_echo_n "checking for copy_file_range... " >&6; } -if ${ac_cv_copy_file_range+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 +printf %s "checking for copy_file_range... " >&6; } +if test ${ac_cv_copy_file_range+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "$cross_compiling" = yes +then : ac_cv_copy_file_range=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __linux__ @@ -17486,91 +20558,100 @@ #endif _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_copy_file_range=yes -else - ac_cv_copy_file_range=no +else case e in #( + e) ac_cv_copy_file_range=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 -$as_echo "$ac_cv_copy_file_range" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 +printf "%s\n" "$ac_cv_copy_file_range" >&6; } if test "$ac_cv_copy_file_range" = yes; then -$as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h +printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" -if test "x$ac_cv_func_strlcat" = xyes; then : - $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h +if test "x$ac_cv_func_strlcat" = xyes +then : + printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h -else - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" strlcat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" ;; esac - + ;; +esac fi - ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" -if test "x$ac_cv_func_strlcpy" = xyes; then : - $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h +if test "x$ac_cv_func_strlcpy" = xyes +then : + printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h -else - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" strlcpy.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" ;; esac - + ;; +esac fi - ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" -if test "x$ac_cv_func_explicit_bzero" = xyes; then : - $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h +if test "x$ac_cv_func_explicit_bzero" = xyes +then : + printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h -else - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" explicit_bzero.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" ;; esac - + ;; +esac fi - ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" -if test "x$ac_cv_func_getopt" = xyes; then : - $as_echo "#define HAVE_GETOPT 1" >>confdefs.h +if test "x$ac_cv_func_getopt" = xyes +then : + printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h -else - case " $LIBOBJS " in +else case e in #( + e) case " $LIBOBJS " in *" getopt.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; esac - + ;; +esac fi - # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 -$as_echo_n "checking for working alloca.h... " >&6; } -if ${ac_cv_working_alloca_h+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +printf %s "checking for working alloca.h... " >&6; } +if test ${ac_cv_working_alloca_h+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; @@ -17578,52 +20659,54 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_working_alloca_h=yes -else - ac_cv_working_alloca_h=no +else case e in #( + e) ac_cv_working_alloca_h=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 -$as_echo "$ac_cv_working_alloca_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +printf "%s\n" "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then -$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 -$as_echo_n "checking for alloca... " >&6; } -if ${ac_cv_func_alloca_works+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +printf %s "checking for alloca... " >&6; } +if test ${ac_cv_func_alloca_works+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h +if test "$ac_cv_func_alloca_works" != yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER +#include +#include +#ifndef alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# elif defined _MSC_VER # include # define alloca _alloca # else -# ifdef HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -void *alloca (size_t); -# endif -# endif +# ifdef __cplusplus +extern "C" # endif +void *alloca (size_t); # endif #endif int -main () +main (void) { char *p = (char *) alloca (1); if (p) return 0; @@ -17631,20 +20714,21 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_func_alloca_works=yes -else - ac_cv_func_alloca_works=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext +fi ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 -$as_echo "$ac_cv_func_alloca_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +printf "%s\n" "$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then -$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions @@ -17654,59 +20738,20 @@ ALLOCA=\${LIBOBJDIR}alloca.$ac_objext -$as_echo "#define C_ALLOCA 1" >>confdefs.h - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 -$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } -if ${ac_cv_os_cray+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if defined CRAY && ! defined CRAY2 -webecray -#else -wenotbecray -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "webecray" >/dev/null 2>&1; then : - ac_cv_os_cray=yes -else - ac_cv_os_cray=no -fi -rm -f conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 -$as_echo "$ac_cv_os_cray" >&6; } -if test $ac_cv_os_cray = yes; then - for ac_func in _getb67 GETB67 getb67; do - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - -cat >>confdefs.h <<_ACEOF -#define CRAY_STACKSEG_END $ac_func -_ACEOF - - break -fi +printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h - done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 -$as_echo_n "checking stack direction for C alloca... " >&6; } -if ${ac_cv_c_stack_direction+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +printf %s "checking stack direction for C alloca... " >&6; } +if test ${ac_cv_c_stack_direction+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "$cross_compiling" = yes +then : ac_cv_c_stack_direction=0 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int @@ -17726,38 +20771,42 @@ return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_c_stack_direction=1 -else - ac_cv_c_stack_direction=-1 +else case e in #( + e) ac_cv_c_stack_direction=-1 ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 -$as_echo "$ac_cv_c_stack_direction" >&6; } -cat >>confdefs.h <<_ACEOF -#define STACK_DIRECTION $ac_cv_c_stack_direction -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +printf "%s\n" "$ac_cv_c_stack_direction" >&6; } +printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of reentrant time-related functions" >&5 -$as_echo_n "checking for type of reentrant time-related functions... " >&6; } -if ${ac_cv_time_r_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - -if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type of reentrant time-related functions" >&5 +printf %s "checking for type of reentrant time-related functions... " >&6; } +if test ${ac_cv_time_r_type+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) +if test "$cross_compiling" = yes +then : ac_cv_time_r_type=POSIX -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -17775,18 +20824,20 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_time_r_type=hpux -else - - if test "$cross_compiling" = yes; then : +else case e in #( + e) + if test "$cross_compiling" = yes +then : ac_cv_time_r_type=POSIX -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -17802,45 +20853,52 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_time_r_type=irix -else - +else case e in #( + e) ac_cv_time_r_type=POSIX - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_time_r_type" >&5 -$as_echo "$ac_cv_time_r_type" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_time_r_type" >&5 +printf "%s\n" "$ac_cv_time_r_type" >&6; } case $ac_cv_time_r_type in hpux) -$as_echo "#define PHP_HPUX_TIME_R 1" >>confdefs.h +printf "%s\n" "#define PHP_HPUX_TIME_R 1" >>confdefs.h ;; irix) -$as_echo "#define PHP_IRIX_TIME_R 1" >>confdefs.h +printf "%s\n" "#define PHP_IRIX_TIME_R 1" >>confdefs.h ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5 -$as_echo_n "checking for in_addr_t... " >&6; } -if ${ac_cv_type_in_addr_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5 +printf %s "checking for in_addr_t... " >&6; } +if test ${ac_cv_type_in_addr_t+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -17850,29 +20908,33 @@ #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1 +then : ac_cv_type_in_addr_t=yes -else - ac_cv_type_in_addr_t=no +else case e in #( + e) ac_cv_type_in_addr_t=no ;; +esac fi -rm -f conftest* - +rm -rf conftest* + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr_t" >&5 -$as_echo "$ac_cv_type_in_addr_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr_t" >&5 +printf "%s\n" "$ac_cv_type_in_addr_t" >&6; } if test $ac_cv_type_in_addr_t = no; then -$as_echo "#define in_addr_t u_int" >>confdefs.h +printf "%s\n" "#define in_addr_t u_int" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for aarch64 CRC32 API" >&5 -$as_echo_n "checking for aarch64 CRC32 API... " >&6; } -if ${ac_cv_func___crc32d+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aarch64 CRC32 API" >&5 +printf %s "checking for aarch64 CRC32 API... " >&6; } +if test ${ac_cv_func___crc32d+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -17888,35 +20950,41 @@ # endif int -main () +main (void) { __crc32d(0, 0); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_func___crc32d=yes -else - ac_cv_func___crc32d=no +else case e in #( + e) ac_cv_func___crc32d=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func___crc32d" >&5 -$as_echo "$ac_cv_func___crc32d" >&6; } -if test "x$ac_cv_func___crc32d" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func___crc32d" >&5 +printf "%s\n" "$ac_cv_func___crc32d" >&6; } +if test "x$ac_cv_func___crc32d" = xyes +then : -$as_echo "#define HAVE_AARCH64_CRC32 1" >>confdefs.h +printf "%s\n" "#define HAVE_AARCH64_CRC32 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asm goto" >&5 -$as_echo_n "checking for asm goto... " >&6; } -if ${ac_cv__asm_goto+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for asm goto" >&5 +printf %s "checking for asm goto... " >&6; } +if test ${ac_cv__asm_goto+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -17932,15 +21000,17 @@ } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv__asm_goto=yes -else - ac_cv__asm_goto=no +else case e in #( + e) ac_cv__asm_goto=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(void) { @@ -17954,45 +21024,51 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv__asm_goto=yes -else - ac_cv__asm_goto=no +else case e in #( + e) ac_cv__asm_goto=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__asm_goto" >&5 -$as_echo "$ac_cv__asm_goto" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv__asm_goto" >&5 +printf "%s\n" "$ac_cv__asm_goto" >&6; } if test "$ac_cv__asm_goto" = yes; then -$as_echo "#define HAVE_ASM_GOTO 1" >>confdefs.h +printf "%s\n" "#define HAVE_ASM_GOTO 1" >>confdefs.h fi php_with_valgrind=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind support" >&5 -$as_echo_n "checking whether to enable valgrind support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind support" >&5 +printf %s "checking whether to enable valgrind support... " >&6; } # Check whether --with-valgrind was given. -if test "${with_valgrind+set}" = set; then : +if test ${with_valgrind+y} +then : withval=$with_valgrind; PHP_VALGRIND=$withval -else - +else case e in #( + e) PHP_VALGRIND=yes - + ;; +esac fi ext_output=$PHP_VALGRIND -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -18000,17 +21076,17 @@ if test "$PHP_VALGRIND" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5 -$as_echo_n "checking for valgrind... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5 +printf %s "checking for valgrind... " >&6; } if test -n "$VALGRIND_CFLAGS"; then pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -18024,10 +21100,10 @@ pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -18041,8 +21117,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -18059,14 +21135,14 @@ have_valgrind="no" elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } have_valgrind="no" else VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } have_valgrind="yes" fi @@ -18112,7 +21188,7 @@ done -$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h +printf "%s\n" "#define HAVE_VALGRIND 1" >>confdefs.h else if test "$with_valgrind" = "yes"; then @@ -18127,23 +21203,27 @@ unset found ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" -if test "x$ac_cv_func_openpty" = xyes; then : +if test "x$ac_cv_func_openpty" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__openpty" "ac_cv_func___openpty" -if test "x$ac_cv_func___openpty" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__openpty" "ac_cv_func___openpty" +if test "x$ac_cv_func___openpty" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h ac_cv_func_openpty=yes ;; @@ -18153,118 +21233,140 @@ unset ac_cv_lib_util_openpty unset ac_cv_lib_util___openpty unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 -$as_echo_n "checking for openpty in -lutil... " >&6; } -if ${ac_cv_lib_util_openpty+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 +printf %s "checking for openpty in -lutil... " >&6; } +if test ${ac_cv_lib_util_openpty+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lutil $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char openpty (); +char openpty (void); int -main () +main (void) { return openpty (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_util_openpty=yes -else - ac_cv_lib_util_openpty=no +else case e in #( + e) ac_cv_lib_util_openpty=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 -$as_echo "$ac_cv_lib_util_openpty" >&6; } -if test "x$ac_cv_lib_util_openpty" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 +printf "%s\n" "$ac_cv_lib_util_openpty" >&6; } +if test "x$ac_cv_lib_util_openpty" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __openpty in -lutil" >&5 -$as_echo_n "checking for __openpty in -lutil... " >&6; } -if ${ac_cv_lib_util___openpty+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __openpty in -lutil" >&5 +printf %s "checking for __openpty in -lutil... " >&6; } +if test ${ac_cv_lib_util___openpty+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lutil $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __openpty (); +char __openpty (void); int -main () +main (void) { return __openpty (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_util___openpty=yes -else - ac_cv_lib_util___openpty=no +else case e in #( + e) ac_cv_lib_util___openpty=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util___openpty" >&5 -$as_echo "$ac_cv_lib_util___openpty" >&6; } -if test "x$ac_cv_lib_util___openpty" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util___openpty" >&5 +printf "%s\n" "$ac_cv_lib_util___openpty" >&6; } +if test "x$ac_cv_lib_util___openpty" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lutil" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -18282,10 +21384,10 @@ -$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h -$as_echo "#define HAVE_LIBUTIL 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBUTIL 1" >>confdefs.h ac_cv_func_openpty=yes else @@ -18294,118 +21396,140 @@ unset ac_cv_lib_bsd_openpty unset ac_cv_lib_bsd___openpty unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 -$as_echo_n "checking for openpty in -lbsd... " >&6; } -if ${ac_cv_lib_bsd_openpty+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 +printf %s "checking for openpty in -lbsd... " >&6; } +if test ${ac_cv_lib_bsd_openpty+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char openpty (); +char openpty (void); int -main () +main (void) { return openpty (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bsd_openpty=yes -else - ac_cv_lib_bsd_openpty=no +else case e in #( + e) ac_cv_lib_bsd_openpty=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 -$as_echo "$ac_cv_lib_bsd_openpty" >&6; } -if test "x$ac_cv_lib_bsd_openpty" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 +printf "%s\n" "$ac_cv_lib_bsd_openpty" >&6; } +if test "x$ac_cv_lib_bsd_openpty" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __openpty in -lbsd" >&5 -$as_echo_n "checking for __openpty in -lbsd... " >&6; } -if ${ac_cv_lib_bsd___openpty+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __openpty in -lbsd" >&5 +printf %s "checking for __openpty in -lbsd... " >&6; } +if test ${ac_cv_lib_bsd___openpty+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __openpty (); +char __openpty (void); int -main () +main (void) { return __openpty (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bsd___openpty=yes -else - ac_cv_lib_bsd___openpty=no +else case e in #( + e) ac_cv_lib_bsd___openpty=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd___openpty" >&5 -$as_echo "$ac_cv_lib_bsd___openpty" >&6; } -if test "x$ac_cv_lib_bsd___openpty" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd___openpty" >&5 +printf "%s\n" "$ac_cv_lib_bsd___openpty" >&6; } +if test "x$ac_cv_lib_bsd___openpty" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lbsd" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -18423,10 +21547,10 @@ -$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h -$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h ac_cv_func_openpty=yes else @@ -18444,15 +21568,16 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}General settings${T_ME}" >&5 -$as_echo "${T_MD}General settings${T_ME}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${T_MD}General settings${T_ME}" >&5 +printf "%s\n" "${T_MD}General settings${T_ME}" >&6; } # Check whether --enable- was given. -if test "${enable_+set}" = set; then : +if test ${enable_+y} +then : enableval=$enable_; fi @@ -18461,22 +21586,24 @@ php_enable_gcov=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include gcov symbols" >&5 -$as_echo_n "checking whether to include gcov symbols... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include gcov symbols" >&5 +printf %s "checking whether to include gcov symbols... " >&6; } # Check whether --enable-gcov was given. -if test "${enable_gcov+set}" = set; then : +if test ${enable_gcov+y} +then : enableval=$enable_gcov; PHP_GCOV=$enableval -else - +else case e in #( + e) PHP_GCOV=no - + ;; +esac fi ext_output=$PHP_GCOV -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -18497,7 +21624,7 @@ fi -$as_echo "#define HAVE_GCOV 1" >>confdefs.h +printf "%s\n" "#define HAVE_GCOV 1" >>confdefs.h src=$abs_srcdir/build/Makefile.gcov @@ -18519,22 +21646,24 @@ php_enable_debug=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5 -$as_echo_n "checking whether to include debugging symbols... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5 +printf %s "checking whether to include debugging symbols... " >&6; } # Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : +if test ${enable_debug+y} +then : enableval=$enable_debug; PHP_DEBUG=$enableval -else - +else case e in #( + e) PHP_DEBUG=no - + ;; +esac fi ext_output=$PHP_DEBUG -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -18568,22 +21697,24 @@ php_enable_debug_assertions=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug assertions in release mode" >&5 -$as_echo_n "checking whether to enable debug assertions in release mode... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug assertions in release mode" >&5 +printf %s "checking whether to enable debug assertions in release mode... " >&6; } # Check whether --enable-debug-assertions was given. -if test "${enable_debug_assertions+set}" = set; then : +if test ${enable_debug_assertions+y} +then : enableval=$enable_debug_assertions; PHP_DEBUG_ASSERTIONS=$enableval -else - +else case e in #( + e) PHP_DEBUG_ASSERTIONS=no - + ;; +esac fi ext_output=$PHP_DEBUG_ASSERTIONS -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -18594,16 +21725,18 @@ fi # Check whether --enable-zts was given. -if test "${enable_zts+set}" = set; then : +if test ${enable_zts+y} +then : enableval=$enable_zts; ZEND_ZTS=$enableval -else - ZEND_ZTS=no +else case e in #( + e) ZEND_ZTS=no ;; +esac fi if test "$ZEND_ZTS" = "yes"; then -$as_echo "#define ZTS 1" >>confdefs.h +printf "%s\n" "#define ZTS 1" >>confdefs.h PHP_THREAD_SAFETY=yes else @@ -18613,52 +21746,56 @@ php_enable_rtld_now=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to dlopen extensions with RTLD_NOW instead of RTLD_LAZY" >&5 -$as_echo_n "checking whether to dlopen extensions with RTLD_NOW instead of RTLD_LAZY... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to dlopen extensions with RTLD_NOW instead of RTLD_LAZY" >&5 +printf %s "checking whether to dlopen extensions with RTLD_NOW instead of RTLD_LAZY... " >&6; } # Check whether --enable-rtld-now was given. -if test "${enable_rtld_now+set}" = set; then : +if test ${enable_rtld_now+y} +then : enableval=$enable_rtld_now; PHP_RTLD_NOW=$enableval -else - +else case e in #( + e) PHP_RTLD_NOW=no - + ;; +esac fi ext_output=$PHP_RTLD_NOW -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_RTLD_NOW" = "yes"; then -$as_echo "#define PHP_USE_RTLD_NOW 1" >>confdefs.h +printf "%s\n" "#define PHP_USE_RTLD_NOW 1" >>confdefs.h fi php_with_layout=PHP -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking layout of installed files" >&5 -$as_echo_n "checking layout of installed files... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking layout of installed files" >&5 +printf %s "checking layout of installed files... " >&6; } # Check whether --with-layout was given. -if test "${with_layout+set}" = set; then : +if test ${with_layout+y} +then : withval=$with_layout; PHP_LAYOUT=$withval -else - +else case e in #( + e) PHP_LAYOUT=PHP - + ;; +esac fi ext_output=$PHP_LAYOUT -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -18675,23 +21812,25 @@ php_with_config_file_path=DEFAULT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking path to configuration file" >&5 -$as_echo_n "checking path to configuration file... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking path to configuration file" >&5 +printf %s "checking path to configuration file... " >&6; } # Check whether --with-config-file-path was given. -if test "${with_config_file_path+set}" = set; then : +if test ${with_config_file_path+y} +then : withval=$with_config_file_path; PHP_CONFIG_FILE_PATH=$withval -else - +else case e in #( + e) PHP_CONFIG_FILE_PATH=DEFAULT - + ;; +esac fi ext_output=$PHP_CONFIG_FILE_PATH -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -18707,21 +21846,23 @@ esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to scan for configuration files" >&5 -$as_echo_n "checking where to scan for configuration files... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to scan for configuration files" >&5 +printf %s "checking where to scan for configuration files... " >&6; } php_with_config_file_scan_dir=DEFAULT # Check whether --with-config-file-scan-dir was given. -if test "${with_config_file_scan_dir+set}" = set; then : +if test ${with_config_file_scan_dir+y} +then : withval=$with_config_file_scan_dir; PHP_CONFIG_FILE_SCAN_DIR=$withval -else - +else case e in #( + e) PHP_CONFIG_FILE_SCAN_DIR=DEFAULT - + ;; +esac fi @@ -18734,63 +21875,67 @@ if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then PHP_CONFIG_FILE_SCAN_DIR= fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5 -$as_echo "$PHP_CONFIG_FILE_SCAN_DIR" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5 +printf "%s\n" "$PHP_CONFIG_FILE_SCAN_DIR" >&6; } test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS" php_enable_sigchild=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP's own SIGCHLD handler" >&5 -$as_echo_n "checking whether to enable PHP's own SIGCHLD handler... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP's own SIGCHLD handler" >&5 +printf %s "checking whether to enable PHP's own SIGCHLD handler... " >&6; } # Check whether --enable-sigchild was given. -if test "${enable_sigchild+set}" = set; then : +if test ${enable_sigchild+y} +then : enableval=$enable_sigchild; PHP_SIGCHILD=$enableval -else - +else case e in #( + e) PHP_SIGCHILD=no - + ;; +esac fi ext_output=$PHP_SIGCHILD -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_SIGCHILD" = "yes"; then -$as_echo "#define PHP_SIGCHILD 1" >>confdefs.h +printf "%s\n" "#define PHP_SIGCHILD 1" >>confdefs.h else -$as_echo "#define PHP_SIGCHILD 0" >>confdefs.h +printf "%s\n" "#define PHP_SIGCHILD 0" >>confdefs.h fi php_enable_libgcc=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to explicitly link against libgcc" >&5 -$as_echo_n "checking whether to explicitly link against libgcc... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to explicitly link against libgcc" >&5 +printf %s "checking whether to explicitly link against libgcc... " >&6; } # Check whether --enable-libgcc was given. -if test "${enable_libgcc+set}" = set; then : +if test ${enable_libgcc+y} +then : enableval=$enable_libgcc; PHP_LIBGCC=$enableval -else - +else case e in #( + e) PHP_LIBGCC=no - + ;; +esac fi ext_output=$PHP_LIBGCC -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -18852,97 +21997,109 @@ php_enable_short_tags=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable short tags by default" >&5 -$as_echo_n "checking whether to enable short tags by default... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable short tags by default" >&5 +printf %s "checking whether to enable short tags by default... " >&6; } # Check whether --enable-short-tags was given. -if test "${enable_short_tags+set}" = set; then : +if test ${enable_short_tags+y} +then : enableval=$enable_short_tags; PHP_SHORT_TAGS=$enableval -else - +else case e in #( + e) PHP_SHORT_TAGS=yes - + ;; +esac fi ext_output=$PHP_SHORT_TAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_SHORT_TAGS" = "yes"; then -$as_echo "#define DEFAULT_SHORT_OPEN_TAG \"1\"" >>confdefs.h +printf "%s\n" "#define DEFAULT_SHORT_OPEN_TAG \"1\"" >>confdefs.h else -$as_echo "#define DEFAULT_SHORT_OPEN_TAG \"0\"" >>confdefs.h +printf "%s\n" "#define DEFAULT_SHORT_OPEN_TAG \"0\"" >>confdefs.h fi php_enable_dmalloc=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dmalloc" >&5 -$as_echo_n "checking whether to enable dmalloc... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable dmalloc" >&5 +printf %s "checking whether to enable dmalloc... " >&6; } # Check whether --enable-dmalloc was given. -if test "${enable_dmalloc+set}" = set; then : +if test ${enable_dmalloc+y} +then : enableval=$enable_dmalloc; PHP_DMALLOC=$enableval -else - +else case e in #( + e) PHP_DMALLOC=no - + ;; +esac fi ext_output=$PHP_DMALLOC -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_DMALLOC" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_error in -ldmalloc" >&5 -$as_echo_n "checking for dmalloc_error in -ldmalloc... " >&6; } -if ${ac_cv_lib_dmalloc_dmalloc_error+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dmalloc_error in -ldmalloc" >&5 +printf %s "checking for dmalloc_error in -ldmalloc... " >&6; } +if test ${ac_cv_lib_dmalloc_dmalloc_error+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldmalloc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dmalloc_error (); +char dmalloc_error (void); int -main () +main (void) { return dmalloc_error (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dmalloc_dmalloc_error=yes -else - ac_cv_lib_dmalloc_dmalloc_error=no +else case e in #( + e) ac_cv_lib_dmalloc_dmalloc_error=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5 -$as_echo "$ac_cv_lib_dmalloc_dmalloc_error" >&6; } -if test "x$ac_cv_lib_dmalloc_dmalloc_error" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5 +printf "%s\n" "$ac_cv_lib_dmalloc_dmalloc_error" >&6; } +if test "x$ac_cv_lib_dmalloc_dmalloc_error" = xyes +then : @@ -18955,14 +22112,15 @@ -$as_echo "#define HAVE_DMALLOC 1" >>confdefs.h +printf "%s\n" "#define HAVE_DMALLOC 1" >>confdefs.h CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" -else - +else case e in #( + e) as_fn_error $? "Problem with enabling dmalloc. Please check config.log for details." "$LINENO" 5 - + ;; +esac fi fi @@ -18970,63 +22128,66 @@ php_enable_ipv6=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5 -$as_echo_n "checking whether to enable IPv6 support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5 +printf %s "checking whether to enable IPv6 support... " >&6; } # Check whether --enable-ipv6 was given. -if test "${enable_ipv6+set}" = set; then : +if test ${enable_ipv6+y} +then : enableval=$enable_ipv6; PHP_IPV6=$enableval -else - +else case e in #( + e) PHP_IPV6=yes - + ;; +esac fi ext_output=$PHP_IPV6 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then -$as_echo "#define HAVE_IPV6 1" >>confdefs.h +printf "%s\n" "#define HAVE_IPV6 1" >>confdefs.h fi php_enable_dtrace=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DTrace support" >&5 -$as_echo_n "checking whether to enable DTrace support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable DTrace support" >&5 +printf %s "checking whether to enable DTrace support... " >&6; } # Check whether --enable-dtrace was given. -if test "${enable_dtrace+set}" = set; then : +if test ${enable_dtrace+y} +then : enableval=$enable_dtrace; PHP_DTRACE=$enableval -else - +else case e in #( + e) PHP_DTRACE=no - + ;; +esac fi ext_output=$PHP_DTRACE -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_DTRACE" = "yes"; then - for ac_header in sys/sdt.h + for ac_header in sys/sdt.h do : - ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_sdt_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_SDT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sdt_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SDT_H 1" >>confdefs.h case "" in @@ -19128,36 +22289,38 @@ esac -$as_echo "#define HAVE_DTRACE 1" >>confdefs.h +printf "%s\n" "#define HAVE_DTRACE 1" >>confdefs.h PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_DTRACE_OBJS" -else - +else case e in #( + e) as_fn_error $? "Cannot find sys/sdt.h which is required for DTrace support" "$LINENO" 5 - + ;; +esac fi done - fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how big to make fd sets" >&5 -$as_echo_n "checking how big to make fd sets... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how big to make fd sets" >&5 +printf %s "checking how big to make fd sets... " >&6; } php_enable_fd_setsize=no # Check whether --enable-fd-setsize was given. -if test "${enable_fd_setsize+set}" = set; then : +if test ${enable_fd_setsize+y} +then : enableval=$enable_fd_setsize; PHP_FD_SETSIZE=$enableval -else - +else case e in #( + e) PHP_FD_SETSIZE=no - + ;; +esac fi @@ -19170,14 +22333,14 @@ if test "$PHP_FD_SETSIZE" != "no"; then if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PHP_FD_SETSIZE" >&5 -$as_echo "using $PHP_FD_SETSIZE" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $PHP_FD_SETSIZE" >&5 +printf "%s\n" "using $PHP_FD_SETSIZE" >&6; } else as_fn_error $? "Invalid value passed to --enable-fd-setsize!" "$LINENO" 5 fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system default" >&5 -$as_echo "using system default" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using system default" >&5 +printf "%s\n" "using system default" >&6; } fi @@ -19185,13 +22348,15 @@ # Check whether --enable-werror was given. -if test "${enable_werror+set}" = set; then : +if test ${enable_werror+y} +then : enableval=$enable_werror; PHP_WERROR=$enableval -else - +else case e in #( + e) PHP_WERROR=no - + ;; +esac fi @@ -19205,13 +22370,15 @@ # Check whether --enable-memory-sanitizer was given. -if test "${enable_memory_sanitizer+set}" = set; then : +if test ${enable_memory_sanitizer+y} +then : enableval=$enable_memory_sanitizer; PHP_MEMORY_SANITIZER=$enableval -else - +else case e in #( + e) PHP_MEMORY_SANITIZER=no - + ;; +esac fi @@ -19225,13 +22392,15 @@ # Check whether --enable-address-sanitizer was given. -if test "${enable_address_sanitizer+set}" = set; then : +if test ${enable_address_sanitizer+y} +then : enableval=$enable_address_sanitizer; PHP_ADDRESS_SANITIZER=$enableval -else - +else case e in #( + e) PHP_ADDRESS_SANITIZER=no - + ;; +esac fi @@ -19245,13 +22414,15 @@ # Check whether --enable-undefined-sanitizer was given. -if test "${enable_undefined_sanitizer+set}" = set; then : +if test ${enable_undefined_sanitizer+y} +then : enableval=$enable_undefined_sanitizer; PHP_UNDEFINED_SANITIZER=$enableval -else - +else case e in #( + e) PHP_UNDEFINED_SANITIZER=no - + ;; +esac fi @@ -19264,21 +22435,23 @@ # Check whether --enable- was given. -if test "${enable_+set}" = set; then : +if test ${enable_+y} +then : enableval=$enable_; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring extensions${T_ME}" >&5 -$as_echo "${T_MD}Configuring extensions${T_ME}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring extensions${T_ME}" >&5 +printf "%s\n" "${T_MD}Configuring extensions${T_ME}" >&6; } # Check whether --enable-all was given. -if test "${enable_all+set}" = set; then : +if test ${enable_all+y} +then : enableval=$enable_all; PHP_ENABLE_ALL=$enableval fi @@ -19286,65 +22459,67 @@ -for ac_header in io.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" -if test "x$ac_cv_header_io_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_IO_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" +if test "x$ac_cv_header_io_h" = xyes +then : + printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h fi -done - -for ac_func in strtoll atoll -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" +if test "x$ac_cv_func_strtoll" = xyes +then : + printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll" +if test "x$ac_cv_func_atoll" = xyes +then : + printf "%s\n" "#define HAVE_ATOLL 1" >>confdefs.h +fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-implicit-fallthrough" >&5 -$as_echo_n "checking whether C compiler accepts -Wno-implicit-fallthrough... " >&6; } -if ${ax_cv_check_cflags__Werror__Wno_implicit_fallthrough+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-implicit-fallthrough" >&5 +printf %s "checking whether C compiler accepts -Wno-implicit-fallthrough... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wno_implicit_fallthrough+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -Wno-implicit-fallthrough" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=yes -else - ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=no +else case e in #( + e) ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&5 -$as_echo "$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&6; } -if test "x$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" = xyes +then : PHP_DATE_CFLAGS="$PHP_DATE_CFLAGS -Wno-implicit-fallthrough" -else - : +else case e in #( + e) : ;; +esac fi @@ -19486,9 +22661,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_DATE 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_DATE 1" >>confdefs.h fi fi @@ -19699,7 +22872,7 @@ -$as_echo "#define HAVE_TIMELIB_CONFIG_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIMELIB_CONFIG_H 1" >>confdefs.h cat > $ext_builddir/lib/timelib_config.h <&5 -$as_echo_n "checking whether to build with LIBXML support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with LIBXML support" >&5 +printf %s "checking whether to build with LIBXML support... " >&6; } # Check whether --with-libxml was given. -if test "${with_libxml+set}" = set; then : +if test ${with_libxml+y} +then : withval=$with_libxml; PHP_LIBXML=$withval -else - +else case e in #( + e) PHP_LIBXML=yes test "$PHP_ENABLE_ALL" && PHP_LIBXML=$PHP_ENABLE_ALL - + ;; +esac fi @@ -19763,8 +22938,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -19776,17 +22951,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 -$as_echo_n "checking for libxml-2.0 >= 2.9.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 +printf %s "checking for libxml-2.0 >= 2.9.0... " >&6; } if test -n "$LIBXML_CFLAGS"; then pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -19800,10 +22975,10 @@ pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -19817,8 +22992,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -19844,10 +23019,10 @@ and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -19857,12 +23032,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS LIBXML_LIBS=$pkg_cv_LIBXML_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -20007,12 +23182,12 @@ -$as_echo "#define HAVE_LIBXML 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h -$as_echo "#define HAVE_LIBXML 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h ext_builddir=ext/libxml @@ -20148,9 +23323,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_LIBXML 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_LIBXML 1" >>confdefs.h fi fi @@ -20299,17 +23472,19 @@ php_with_openssl=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL support" >&5 -$as_echo_n "checking for OpenSSL support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL support" >&5 +printf %s "checking for OpenSSL support... " >&6; } # Check whether --with-openssl was given. -if test "${with_openssl+set}" = set; then : +if test ${with_openssl+y} +then : withval=$with_openssl; PHP_OPENSSL=$withval -else - +else case e in #( + e) PHP_OPENSSL=no test "$PHP_ENABLE_ALL" && PHP_OPENSSL=$PHP_ENABLE_ALL - + ;; +esac fi @@ -20335,8 +23510,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -20344,23 +23519,25 @@ php_with_kerberos=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos support" >&5 -$as_echo_n "checking for Kerberos support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Kerberos support" >&5 +printf %s "checking for Kerberos support... " >&6; } # Check whether --with-kerberos was given. -if test "${with_kerberos+set}" = set; then : +if test ${with_kerberos+y} +then : withval=$with_kerberos; PHP_KERBEROS=$withval -else - +else case e in #( + e) PHP_KERBEROS=no - + ;; +esac fi ext_output=$PHP_KERBEROS -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -20368,23 +23545,25 @@ php_with_system_ciphers=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use system default cipher list instead of hardcoded value" >&5 -$as_echo_n "checking whether to use system default cipher list instead of hardcoded value... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use system default cipher list instead of hardcoded value" >&5 +printf %s "checking whether to use system default cipher list instead of hardcoded value... " >&6; } # Check whether --with-system-ciphers was given. -if test "${with_system_ciphers+set}" = set; then : +if test ${with_system_ciphers+y} +then : withval=$with_system_ciphers; PHP_SYSTEM_CIPHERS=$withval -else - +else case e in #( + e) PHP_SYSTEM_CIPHERS=no - + ;; +esac fi ext_output=$PHP_SYSTEM_CIPHERS -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -20524,9 +23703,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_OPENSSL 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_OPENSSL 1" >>confdefs.h fi fi @@ -20654,17 +23831,17 @@ if test "$PHP_KERBEROS" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5-gssapi krb5" >&5 -$as_echo_n "checking for krb5-gssapi krb5... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5-gssapi krb5" >&5 +printf %s "checking for krb5-gssapi krb5... " >&6; } if test -n "$KERBEROS_CFLAGS"; then pkg_cv_KERBEROS_CFLAGS="$KERBEROS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_KERBEROS_CFLAGS=`$PKG_CONFIG --cflags "krb5-gssapi krb5" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -20678,10 +23855,10 @@ pkg_cv_KERBEROS_LIBS="$KERBEROS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_KERBEROS_LIBS=`$PKG_CONFIG --libs "krb5-gssapi krb5" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -20695,8 +23872,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -20722,10 +23899,10 @@ and KERBEROS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -20735,12 +23912,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else KERBEROS_CFLAGS=$pkg_cv_KERBEROS_CFLAGS KERBEROS_LIBS=$pkg_cv_KERBEROS_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -20890,17 +24067,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.2" >&5 -$as_echo_n "checking for openssl >= 1.0.2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.2" >&5 +printf %s "checking for openssl >= 1.0.2... " >&6; } if test -n "$OPENSSL_CFLAGS"; then pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -20914,10 +24091,10 @@ pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -20931,8 +24108,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -20958,10 +24135,10 @@ and OPENSSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -20971,12 +24148,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } found_openssl=yes fi @@ -21122,7 +24299,7 @@ -$as_echo "#define HAVE_OPENSSL_EXT 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENSSL_EXT 1" >>confdefs.h else @@ -21131,21 +24308,17 @@ fi - for ac_func in RAND_egd -do : ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd" -if test "x$ac_cv_func_RAND_egd" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_RAND_EGD 1 -_ACEOF +if test "x$ac_cv_func_RAND_egd" = xyes +then : + printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h fi -done if test "$PHP_SYSTEM_CIPHERS" != "no"; then -$as_echo "#define USE_OPENSSL_SYSTEM_CIPHERS 1" >>confdefs.h +printf "%s\n" "#define USE_OPENSSL_SYSTEM_CIPHERS 1" >>confdefs.h fi fi @@ -21159,13 +24332,15 @@ # Check whether --with-external-pcre was given. -if test "${with_external_pcre+set}" = set; then : +if test ${with_external_pcre+y} +then : withval=$with_external_pcre; PHP_EXTERNAL_PCRE=$withval -else - +else case e in #( + e) PHP_EXTERNAL_PCRE=no - + ;; +esac fi @@ -21181,13 +24356,15 @@ # Check whether --with-pcre-jit was given. -if test "${with_pcre_jit+set}" = set; then : +if test ${with_pcre_jit+y} +then : withval=$with_pcre_jit; PHP_PCRE_JIT=$withval -else - +else case e in #( + e) PHP_PCRE_JIT=yes - + ;; +esac fi @@ -21201,17 +24378,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre2-8 >= 10.30" >&5 -$as_echo_n "checking for libpcre2-8 >= 10.30... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpcre2-8 >= 10.30" >&5 +printf %s "checking for libpcre2-8 >= 10.30... " >&6; } if test -n "$PCRE2_CFLAGS"; then pkg_cv_PCRE2_CFLAGS="$PCRE2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.30\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.30\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.30") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PCRE2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8 >= 10.30" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -21225,10 +24402,10 @@ pkg_cv_PCRE2_LIBS="$PCRE2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.30\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.30\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.30") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PCRE2_LIBS=`$PKG_CONFIG --libs "libpcre2-8 >= 10.30" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -21242,8 +24419,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -21269,10 +24446,10 @@ and PCRE2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -21282,12 +24459,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else PCRE2_CFLAGS=$pkg_cv_PCRE2_CFLAGS PCRE2_LIBS=$pkg_cv_PCRE2_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -21413,17 +24590,19 @@ done -$as_echo "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h +printf "%s\n" "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h if test "$PHP_PCRE_JIT" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JIT support in PCRE2" >&5 -$as_echo_n "checking for JIT support in PCRE2... " >&6; } -if ${ac_cv_have_pcre2_jit+:} false; then : - $as_echo_n "(cached) " >&6 -else - - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JIT support in PCRE2" >&5 +printf %s "checking for JIT support in PCRE2... " >&6; } +if test ${ac_cv_have_pcre2_jit+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + if test "$cross_compiling" = yes +then : case $host_cpu in @@ -21435,8 +24614,8 @@ ;; esac -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -21449,25 +24628,29 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_have_pcre2_jit=yes -else - +else case e in #( + e) ac_cv_have_pcre2_jit=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pcre2_jit" >&5 -$as_echo "$ac_cv_have_pcre2_jit" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pcre2_jit" >&5 +printf "%s\n" "$ac_cv_have_pcre2_jit" >&6; } if test $ac_cv_have_pcre2_jit = yes; then - $as_echo "#define HAVE_PCRE_JIT_SUPPORT 1" >>confdefs.h + printf "%s\n" "#define HAVE_PCRE_JIT_SUPPORT 1" >>confdefs.h fi fi @@ -21606,9 +24789,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PCRE 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PCRE 1" >>confdefs.h fi fi @@ -21750,10 +24931,10 @@ else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE library to use" >&5 -$as_echo_n "checking for PCRE library to use... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 -$as_echo "bundled" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCRE library to use" >&5 +printf %s "checking for PCRE library to use... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 +printf "%s\n" "bundled" >&6; } pcrelib_sources="pcre2lib/pcre2_auto_possess.c pcre2lib/pcre2_chartables.c pcre2lib/pcre2_compile.c \ pcre2lib/pcre2_config.c pcre2lib/pcre2_context.c pcre2lib/pcre2_dfa_match.c pcre2lib/pcre2_error.c \ pcre2lib/pcre2_jit_compile.c pcre2lib/pcre2_maketables.c pcre2lib/pcre2_match.c pcre2lib/pcre2_match_data.c \ @@ -21762,65 +24943,72 @@ pcre2lib/pcre2_tables.c pcre2lib/pcre2_ucd.c pcre2lib/pcre2_valid_utf.c pcre2lib/pcre2_xclass.c \ pcre2lib/pcre2_find_bracket.c pcre2lib/pcre2_convert.c pcre2lib/pcre2_extuni.c pcre2lib/pcre2_script_run.c" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-implicit-fallthrough" >&5 -$as_echo_n "checking whether C compiler accepts -Wno-implicit-fallthrough... " >&6; } -if ${ax_cv_check_cflags__Werror__Wno_implicit_fallthrough+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-implicit-fallthrough" >&5 +printf %s "checking whether C compiler accepts -Wno-implicit-fallthrough... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wno_implicit_fallthrough+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -Wno-implicit-fallthrough" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=yes -else - ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=no +else case e in #( + e) ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&5 -$as_echo "$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&6; } -if test "x$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" = xyes +then : PHP_PCRE_CFLAGS="$PHP_PCRE_CFLAGS -Wno-implicit-fallthrough" -else - : +else case e in #( + e) : ;; +esac fi PHP_PCRE_CFLAGS="$PHP_PCRE_CFLAGS -DHAVE_CONFIG_H -I@ext_srcdir@/pcre2lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" -$as_echo "#define HAVE_BUNDLED_PCRE 1" >>confdefs.h +printf "%s\n" "#define HAVE_BUNDLED_PCRE 1" >>confdefs.h -$as_echo "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h +printf "%s\n" "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PCRE JIT functionality" >&5 -$as_echo_n "checking whether to enable PCRE JIT functionality... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable PCRE JIT functionality" >&5 +printf %s "checking whether to enable PCRE JIT functionality... " >&6; } if test "$PHP_PCRE_JIT" != "no"; then -$as_echo "#define HAVE_PCRE_JIT_SUPPORT 1" >>confdefs.h +printf "%s\n" "#define HAVE_PCRE_JIT_SUPPORT 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Intel CET is enabled" >&5 -$as_echo_n "checking whether Intel CET is enabled... " >&6; } -if ${ac_cv_have_pcre2_intel_cet+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Intel CET is enabled" >&5 +printf %s "checking whether Intel CET is enabled... " >&6; } +if test ${ac_cv_have_pcre2_intel_cet+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -21830,27 +25018,30 @@ #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_have_pcre2_intel_cet=yes -else - +else case e in #( + e) ac_cv_have_pcre2_intel_cet=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test "$ac_cv_have_pcre2_intel_cet" = yes; then PHP_PCRE_CFLAGS="-mshstk $PHP_PCRE_CFLAGS" fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pcre2_intel_cet" >&5 -$as_echo "$ac_cv_have_pcre2_intel_cet" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pcre2_intel_cet" >&5 +printf "%s\n" "$ac_cv_have_pcre2_intel_cet" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -21987,9 +25178,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PCRE 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PCRE 1" >>confdefs.h fi fi @@ -22139,7 +25328,7 @@ if test "$PHP_VALGRIND" != "no" && test "$have_valgrind" = "yes"; then if test "$ZEND_DEBUG" = "yes"; then -$as_echo "#define HAVE_PCRE_VALGRIND_SUPPORT 1" >>confdefs.h +printf "%s\n" "#define HAVE_PCRE_VALGRIND_SUPPORT 1" >>confdefs.h fi fi @@ -22151,17 +25340,19 @@ php_with_sqlite3=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SQLite3 extension" >&5 -$as_echo_n "checking whether to enable the SQLite3 extension... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the SQLite3 extension" >&5 +printf %s "checking whether to enable the SQLite3 extension... " >&6; } # Check whether --with-sqlite3 was given. -if test "${with_sqlite3+set}" = set; then : +if test ${with_sqlite3+y} +then : withval=$with_sqlite3; PHP_SQLITE3=$withval -else - +else case e in #( + e) PHP_SQLITE3=yes test "$PHP_ENABLE_ALL" && PHP_SQLITE3=$PHP_ENABLE_ALL - + ;; +esac fi @@ -22187,8 +25378,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -22196,17 +25387,17 @@ if test $PHP_SQLITE3 != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.7.7" >&5 -$as_echo_n "checking for sqlite3 >= 3.7.7... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.7.7" >&5 +printf %s "checking for sqlite3 >= 3.7.7... " >&6; } if test -n "$SQLITE_CFLAGS"; then pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.7\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.7\""; } >&5 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.7.7") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.7.7" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -22220,10 +25411,10 @@ pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.7\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.7\""; } >&5 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.7.7") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.7.7" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -22237,8 +25428,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -22264,10 +25455,10 @@ and SQLITE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -22277,12 +25468,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS SQLITE_LIBS=$pkg_cv_SQLITE_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -22426,7 +25617,7 @@ done -$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h +printf "%s\n" "#define HAVE_SQLITE3 1" >>confdefs.h @@ -22534,59 +25725,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_errstr in -lsqlite3" >&5 -$as_echo_n "checking for sqlite3_errstr in -lsqlite3... " >&6; } -if ${ac_cv_lib_sqlite3_sqlite3_errstr+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_errstr in -lsqlite3" >&5 +printf %s "checking for sqlite3_errstr in -lsqlite3... " >&6; } +if test ${ac_cv_lib_sqlite3_sqlite3_errstr+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsqlite3 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char sqlite3_errstr (); +char sqlite3_errstr (void); int -main () +main (void) { return sqlite3_errstr (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_sqlite3_sqlite3_errstr=yes -else - ac_cv_lib_sqlite3_sqlite3_errstr=no +else case e in #( + e) ac_cv_lib_sqlite3_sqlite3_errstr=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_errstr" >&5 -$as_echo "$ac_cv_lib_sqlite3_sqlite3_errstr" >&6; } -if test "x$ac_cv_lib_sqlite3_sqlite3_errstr" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_errstr" >&5 +printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_errstr" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_errstr" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_SQLITE3_ERRSTR 1" >>confdefs.h - +printf "%s\n" "#define HAVE_SQLITE3_ERRSTR 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_sqlite3_sqlite3_errstr - + ;; +esac fi @@ -22695,59 +25895,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_expanded_sql in -lsqlite3" >&5 -$as_echo_n "checking for sqlite3_expanded_sql in -lsqlite3... " >&6; } -if ${ac_cv_lib_sqlite3_sqlite3_expanded_sql+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_expanded_sql in -lsqlite3" >&5 +printf %s "checking for sqlite3_expanded_sql in -lsqlite3... " >&6; } +if test ${ac_cv_lib_sqlite3_sqlite3_expanded_sql+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsqlite3 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char sqlite3_expanded_sql (); +char sqlite3_expanded_sql (void); int -main () +main (void) { return sqlite3_expanded_sql (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_sqlite3_sqlite3_expanded_sql=yes -else - ac_cv_lib_sqlite3_sqlite3_expanded_sql=no +else case e in #( + e) ac_cv_lib_sqlite3_sqlite3_expanded_sql=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_expanded_sql" >&5 -$as_echo "$ac_cv_lib_sqlite3_sqlite3_expanded_sql" >&6; } -if test "x$ac_cv_lib_sqlite3_sqlite3_expanded_sql" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_expanded_sql" >&5 +printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_expanded_sql" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_expanded_sql" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_SQLITE3_EXPANDED_SQL 1" >>confdefs.h - +printf "%s\n" "#define HAVE_SQLITE3_EXPANDED_SQL 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_sqlite3_sqlite3_expanded_sql - + ;; +esac fi @@ -22857,57 +26066,66 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5 -$as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; } -if ${ac_cv_lib_sqlite3_sqlite3_load_extension+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5 +printf %s "checking for sqlite3_load_extension in -lsqlite3... " >&6; } +if test ${ac_cv_lib_sqlite3_sqlite3_load_extension+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsqlite3 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char sqlite3_load_extension (); +char sqlite3_load_extension (void); int -main () +main (void) { return sqlite3_load_extension (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_sqlite3_sqlite3_load_extension=yes -else - ac_cv_lib_sqlite3_sqlite3_load_extension=no +else case e in #( + e) ac_cv_lib_sqlite3_sqlite3_load_extension=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 -$as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; } -if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 +printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_sqlite3_sqlite3_load_extension -$as_echo "#define SQLITE_OMIT_LOAD_EXTENSION 1" >>confdefs.h - +printf "%s\n" "#define SQLITE_OMIT_LOAD_EXTENSION 1" >>confdefs.h + ;; +esac fi @@ -23045,9 +26263,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SQLITE3 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SQLITE3 1" >>confdefs.h fi fi @@ -23179,17 +26395,19 @@ php_with_zlib=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support" >&5 -$as_echo_n "checking for ZLIB support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB support" >&5 +printf %s "checking for ZLIB support... " >&6; } # Check whether --with-zlib was given. -if test "${with_zlib+set}" = set; then : +if test ${with_zlib+y} +then : withval=$with_zlib; PHP_ZLIB=$withval -else - +else case e in #( + e) PHP_ZLIB=no test "$PHP_ENABLE_ALL" && PHP_ZLIB=$PHP_ENABLE_ALL - + ;; +esac fi @@ -23215,8 +26433,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -23224,17 +26442,17 @@ if test "$PHP_ZLIB" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.0.4" >&5 -$as_echo_n "checking for zlib >= 1.2.0.4... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.0.4" >&5 +printf %s "checking for zlib >= 1.2.0.4... " >&6; } if test -n "$ZLIB_CFLAGS"; then pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0.4\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0.4\""; } >&5 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0.4") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.0.4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -23248,10 +26466,10 @@ pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0.4\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0.4\""; } >&5 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0.4") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.0.4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -23265,8 +26483,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -23292,10 +26510,10 @@ and ZLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -23305,12 +26523,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS ZLIB_LIBS=$pkg_cv_ZLIB_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -23455,7 +26673,7 @@ -$as_echo "#define HAVE_ZLIB 1" >>confdefs.h +printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h @@ -23592,9 +26810,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_ZLIB 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_ZLIB 1" >>confdefs.h fi fi @@ -23726,16 +26942,18 @@ php_enable_bcmath=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable bc style precision math functions" >&5 -$as_echo_n "checking whether to enable bc style precision math functions... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable bc style precision math functions" >&5 +printf %s "checking whether to enable bc style precision math functions... " >&6; } # Check whether --enable-bcmath was given. -if test "${enable_bcmath+set}" = set; then : +if test ${enable_bcmath+y} +then : enableval=$enable_bcmath; PHP_BCMATH=$enableval -else - +else case e in #( + e) PHP_BCMATH=no test "$PHP_ENABLE_ALL" && PHP_BCMATH=$PHP_ENABLE_ALL - + ;; +esac fi @@ -23761,8 +26979,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -23910,9 +27128,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_BCMATH 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_BCMATH 1" >>confdefs.h fi fi @@ -24047,7 +27263,7 @@ -$as_echo "#define HAVE_BCMATH 1" >>confdefs.h +printf "%s\n" "#define HAVE_BCMATH 1" >>confdefs.h fi @@ -24057,17 +27273,19 @@ php_with_bz2=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 support" >&5 -$as_echo_n "checking for BZip2 support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZip2 support" >&5 +printf %s "checking for BZip2 support... " >&6; } # Check whether --with-bz2 was given. -if test "${with_bz2+set}" = set; then : +if test ${with_bz2+y} +then : withval=$with_bz2; PHP_BZ2=$withval -else - +else case e in #( + e) PHP_BZ2=no test "$PHP_ENABLE_ALL" && PHP_BZ2=$PHP_ENABLE_ALL - + ;; +esac fi @@ -24093,8 +27311,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -24103,21 +27321,21 @@ if test -r $PHP_BZ2/include/bzlib.h; then BZIP_DIR=$PHP_BZ2 else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 in default path" >&5 -$as_echo_n "checking for BZip2 in default path... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZip2 in default path" >&5 +printf %s "checking for BZip2 in default path... " >&6; } for i in /usr/local /usr; do if test -r $i/include/bzlib.h; then BZIP_DIR=$i - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 -$as_echo "found in $i" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +printf "%s\n" "found in $i" >&6; } break fi done fi if test -z "$BZIP_DIR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 -$as_echo "not found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +printf "%s\n" "not found" >&6; } as_fn_error $? "Please reinstall the BZip2 distribution" "$LINENO" 5 fi @@ -24228,43 +27446,51 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzerror in -lbz2" >&5 -$as_echo_n "checking for BZ2_bzerror in -lbz2... " >&6; } -if ${ac_cv_lib_bz2_BZ2_bzerror+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzerror in -lbz2" >&5 +printf %s "checking for BZ2_bzerror in -lbz2... " >&6; } +if test ${ac_cv_lib_bz2_BZ2_bzerror+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbz2 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char BZ2_bzerror (); +char BZ2_bzerror (void); int -main () +main (void) { return BZ2_bzerror (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bz2_BZ2_bzerror=yes -else - ac_cv_lib_bz2_BZ2_bzerror=no +else case e in #( + e) ac_cv_lib_bz2_BZ2_bzerror=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5 -$as_echo "$ac_cv_lib_bz2_BZ2_bzerror" >&6; } -if test "x$ac_cv_lib_bz2_BZ2_bzerror" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5 +printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzerror" >&6; } +if test "x$ac_cv_lib_bz2_BZ2_bzerror" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -24398,19 +27624,20 @@ -$as_echo "#define HAVE_BZ2 1" >>confdefs.h - +printf "%s\n" "#define HAVE_BZ2 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_bz2_BZ2_bzerror as_fn_error $? "bz2 module requires libbz2 >= 1.0.0" "$LINENO" 5 - + ;; +esac fi @@ -24548,9 +27775,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_BZ2 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_BZ2 1" >>confdefs.h fi fi @@ -24682,16 +27907,18 @@ php_enable_calendar=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable calendar conversion support" >&5 -$as_echo_n "checking whether to enable calendar conversion support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable calendar conversion support" >&5 +printf %s "checking whether to enable calendar conversion support... " >&6; } # Check whether --enable-calendar was given. -if test "${enable_calendar+set}" = set; then : +if test ${enable_calendar+y} +then : enableval=$enable_calendar; PHP_CALENDAR=$enableval -else - +else case e in #( + e) PHP_CALENDAR=no test "$PHP_ENABLE_ALL" && PHP_CALENDAR=$PHP_ENABLE_ALL - + ;; +esac fi @@ -24717,15 +27944,15 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_CALENDAR" = "yes"; then -$as_echo "#define HAVE_CALENDAR 1" >>confdefs.h +printf "%s\n" "#define HAVE_CALENDAR 1" >>confdefs.h ext_builddir=ext/calendar @@ -24861,9 +28088,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_CALENDAR 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_CALENDAR 1" >>confdefs.h fi fi @@ -24992,16 +28217,18 @@ php_enable_ctype=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ctype functions" >&5 -$as_echo_n "checking whether to enable ctype functions... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ctype functions" >&5 +printf %s "checking whether to enable ctype functions... " >&6; } # Check whether --enable-ctype was given. -if test "${enable_ctype+set}" = set; then : +if test ${enable_ctype+y} +then : enableval=$enable_ctype; PHP_CTYPE=$enableval -else - +else case e in #( + e) PHP_CTYPE=yes test "$PHP_ENABLE_ALL" && PHP_CTYPE=$PHP_ENABLE_ALL - + ;; +esac fi @@ -25027,15 +28254,15 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_CTYPE" != "no"; then -$as_echo "#define HAVE_CTYPE 1" >>confdefs.h +printf "%s\n" "#define HAVE_CTYPE 1" >>confdefs.h ext_builddir=ext/ctype @@ -25171,9 +28398,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_CTYPE 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_CTYPE 1" >>confdefs.h fi fi @@ -25302,17 +28527,19 @@ php_with_curl=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL support" >&5 -$as_echo_n "checking for cURL support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cURL support" >&5 +printf %s "checking for cURL support... " >&6; } # Check whether --with-curl was given. -if test "${with_curl+set}" = set; then : +if test ${with_curl+y} +then : withval=$with_curl; PHP_CURL=$withval -else - +else case e in #( + e) PHP_CURL=no test "$PHP_ENABLE_ALL" && PHP_CURL=$PHP_ENABLE_ALL - + ;; +esac fi @@ -25338,8 +28565,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -25347,17 +28574,17 @@ if test "$PHP_CURL" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= 7.29.0" >&5 -$as_echo_n "checking for libcurl >= 7.29.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl >= 7.29.0" >&5 +printf %s "checking for libcurl >= 7.29.0... " >&6; } if test -n "$CURL_CFLAGS"; then pkg_cv_CURL_CFLAGS="$CURL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.29.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.29.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.29.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.29.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -25371,10 +28598,10 @@ pkg_cv_CURL_LIBS="$CURL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.29.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.29.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.29.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.29.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -25388,8 +28615,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -25415,10 +28642,10 @@ and CURL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -25428,12 +28655,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else CURL_CFLAGS=$pkg_cv_CURL_CFLAGS CURL_LIBS=$pkg_cv_CURL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -25441,10 +28668,10 @@ pkg_cv_CURL_FEATURES="$CURL_FEATURES" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CURL_FEATURES=`$PKG_CONFIG --variable="supported_features" "libcurl" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -25456,7 +28683,8 @@ fi CURL_FEATURES=$pkg_cv_CURL_FEATURES -if test "x$CURL_FEATURES" = x""; then : +if test "x$CURL_FEATURES" = x"" +then : fi @@ -25600,18 +28828,18 @@ done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL support in libcurl" >&5 -$as_echo_n "checking for SSL support in libcurl... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL support in libcurl" >&5 +printf %s "checking for SSL support in libcurl... " >&6; } case "$CURL_FEATURES" in *SSL*) CURL_SSL=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ;; *) CURL_SSL=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; esac @@ -25619,15 +28847,16 @@ save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $CURL_LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl linked against old openssl" >&5 -$as_echo_n "checking for libcurl linked against old openssl... " >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl linked against old openssl" >&5 +printf %s "checking for libcurl linked against old openssl... " >&6; } + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -25657,26 +28886,27 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_CURL_OLD_OPENSSL 1" >>confdefs.h +printf "%s\n" "#define HAVE_CURL_OLD_OPENSSL 1" >>confdefs.h pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5 -$as_echo_n "checking for openssl... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5 +printf %s "checking for openssl... " >&6; } if test -n "$OPENSSL_CFLAGS"; then pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -25690,10 +28920,10 @@ pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -25707,8 +28937,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -25734,10 +28964,10 @@ and OPENSSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -25747,12 +28977,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } for ac_i in $OPENSSL_LIBS; do @@ -25893,36 +29123,33 @@ esac done - for ac_header in openssl/crypto.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default" -if test "x$ac_cv_header_openssl_crypto_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_OPENSSL_CRYPTO_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default" +if test "x$ac_cv_header_openssl_crypto_h" = xyes +then : + printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h fi -done - fi -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LDFLAGS="$save_LDFLAGS" else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -26032,61 +29259,70 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_perform in -lcurl" >&5 -$as_echo_n "checking for curl_easy_perform in -lcurl... " >&6; } -if ${ac_cv_lib_curl_curl_easy_perform+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curl_easy_perform in -lcurl" >&5 +printf %s "checking for curl_easy_perform in -lcurl... " >&6; } +if test ${ac_cv_lib_curl_curl_easy_perform+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcurl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char curl_easy_perform (); +char curl_easy_perform (void); int -main () +main (void) { return curl_easy_perform (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_curl_curl_easy_perform=yes -else - ac_cv_lib_curl_curl_easy_perform=no +else case e in #( + e) ac_cv_lib_curl_curl_easy_perform=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_perform" >&5 -$as_echo "$ac_cv_lib_curl_curl_easy_perform" >&6; } -if test "x$ac_cv_lib_curl_curl_easy_perform" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_perform" >&5 +printf "%s\n" "$ac_cv_lib_curl_curl_easy_perform" >&6; } +if test "x$ac_cv_lib_curl_curl_easy_perform" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_CURL 1" >>confdefs.h - +printf "%s\n" "#define HAVE_CURL 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_curl_curl_easy_perform as_fn_error $? "There is something wrong. Please check config.log for more information." "$LINENO" 5 - + ;; +esac fi @@ -26224,9 +29460,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_CURL 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_CURL 1" >>confdefs.h fi fi @@ -26393,13 +29627,15 @@ # Check whether --enable-dba was given. -if test "${enable_dba+set}" = set; then : +if test ${enable_dba+y} +then : enableval=$enable_dba; PHP_DBA=$enableval -else - +else case e in #( + e) PHP_DBA=no test "$PHP_ENABLE_ALL" && PHP_DBA=$PHP_ENABLE_ALL - + ;; +esac fi @@ -26436,13 +29672,15 @@ # Check whether --with-qdbm was given. -if test "${with_qdbm+set}" = set; then : +if test ${with_qdbm+y} +then : withval=$with_qdbm; PHP_QDBM=$withval -else - +else case e in #( + e) PHP_QDBM=no - + ;; +esac fi @@ -26458,13 +29696,15 @@ # Check whether --with-gdbm was given. -if test "${with_gdbm+set}" = set; then : +if test ${with_gdbm+y} +then : withval=$with_gdbm; PHP_GDBM=$withval -else - +else case e in #( + e) PHP_GDBM=no - + ;; +esac fi @@ -26480,13 +29720,15 @@ # Check whether --with-ndbm was given. -if test "${with_ndbm+set}" = set; then : +if test ${with_ndbm+y} +then : withval=$with_ndbm; PHP_NDBM=$withval -else - +else case e in #( + e) PHP_NDBM=no - + ;; +esac fi @@ -26502,13 +29744,15 @@ # Check whether --with-db4 was given. -if test "${with_db4+set}" = set; then : +if test ${with_db4+y} +then : withval=$with_db4; PHP_DB4=$withval -else - +else case e in #( + e) PHP_DB4=no - + ;; +esac fi @@ -26524,13 +29768,15 @@ # Check whether --with-db3 was given. -if test "${with_db3+set}" = set; then : +if test ${with_db3+y} +then : withval=$with_db3; PHP_DB3=$withval -else - +else case e in #( + e) PHP_DB3=no - + ;; +esac fi @@ -26546,13 +29792,15 @@ # Check whether --with-db2 was given. -if test "${with_db2+set}" = set; then : +if test ${with_db2+y} +then : withval=$with_db2; PHP_DB2=$withval -else - +else case e in #( + e) PHP_DB2=no - + ;; +esac fi @@ -26568,13 +29816,15 @@ # Check whether --with-db1 was given. -if test "${with_db1+set}" = set; then : +if test ${with_db1+y} +then : withval=$with_db1; PHP_DB1=$withval -else - +else case e in #( + e) PHP_DB1=no - + ;; +esac fi @@ -26590,13 +29840,15 @@ # Check whether --with-dbm was given. -if test "${with_dbm+set}" = set; then : +if test ${with_dbm+y} +then : withval=$with_dbm; PHP_DBM=$withval -else - +else case e in #( + e) PHP_DBM=no - + ;; +esac fi @@ -26612,13 +29864,15 @@ # Check whether --with-tcadb was given. -if test "${with_tcadb+set}" = set; then : +if test ${with_tcadb+y} +then : withval=$with_tcadb; PHP_TCADB=$withval -else - +else case e in #( + e) PHP_TCADB=no - + ;; +esac fi @@ -26634,13 +29888,15 @@ # Check whether --with-lmdb was given. -if test "${with_lmdb+set}" = set; then : +if test ${with_lmdb+y} +then : withval=$with_lmdb; PHP_LMDB=$withval -else - +else case e in #( + e) PHP_LMDB=no - + ;; +esac fi @@ -26774,67 +30030,74 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -l$LIB" >&5 -$as_echo_n "checking for dpopen in -l$LIB... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIB""_dpopen" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dpopen in -l$LIB" >&5 +printf %s "checking for dpopen in -l$LIB... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dpopen (); +char dpopen (void); int -main () +main (void) { return dpopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -cat >>confdefs.h <<_ACEOF -#define QDBM_INCLUDE_FILE "$THIS_INCLUDE" -_ACEOF +printf "%s\n" "#define QDBM_INCLUDE_FILE \"$THIS_INCLUDE\"" >>confdefs.h -$as_echo "#define DBA_QDBM 1" >>confdefs.h +printf "%s\n" "#define DBA_QDBM 1" >>confdefs.h THIS_LIBS=$LIB -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$LIB_dpopen - + ;; +esac fi if test -n "$THIS_LIBS"; then @@ -26965,19 +30228,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -26994,19 +30257,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n "You cannot combine --with-gdbm with --with-qdbm"; then as_fn_error $? "You cannot combine --with-gdbm with --with-qdbm" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -27125,65 +30388,72 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 -$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } -if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 +printf %s "checking for gdbm_open in -lgdbm... " >&6; } +if test ${ac_cv_lib_gdbm_gdbm_open+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lgdbm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char gdbm_open (); +char gdbm_open (void); int -main () +main (void) { return gdbm_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_gdbm_gdbm_open=yes -else - ac_cv_lib_gdbm_gdbm_open=no +else case e in #( + e) ac_cv_lib_gdbm_gdbm_open=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 -$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } -if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 +printf "%s\n" "$ac_cv_lib_gdbm_gdbm_open" >&6; } +if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -cat >>confdefs.h <<_ACEOF -#define GDBM_INCLUDE_FILE "$THIS_INCLUDE" -_ACEOF +printf "%s\n" "#define GDBM_INCLUDE_FILE \"$THIS_INCLUDE\"" >>confdefs.h -$as_echo "#define DBA_GDBM 1" >>confdefs.h +printf "%s\n" "#define DBA_GDBM 1" >>confdefs.h THIS_LIBS=gdbm -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_gdbm_gdbm_open - + ;; +esac fi fi @@ -27310,19 +30580,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -27450,67 +30720,74 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$LIB" >&5 -$as_echo_n "checking for dbm_open in -l$LIB... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIB""_dbm_open" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$LIB" >&5 +printf %s "checking for dbm_open in -l$LIB... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dbm_open (); +char dbm_open (void); int -main () +main (void) { return dbm_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -cat >>confdefs.h <<_ACEOF -#define NDBM_INCLUDE_FILE "$THIS_INCLUDE" -_ACEOF +printf "%s\n" "#define NDBM_INCLUDE_FILE \"$THIS_INCLUDE\"" >>confdefs.h -$as_echo "#define DBA_NDBM 1" >>confdefs.h +printf "%s\n" "#define DBA_NDBM 1" >>confdefs.h THIS_LIBS=$LIB -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$LIB_dbm_open - + ;; +esac fi if test -n "$THIS_LIBS"; then @@ -27641,19 +30918,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -27808,67 +31085,74 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_tcadbopen" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcadbopen in -l$LIB" >&5 -$as_echo_n "checking for tcadbopen in -l$LIB... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIB""_tcadbopen" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcadbopen in -l$LIB" >&5 +printf %s "checking for tcadbopen in -l$LIB... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char tcadbopen (); +char tcadbopen (void); int -main () +main (void) { return tcadbopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -cat >>confdefs.h <<_ACEOF -#define TCADB_INCLUDE_FILE "$THIS_INCLUDE" -_ACEOF +printf "%s\n" "#define TCADB_INCLUDE_FILE \"$THIS_INCLUDE\"" >>confdefs.h -$as_echo "#define DBA_TCADB 1" >>confdefs.h +printf "%s\n" "#define DBA_TCADB 1" >>confdefs.h THIS_LIBS=$LIB -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$LIB_tcadbopen - + ;; +esac fi if test -n "$THIS_LIBS"; then @@ -27999,19 +31283,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -28166,67 +31450,74 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_mdb_env_open" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_open in -l$LIB" >&5 -$as_echo_n "checking for mdb_env_open in -l$LIB... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIB""_mdb_env_open" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mdb_env_open in -l$LIB" >&5 +printf %s "checking for mdb_env_open in -l$LIB... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char mdb_env_open (); +char mdb_env_open (void); int -main () +main (void) { return mdb_env_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -cat >>confdefs.h <<_ACEOF -#define LMDB_INCLUDE_FILE "$THIS_INCLUDE" -_ACEOF +printf "%s\n" "#define LMDB_INCLUDE_FILE \"$THIS_INCLUDE\"" >>confdefs.h -$as_echo "#define DBA_LMDB 1" >>confdefs.h +printf "%s\n" "#define DBA_LMDB 1" >>confdefs.h THIS_LIBS=$LIB -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$LIB_mdb_env_open - + ;; +esac fi if test -n "$THIS_LIBS"; then @@ -28357,19 +31648,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -28456,7 +31747,7 @@ #include "$THIS_INCLUDE" int -main () +main (void) { (void)db_create((DB**)0, (DB_ENV*)0, 0); @@ -28465,7 +31756,8 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28477,17 +31769,18 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 +then : THIS_LIBS=$LIB lib_found=1 fi -rm -f conftest* +rm -rf conftest* fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$old_LDFLAGS @@ -28500,13 +31793,13 @@ fi done if test -z "$THIS_LIBS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 major version" >&5 -$as_echo_n "checking for DB4 major version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DB4 major version" >&5 +printf %s "checking for DB4 major version... " >&6; } as_fn_error $? "Header contains different version" "$LINENO" 5 fi if test "4" = "4"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 -$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +printf %s "checking for DB4 minor version and patch level... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28517,22 +31810,24 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } +else case e in #( + e) as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 - + ;; +esac fi -rm -f conftest* +rm -rf conftest* fi if test "$ext_shared" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 -$as_echo_n "checking if dba can be used as shared extension... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +printf %s "checking if dba can be used as shared extension... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28543,28 +31838,28 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 - + ;; +esac fi -rm -f conftest* +rm -rf conftest* fi if test -n "$THIS_LIBS"; then -$as_echo "#define DBA_DB4 1" >>confdefs.h +printf "%s\n" "#define DBA_DB4 1" >>confdefs.h if test -n "$THIS_INCLUDE"; then -cat >>confdefs.h <<_ACEOF -#define DB4_INCLUDE_FILE "$THIS_INCLUDE" -_ACEOF +printf "%s\n" "#define DB4_INCLUDE_FILE \"$THIS_INCLUDE\"" >>confdefs.h fi else @@ -28688,19 +31983,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -28717,19 +32012,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n "You cannot combine --with-db3 with --with-db4"; then as_fn_error $? "You cannot combine --with-db3 with --with-db4" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -28776,7 +32071,7 @@ #include "$THIS_INCLUDE" int -main () +main (void) { (void)db_create((DB**)0, (DB_ENV*)0, 0); @@ -28785,7 +32080,8 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28797,17 +32093,18 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 +then : THIS_LIBS=$LIB lib_found=1 fi -rm -f conftest* +rm -rf conftest* fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$old_LDFLAGS @@ -28820,13 +32117,13 @@ fi done if test -z "$THIS_LIBS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB3 major version" >&5 -$as_echo_n "checking for DB3 major version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DB3 major version" >&5 +printf %s "checking for DB3 major version... " >&6; } as_fn_error $? "Header contains different version" "$LINENO" 5 fi if test "3" = "4"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 -$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +printf %s "checking for DB4 minor version and patch level... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28837,22 +32134,24 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } +else case e in #( + e) as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 - + ;; +esac fi -rm -f conftest* +rm -rf conftest* fi if test "$ext_shared" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 -$as_echo_n "checking if dba can be used as shared extension... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +printf %s "checking if dba can be used as shared extension... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28863,28 +32162,28 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 - + ;; +esac fi -rm -f conftest* +rm -rf conftest* fi if test -n "$THIS_LIBS"; then -$as_echo "#define DBA_DB3 1" >>confdefs.h +printf "%s\n" "#define DBA_DB3 1" >>confdefs.h if test -n "$THIS_INCLUDE"; then -cat >>confdefs.h <<_ACEOF -#define DB3_INCLUDE_FILE "$THIS_INCLUDE" -_ACEOF +printf "%s\n" "#define DB3_INCLUDE_FILE \"$THIS_INCLUDE\"" >>confdefs.h fi else @@ -29008,19 +32307,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -29037,19 +32336,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then as_fn_error $? "You cannot combine --with-db2 with --with-db3 or --with-db4" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -29096,7 +32395,7 @@ #include "$THIS_INCLUDE" int -main () +main (void) { (void)db_appinit("", NULL, (DB_ENV*)0, 0); @@ -29105,7 +32404,8 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -29117,17 +32417,18 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 +then : THIS_LIBS=$LIB lib_found=1 fi -rm -f conftest* +rm -rf conftest* fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$old_LDFLAGS @@ -29140,13 +32441,13 @@ fi done if test -z "$THIS_LIBS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB2 major version" >&5 -$as_echo_n "checking for DB2 major version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DB2 major version" >&5 +printf %s "checking for DB2 major version... " >&6; } as_fn_error $? "Header contains different version" "$LINENO" 5 fi if test "2" = "4"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 -$as_echo_n "checking for DB4 minor version and patch level... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 +printf %s "checking for DB4 minor version and patch level... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -29157,22 +32458,24 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } +else case e in #( + e) as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 - + ;; +esac fi -rm -f conftest* +rm -rf conftest* fi if test "$ext_shared" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 -$as_echo_n "checking if dba can be used as shared extension... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5 +printf %s "checking if dba can be used as shared extension... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -29183,28 +32486,28 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 - + ;; +esac fi -rm -f conftest* +rm -rf conftest* fi if test -n "$THIS_LIBS"; then -$as_echo "#define DBA_DB2 1" >>confdefs.h +printf "%s\n" "#define DBA_DB2 1" >>confdefs.h if test -n "$THIS_INCLUDE"; then -cat >>confdefs.h <<_ACEOF -#define DB2_INCLUDE_FILE "$THIS_INCLUDE" -_ACEOF +printf "%s\n" "#define DB2_INCLUDE_FILE \"$THIS_INCLUDE\"" >>confdefs.h fi else @@ -29328,19 +32631,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -29349,8 +32652,8 @@ unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in library" >&5 -$as_echo_n "checking for DB1 in library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DB1 in library" >&5 +printf %s "checking for DB1 in library... " >&6; } if test "$HAVE_DB4" = "1"; then THIS_VERSION=4 THIS_LIBS=$DB4_LIBS @@ -29365,9 +32668,7 @@ fi if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then -cat >>confdefs.h <<_ACEOF -#define DB1_VERSION "Berkeley DB 1.85 emulation in DB$THIS_VERSION" -_ACEOF +printf "%s\n" "#define DB1_VERSION \"Berkeley DB 1.85 emulation in DB$THIS_VERSION\"" >>confdefs.h for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do if test -f "$THIS_PREFIX/$i"; then @@ -29377,9 +32678,7 @@ done else -cat >>confdefs.h <<_ACEOF -#define DB1_VERSION "Unknown DB1" -_ACEOF +printf "%s\n" "#define DB1_VERSION \"Unknown DB1\"" >>confdefs.h for i in $PHP_DB1 /usr/local /usr; do if test -f "$i/db1/db.h"; then @@ -29398,12 +32697,12 @@ done THIS_LIBS=db fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_LIBS" >&5 -$as_echo "$THIS_LIBS" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in header" >&5 -$as_echo_n "checking for DB1 in header... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_INCLUDE" >&5 -$as_echo "$THIS_INCLUDE" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_LIBS" >&5 +printf "%s\n" "$THIS_LIBS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DB1 in header" >&5 +printf %s "checking for DB1 in header... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_INCLUDE" >&5 +printf "%s\n" "$THIS_INCLUDE" >&6; } if test -n "$THIS_INCLUDE"; then old_LDFLAGS=$LDFLAGS @@ -29417,7 +32716,7 @@ #include "$THIS_INCLUDE" int -main () +main (void) { DB * dbp = dbopen("", 0, 0, DB_HASH, 0); @@ -29426,24 +32725,24 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : -cat >>confdefs.h <<_ACEOF -#define DB1_INCLUDE_FILE "$THIS_INCLUDE" -_ACEOF +printf "%s\n" "#define DB1_INCLUDE_FILE \"$THIS_INCLUDE\"" >>confdefs.h -$as_echo "#define DBA_DB1 1" >>confdefs.h +printf "%s\n" "#define DBA_DB1 1" >>confdefs.h THIS_RESULT=yes -else - +else case e in #( + e) THIS_RESULT=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$old_LDFLAGS @@ -29572,19 +32871,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -29601,19 +32900,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n "You cannot combine --with-dbm with --with-qdbm"; then as_fn_error $? "You cannot combine --with-dbm with --with-qdbm" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -29737,86 +33036,89 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$LIB" >&5 -$as_echo_n "checking for dbminit in -l$LIB... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIB""_dbminit" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$LIB" >&5 +printf %s "checking for dbminit in -l$LIB... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dbminit (); +char dbminit (void); int -main () +main (void) { return dbminit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBM using GDBM" >&5 -$as_echo_n "checking for DBM using GDBM... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DBM using GDBM" >&5 +printf %s "checking for DBM using GDBM... " >&6; } -cat >>confdefs.h <<_ACEOF -#define DBM_INCLUDE_FILE "$THIS_INCLUDE" -_ACEOF +printf "%s\n" "#define DBM_INCLUDE_FILE \"$THIS_INCLUDE\"" >>confdefs.h if test "$LIB" = "gdbm"; then -cat >>confdefs.h <<_ACEOF -#define DBM_VERSION "GDBM" -_ACEOF +printf "%s\n" "#define DBM_VERSION \"GDBM\"" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else -cat >>confdefs.h <<_ACEOF -#define DBM_VERSION "DBM" -_ACEOF +printf "%s\n" "#define DBM_VERSION \"DBM\"" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -$as_echo "#define DBA_DBM 1" >>confdefs.h +printf "%s\n" "#define DBA_DBM 1" >>confdefs.h THIS_LIBS=$LIB -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$LIB_dbminit - + ;; +esac fi if test -n "$THIS_LIBS"; then @@ -29947,19 +33249,19 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME @@ -29976,13 +33278,15 @@ # Check whether --with-cdb was given. -if test "${with_cdb+set}" = set; then : +if test ${with_cdb+y} +then : withval=$with_cdb; PHP_CDB=$withval -else - +else case e in #( + e) PHP_CDB=$php_dba_enable - + ;; +esac fi @@ -29997,13 +33301,15 @@ # Check whether --enable-inifile was given. -if test "${enable_inifile+set}" = set; then : +if test ${enable_inifile+y} +then : enableval=$enable_inifile; PHP_INIFILE=$enableval -else - +else case e in #( + e) PHP_INIFILE=$php_dba_enable - + ;; +esac fi @@ -30018,13 +33324,15 @@ # Check whether --enable-flatfile was given. -if test "${enable_flatfile+set}" = set; then : +if test ${enable_flatfile+y} +then : enableval=$enable_flatfile; PHP_FLATFILE=$enableval -else - +else case e in #( + e) PHP_FLATFILE=$php_dba_enable - + ;; +esac fi @@ -30036,13 +33344,13 @@ if test "$PHP_CDB" = "yes"; then -$as_echo "#define DBA_CDB_BUILTIN 1" >>confdefs.h +printf "%s\n" "#define DBA_CDB_BUILTIN 1" >>confdefs.h -$as_echo "#define DBA_CDB_MAKE 1" >>confdefs.h +printf "%s\n" "#define DBA_CDB_MAKE 1" >>confdefs.h -$as_echo "#define DBA_CDB 1" >>confdefs.h +printf "%s\n" "#define DBA_CDB 1" >>confdefs.h cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c" THIS_RESULT="builtin" @@ -30165,67 +33473,74 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_read in -l$LIB" >&5 -$as_echo_n "checking for cdb_read in -l$LIB... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIB""_cdb_read" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cdb_read in -l$LIB" >&5 +printf %s "checking for cdb_read in -l$LIB... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char cdb_read (); +char cdb_read (void); int -main () +main (void) { return cdb_read (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -cat >>confdefs.h <<_ACEOF -#define CDB_INCLUDE_FILE "$THIS_INCLUDE" -_ACEOF +printf "%s\n" "#define CDB_INCLUDE_FILE \"$THIS_INCLUDE\"" >>confdefs.h -$as_echo "#define DBA_CDB 1" >>confdefs.h +printf "%s\n" "#define DBA_CDB 1" >>confdefs.h THIS_LIBS=$LIB -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$LIB_cdb_read - + ;; +esac fi if test -n "$THIS_LIBS"; then @@ -30356,26 +33671,26 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME if test "$PHP_INIFILE" != "no"; then -$as_echo "#define DBA_INIFILE 1" >>confdefs.h +printf "%s\n" "#define DBA_INIFILE 1" >>confdefs.h ini_sources="libinifile/inifile.c" THIS_RESULT="builtin" @@ -30387,26 +33702,26 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME if test "$PHP_FLATFILE" != "no"; then -$as_echo "#define DBA_FLATFILE 1" >>confdefs.h +printf "%s\n" "#define DBA_FLATFILE 1" >>confdefs.h flat_sources="libflatfile/flatfile.c" THIS_RESULT="builtin" @@ -30418,35 +33733,35 @@ else THIS_FULL_NAME="$THIS_NAME" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 -$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 +printf %s "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 eval HAVE_$THIS_NAME=1 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 -$as_echo "$THIS_RESULT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5 +printf "%s\n" "$THIS_RESULT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi unset THIS_RESULT THIS_NAME THIS_FULL_NAME -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DBA interface" >&5 -$as_echo_n "checking whether to enable DBA interface... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable DBA interface" >&5 +printf %s "checking whether to enable DBA interface... " >&6; } if test "$HAVE_DBA" = "1"; then if test "$ext_shared" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, shared" >&5 -$as_echo "yes, shared" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, shared" >&5 +printf "%s\n" "yes, shared" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi -$as_echo "#define HAVE_DBA 1" >>confdefs.h +printf "%s\n" "#define HAVE_DBA 1" >>confdefs.h ext_builddir=ext/dba @@ -30582,9 +33897,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_DBA 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_DBA 1" >>confdefs.h fi fi @@ -30724,8 +34037,8 @@ PHP_VAR_SUBST="$PHP_VAR_SUBST DBA_SHARED_LIBADD" else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -30734,16 +34047,18 @@ php_enable_dl_test=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dl-test extension" >&5 -$as_echo_n "checking whether to enable dl-test extension... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable dl-test extension" >&5 +printf %s "checking whether to enable dl-test extension... " >&6; } # Check whether --enable-dl-test was given. -if test "${enable_dl_test+set}" = set; then : +if test ${enable_dl_test+y} +then : enableval=$enable_dl_test; PHP_DL_TEST=$enableval -else - +else case e in #( + e) PHP_DL_TEST=no test "$PHP_ENABLE_ALL" && PHP_DL_TEST=$PHP_ENABLE_ALL - + ;; +esac fi @@ -30769,8 +34084,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -30910,9 +34225,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_DL_TEST 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_DL_TEST 1" >>confdefs.h fi fi @@ -31041,16 +34354,18 @@ php_enable_dom=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DOM support" >&5 -$as_echo_n "checking whether to enable DOM support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable DOM support" >&5 +printf %s "checking whether to enable DOM support... " >&6; } # Check whether --enable-dom was given. -if test "${enable_dom+set}" = set; then : +if test ${enable_dom+y} +then : enableval=$enable_dom; PHP_DOM=$enableval -else - +else case e in #( + e) PHP_DOM=yes test "$PHP_ENABLE_ALL" && PHP_DOM=$PHP_ENABLE_ALL - + ;; +esac fi @@ -31076,8 +34391,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -31091,17 +34406,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 -$as_echo_n "checking for libxml-2.0 >= 2.9.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 +printf %s "checking for libxml-2.0 >= 2.9.0... " >&6; } if test -n "$LIBXML_CFLAGS"; then pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -31115,10 +34430,10 @@ pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -31132,8 +34447,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -31159,10 +34474,10 @@ and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -31172,12 +34487,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS LIBXML_LIBS=$pkg_cv_LIBXML_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -31322,12 +34637,12 @@ -$as_echo "#define HAVE_LIBXML 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h -$as_echo "#define HAVE_DOM 1" >>confdefs.h +printf "%s\n" "#define HAVE_DOM 1" >>confdefs.h ext_builddir=ext/dom @@ -31481,9 +34796,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_DOM 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_DOM 1" >>confdefs.h fi fi @@ -31672,17 +34985,19 @@ php_with_enchant=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Enchant support" >&5 -$as_echo_n "checking whether to build with Enchant support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with Enchant support" >&5 +printf %s "checking whether to build with Enchant support... " >&6; } # Check whether --with-enchant was given. -if test "${with_enchant+set}" = set; then : +if test ${with_enchant+y} +then : withval=$with_enchant; PHP_ENCHANT=$withval -else - +else case e in #( + e) PHP_ENCHANT=no test "$PHP_ENABLE_ALL" && PHP_ENCHANT=$PHP_ENABLE_ALL - + ;; +esac fi @@ -31708,8 +35023,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -31717,17 +35032,17 @@ if test "$PHP_ENCHANT" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant-2" >&5 -$as_echo_n "checking for enchant-2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for enchant-2" >&5 +printf %s "checking for enchant-2... " >&6; } if test -n "$ENCHANT2_CFLAGS"; then pkg_cv_ENCHANT2_CFLAGS="$ENCHANT2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant-2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant-2\""; } >&5 ($PKG_CONFIG --exists --print-errors "enchant-2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ENCHANT2_CFLAGS=`$PKG_CONFIG --cflags "enchant-2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -31741,10 +35056,10 @@ pkg_cv_ENCHANT2_LIBS="$ENCHANT2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant-2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant-2\""; } >&5 ($PKG_CONFIG --exists --print-errors "enchant-2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ENCHANT2_LIBS=`$PKG_CONFIG --libs "enchant-2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -31758,8 +35073,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -31776,14 +35091,14 @@ found_enchant_2=no elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } found_enchant_2=no else ENCHANT2_CFLAGS=$pkg_cv_ENCHANT2_CFLAGS ENCHANT2_LIBS=$pkg_cv_ENCHANT2_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } found_enchant_2=yes fi @@ -31930,25 +35245,25 @@ -$as_echo "#define HAVE_ENCHANT_GET_VERSION 1" >>confdefs.h +printf "%s\n" "#define HAVE_ENCHANT_GET_VERSION 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libenchant-2 not found trying with old libenchant" >&5 -$as_echo "$as_me: WARNING: libenchant-2 not found trying with old libenchant" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libenchant-2 not found trying with old libenchant" >&5 +printf "%s\n" "$as_me: WARNING: libenchant-2 not found trying with old libenchant" >&2;} pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant >= 1.4.2" >&5 -$as_echo_n "checking for enchant >= 1.4.2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for enchant >= 1.4.2" >&5 +printf %s "checking for enchant >= 1.4.2... " >&6; } if test -n "$ENCHANT_CFLAGS"; then pkg_cv_ENCHANT_CFLAGS="$ENCHANT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant >= 1.4.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant >= 1.4.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "enchant >= 1.4.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ENCHANT_CFLAGS=`$PKG_CONFIG --cflags "enchant >= 1.4.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -31962,10 +35277,10 @@ pkg_cv_ENCHANT_LIBS="$ENCHANT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant >= 1.4.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant >= 1.4.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "enchant >= 1.4.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ENCHANT_LIBS=`$PKG_CONFIG --libs "enchant >= 1.4.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -31979,8 +35294,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -32006,10 +35321,10 @@ and ENCHANT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -32019,12 +35334,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ENCHANT_CFLAGS=$pkg_cv_ENCHANT_CFLAGS ENCHANT_LIBS=$pkg_cv_ENCHANT_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -32275,59 +35590,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_get_version in -lenchant" >&5 -$as_echo_n "checking for enchant_get_version in -lenchant... " >&6; } -if ${ac_cv_lib_enchant_enchant_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for enchant_get_version in -lenchant" >&5 +printf %s "checking for enchant_get_version in -lenchant... " >&6; } +if test ${ac_cv_lib_enchant_enchant_get_version+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lenchant $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char enchant_get_version (); +char enchant_get_version (void); int -main () +main (void) { return enchant_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_enchant_enchant_get_version=yes -else - ac_cv_lib_enchant_enchant_get_version=no +else case e in #( + e) ac_cv_lib_enchant_enchant_get_version=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_get_version" >&5 -$as_echo "$ac_cv_lib_enchant_enchant_get_version" >&6; } -if test "x$ac_cv_lib_enchant_enchant_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_get_version" >&5 +printf "%s\n" "$ac_cv_lib_enchant_enchant_get_version" >&6; } +if test "x$ac_cv_lib_enchant_enchant_get_version" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_ENCHANT_GET_VERSION 1" >>confdefs.h - +printf "%s\n" "#define HAVE_ENCHANT_GET_VERSION 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_enchant_enchant_get_version - + ;; +esac fi @@ -32438,65 +35762,74 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_broker_set_param in -lenchant" >&5 -$as_echo_n "checking for enchant_broker_set_param in -lenchant... " >&6; } -if ${ac_cv_lib_enchant_enchant_broker_set_param+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for enchant_broker_set_param in -lenchant" >&5 +printf %s "checking for enchant_broker_set_param in -lenchant... " >&6; } +if test ${ac_cv_lib_enchant_enchant_broker_set_param+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lenchant $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char enchant_broker_set_param (); +char enchant_broker_set_param (void); int -main () +main (void) { return enchant_broker_set_param (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_enchant_enchant_broker_set_param=yes -else - ac_cv_lib_enchant_enchant_broker_set_param=no +else case e in #( + e) ac_cv_lib_enchant_enchant_broker_set_param=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5 -$as_echo "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; } -if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5 +printf "%s\n" "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; } +if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_ENCHANT_BROKER_SET_PARAM 1" >>confdefs.h - +printf "%s\n" "#define HAVE_ENCHANT_BROKER_SET_PARAM 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_enchant_enchant_broker_set_param - + ;; +esac fi fi -$as_echo "#define HAVE_ENCHANT 1" >>confdefs.h +printf "%s\n" "#define HAVE_ENCHANT 1" >>confdefs.h @@ -32633,9 +35966,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_ENCHANT 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_ENCHANT 1" >>confdefs.h fi fi @@ -32767,16 +36098,18 @@ php_enable_exif=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXIF (metadata from images) support" >&5 -$as_echo_n "checking whether to enable EXIF (metadata from images) support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable EXIF (metadata from images) support" >&5 +printf %s "checking whether to enable EXIF (metadata from images) support... " >&6; } # Check whether --enable-exif was given. -if test "${enable_exif+set}" = set; then : +if test ${enable_exif+y} +then : enableval=$enable_exif; PHP_EXIF=$enableval -else - +else case e in #( + e) PHP_EXIF=no test "$PHP_ENABLE_ALL" && PHP_EXIF=$PHP_ENABLE_ALL - + ;; +esac fi @@ -32802,15 +36135,15 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_EXIF" != "no"; then -$as_echo "#define HAVE_EXIF 1" >>confdefs.h +printf "%s\n" "#define HAVE_EXIF 1" >>confdefs.h ext_builddir=ext/exif @@ -32946,9 +36279,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_EXIF 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_EXIF 1" >>confdefs.h fi fi @@ -33077,17 +36408,19 @@ php_with_ffi=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI support" >&5 -$as_echo_n "checking for FFI support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFI support" >&5 +printf %s "checking for FFI support... " >&6; } # Check whether --with-ffi was given. -if test "${with_ffi+set}" = set; then : +if test ${with_ffi+y} +then : withval=$with_ffi; PHP_FFI=$withval -else - +else case e in #( + e) PHP_FFI=no test "$PHP_ENABLE_ALL" && PHP_FFI=$PHP_ENABLE_ALL - + ;; +esac fi @@ -33113,8 +36446,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -33122,17 +36455,17 @@ if test "$PHP_FFI" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi >= 3.0.11" >&5 -$as_echo_n "checking for libffi >= 3.0.11... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libffi >= 3.0.11" >&5 +printf %s "checking for libffi >= 3.0.11... " >&6; } if test -n "$FFI_CFLAGS"; then pkg_cv_FFI_CFLAGS="$FFI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.11\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.11\""; } >&5 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.11") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.11" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -33146,10 +36479,10 @@ pkg_cv_FFI_LIBS="$FFI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.11\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.11\""; } >&5 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.11") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.11" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -33163,8 +36496,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -33190,10 +36523,10 @@ and FFI_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -33203,12 +36536,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else FFI_CFLAGS=$pkg_cv_FFI_CFLAGS FFI_LIBS=$pkg_cv_FFI_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -33353,31 +36686,31 @@ -$as_echo "#define HAVE_FFI 1" >>confdefs.h +printf "%s\n" "#define HAVE_FFI 1" >>confdefs.h ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" -if test "x$ac_cv_type_long_double" = xyes; then : +if test "x$ac_cv_type_long_double" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_LONG_DOUBLE 1 -_ACEOF +printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fastcall calling convention" >&5 -$as_echo_n "checking for fastcall calling convention... " >&6; } -if ${ac_cv_ffi_fastcall+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fastcall calling convention" >&5 +printf %s "checking for fastcall calling convention... " >&6; } +if test ${ac_cv_ffi_fastcall+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { return FFI_FASTCALL ; @@ -33385,34 +36718,38 @@ } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_ffi_fastcall=yes -else - ac_cv_ffi_fastcall=no +else case e in #( + e) ac_cv_ffi_fastcall=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_fastcall" >&5 -$as_echo "$ac_cv_ffi_fastcall" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_fastcall" >&5 +printf "%s\n" "$ac_cv_ffi_fastcall" >&6; } if test "$ac_cv_ffi_fastcall" = yes; then -$as_echo "#define HAVE_FFI_FASTCALL 1" >>confdefs.h +printf "%s\n" "#define HAVE_FFI_FASTCALL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thiscall calling convention" >&5 -$as_echo_n "checking for thiscall calling convention... " >&6; } -if ${ac_cv_ffi_thiscall+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thiscall calling convention" >&5 +printf %s "checking for thiscall calling convention... " >&6; } +if test ${ac_cv_ffi_thiscall+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { return FFI_THISCALL ; @@ -33420,34 +36757,38 @@ } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_ffi_thiscall=yes -else - ac_cv_ffi_thiscall=no +else case e in #( + e) ac_cv_ffi_thiscall=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_thiscall" >&5 -$as_echo "$ac_cv_ffi_thiscall" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_thiscall" >&5 +printf "%s\n" "$ac_cv_ffi_thiscall" >&6; } if test "$ac_cv_ffi_thiscall" = yes; then -$as_echo "#define HAVE_FFI_THISCALL 1" >>confdefs.h +printf "%s\n" "#define HAVE_FFI_THISCALL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdcall calling convention" >&5 -$as_echo_n "checking for stdcall calling convention... " >&6; } -if ${ac_cv_ffi_stdcall+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdcall calling convention" >&5 +printf %s "checking for stdcall calling convention... " >&6; } +if test ${ac_cv_ffi_stdcall+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { return FFI_STDCALL ; @@ -33455,34 +36796,38 @@ } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_ffi_stdcall=yes -else - ac_cv_ffi_stdcall=no +else case e in #( + e) ac_cv_ffi_stdcall=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_stdcall" >&5 -$as_echo "$ac_cv_ffi_stdcall" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_stdcall" >&5 +printf "%s\n" "$ac_cv_ffi_stdcall" >&6; } if test "$ac_cv_ffi_stdcall" = yes; then -$as_echo "#define HAVE_FFI_STDCALL 1" >>confdefs.h +printf "%s\n" "#define HAVE_FFI_STDCALL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pascal calling convention" >&5 -$as_echo_n "checking for pascal calling convention... " >&6; } -if ${ac_cv_ffi_pascal+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pascal calling convention" >&5 +printf %s "checking for pascal calling convention... " >&6; } +if test ${ac_cv_ffi_pascal+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { return FFI_PASCAL ; @@ -33490,34 +36835,38 @@ } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_ffi_pascal=yes -else - ac_cv_ffi_pascal=no +else case e in #( + e) ac_cv_ffi_pascal=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_pascal" >&5 -$as_echo "$ac_cv_ffi_pascal" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_pascal" >&5 +printf "%s\n" "$ac_cv_ffi_pascal" >&6; } if test "$ac_cv_ffi_pascal" = yes; then -$as_echo "#define HAVE_FFI_PASCAL 1" >>confdefs.h +printf "%s\n" "#define HAVE_FFI_PASCAL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register calling convention" >&5 -$as_echo_n "checking for register calling convention... " >&6; } -if ${ac_cv_ffi_register+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for register calling convention" >&5 +printf %s "checking for register calling convention... " >&6; } +if test ${ac_cv_ffi_register+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { return FFI_REGISTER ; @@ -33525,34 +36874,38 @@ } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_ffi_register=yes -else - ac_cv_ffi_register=no +else case e in #( + e) ac_cv_ffi_register=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_register" >&5 -$as_echo "$ac_cv_ffi_register" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_register" >&5 +printf "%s\n" "$ac_cv_ffi_register" >&6; } if test "$ac_cv_ffi_register" = yes; then -$as_echo "#define HAVE_FFI_REGISTER 1" >>confdefs.h +printf "%s\n" "#define HAVE_FFI_REGISTER 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_cdecl calling convention" >&5 -$as_echo_n "checking for ms_cdecl calling convention... " >&6; } -if ${ac_cv_ffi_ms_cdecl+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ms_cdecl calling convention" >&5 +printf %s "checking for ms_cdecl calling convention... " >&6; } +if test ${ac_cv_ffi_ms_cdecl+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { return FFI_MS_CDECL ; @@ -33560,34 +36913,38 @@ } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_ffi_ms_cdecl=yes -else - ac_cv_ffi_ms_cdecl=no +else case e in #( + e) ac_cv_ffi_ms_cdecl=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_ms_cdecl" >&5 -$as_echo "$ac_cv_ffi_ms_cdecl" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_ms_cdecl" >&5 +printf "%s\n" "$ac_cv_ffi_ms_cdecl" >&6; } if test "$ac_cv_ffi_ms_cdecl" = yes; then -$as_echo "#define HAVE_FFI_MS_CDECL 1" >>confdefs.h +printf "%s\n" "#define HAVE_FFI_MS_CDECL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysv calling convention" >&5 -$as_echo_n "checking for sysv calling convention... " >&6; } -if ${ac_cv_ffi_sysv+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysv calling convention" >&5 +printf %s "checking for sysv calling convention... " >&6; } +if test ${ac_cv_ffi_sysv+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { return FFI_SYSV ; @@ -33595,20 +36952,23 @@ } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_ffi_sysv=yes -else - ac_cv_ffi_sysv=no +else case e in #( + e) ac_cv_ffi_sysv=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_sysv" >&5 -$as_echo "$ac_cv_ffi_sysv" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_sysv" >&5 +printf "%s\n" "$ac_cv_ffi_sysv" >&6; } if test "$ac_cv_ffi_sysv" = yes; then -$as_echo "#define HAVE_FFI_SYSV 1" >>confdefs.h +printf "%s\n" "#define HAVE_FFI_SYSV 1" >>confdefs.h fi @@ -33746,9 +37106,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_FFI 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_FFI 1" >>confdefs.h fi fi @@ -33880,16 +37238,18 @@ php_enable_fileinfo=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileinfo support" >&5 -$as_echo_n "checking for fileinfo support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fileinfo support" >&5 +printf %s "checking for fileinfo support... " >&6; } # Check whether --enable-fileinfo was given. -if test "${enable_fileinfo+set}" = set; then : +if test ${enable_fileinfo+y} +then : enableval=$enable_fileinfo; PHP_FILEINFO=$enableval -else - +else case e in #( + e) PHP_FILEINFO=yes test "$PHP_ENABLE_ALL" && PHP_FILEINFO=$PHP_ENABLE_ALL - + ;; +esac fi @@ -33915,8 +37275,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -33931,13 +37291,14 @@ libmagic/readcdf.c libmagic/softmagic.c libmagic/der.c \ libmagic/buffer.c libmagic/is_csv.c" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasestr" >&5 -$as_echo_n "checking for strcasestr... " >&6; } - if test "$cross_compiling" = yes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped, cross-compiling" >&5 -$as_echo "skipped, cross-compiling" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasestr" >&5 +printf %s "checking for strcasestr... " >&6; } + if test "$cross_compiling" = yes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skipped, cross-compiling" >&5 +printf "%s\n" "skipped, cross-compiling" >&6; } +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -33966,22 +37327,25 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: using libmagic strcasestr implementation" >&5 -$as_echo "$as_me: using libmagic strcasestr implementation" >&6;} +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using libmagic strcasestr implementation" >&5 +printf "%s\n" "$as_me: using libmagic strcasestr implementation" >&6;} libmagic_sources="$libmagic_sources libmagic/strcasestr.c" - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi @@ -34119,9 +37483,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_FILEINFO 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_FILEINFO 1" >>confdefs.h fi fi @@ -34248,17 +37610,18 @@ - for ac_func in utimes strndup -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" +if test "x$ac_cv_func_utimes" = xyes +then : + printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" +if test "x$ac_cv_func_strndup" = xyes +then : + printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h fi -done @@ -34275,16 +37638,18 @@ php_enable_filter=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable input filter support" >&5 -$as_echo_n "checking whether to enable input filter support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable input filter support" >&5 +printf %s "checking whether to enable input filter support... " >&6; } # Check whether --enable-filter was given. -if test "${enable_filter+set}" = set; then : +if test ${enable_filter+y} +then : enableval=$enable_filter; PHP_FILTER=$enableval -else - +else case e in #( + e) PHP_FILTER=yes test "$PHP_ENABLE_ALL" && PHP_FILTER=$PHP_ENABLE_ALL - + ;; +esac fi @@ -34310,8 +37675,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -34451,9 +37816,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_FILTER 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_FILTER 1" >>confdefs.h fi fi @@ -34623,16 +37986,18 @@ php_enable_ftp=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FTP support" >&5 -$as_echo_n "checking whether to enable FTP support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable FTP support" >&5 +printf %s "checking whether to enable FTP support... " >&6; } # Check whether --enable-ftp was given. -if test "${enable_ftp+set}" = set; then : +if test ${enable_ftp+y} +then : enableval=$enable_ftp; PHP_FTP=$enableval -else - +else case e in #( + e) PHP_FTP=no test "$PHP_ENABLE_ALL" && PHP_FTP=$PHP_ENABLE_ALL - + ;; +esac fi @@ -34658,8 +38023,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -34667,30 +38032,32 @@ php_with_openssl_dir=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to explicitly enable FTP SSL support" >&5 -$as_echo_n "checking whether to explicitly enable FTP SSL support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to explicitly enable FTP SSL support" >&5 +printf %s "checking whether to explicitly enable FTP SSL support... " >&6; } # Check whether --with-openssl-dir was given. -if test "${with_openssl_dir+set}" = set; then : +if test ${with_openssl_dir+y} +then : withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval -else - +else case e in #( + e) PHP_OPENSSL_DIR=no - + ;; +esac fi ext_output=$PHP_OPENSSL_DIR -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_FTP" = "yes"; then -$as_echo "#define HAVE_FTP 1" >>confdefs.h +printf "%s\n" "#define HAVE_FTP 1" >>confdefs.h ext_builddir=ext/ftp @@ -34826,9 +38193,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_FTP 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_FTP 1" >>confdefs.h fi fi @@ -34958,17 +38323,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.2" >&5 -$as_echo_n "checking for openssl >= 1.0.2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.2" >&5 +printf %s "checking for openssl >= 1.0.2... " >&6; } if test -n "$OPENSSL_CFLAGS"; then pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -34982,10 +38347,10 @@ pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -34999,8 +38364,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -35026,10 +38391,10 @@ and OPENSSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -35039,12 +38404,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } found_openssl=yes fi @@ -35196,7 +38561,7 @@ PHP_VAR_SUBST="$PHP_VAR_SUBST FTP_SHARED_LIBADD" -$as_echo "#define HAVE_FTP_SSL 1" >>confdefs.h +printf "%s\n" "#define HAVE_FTP_SSL 1" >>confdefs.h fi fi @@ -35207,16 +38572,18 @@ php_enable_gd=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GD support" >&5 -$as_echo_n "checking for GD support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GD support" >&5 +printf %s "checking for GD support... " >&6; } # Check whether --enable-gd was given. -if test "${enable_gd+set}" = set; then : +if test ${enable_gd+y} +then : enableval=$enable_gd; PHP_GD=$enableval -else - +else case e in #( + e) PHP_GD=no test "$PHP_ENABLE_ALL" && PHP_GD=$PHP_ENABLE_ALL - + ;; +esac fi @@ -35242,8 +38609,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -35251,23 +38618,25 @@ php_with_external_gd=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external libgd" >&5 -$as_echo_n "checking for external libgd... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for external libgd" >&5 +printf %s "checking for external libgd... " >&6; } # Check whether --with-external-gd was given. -if test "${with_external_gd+set}" = set; then : +if test ${with_external_gd+y} +then : withval=$with_external_gd; PHP_EXTERNAL_GD=$withval -else - +else case e in #( + e) PHP_EXTERNAL_GD=no - + ;; +esac fi ext_output=$PHP_EXTERNAL_GD -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -35276,23 +38645,25 @@ php_with_avif=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavif" >&5 -$as_echo_n "checking for libavif... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libavif" >&5 +printf %s "checking for libavif... " >&6; } # Check whether --with-avif was given. -if test "${with_avif+set}" = set; then : +if test ${with_avif+y} +then : withval=$with_avif; PHP_AVIF=$withval -else - +else case e in #( + e) PHP_AVIF=no - + ;; +esac fi ext_output=$PHP_AVIF -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -35302,23 +38673,25 @@ php_with_webp=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebp" >&5 -$as_echo_n "checking for libwebp... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libwebp" >&5 +printf %s "checking for libwebp... " >&6; } # Check whether --with-webp was given. -if test "${with_webp+set}" = set; then : +if test ${with_webp+y} +then : withval=$with_webp; PHP_WEBP=$withval -else - +else case e in #( + e) PHP_WEBP=no - + ;; +esac fi ext_output=$PHP_WEBP -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -35328,23 +38701,25 @@ php_with_jpeg=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5 -$as_echo_n "checking for libjpeg... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5 +printf %s "checking for libjpeg... " >&6; } # Check whether --with-jpeg was given. -if test "${with_jpeg+set}" = set; then : +if test ${with_jpeg+y} +then : withval=$with_jpeg; PHP_JPEG=$withval -else - +else case e in #( + e) PHP_JPEG=no - + ;; +esac fi ext_output=$PHP_JPEG -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -35353,23 +38728,25 @@ php_with_xpm=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXpm" >&5 -$as_echo_n "checking for libXpm... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libXpm" >&5 +printf %s "checking for libXpm... " >&6; } # Check whether --with-xpm was given. -if test "${with_xpm+set}" = set; then : +if test ${with_xpm+y} +then : withval=$with_xpm; PHP_XPM=$withval -else - +else case e in #( + e) PHP_XPM=no - + ;; +esac fi ext_output=$PHP_XPM -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -35377,23 +38754,25 @@ php_with_freetype=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2" >&5 -$as_echo_n "checking for FreeType 2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeType 2" >&5 +printf %s "checking for FreeType 2... " >&6; } # Check whether --with-freetype was given. -if test "${with_freetype+set}" = set; then : +if test ${with_freetype+y} +then : withval=$with_freetype; PHP_FREETYPE=$withval -else - +else case e in #( + e) PHP_FREETYPE=no - + ;; +esac fi ext_output=$PHP_FREETYPE -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -35401,22 +38780,24 @@ php_enable_gd_jis_conv=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JIS-mapped Japanese font support in GD" >&5 -$as_echo_n "checking whether to enable JIS-mapped Japanese font support in GD... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable JIS-mapped Japanese font support in GD" >&5 +printf %s "checking whether to enable JIS-mapped Japanese font support in GD... " >&6; } # Check whether --enable-gd-jis-conv was given. -if test "${enable_gd_jis_conv+set}" = set; then : +if test ${enable_gd_jis_conv+y} +then : enableval=$enable_gd_jis_conv; PHP_GD_JIS_CONV=$enableval -else - +else case e in #( + e) PHP_GD_JIS_CONV=no - + ;; +esac fi ext_output=$PHP_GD_JIS_CONV -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -35456,46 +38837,47 @@ libgd/gd_transform.c libgd/gd_crop.c libgd/gd_interpolation.c libgd/gd_matrix.c \ libgd/gd_bmp.c libgd/gd_tga.c" - for ac_func in fabsf floorf -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf" +if test "x$ac_cv_func_fabsf" = xyes +then : + printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf" +if test "x$ac_cv_func_floorf" = xyes +then : + printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h fi -done -$as_echo "#define HAVE_GD_BUNDLED 1" >>confdefs.h +printf "%s\n" "#define HAVE_GD_BUNDLED 1" >>confdefs.h -$as_echo "#define HAVE_GD_PNG 1" >>confdefs.h +printf "%s\n" "#define HAVE_GD_PNG 1" >>confdefs.h -$as_echo "#define HAVE_GD_BMP 1" >>confdefs.h +printf "%s\n" "#define HAVE_GD_BMP 1" >>confdefs.h -$as_echo "#define HAVE_GD_TGA 1" >>confdefs.h +printf "%s\n" "#define HAVE_GD_TGA 1" >>confdefs.h pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 -$as_echo_n "checking for zlib... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 +printf %s "checking for zlib... " >&6; } if test -n "$ZLIB_CFLAGS"; then pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -35509,10 +38891,10 @@ pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -35526,8 +38908,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -35553,10 +38935,10 @@ and ZLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -35566,12 +38948,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS ZLIB_LIBS=$pkg_cv_ZLIB_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -35717,17 +39099,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng" >&5 -$as_echo_n "checking for libpng... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpng" >&5 +printf %s "checking for libpng... " >&6; } if test -n "$PNG_CFLAGS"; then pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -35741,10 +39123,10 @@ pkg_cv_PNG_LIBS="$PNG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -35758,8 +39140,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -35785,10 +39167,10 @@ and PNG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -35798,12 +39180,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else PNG_CFLAGS=$pkg_cv_PNG_CFLAGS PNG_LIBS=$pkg_cv_PNG_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -35946,24 +39328,24 @@ done -$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBPNG 1" >>confdefs.h if test "$PHP_AVIF" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavif >= 0.8.2" >&5 -$as_echo_n "checking for libavif >= 0.8.2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libavif >= 0.8.2" >&5 +printf %s "checking for libavif >= 0.8.2... " >&6; } if test -n "$AVIF_CFLAGS"; then pkg_cv_AVIF_CFLAGS="$AVIF_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavif >= 0.8.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavif >= 0.8.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavif >= 0.8.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_AVIF_CFLAGS=`$PKG_CONFIG --cflags "libavif >= 0.8.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -35977,10 +39359,10 @@ pkg_cv_AVIF_LIBS="$AVIF_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavif >= 0.8.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavif >= 0.8.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "libavif >= 0.8.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_AVIF_LIBS=`$PKG_CONFIG --libs "libavif >= 0.8.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -35994,8 +39376,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -36021,10 +39403,10 @@ and AVIF_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -36034,12 +39416,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else AVIF_CFLAGS=$pkg_cv_AVIF_CFLAGS AVIF_LIBS=$pkg_cv_AVIF_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -36182,10 +39564,10 @@ done -$as_echo "#define HAVE_LIBAVIF 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBAVIF 1" >>confdefs.h -$as_echo "#define HAVE_GD_AVIF 1" >>confdefs.h +printf "%s\n" "#define HAVE_GD_AVIF 1" >>confdefs.h fi @@ -36193,17 +39575,17 @@ if test "$PHP_WEBP" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebp >= 0.2.0" >&5 -$as_echo_n "checking for libwebp >= 0.2.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libwebp >= 0.2.0" >&5 +printf %s "checking for libwebp >= 0.2.0... " >&6; } if test -n "$WEBP_CFLAGS"; then pkg_cv_WEBP_CFLAGS="$WEBP_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.2.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libwebp >= 0.2.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_WEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp >= 0.2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -36217,10 +39599,10 @@ pkg_cv_WEBP_LIBS="$WEBP_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.2.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libwebp >= 0.2.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_WEBP_LIBS=`$PKG_CONFIG --libs "libwebp >= 0.2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -36234,8 +39616,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -36261,10 +39643,10 @@ and WEBP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -36274,12 +39656,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else WEBP_CFLAGS=$pkg_cv_WEBP_CFLAGS WEBP_LIBS=$pkg_cv_WEBP_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -36422,10 +39804,10 @@ done -$as_echo "#define HAVE_LIBWEBP 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBWEBP 1" >>confdefs.h -$as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h +printf "%s\n" "#define HAVE_GD_WEBP 1" >>confdefs.h fi @@ -36433,17 +39815,17 @@ if test "$PHP_JPEG" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5 -$as_echo_n "checking for libjpeg... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5 +printf %s "checking for libjpeg... " >&6; } if test -n "$JPEG_CFLAGS"; then pkg_cv_JPEG_CFLAGS="$JPEG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5 ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_JPEG_CFLAGS=`$PKG_CONFIG --cflags "libjpeg" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -36457,10 +39839,10 @@ pkg_cv_JPEG_LIBS="$JPEG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5 ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_JPEG_LIBS=`$PKG_CONFIG --libs "libjpeg" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -36474,8 +39856,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -36501,10 +39883,10 @@ and JPEG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -36514,12 +39896,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else JPEG_CFLAGS=$pkg_cv_JPEG_CFLAGS JPEG_LIBS=$pkg_cv_JPEG_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -36662,10 +40044,10 @@ done -$as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBJPEG 1" >>confdefs.h -$as_echo "#define HAVE_GD_JPG 1" >>confdefs.h +printf "%s\n" "#define HAVE_GD_JPG 1" >>confdefs.h fi @@ -36673,17 +40055,17 @@ if test "$PHP_XPM" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xpm" >&5 -$as_echo_n "checking for xpm... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xpm" >&5 +printf %s "checking for xpm... " >&6; } if test -n "$XPM_CFLAGS"; then pkg_cv_XPM_CFLAGS="$XPM_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -36697,10 +40079,10 @@ pkg_cv_XPM_LIBS="$XPM_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -36714,8 +40096,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -36741,10 +40123,10 @@ and XPM_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -36754,12 +40136,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else XPM_CFLAGS=$pkg_cv_XPM_CFLAGS XPM_LIBS=$pkg_cv_XPM_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -36902,10 +40284,10 @@ done -$as_echo "#define HAVE_XPM 1" >>confdefs.h +printf "%s\n" "#define HAVE_XPM 1" >>confdefs.h -$as_echo "#define HAVE_GD_XPM 1" >>confdefs.h +printf "%s\n" "#define HAVE_GD_XPM 1" >>confdefs.h fi @@ -36913,17 +40295,17 @@ if test "$PHP_FREETYPE" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5 -$as_echo_n "checking for freetype2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5 +printf %s "checking for freetype2... " >&6; } if test -n "$FREETYPE2_CFLAGS"; then pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -36937,10 +40319,10 @@ pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -36954,8 +40336,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -36981,10 +40363,10 @@ and FREETYPE2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -36994,12 +40376,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } FREETYPE2_FOUND=true fi @@ -37143,20 +40525,20 @@ done -$as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBFREETYPE 1" >>confdefs.h -$as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h +printf "%s\n" "#define HAVE_GD_FREETYPE 1" >>confdefs.h fi if test "$PHP_GD_JIS_CONV" = "yes"; then -$as_echo "#define USE_GD_JISX0208 1" >>confdefs.h +printf "%s\n" "#define USE_GD_JISX0208 1" >>confdefs.h -$as_echo "#define JISX0208 1" >>confdefs.h +printf "%s\n" "#define JISX0208 1" >>confdefs.h fi @@ -37295,9 +40677,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_GD 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_GD 1" >>confdefs.h fi fi @@ -37440,20 +40820,22 @@ } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : LIBS=$old_LIBS -else - +else case e in #( + e) LIBS=$old_LIBS as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -37461,17 +40843,17 @@ extra_sources="gd_compat.c" pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib >= 2.1.0" >&5 -$as_echo_n "checking for gdlib >= 2.1.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdlib >= 2.1.0" >&5 +printf %s "checking for gdlib >= 2.1.0... " >&6; } if test -n "$GDLIB_CFLAGS"; then pkg_cv_GDLIB_CFLAGS="$GDLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.1.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gdlib >= 2.1.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GDLIB_CFLAGS=`$PKG_CONFIG --cflags "gdlib >= 2.1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -37485,10 +40867,10 @@ pkg_cv_GDLIB_LIBS="$GDLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.1.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gdlib >= 2.1.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GDLIB_LIBS=`$PKG_CONFIG --libs "gdlib >= 2.1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -37502,8 +40884,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -37529,10 +40911,10 @@ and GDLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -37542,12 +40924,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else GDLIB_CFLAGS=$pkg_cv_GDLIB_CFLAGS GDLIB_LIBS=$pkg_cv_GDLIB_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -37690,7 +41072,7 @@ done -$as_echo "#define HAVE_LIBGD 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBGD 1" >>confdefs.h @@ -37698,21 +41080,22 @@ LIBS="${LIBS} ${GD_SHARED_LIBADD}" old_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} ${GDLIB_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromPng in libgd" >&5 -$as_echo_n "checking for working gdImageCreateFromPng in libgd... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromPng in libgd" >&5 +printf %s "checking for working gdImageCreateFromPng in libgd... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -37733,22 +41116,25 @@ return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +if ac_fn_c_try_run "$LINENO" +then : -$as_echo "#define HAVE_GD_PNG 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +printf "%s\n" "#define HAVE_GD_PNG 1" >>confdefs.h -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi ac_ext=c @@ -37765,21 +41151,22 @@ LIBS="${LIBS} ${GD_SHARED_LIBADD}" old_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} ${GDLIB_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromAvif in libgd" >&5 -$as_echo_n "checking for working gdImageCreateFromAvif in libgd... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromAvif in libgd" >&5 +printf %s "checking for working gdImageCreateFromAvif in libgd... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -37800,22 +41187,25 @@ return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define HAVE_GD_AVIF 1" >>confdefs.h +if ac_fn_c_try_run "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -else +printf "%s\n" "#define HAVE_GD_AVIF 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi ac_ext=c @@ -37832,21 +41222,22 @@ LIBS="${LIBS} ${GD_SHARED_LIBADD}" old_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} ${GDLIB_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromWebp in libgd" >&5 -$as_echo_n "checking for working gdImageCreateFromWebp in libgd... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromWebp in libgd" >&5 +printf %s "checking for working gdImageCreateFromWebp in libgd... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -37867,22 +41258,25 @@ return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +if ac_fn_c_try_run "$LINENO" +then : -$as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +printf "%s\n" "#define HAVE_GD_WEBP 1" >>confdefs.h -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi ac_ext=c @@ -37899,21 +41293,22 @@ LIBS="${LIBS} ${GD_SHARED_LIBADD}" old_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} ${GDLIB_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromJpeg in libgd" >&5 -$as_echo_n "checking for working gdImageCreateFromJpeg in libgd... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromJpeg in libgd" >&5 +printf %s "checking for working gdImageCreateFromJpeg in libgd... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -37934,22 +41329,25 @@ return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_GD_JPG 1" >>confdefs.h +printf "%s\n" "#define HAVE_GD_JPG 1" >>confdefs.h -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi ac_ext=c @@ -37966,21 +41364,22 @@ LIBS="${LIBS} ${GD_SHARED_LIBADD}" old_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} ${GDLIB_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromXpm in libgd" >&5 -$as_echo_n "checking for working gdImageCreateFromXpm in libgd... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromXpm in libgd" >&5 +printf %s "checking for working gdImageCreateFromXpm in libgd... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -38001,22 +41400,25 @@ return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +if ac_fn_c_try_run "$LINENO" +then : -$as_echo "#define HAVE_GD_XPM 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +printf "%s\n" "#define HAVE_GD_XPM 1" >>confdefs.h -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi ac_ext=c @@ -38033,21 +41435,22 @@ LIBS="${LIBS} ${GD_SHARED_LIBADD}" old_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} ${GDLIB_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromBmp in libgd" >&5 -$as_echo_n "checking for working gdImageCreateFromBmp in libgd... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromBmp in libgd" >&5 +printf %s "checking for working gdImageCreateFromBmp in libgd... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -38068,22 +41471,25 @@ return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define HAVE_GD_BMP 1" >>confdefs.h +if ac_fn_c_try_run "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -else +printf "%s\n" "#define HAVE_GD_BMP 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi ac_ext=c @@ -38100,21 +41506,22 @@ LIBS="${LIBS} ${GD_SHARED_LIBADD}" old_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} ${GDLIB_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromTga in libgd" >&5 -$as_echo_n "checking for working gdImageCreateFromTga in libgd... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working gdImageCreateFromTga in libgd" >&5 +printf %s "checking for working gdImageCreateFromTga in libgd... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -38135,22 +41542,25 @@ return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +if ac_fn_c_try_run "$LINENO" +then : -$as_echo "#define HAVE_GD_TGA 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +printf "%s\n" "#define HAVE_GD_TGA 1" >>confdefs.h -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi ac_ext=c @@ -38267,57 +41677,66 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFontCacheShutdown in -lgd" >&5 -$as_echo_n "checking for gdFontCacheShutdown in -lgd... " >&6; } -if ${ac_cv_lib_gd_gdFontCacheShutdown+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdFontCacheShutdown in -lgd" >&5 +printf %s "checking for gdFontCacheShutdown in -lgd... " >&6; } +if test ${ac_cv_lib_gd_gdFontCacheShutdown+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lgd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char gdFontCacheShutdown (); +char gdFontCacheShutdown (void); int -main () +main (void) { return gdFontCacheShutdown (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_gd_gdFontCacheShutdown=yes -else - ac_cv_lib_gd_gdFontCacheShutdown=no +else case e in #( + e) ac_cv_lib_gd_gdFontCacheShutdown=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFontCacheShutdown" >&5 -$as_echo "$ac_cv_lib_gd_gdFontCacheShutdown" >&6; } -if test "x$ac_cv_lib_gd_gdFontCacheShutdown" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFontCacheShutdown" >&5 +printf "%s\n" "$ac_cv_lib_gd_gdFontCacheShutdown" >&6; } +if test "x$ac_cv_lib_gd_gdFontCacheShutdown" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h - +printf "%s\n" "#define HAVE_GD_FREETYPE 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_gd_gdFontCacheShutdown - + ;; +esac fi @@ -38425,57 +41844,66 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdVersionString in -lgd" >&5 -$as_echo_n "checking for gdVersionString in -lgd... " >&6; } -if ${ac_cv_lib_gd_gdVersionString+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdVersionString in -lgd" >&5 +printf %s "checking for gdVersionString in -lgd... " >&6; } +if test ${ac_cv_lib_gd_gdVersionString+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lgd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char gdVersionString (); +char gdVersionString (void); int -main () +main (void) { return gdVersionString (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_gd_gdVersionString=yes -else - ac_cv_lib_gd_gdVersionString=no +else case e in #( + e) ac_cv_lib_gd_gdVersionString=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdVersionString" >&5 -$as_echo "$ac_cv_lib_gd_gdVersionString" >&6; } -if test "x$ac_cv_lib_gd_gdVersionString" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdVersionString" >&5 +printf "%s\n" "$ac_cv_lib_gd_gdVersionString" >&6; } +if test "x$ac_cv_lib_gd_gdVersionString" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_GD_LIBVERSION 1" >>confdefs.h - +printf "%s\n" "#define HAVE_GD_LIBVERSION 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_gd_gdVersionString - + ;; +esac fi @@ -38583,57 +42011,66 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageGetInterpolationMethod in -lgd" >&5 -$as_echo_n "checking for gdImageGetInterpolationMethod in -lgd... " >&6; } -if ${ac_cv_lib_gd_gdImageGetInterpolationMethod+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdImageGetInterpolationMethod in -lgd" >&5 +printf %s "checking for gdImageGetInterpolationMethod in -lgd... " >&6; } +if test ${ac_cv_lib_gd_gdImageGetInterpolationMethod+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lgd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char gdImageGetInterpolationMethod (); +char gdImageGetInterpolationMethod (void); int -main () +main (void) { return gdImageGetInterpolationMethod (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_gd_gdImageGetInterpolationMethod=yes -else - ac_cv_lib_gd_gdImageGetInterpolationMethod=no +else case e in #( + e) ac_cv_lib_gd_gdImageGetInterpolationMethod=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGetInterpolationMethod" >&5 -$as_echo "$ac_cv_lib_gd_gdImageGetInterpolationMethod" >&6; } -if test "x$ac_cv_lib_gd_gdImageGetInterpolationMethod" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGetInterpolationMethod" >&5 +printf "%s\n" "$ac_cv_lib_gd_gdImageGetInterpolationMethod" >&6; } +if test "x$ac_cv_lib_gd_gdImageGetInterpolationMethod" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_GD_GET_INTERPOLATION 1" >>confdefs.h - +printf "%s\n" "#define HAVE_GD_GET_INTERPOLATION 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_gd_gdImageGetInterpolationMethod - + ;; +esac fi @@ -38772,9 +42209,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_GD 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_GD 1" >>confdefs.h fi fi @@ -39001,57 +42436,66 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreate in -lgd" >&5 -$as_echo_n "checking for gdImageCreate in -lgd... " >&6; } -if ${ac_cv_lib_gd_gdImageCreate+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdImageCreate in -lgd" >&5 +printf %s "checking for gdImageCreate in -lgd... " >&6; } +if test ${ac_cv_lib_gd_gdImageCreate+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lgd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char gdImageCreate (); +char gdImageCreate (void); int -main () +main (void) { return gdImageCreate (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_gd_gdImageCreate=yes -else - ac_cv_lib_gd_gdImageCreate=no +else case e in #( + e) ac_cv_lib_gd_gdImageCreate=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreate" >&5 -$as_echo "$ac_cv_lib_gd_gdImageCreate" >&6; } -if test "x$ac_cv_lib_gd_gdImageCreate" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreate" >&5 +printf "%s\n" "$ac_cv_lib_gd_gdImageCreate" >&6; } +if test "x$ac_cv_lib_gd_gdImageCreate" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_gd_gdImageCreate as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 - + ;; +esac fi fi @@ -39094,17 +42538,19 @@ php_with_gettext=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext support" >&5 -$as_echo_n "checking for GNU gettext support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext support" >&5 +printf %s "checking for GNU gettext support... " >&6; } # Check whether --with-gettext was given. -if test "${with_gettext+set}" = set; then : +if test ${with_gettext+y} +then : withval=$with_gettext; PHP_GETTEXT=$withval -else - +else case e in #( + e) PHP_GETTEXT=no test "$PHP_ENABLE_ALL" && PHP_GETTEXT=$PHP_ENABLE_ALL - + ;; +esac fi @@ -39130,8 +42576,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -39150,101 +42596,119 @@ O_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 -$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } -if ${ac_cv_lib_intl_bindtextdomain+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 +printf %s "checking for bindtextdomain in -lintl... " >&6; } +if test ${ac_cv_lib_intl_bindtextdomain+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char bindtextdomain (); +char bindtextdomain (void); int -main () +main (void) { return bindtextdomain (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_intl_bindtextdomain=yes -else - ac_cv_lib_intl_bindtextdomain=no +else case e in #( + e) ac_cv_lib_intl_bindtextdomain=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 -$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } -if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 +printf "%s\n" "$ac_cv_lib_intl_bindtextdomain" >&6; } +if test "x$ac_cv_lib_intl_bindtextdomain" = xyes +then : GETTEXT_LIBS=intl GETTEXT_CHECK_IN_LIB=intl -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5 -$as_echo_n "checking for bindtextdomain in -lc... " >&6; } -if ${ac_cv_lib_c_bindtextdomain+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5 +printf %s "checking for bindtextdomain in -lc... " >&6; } +if test ${ac_cv_lib_c_bindtextdomain+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char bindtextdomain (); +char bindtextdomain (void); int -main () +main (void) { return bindtextdomain (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_c_bindtextdomain=yes -else - ac_cv_lib_c_bindtextdomain=no +else case e in #( + e) ac_cv_lib_c_bindtextdomain=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5 -$as_echo "$ac_cv_lib_c_bindtextdomain" >&6; } -if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5 +printf "%s\n" "$ac_cv_lib_c_bindtextdomain" >&6; } +if test "x$ac_cv_lib_c_bindtextdomain" = xyes +then : GETTEXT_LIBS= GETTEXT_CHECK_IN_LIB=c -else - +else case e in #( + e) as_fn_error $? "Unable to find required gettext library" "$LINENO" 5 - + ;; +esac fi - + ;; +esac fi -$as_echo "#define HAVE_LIBINTL 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBINTL 1" >>confdefs.h ext_builddir=ext/gettext @@ -39380,9 +42844,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_GETTEXT 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_GETTEXT 1" >>confdefs.h fi fi @@ -39539,179 +43001,211 @@ fi - as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 -$as_echo_n "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$GETTEXT_CHECK_IN_LIB""_ngettext" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +printf %s "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char ngettext (); +char ngettext (void); int -main () +main (void) { return ngettext (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : - -$as_echo "#define HAVE_NGETTEXT 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : + +printf "%s\n" "#define HAVE_NGETTEXT 1" >>confdefs.h fi - as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 -$as_echo_n "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$GETTEXT_CHECK_IN_LIB""_dngettext" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +printf %s "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dngettext (); +char dngettext (void); int -main () +main (void) { return dngettext (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : - -$as_echo "#define HAVE_DNGETTEXT 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : + +printf "%s\n" "#define HAVE_DNGETTEXT 1" >>confdefs.h fi - as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 -$as_echo_n "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$GETTEXT_CHECK_IN_LIB""_dcngettext" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 +printf %s "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dcngettext (); +char dcngettext (void); int -main () +main (void) { return dcngettext (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : - -$as_echo "#define HAVE_DCNGETTEXT 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : + +printf "%s\n" "#define HAVE_DCNGETTEXT 1" >>confdefs.h fi - as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5 -$as_echo_n "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$GETTEXT_CHECK_IN_LIB""_bind_textdomain_codeset" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5 +printf %s "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char bind_textdomain_codeset (); +char bind_textdomain_codeset (void); int -main () +main (void) { return bind_textdomain_codeset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : -$as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h +printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h fi @@ -39824,17 +43318,19 @@ php_with_gmp=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP support" >&5 -$as_echo_n "checking for GNU MP support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU MP support" >&5 +printf %s "checking for GNU MP support... " >&6; } # Check whether --with-gmp was given. -if test "${with_gmp+set}" = set; then : +if test ${with_gmp+y} +then : withval=$with_gmp; PHP_GMP=$withval -else - +else case e in #( + e) PHP_GMP=no test "$PHP_ENABLE_ALL" && PHP_GMP=$PHP_ENABLE_ALL - + ;; +esac fi @@ -39860,8 +43356,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -39973,57 +43469,66 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_rootrem in -lgmp" >&5 -$as_echo_n "checking for __gmpz_rootrem in -lgmp... " >&6; } -if ${ac_cv_lib_gmp___gmpz_rootrem+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_rootrem in -lgmp" >&5 +printf %s "checking for __gmpz_rootrem in -lgmp... " >&6; } +if test ${ac_cv_lib_gmp___gmpz_rootrem+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lgmp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __gmpz_rootrem (); +char __gmpz_rootrem (void); int -main () +main (void) { return __gmpz_rootrem (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_gmp___gmpz_rootrem=yes -else - ac_cv_lib_gmp___gmpz_rootrem=no +else case e in #( + e) ac_cv_lib_gmp___gmpz_rootrem=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_rootrem" >&5 -$as_echo "$ac_cv_lib_gmp___gmpz_rootrem" >&6; } -if test "x$ac_cv_lib_gmp___gmpz_rootrem" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_rootrem" >&5 +printf "%s\n" "$ac_cv_lib_gmp___gmpz_rootrem" >&6; } +if test "x$ac_cv_lib_gmp___gmpz_rootrem" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_gmp___gmpz_rootrem as_fn_error $? "GNU MP Library version 4.2 or greater required." "$LINENO" 5 - + ;; +esac fi @@ -40162,57 +43667,66 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_rootrem in -lgmp" >&5 -$as_echo_n "checking for __gmpz_rootrem in -lgmp... " >&6; } -if ${ac_cv_lib_gmp___gmpz_rootrem+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_rootrem in -lgmp" >&5 +printf %s "checking for __gmpz_rootrem in -lgmp... " >&6; } +if test ${ac_cv_lib_gmp___gmpz_rootrem+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lgmp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __gmpz_rootrem (); +char __gmpz_rootrem (void); int -main () +main (void) { return __gmpz_rootrem (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_gmp___gmpz_rootrem=yes -else - ac_cv_lib_gmp___gmpz_rootrem=no +else case e in #( + e) ac_cv_lib_gmp___gmpz_rootrem=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_rootrem" >&5 -$as_echo "$ac_cv_lib_gmp___gmpz_rootrem" >&6; } -if test "x$ac_cv_lib_gmp___gmpz_rootrem" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_rootrem" >&5 +printf "%s\n" "$ac_cv_lib_gmp___gmpz_rootrem" >&6; } +if test "x$ac_cv_lib_gmp___gmpz_rootrem" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_gmp___gmpz_rootrem as_fn_error $? "GNU MP Library version 4.2 or greater required." "$LINENO" 5 - + ;; +esac fi @@ -40499,9 +44013,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_GMP 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_GMP 1" >>confdefs.h fi fi @@ -40626,7 +44138,7 @@ PHP_VAR_SUBST="$PHP_VAR_SUBST GMP_SHARED_LIBADD" -$as_echo "#define HAVE_GMP 1" >>confdefs.h +printf "%s\n" "#define HAVE_GMP 1" >>confdefs.h fi @@ -40636,17 +44148,19 @@ php_with_mhash=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash support" >&5 -$as_echo_n "checking for mhash support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mhash support" >&5 +printf %s "checking for mhash support... " >&6; } # Check whether --with-mhash was given. -if test "${with_mhash+set}" = set; then : +if test ${with_mhash+y} +then : withval=$with_mhash; PHP_MHASH=$withval -else - +else case e in #( + e) PHP_MHASH=no test "$PHP_ENABLE_ALL" && PHP_MHASH=$PHP_ENABLE_ALL - + ;; +esac fi @@ -40672,8 +44186,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -40684,103 +44198,113 @@ fi -$as_echo "#define PHP_MHASH_BC 1" >>confdefs.h +printf "%s\n" "#define PHP_MHASH_BC 1" >>confdefs.h fi if test $ac_cv_c_bigendian_php = yes; then EXT_HASH_SHA3_SOURCES="hash_sha3.c" -$as_echo "#define HAVE_SLOW_HASH3 1" >>confdefs.h +printf "%s\n" "#define HAVE_SLOW_HASH3 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Use SHA3 slow implementation on bigendian\"" >&5 -$as_echo "$as_me: WARNING: \"Use SHA3 slow implementation on bigendian\"" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Use SHA3 slow implementation on bigendian\"" >&5 +printf "%s\n" "$as_me: WARNING: \"Use SHA3 slow implementation on bigendian\"" >&2;} else # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +printf %s "checking size of long... " >&6; } +if test ${ac_cv_sizeof_long+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_long" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 -$as_echo_n "checking if we're at 64-bit platform... " >&6; } - if test "$ac_cv_sizeof_long" -eq 4; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +printf %s "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } SHA3_DIR="sha3/generic32lc" SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-inplace32BI.c" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } SHA3_DIR="sha3/generic64lc" SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-opt64.c" - + ;; +esac fi EXT_HASH_SHA3_SOURCES="$SHA3_OPT_SRC $SHA3_DIR/KeccakHash.c $SHA3_DIR/KeccakSponge.c hash_sha3.c" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-implicit-fallthrough" >&5 -$as_echo_n "checking whether C compiler accepts -Wno-implicit-fallthrough... " >&6; } -if ${ax_cv_check_cflags__Werror__Wno_implicit_fallthrough+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-implicit-fallthrough" >&5 +printf %s "checking whether C compiler accepts -Wno-implicit-fallthrough... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wno_implicit_fallthrough+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -Wno-implicit-fallthrough" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=yes -else - ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=no +else case e in #( + e) ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&5 -$as_echo "$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&6; } -if test "x$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" = xyes +then : PHP_HASH_CFLAGS="$PHP_HASH_CFLAGS -Wno-implicit-fallthrough" -else - : +else case e in #( + e) : ;; +esac fi @@ -40944,9 +44468,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_HASH 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_HASH 1" >>confdefs.h fi fi @@ -41094,17 +44616,19 @@ php_with_iconv=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv support" >&5 -$as_echo_n "checking for iconv support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv support" >&5 +printf %s "checking for iconv support... " >&6; } # Check whether --with-iconv was given. -if test "${with_iconv+set}" = set; then : +if test ${with_iconv+y} +then : withval=$with_iconv; PHP_ICONV=$withval -else - +else case e in #( + e) PHP_ICONV=yes test "$PHP_ENABLE_ALL" && PHP_ICONV=$PHP_ENABLE_ALL - + ;; +esac fi @@ -41130,8 +44654,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -41146,23 +44670,26 @@ LIBS_save="$LIBS" LIBS= ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" -if test "x$ac_cv_func_iconv" = xyes; then : +if test "x$ac_cv_func_iconv" = xyes +then : found_iconv=yes -else - +else case e in #( + e) ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv" -if test "x$ac_cv_func_libiconv" = xyes; then : +if test "x$ac_cv_func_libiconv" = xyes +then : -$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBICONV 1" >>confdefs.h found_iconv=yes fi - + ;; +esac fi LIBS="$LIBS_save" @@ -41299,60 +44826,68 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 -$as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$iconv_lib_name""_libiconv" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 +printf %s "checking for libiconv in -l$iconv_lib_name... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$iconv_lib_name $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char libiconv (); +char libiconv (void); int -main () +main (void) { return libiconv (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared found_iconv=yes -$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h - +printf "%s\n" "#define HAVE_LIBICONV 1" >>confdefs.h -$as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h +printf "%s\n" "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$iconv_lib_name_libiconv @@ -41464,45 +44999,53 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 -$as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$iconv_lib_name""_iconv" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 +printf %s "checking for iconv in -l$iconv_lib_name... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$iconv_lib_name $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char iconv (); +char iconv (void); int -main () +main (void) { return iconv (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -41510,17 +45053,19 @@ found_iconv=yes -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$iconv_lib_name_iconv - + ;; +esac fi - + ;; +esac fi fi @@ -41528,7 +45073,7 @@ if test "$found_iconv" = "yes"; then -$as_echo "#define HAVE_ICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h if test -n "$ICONV_DIR"; then @@ -41675,44 +45220,47 @@ LDFLAGS="$ICONV_SHARED_LIBADD $LDFLAGS" CFLAGS="$INCLUDES $CFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is glibc's" >&5 -$as_echo_n "checking if iconv is glibc's... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if iconv is glibc's" >&5 +printf %s "checking if iconv is glibc's... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { gnu_get_libc_version(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } iconv_impl_name="glibc" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$iconv_impl_name"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using GNU libiconv" >&5 -$as_echo_n "checking if using GNU libiconv... " >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if using GNU libiconv" >&5 +printf %s "checking if using GNU libiconv... " >&6; } + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cross-compiling" >&5 -$as_echo "no, cross-compiling" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, cross-compiling" >&5 +printf "%s\n" "no, cross-compiling" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -41722,130 +45270,138 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } iconv_impl_name="gnu_libiconv" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi fi if test -z "$iconv_impl_name"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is Konstantin Chuguev's" >&5 -$as_echo_n "checking if iconv is Konstantin Chuguev's... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if iconv is Konstantin Chuguev's" >&5 +printf %s "checking if iconv is Konstantin Chuguev's... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { iconv_ccs_init(NULL, NULL); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } iconv_impl_name="bsd" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi if test -z "$iconv_impl_name"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using IBM iconv" >&5 -$as_echo_n "checking if using IBM iconv... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if using IBM iconv" >&5 +printf %s "checking if using IBM iconv... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { cstoccsid(""); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } iconv_impl_name="ibm" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi case "$iconv_impl_name" in gnu_libiconv ) -$as_echo "#define PHP_ICONV_IMPL \"libiconv\"" >>confdefs.h +printf "%s\n" "#define PHP_ICONV_IMPL \"libiconv\"" >>confdefs.h -$as_echo "#define HAVE_LIBICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBICONV 1" >>confdefs.h ;; bsd ) -$as_echo "#define HAVE_BSD_ICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_BSD_ICONV 1" >>confdefs.h -$as_echo "#define PHP_ICONV_IMPL \"BSD iconv\"" >>confdefs.h +printf "%s\n" "#define PHP_ICONV_IMPL \"BSD iconv\"" >>confdefs.h ;; glibc ) -$as_echo "#define HAVE_GLIBC_ICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_GLIBC_ICONV 1" >>confdefs.h -$as_echo "#define PHP_ICONV_IMPL \"glibc\"" >>confdefs.h +printf "%s\n" "#define PHP_ICONV_IMPL \"glibc\"" >>confdefs.h ;; ibm ) -$as_echo "#define HAVE_IBM_ICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_IBM_ICONV 1" >>confdefs.h -$as_echo "#define PHP_ICONV_IMPL \"IBM iconv\"" >>confdefs.h +printf "%s\n" "#define PHP_ICONV_IMPL \"IBM iconv\"" >>confdefs.h ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports errno" >&5 -$as_echo_n "checking if iconv supports errno... " >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if iconv supports errno" >&5 +printf %s "checking if iconv supports errno... " >&6; } + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -41866,35 +45422,39 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } as_fn_error $? "iconv does not support errno" "$LINENO" 5 - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports //IGNORE" >&5 -$as_echo_n "checking if iconv supports //IGNORE... " >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if iconv supports //IGNORE" >&5 +printf %s "checking if iconv supports //IGNORE... " >&6; } + if test "$cross_compiling" = yes +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -$as_echo "#define ICONV_BROKEN_IGNORE 0" >>confdefs.h +printf "%s\n" "#define ICONV_BROKEN_IGNORE 0" >>confdefs.h -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -41917,25 +45477,28 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +if ac_fn_c_try_run "$LINENO" +then : -$as_echo "#define ICONV_BROKEN_IGNORE 0" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +printf "%s\n" "#define ICONV_BROKEN_IGNORE 0" >>confdefs.h -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "#define ICONV_BROKEN_IGNORE 1" >>confdefs.h +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +printf "%s\n" "#define ICONV_BROKEN_IGNORE 1" >>confdefs.h + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi @@ -42076,9 +45639,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_ICONV 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_ICONV 1" >>confdefs.h fi fi @@ -42241,17 +45802,19 @@ php_with_imap=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP support" >&5 -$as_echo_n "checking for IMAP support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IMAP support" >&5 +printf %s "checking for IMAP support... " >&6; } # Check whether --with-imap was given. -if test "${with_imap+set}" = set; then : +if test ${with_imap+y} +then : withval=$with_imap; PHP_IMAP=$withval -else - +else case e in #( + e) PHP_IMAP=no test "$PHP_ENABLE_ALL" && PHP_IMAP=$PHP_ENABLE_ALL - + ;; +esac fi @@ -42277,8 +45840,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -42286,23 +45849,25 @@ php_with_kerberos=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP Kerberos support" >&5 -$as_echo_n "checking for IMAP Kerberos support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IMAP Kerberos support" >&5 +printf %s "checking for IMAP Kerberos support... " >&6; } # Check whether --with-kerberos was given. -if test "${with_kerberos+set}" = set; then : +if test ${with_kerberos+y} +then : withval=$with_kerberos; PHP_KERBEROS=$withval -else - +else case e in #( + e) PHP_KERBEROS=no - + ;; +esac fi ext_output=$PHP_KERBEROS -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -42310,23 +45875,25 @@ php_with_imap_ssl=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP SSL support" >&5 -$as_echo_n "checking for IMAP SSL support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IMAP SSL support" >&5 +printf %s "checking for IMAP SSL support... " >&6; } # Check whether --with-imap-ssl was given. -if test "${with_imap_ssl+set}" = set; then : +if test ${with_imap_ssl+y} +then : withval=$with_imap_ssl; PHP_IMAP_SSL=$withval -else - +else case e in #( + e) PHP_IMAP_SSL=no - + ;; +esac fi ext_output=$PHP_IMAP_SSL -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -42469,9 +46036,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_IMAP 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_IMAP 1" >>confdefs.h fi fi @@ -42593,13 +46158,13 @@ fi -$as_echo "#define HAVE_IMAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP 1" >>confdefs.h for i in $PHP_IMAP /usr/local /usr; do if test -r "$i/c-client.h"; then -$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP2000 1" >>confdefs.h IMAP_DIR=$i IMAP_INC_DIR=$i @@ -42611,7 +46176,7 @@ elif test -r "$i/include/c-client/c-client.h"; then -$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP2000 1" >>confdefs.h IMAP_DIR=$i IMAP_INC_DIR=$i/include/c-client @@ -42623,7 +46188,7 @@ elif test -r "$i/include/imap/c-client.h"; then -$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP2000 1" >>confdefs.h IMAP_DIR=$i IMAP_INC_DIR=$i/include/imap @@ -42635,7 +46200,7 @@ elif test -r "$i/include/c-client.h"; then -$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP2000 1" >>confdefs.h IMAP_DIR=$i IMAP_INC_DIR=$i/include @@ -42647,7 +46212,7 @@ elif test -r "$i/imap/c-client.h"; then -$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP2000 1" >>confdefs.h IMAP_DIR=$i IMAP_INC_DIR=$i/imap @@ -42659,7 +46224,7 @@ elif test -r "$i/c-client/c-client.h"; then -$as_echo "#define HAVE_IMAP2000 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP2000 1" >>confdefs.h IMAP_DIR=$i IMAP_INC_DIR=$i/c-client @@ -42678,31 +46243,33 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "mail_fetch_overview_sequence" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "mail_fetch_overview_sequence" >/dev/null 2>&1 +then : -$as_echo "#define HAVE_IMAP2004 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP2004 1" >>confdefs.h fi -rm -f conftest* +rm -rf conftest* old_CFLAGS=$CFLAGS CFLAGS="-I$IMAP_INC_DIR" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8_mime2text signature" >&5 -$as_echo_n "checking for utf8_mime2text signature... " >&6; } -if ${ac_cv_utf8_mime2text+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utf8_mime2text signature" >&5 +printf %s "checking for utf8_mime2text signature... " >&6; } +if test ${ac_cv_utf8_mime2text+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int -main () +main (void) { SIZEDTEXT *src, *dst; @@ -42712,41 +46279,45 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_utf8_mime2text=old -else - +else case e in #( + e) ac_cv_utf8_mime2text=new - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_mime2text" >&5 -$as_echo "$ac_cv_utf8_mime2text" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_mime2text" >&5 +printf "%s\n" "$ac_cv_utf8_mime2text" >&6; } if test "$ac_cv_utf8_mime2text" = "new"; then -$as_echo "#define HAVE_NEW_MIME2TEXT 1" >>confdefs.h +printf "%s\n" "#define HAVE_NEW_MIME2TEXT 1" >>confdefs.h fi CFLAGS=$old_CFLAGS old_CFLAGS=$CFLAGS CFLAGS="-I$IMAP_INC_DIR" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for U8T_DECOMPOSE" >&5 -$as_echo_n "checking for U8T_DECOMPOSE... " >&6; } -if ${ac_cv_u8t_decompose+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for U8T_DECOMPOSE" >&5 +printf %s "checking for U8T_DECOMPOSE... " >&6; } +if test ${ac_cv_u8t_decompose+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { int i = U8T_CANONICAL; @@ -42755,20 +46326,23 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_u8t_decompose=yes -else - +else case e in #( + e) ac_cv_u8t_decompose=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u8t_decompose" >&5 -$as_echo "$ac_cv_u8t_decompose" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u8t_decompose" >&5 +printf "%s\n" "$ac_cv_u8t_decompose" >&6; } CFLAGS=$old_CFLAGS if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then @@ -42790,14 +46364,15 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "this_is_true" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "this_is_true" >/dev/null 2>&1 +then : -$as_echo "#define HAVE_IMAP2001 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP2001 1" >>confdefs.h fi -rm -f conftest* +rm -rf conftest* CPPFLAGS=$old_CPPFLAGS @@ -42906,43 +46481,51 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 -$as_echo_n "checking for pam_start in -lpam... " >&6; } -if ${ac_cv_lib_pam_pam_start+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 +printf %s "checking for pam_start in -lpam... " >&6; } +if test ${ac_cv_lib_pam_pam_start+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lpam $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char pam_start (); +char pam_start (void); int -main () +main (void) { return pam_start (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pam_pam_start=yes -else - ac_cv_lib_pam_pam_start=no +else case e in #( + e) ac_cv_lib_pam_pam_start=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 -$as_echo "$ac_cv_lib_pam_pam_start" >&6; } -if test "x$ac_cv_lib_pam_pam_start" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 +printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; } +if test "x$ac_cv_lib_pam_pam_start" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -42971,17 +46554,18 @@ -$as_echo "#define HAVE_LIBPAM 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_pam_pam_start - + ;; +esac fi @@ -43090,43 +46674,51 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 -$as_echo_n "checking for crypt in -lcrypt... " >&6; } -if ${ac_cv_lib_crypt_crypt+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 +printf %s "checking for crypt in -lcrypt... " >&6; } +if test ${ac_cv_lib_crypt_crypt+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char crypt (); +char crypt (void); int -main () +main (void) { return crypt (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_crypt_crypt=yes -else - ac_cv_lib_crypt_crypt=no +else case e in #( + e) ac_cv_lib_crypt_crypt=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 -$as_echo "$ac_cv_lib_crypt_crypt" >&6; } -if test "x$ac_cv_lib_crypt_crypt" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 +printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; } +if test "x$ac_cv_lib_crypt_crypt" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -43155,17 +46747,18 @@ -$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBCRYPT 1" >>confdefs.h -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_crypt_crypt - + ;; +esac fi @@ -43307,17 +46900,17 @@ if test "$PHP_KERBEROS" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5-gssapi krb5" >&5 -$as_echo_n "checking for krb5-gssapi krb5... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5-gssapi krb5" >&5 +printf %s "checking for krb5-gssapi krb5... " >&6; } if test -n "$KERBEROS_CFLAGS"; then pkg_cv_KERBEROS_CFLAGS="$KERBEROS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_KERBEROS_CFLAGS=`$PKG_CONFIG --cflags "krb5-gssapi krb5" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -43331,10 +46924,10 @@ pkg_cv_KERBEROS_LIBS="$KERBEROS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi krb5\""; } >&5 ($PKG_CONFIG --exists --print-errors "krb5-gssapi krb5") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_KERBEROS_LIBS=`$PKG_CONFIG --libs "krb5-gssapi krb5" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -43348,8 +46941,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -43375,10 +46968,10 @@ and KERBEROS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -43388,12 +46981,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else KERBEROS_CFLAGS=$pkg_cv_KERBEROS_CFLAGS KERBEROS_LIBS=$pkg_cv_KERBEROS_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -43538,7 +47131,7 @@ -$as_echo "#define HAVE_IMAP_KRB 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP_KRB 1" >>confdefs.h else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43547,7 +47140,8 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "auth_gss" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "auth_gss" >/dev/null 2>&1 +then : as_fn_error $? "This c-client library is built with Kerberos support. @@ -43555,7 +47149,7 @@ " "$LINENO" 5 fi -rm -f conftest* +rm -rf conftest* fi @@ -43569,17 +47163,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.2" >&5 -$as_echo_n "checking for openssl >= 1.0.2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.2" >&5 +printf %s "checking for openssl >= 1.0.2... " >&6; } if test -n "$OPENSSL_CFLAGS"; then pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -43593,10 +47187,10 @@ pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -43610,8 +47204,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -43637,10 +47231,10 @@ and OPENSSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -43650,12 +47244,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } found_openssl=yes fi @@ -43801,7 +47395,7 @@ -$as_echo "#define HAVE_IMAP_SSL 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP_SSL 1" >>confdefs.h else @@ -43819,7 +47413,8 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then : + $EGREP_TRADITIONAL "ssl_onceonlyinit" >/dev/null 2>&1 +then : as_fn_error $? "This c-client library is built with SSL support. @@ -43827,7 +47422,7 @@ " "$LINENO" 5 fi -rm -f conftest* +rm -rf conftest* fi @@ -43872,22 +47467,24 @@ } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : LIBS=$old_LIBS -$as_echo "#define HAVE_IMAP_AUTH_GSS 1" >>confdefs.h - +printf "%s\n" "#define HAVE_IMAP_AUTH_GSS 1" >>confdefs.h -else +else case e in #( + e) LIBS=$old_LIBS - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -43900,16 +47497,17 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8_to_mutf7" >&5 -$as_echo_n "checking for utf8_to_mutf7... " >&6; } -if ${ac_cv_utf8_to_mutf7+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utf8_to_mutf7" >&5 +printf %s "checking for utf8_to_mutf7... " >&6; } +if test ${ac_cv_utf8_to_mutf7+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { unsigned char c = '\0'; @@ -43919,23 +47517,26 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_IMAP_MUTF7 1" >>confdefs.h +printf "%s\n" "#define HAVE_IMAP_MUTF7 1" >>confdefs.h ac_cv_utf8_to_mutf7=yes -else - +else case e in #( + e) ac_cv_utf8_to_mutf7=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_to_mutf7" >&5 -$as_echo "$ac_cv_utf8_to_mutf7" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_to_mutf7" >&5 +printf "%s\n" "$ac_cv_utf8_to_mutf7" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -43944,8 +47545,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rfc822_output_address_list function present" >&5 -$as_echo_n "checking whether rfc822_output_address_list function present... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rfc822_output_address_list function present" >&5 +printf %s "checking whether rfc822_output_address_list function present... " >&6; } old_LIBS=$LIBS LIBS=" @@ -43987,32 +47588,34 @@ } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : LIBS=$old_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1" >>confdefs.h +printf "%s\n" "#define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1" >>confdefs.h -else - +else case e in #( + e) LIBS=$old_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build with IMAP works" >&5 -$as_echo_n "checking whether build with IMAP works... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build with IMAP works" >&5 +printf %s "checking whether build with IMAP works... " >&6; } old_LIBS=$LIBS @@ -44051,25 +47654,27 @@ } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : LIBS=$old_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -else +else case e in #( + e) LIBS=$old_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -44081,16 +47686,18 @@ php_enable_intl=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalization support" >&5 -$as_echo_n "checking whether to enable internationalization support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalization support" >&5 +printf %s "checking whether to enable internationalization support... " >&6; } # Check whether --enable-intl was given. -if test "${enable_intl+set}" = set; then : +if test ${enable_intl+y} +then : enableval=$enable_intl; PHP_INTL=$enableval -else - +else case e in #( + e) PHP_INTL=no test "$PHP_ENABLE_ALL" && PHP_INTL=$PHP_ENABLE_ALL - + ;; +esac fi @@ -44116,8 +47723,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -44126,17 +47733,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc >= 50.1 icu-io icu-i18n" >&5 -$as_echo_n "checking for icu-uc >= 50.1 icu-io icu-i18n... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icu-uc >= 50.1 icu-io icu-i18n" >&5 +printf %s "checking for icu-uc >= 50.1 icu-io icu-i18n... " >&6; } if test -n "$ICU_CFLAGS"; then pkg_cv_ICU_CFLAGS="$ICU_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 50.1 icu-io icu-i18n\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 50.1 icu-io icu-i18n\""; } >&5 ($PKG_CONFIG --exists --print-errors "icu-uc >= 50.1 icu-io icu-i18n") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc >= 50.1 icu-io icu-i18n" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -44150,10 +47757,10 @@ pkg_cv_ICU_LIBS="$ICU_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 50.1 icu-io icu-i18n\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 50.1 icu-io icu-i18n\""; } >&5 ($PKG_CONFIG --exists --print-errors "icu-uc >= 50.1 icu-io icu-i18n") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc >= 50.1 icu-io icu-i18n" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -44167,8 +47774,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -44194,10 +47801,10 @@ and ICU_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -44207,12 +47814,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ICU_CFLAGS=$pkg_cv_ICU_CFLAGS ICU_LIBS=$pkg_cv_ICU_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -44359,7 +47966,8 @@ ICU_CFLAGS="$ICU_CFLAGS -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1" ICU_CXXFLAGS="$ICU_CXXFLAGS -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit" - if $PKG_CONFIG icu-io --atleast-version=60; then : + if $PKG_CONFIG icu-io --atleast-version=60 +then : ICU_CFLAGS="$ICU_CFLAGS -DU_HIDE_OBSOLETE_UTF_OLD_H=1" fi @@ -44597,9 +48205,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_INTL 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_INTL 1" >>confdefs.h fi fi @@ -44851,42 +48457,48 @@ CXX=$CCC else if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CXX"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -44895,42 +48507,48 @@ fi if test -z "$CXX"; then ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CXX"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CXX+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +printf "%s\n" "$ac_ct_CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -44942,8 +48560,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX @@ -44953,7 +48571,7 @@ fi fi # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -44963,7 +48581,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -44973,20 +48591,21 @@ cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } -if ${ac_cv_cxx_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 +printf %s "checking whether the compiler supports GNU C++... " >&6; } +if test ${ac_cv_cxx_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -44996,30 +48615,36 @@ return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi -ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 -$as_echo_n "checking whether $CXX accepts -g... " >&6; } -if ${ac_cv_prog_cxx_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +printf %s "checking whether $CXX accepts -g... " >&6; } +if test ${ac_cv_prog_cxx_g+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -45027,57 +48652,63 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes -else - CXXFLAGS="" +else case e in #( + e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : -else - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in #( + e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 -$as_echo "$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } +if test $ac_test_CXXFLAGS; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then @@ -45092,6 +48723,106 @@ CXXFLAGS= fi fi +ac_prog_cxx_stdcxx=no +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 +printf %s "checking for $CXX option to enable C++11 features... " >&6; } +if test ${ac_cv_prog_cxx_cxx11+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_prog_cxx_cxx11=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx11_program +_ACEOF +for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx11" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX ;; +esac +fi + +if test "x$ac_cv_prog_cxx_cxx11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; +esac +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac +fi +fi +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 +printf %s "checking for $CXX option to enable C++98 features... " >&6; } +if test ${ac_cv_prog_cxx_cxx98+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_prog_cxx_cxx98=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx98_program +_ACEOF +for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx98=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx98" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX ;; +esac +fi + +if test "x$ac_cv_prog_cxx_cxx98" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx98" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; +esac +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac +fi +fi + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -45103,38 +48834,35 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +printf %s "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then - if ${ac_cv_prog_CXXCPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" + if test ${ac_cv_prog_CXXCPP+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # Double quotes because $CXX needs to be expanded + for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -45144,56 +48872,56 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi done ac_cv_prog_CXXCPP=$CXXCPP - + ;; +esac fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +printf "%s\n" "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -45203,26 +48931,30 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -45245,13 +48977,14 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if intl requires -std=gnu++17" >&5 -$as_echo_n "checking if intl requires -std=gnu++17... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if intl requires -std=gnu++17" >&5 +printf %s "checking if intl requires -std=gnu++17... " >&6; } -if $PKG_CONFIG icu-uc --atleast-version=74; then : +if $PKG_CONFIG icu-uc --atleast-version=74 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -45261,13 +48994,14 @@ for alternative in ${ax_cxx_compile_alternatives}; do for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do - cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_CXX="$CXX" + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | sed "$as_sed_sh"` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 +printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -46058,17 +49792,20 @@ _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else - eval $cachevar=no +else case e in #( + e) eval $cachevar=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CXX="$ac_save_CXX" +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CXX="$ac_save_CXX" ;; +esac fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then eval PHP_INTL_STDCXX="$switch" ac_success=yes @@ -46092,16 +49829,16 @@ fi fi if test x$ac_success = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5 -$as_echo "$as_me: No compiler with C++17 support was found" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5 +printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;} fi -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -46111,13 +49848,14 @@ for alternative in ${ax_cxx_compile_alternatives}; do for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do - cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_CXX="$CXX" + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 +printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -46410,17 +50148,20 @@ _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else - eval $cachevar=no +else case e in #( + e) eval $cachevar=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CXX="$ac_save_CXX" +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CXX="$ac_save_CXX" ;; +esac fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then eval PHP_INTL_STDCXX="$switch" ac_success=yes @@ -46444,12 +50185,13 @@ fi fi if test x$ac_success = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 -$as_echo "$as_me: No compiler with C++11 support was found" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 +printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;} fi - + ;; +esac fi PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS" @@ -46641,7 +50383,7 @@ -$as_echo "#define HAVE_JSON 1 " >>confdefs.h +printf "%s\n" "#define HAVE_JSON 1 " >>confdefs.h ext_builddir=ext/json @@ -46783,9 +50525,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_JSON 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_JSON 1" >>confdefs.h fi fi @@ -46947,17 +50687,19 @@ php_with_ldap=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5 -$as_echo_n "checking for LDAP support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5 +printf %s "checking for LDAP support... " >&6; } # Check whether --with-ldap was given. -if test "${with_ldap+set}" = set; then : +if test ${with_ldap+y} +then : withval=$with_ldap; PHP_LDAP=$withval -else - +else case e in #( + e) PHP_LDAP=no test "$PHP_ENABLE_ALL" && PHP_LDAP=$PHP_ENABLE_ALL - + ;; +esac fi @@ -46983,8 +50725,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -46992,23 +50734,25 @@ php_with_ldap_sasl=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP Cyrus SASL support" >&5 -$as_echo_n "checking whether to build with LDAP Cyrus SASL support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP Cyrus SASL support" >&5 +printf %s "checking whether to build with LDAP Cyrus SASL support... " >&6; } # Check whether --with-ldap-sasl was given. -if test "${with_ldap_sasl+set}" = set; then : +if test ${with_ldap_sasl+y} +then : withval=$with_ldap_sasl; PHP_LDAP_SASL=$withval -else - +else case e in #( + e) PHP_LDAP_SASL=no - + ;; +esac fi ext_output=$PHP_LDAP_SASL -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -47149,9 +50893,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_LDAP 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_LDAP 1" >>confdefs.h fi fi @@ -47288,51 +51030,55 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +printf %s "checking size of long... " >&6; } +if test ${ac_cv_sizeof_long+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_long" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 -$as_echo_n "checking if we're at 64-bit platform... " >&6; } - if test "$ac_cv_sizeof_long" -eq 4; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +printf %s "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } PHP_OCI8_IC_LIBDIR_SUFFIX="" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } PHP_OCI8_IC_LIBDIR_SUFFIX=64 - + ;; +esac fi OCISDKRPMINC=`echo "$i" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` @@ -47363,51 +51109,55 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +printf %s "checking size of long... " >&6; } +if test ${ac_cv_sizeof_long+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_long" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 -$as_echo_n "checking if we're at 64-bit platform... " >&6; } - if test "$ac_cv_sizeof_long" -eq 4; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +printf %s "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } PHP_OCI8_IC_LIBDIR_SUFFIX="" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } PHP_OCI8_IC_LIBDIR_SUFFIX=64 - + ;; +esac fi OCISDKRPMINC=`echo "$PHP_LDAP" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` @@ -47825,7 +51575,7 @@ -$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_ORALDAP 1" >>confdefs.h elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.11.1 || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libclntsh.$SHLIB_SUFFIX_NAME.11.1; then @@ -47927,7 +51677,7 @@ -$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_ORALDAP 1" >>confdefs.h elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libclntsh.$SHLIB_SUFFIX_NAME; then @@ -48029,7 +51779,7 @@ -$as_echo "#define HAVE_ORALDAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_ORALDAP 1" >>confdefs.h else @@ -48071,7 +51821,7 @@ PHP_VAR_SUBST="$PHP_VAR_SUBST LDAP_SHARED_LIBADD" -$as_echo "#define HAVE_LDAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_LDAP 1" >>confdefs.h _SAVE_CPPFLAGS=$CPPFLAGS @@ -48079,64 +51829,117 @@ CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR" LIBS="$LIBS $LDAP_SHARED_LIBADD" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3 arg ldap_set_rebind_proc" >&5 -$as_echo_n "checking for 3 arg ldap_set_rebind_proc... " >&6; } -if ${ac_cv_3arg_setrebindproc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 3 arg ldap_set_rebind_proc" >&5 +printf %s "checking for 3 arg ldap_set_rebind_proc... " >&6; } +if test ${ac_cv_3arg_setrebindproc+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { ldap_set_rebind_proc(0,0,0) ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_3arg_setrebindproc=yes -else - ac_cv_3arg_setrebindproc=no +else case e in #( + e) ac_cv_3arg_setrebindproc=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_3arg_setrebindproc" >&5 -$as_echo "$ac_cv_3arg_setrebindproc" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_3arg_setrebindproc" >&5 +printf "%s\n" "$ac_cv_3arg_setrebindproc" >&6; } if test "$ac_cv_3arg_setrebindproc" = yes; then -$as_echo "#define HAVE_3ARG_SETREBINDPROC 1" >>confdefs.h +printf "%s\n" "#define HAVE_3ARG_SETREBINDPROC 1" >>confdefs.h fi - for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s ldap_control_find ldap_parse_extended_result ldap_extended_operation ldap_extended_operation_s ldap_passwd ldap_whoami_s ldap_refresh_s -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "ldap_parse_result" "ac_cv_func_ldap_parse_result" +if test "x$ac_cv_func_ldap_parse_result" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_PARSE_RESULT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_parse_reference" "ac_cv_func_ldap_parse_reference" +if test "x$ac_cv_func_ldap_parse_reference" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_PARSE_REFERENCE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s" +if test "x$ac_cv_func_ldap_start_tls_s" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_START_TLS_S 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_control_find" "ac_cv_func_ldap_control_find" +if test "x$ac_cv_func_ldap_control_find" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_CONTROL_FIND 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_parse_extended_result" "ac_cv_func_ldap_parse_extended_result" +if test "x$ac_cv_func_ldap_parse_extended_result" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_PARSE_EXTENDED_RESULT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_extended_operation" "ac_cv_func_ldap_extended_operation" +if test "x$ac_cv_func_ldap_extended_operation" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_EXTENDED_OPERATION 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_extended_operation_s" "ac_cv_func_ldap_extended_operation_s" +if test "x$ac_cv_func_ldap_extended_operation_s" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_EXTENDED_OPERATION_S 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_passwd" "ac_cv_func_ldap_passwd" +if test "x$ac_cv_func_ldap_passwd" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_PASSWD 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_whoami_s" "ac_cv_func_ldap_whoami_s" +if test "x$ac_cv_func_ldap_whoami_s" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_WHOAMI_S 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ldap_refresh_s" "ac_cv_func_ldap_refresh_s" +if test "x$ac_cv_func_ldap_refresh_s" = xyes +then : + printf "%s\n" "#define HAVE_LDAP_REFRESH_S 1" >>confdefs.h fi -done if test "$PHP_LDAP_SASL" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsasl2" >&5 -$as_echo_n "checking for libsasl2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsasl2" >&5 +printf %s "checking for libsasl2... " >&6; } if test -n "$SASL_CFLAGS"; then pkg_cv_SASL_CFLAGS="$SASL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsasl2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsasl2\""; } >&5 ($PKG_CONFIG --exists --print-errors "libsasl2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SASL_CFLAGS=`$PKG_CONFIG --cflags "libsasl2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -48150,10 +51953,10 @@ pkg_cv_SASL_LIBS="$SASL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsasl2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsasl2\""; } >&5 ($PKG_CONFIG --exists --print-errors "libsasl2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SASL_LIBS=`$PKG_CONFIG --libs "libsasl2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -48167,8 +51970,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -48194,10 +51997,10 @@ and SASL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -48207,12 +52010,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else SASL_CFLAGS=$pkg_cv_SASL_CFLAGS SASL_LIBS=$pkg_cv_SASL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -48357,17 +52160,19 @@ -$as_echo "#define HAVE_LDAP_SASL 1" >>confdefs.h +printf "%s\n" "#define HAVE_LDAP_SASL 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "ldap_bind_s" "ac_cv_func_ldap_bind_s" -if test "x$ac_cv_func_ldap_bind_s" = xyes; then : - -else +if test "x$ac_cv_func_ldap_bind_s" = xyes +then : +else case e in #( + e) as_fn_error $? "LDAP build check failed. Please check config.log for more information." "$LINENO" 5 - + ;; +esac fi @@ -48400,16 +52205,18 @@ php_enable_mbstring=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte string support" >&5 -$as_echo_n "checking whether to enable multibyte string support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte string support" >&5 +printf %s "checking whether to enable multibyte string support... " >&6; } # Check whether --enable-mbstring was given. -if test "${enable_mbstring+set}" = set; then : +if test ${enable_mbstring+y} +then : enableval=$enable_mbstring; PHP_MBSTRING=$enableval -else - +else case e in #( + e) PHP_MBSTRING=no test "$PHP_ENABLE_ALL" && PHP_MBSTRING=$PHP_ENABLE_ALL - + ;; +esac fi @@ -48435,8 +52242,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -48444,29 +52251,31 @@ php_enable_mbregex=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte regex support (requires oniguruma)" >&5 -$as_echo_n "checking whether to enable multibyte regex support (requires oniguruma)... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte regex support (requires oniguruma)" >&5 +printf %s "checking whether to enable multibyte regex support (requires oniguruma)... " >&6; } # Check whether --enable-mbregex was given. -if test "${enable_mbregex+set}" = set; then : +if test ${enable_mbregex+y} +then : enableval=$enable_mbregex; PHP_MBREGEX=$enableval -else - +else case e in #( + e) PHP_MBREGEX=yes - + ;; +esac fi ext_output=$PHP_MBREGEX -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_MBSTRING" != "no"; then -$as_echo "#define HAVE_MBSTRING 1" >>confdefs.h +printf "%s\n" "#define HAVE_MBSTRING 1" >>confdefs.h @@ -48478,17 +52287,17 @@ if test "$PHP_MBREGEX" = "yes"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for oniguruma" >&5 -$as_echo_n "checking for oniguruma... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for oniguruma" >&5 +printf %s "checking for oniguruma... " >&6; } if test -n "$ONIG_CFLAGS"; then pkg_cv_ONIG_CFLAGS="$ONIG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oniguruma\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oniguruma\""; } >&5 ($PKG_CONFIG --exists --print-errors "oniguruma") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ONIG_CFLAGS=`$PKG_CONFIG --cflags "oniguruma" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -48502,10 +52311,10 @@ pkg_cv_ONIG_LIBS="$ONIG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oniguruma\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oniguruma\""; } >&5 ($PKG_CONFIG --exists --print-errors "oniguruma") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ONIG_LIBS=`$PKG_CONFIG --libs "oniguruma" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -48519,8 +52328,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -48546,10 +52355,10 @@ and ONIG_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -48559,12 +52368,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ONIG_CFLAGS=$pkg_cv_ONIG_CFLAGS ONIG_LIBS=$pkg_cv_ONIG_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -48807,15 +52616,15 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if oniguruma has an invalid entry for KOI8 encoding" >&5 -$as_echo_n "checking if oniguruma has an invalid entry for KOI8 encoding... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if oniguruma has an invalid entry for KOI8 encoding" >&5 +printf %s "checking if oniguruma has an invalid entry for KOI8 encoding... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { return (int)(ONIG_ENCODING_KOI8 + 1); @@ -48824,21 +52633,23 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define PHP_ONIG_BAD_KOI8_ENTRY 1" >>confdefs.h +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +printf "%s\n" "#define PHP_ONIG_BAD_KOI8_ENTRY 1" >>confdefs.h + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_old_LDFLAGS @@ -48850,7 +52661,7 @@ -$as_echo "#define HAVE_MBREGEX 1" >>confdefs.h +printf "%s\n" "#define HAVE_MBREGEX 1" >>confdefs.h @@ -49083,9 +52894,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_MBSTRING 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_MBSTRING 1" >>confdefs.h fi fi @@ -49327,17 +53136,19 @@ php_with_mysqli=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQLi support" >&5 -$as_echo_n "checking for MySQLi support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MySQLi support" >&5 +printf %s "checking for MySQLi support... " >&6; } # Check whether --with-mysqli was given. -if test "${with_mysqli+set}" = set; then : +if test ${with_mysqli+y} +then : withval=$with_mysqli; PHP_MYSQLI=$withval -else - +else case e in #( + e) PHP_MYSQLI=no test "$PHP_ENABLE_ALL" && PHP_MYSQLI=$PHP_ENABLE_ALL - + ;; +esac fi @@ -49363,8 +53174,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -49372,23 +53183,25 @@ php_with_mysql_sock=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified location of the MySQL UNIX socket" >&5 -$as_echo_n "checking for specified location of the MySQL UNIX socket... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specified location of the MySQL UNIX socket" >&5 +printf %s "checking for specified location of the MySQL UNIX socket... " >&6; } # Check whether --with-mysql-sock was given. -if test "${with_mysql_sock+set}" = set; then : +if test ${with_mysql_sock+y} +then : withval=$with_mysql_sock; PHP_MYSQL_SOCK=$withval -else - +else case e in #( + e) PHP_MYSQL_SOCK=no - + ;; +esac fi ext_output=$PHP_MYSQL_SOCK -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -49401,17 +53214,15 @@ fi if test "$PHP_MYSQLI" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5 -$as_echo_n "checking for MySQL UNIX socket location... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5 +printf %s "checking for MySQL UNIX socket location... " >&6; } if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then MYSQL_SOCK=$PHP_MYSQL_SOCK -cat >>confdefs.h <<_ACEOF -#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" -_ACEOF +printf "%s\n" "#define PHP_MYSQL_UNIX_SOCK_ADDR \"$MYSQL_SOCK\"" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 -$as_echo "$MYSQL_SOCK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +printf "%s\n" "$MYSQL_SOCK" >&6; } elif test "$PHP_MYSQL_SOCK" = "yes"; then for i in \ @@ -49433,20 +53244,18 @@ if test -n "$MYSQL_SOCK"; then -cat >>confdefs.h <<_ACEOF -#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" -_ACEOF +printf "%s\n" "#define PHP_MYSQL_UNIX_SOCK_ADDR \"$MYSQL_SOCK\"" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 -$as_echo "$MYSQL_SOCK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +printf "%s\n" "$MYSQL_SOCK" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \ @@ -49586,9 +53395,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_MYSQLI 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_MYSQLI 1" >>confdefs.h fi fi @@ -49799,17 +53606,19 @@ php_with_oci8=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle Database OCI8 support" >&5 -$as_echo_n "checking for Oracle Database OCI8 support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Oracle Database OCI8 support" >&5 +printf %s "checking for Oracle Database OCI8 support... " >&6; } # Check whether --with-oci8 was given. -if test "${with_oci8+set}" = set; then : +if test ${with_oci8+y} +then : withval=$with_oci8; PHP_OCI8=$withval -else - +else case e in #( + e) PHP_OCI8=no test "$PHP_ENABLE_ALL" && PHP_OCI8=$PHP_ENABLE_ALL - + ;; +esac fi @@ -49835,8 +53644,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -49847,8 +53656,8 @@ as_fn_error $? "Empty parameter value passed to --with-oci8" "$LINENO" 5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP version" >&5 -$as_echo_n "checking PHP version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PHP version" >&5 +printf %s "checking PHP version... " >&6; } tmp_version=$PHP_VERSION if test -z "$tmp_version"; then @@ -49879,26 +53688,25 @@ elif test "$oci8_php_version" -lt "8001000"; then as_fn_error $? "You need at least PHP 8.1.0 to be able to use this version of OCI8. Use OCI8 3.0 for PHP $php_version" "$LINENO" 5 else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version, ok" >&5 -$as_echo "$php_version, ok" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_version, ok" >&5 +printf "%s\n" "$php_version, ok" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 DTrace support" >&5 -$as_echo_n "checking OCI8 DTrace support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OCI8 DTrace support" >&5 +printf %s "checking OCI8 DTrace support... " >&6; } oci8_do_dtrace="`echo $PHP_OCI8 | cut -d, -f3`" if test "$PHP_DTRACE" = "yes" -o "$oci8_do_dtrace" = "dtrace" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } if test "$ext_shared" = "no"; then as_fn_error $? "For DTrace support OCI8 must be configured as a shared extension" "$LINENO" 5 else - for ac_header in sys/sdt.h + for ac_header in sys/sdt.h do : - ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_sdt_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SYS_SDT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sdt_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SDT_H 1" >>confdefs.h ac_srcdir=$abs_srcdir/ext/oci8/ @@ -49961,8 +53769,8 @@ EOF ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: OCI8 DTrace support is not confirmed on this platform" >&5 -$as_echo "$as_me: WARNING: OCI8 extension: OCI8 DTrace support is not confirmed on this platform" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: OCI8 DTrace support is not confirmed on this platform" >&5 +printf "%s\n" "$as_me: WARNING: OCI8 extension: OCI8 DTrace support is not confirmed on this platform" >&2;} cat>>Makefile.objects<>confdefs.h +printf "%s\n" "#define HAVE_OCI8_DTRACE 1" >>confdefs.h shared_objects_oci8="$shared_objects_oci8 ext/oci8/oci8_dtrace.d.lo" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +printf %s "checking size of long... " >&6; } +if test ${ac_cv_sizeof_long+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_long" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 -$as_echo_n "checking if we're at 64-bit platform... " >&6; } - if test "$ac_cv_sizeof_long" -eq 4; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +printf %s "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } PHP_OCI8_OH_LIBDIR=lib32 PHP_OCI8_IC_LIBDIR_SUFFIX="" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } PHP_OCI8_OH_LIBDIR=lib PHP_OCI8_IC_LIBDIR_SUFFIX=64 - + ;; +esac fi PHP_OCI8_INSTANT_CLIENT="no" if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5 -$as_echo "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5 +printf "%s\n" "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;} PHP_OCI8=instantclient fi @@ -50078,20 +53890,20 @@ if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle ORACLE_HOME install directory" >&5 -$as_echo_n "checking Oracle ORACLE_HOME install directory... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Oracle ORACLE_HOME install directory" >&5 +printf %s "checking Oracle ORACLE_HOME install directory... " >&6; } if test "$PHP_OCI8" = "yes"; then OCI8_DIR=$ORACLE_HOME else OCI8_DIR=$PHP_OCI8 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_DIR" >&5 -$as_echo "$OCI8_DIR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCI8_DIR" >&5 +printf "%s\n" "$OCI8_DIR" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking ORACLE_HOME library validity" >&5 -$as_echo_n "checking ORACLE_HOME library validity... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ORACLE_HOME library validity" >&5 +printf %s "checking ORACLE_HOME library validity... " >&6; } if test ! -d "$OCI8_DIR"; then as_fn_error $? "${OCI8_DIR} is not a directory" "$LINENO" 5 fi @@ -50108,8 +53920,8 @@ as_fn_error $? "Oracle library directory not found in ${OCI8_DIR}" "$LINENO" 5 fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_LIB_DIR" >&5 -$as_echo "$OCI8_LIB_DIR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCI8_LIB_DIR" >&5 +printf "%s\n" "$OCI8_LIB_DIR" >&6; } if test -d "$OCI8_DIR/rdbms/public"; then @@ -50452,8 +54264,8 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle library version compatibility" >&5 -$as_echo_n "checking Oracle library version compatibility... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Oracle library version compatibility" >&5 +printf %s "checking Oracle library version compatibility... " >&6; } OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` if test -s "$OCI8_DIR/orainst/unix.rgs"; then @@ -50476,8 +54288,8 @@ else as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" "$LINENO" 5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 -$as_echo "$OCI8_ORACLE_VERSION" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 +printf "%s\n" "$OCI8_ORACLE_VERSION" >&6; } case $OCI8_ORACLE_VERSION in @@ -50681,9 +54493,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_OCI8 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_OCI8 1" >>confdefs.h fi fi @@ -50805,7 +54615,7 @@ fi -$as_echo "#define HAVE_OCI8 1" >>confdefs.h +printf "%s\n" "#define HAVE_OCI8 1" >>confdefs.h @@ -50828,20 +54638,16 @@ -cat >>confdefs.h <<_ACEOF -#define PHP_OCI8_DEF_DIR "$OCI8_DIR" -_ACEOF +printf "%s\n" "#define PHP_OCI8_DEF_DIR \"$OCI8_DIR\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PHP_OCI8_DEF_SHARED_LIBADD "$OCI8_SHARED_LIBADD" -_ACEOF +printf "%s\n" "#define PHP_OCI8_DEF_SHARED_LIBADD \"$OCI8_SHARED_LIBADD\"" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client directory" >&5 -$as_echo_n "checking Oracle Instant Client directory... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client directory" >&5 +printf %s "checking Oracle Instant Client directory... " >&6; } if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | $PHP_OCI8_TAIL1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'` @@ -50849,13 +54655,13 @@ as_fn_error $? "Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" "$LINENO" 5 fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_OCI8_INSTANT_CLIENT" >&5 -$as_echo "$PHP_OCI8_INSTANT_CLIENT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PHP_OCI8_INSTANT_CLIENT" >&5 +printf "%s\n" "$PHP_OCI8_INSTANT_CLIENT" >&6; } OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client SDK header directory" >&5 -$as_echo_n "checking Oracle Instant Client SDK header directory... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client SDK header directory" >&5 +printf %s "checking Oracle Instant Client SDK header directory... " >&6; } OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'` @@ -50864,8 +54670,8 @@ OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib/*$!\1/include!'` if test -f "$OCISDKRPMINC/oci.h"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5 -$as_echo "$OCISDKRPMINC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5 +printf "%s\n" "$OCISDKRPMINC" >&6; } if test "$OCISDKRPMINC" != "/usr/include"; then @@ -50899,8 +54705,8 @@ OCI8INCDIR=$OCISDKRPMINC elif test -f "$OCISDKZIPINC/oci.h"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5 -$as_echo "$OCISDKZIPINC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5 +printf "%s\n" "$OCISDKZIPINC" >&6; } if test "$OCISDKZIPINC" != "/usr/include"; then @@ -50934,8 +54740,8 @@ OCI8INCDIR=$OCISDKZIPINC elif test -f "$OCISDKMANINC/oci.h"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5 -$as_echo "$OCISDKMANINC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5 +printf "%s\n" "$OCISDKMANINC" >&6; } if test "$OCISDKMANINC" != "/usr/include"; then @@ -51076,8 +54882,8 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client library version compatibility" >&5 -$as_echo_n "checking Oracle Instant Client library version compatibility... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client library version compatibility" >&5 +printf %s "checking Oracle Instant Client library version compatibility... " >&6; } OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | $PHP_OCI8_TAIL1` @@ -51089,8 +54895,8 @@ else as_fn_error $? "Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" "$LINENO" 5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 -$as_echo "$OCI8_ORACLE_VERSION" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 +printf "%s\n" "$OCI8_ORACLE_VERSION" >&6; } case $OCI8_ORACLE_VERSION in 10.1) @@ -51160,7 +54966,7 @@ -$as_echo "#define HAVE_OCI_INSTANT_CLIENT 1" >>confdefs.h +printf "%s\n" "#define HAVE_OCI_INSTANT_CLIENT 1" >>confdefs.h @@ -51297,9 +55103,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_OCI8 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_OCI8 1" >>confdefs.h fi fi @@ -51421,7 +55225,7 @@ fi -$as_echo "#define HAVE_OCI8 1" >>confdefs.h +printf "%s\n" "#define HAVE_OCI8 1" >>confdefs.h @@ -51466,13 +55270,15 @@ # Check whether --with-odbcver was given. -if test "${with_odbcver+set}" = set; then : +if test ${with_odbcver+y} +then : withval=$with_odbcver; PHP_ODBCVER=$withval -else - +else case e in #( + e) PHP_ODBCVER=0x0350 test "$PHP_ENABLE_ALL" && PHP_ODBCVER=$PHP_ENABLE_ALL - + ;; +esac fi @@ -51510,13 +55316,15 @@ # Check whether --with-adabas was given. -if test "${with_adabas+set}" = set; then : +if test ${with_adabas+y} +then : withval=$with_adabas; PHP_ADABAS=$withval -else - +else case e in #( + e) PHP_ADABAS=no test "$PHP_ENABLE_ALL" && PHP_ADABAS=$PHP_ENABLE_ALL - + ;; +esac fi @@ -51547,8 +55355,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Adabas support" >&5 -$as_echo_n "checking for Adabas support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Adabas support" >&5 +printf %s "checking for Adabas support... " >&6; } if test "$PHP_ADABAS" != "no"; then if test "$PHP_ADABAS" = "yes"; then PHP_ADABAS=/usr/local @@ -51699,13 +55507,13 @@ fi -$as_echo "#define HAVE_ADABAS 1" >>confdefs.h +printf "%s\n" "#define HAVE_ADABAS 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -51716,13 +55524,15 @@ # Check whether --with-sapdb was given. -if test "${with_sapdb+set}" = set; then : +if test ${with_sapdb+y} +then : withval=$with_sapdb; PHP_SAPDB=$withval -else - +else case e in #( + e) PHP_SAPDB=no test "$PHP_ENABLE_ALL" && PHP_SAPDB=$PHP_ENABLE_ALL - + ;; +esac fi @@ -51753,8 +55563,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAP DB support" >&5 -$as_echo_n "checking for SAP DB support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SAP DB support" >&5 +printf %s "checking for SAP DB support... " >&6; } if test "$PHP_SAPDB" != "no"; then if test "$PHP_SAPDB" = "yes"; then PHP_SAPDB=/usr/local @@ -51835,13 +55645,13 @@ ODBC_TYPE=sapdb -$as_echo "#define HAVE_SAPDB 1" >>confdefs.h +printf "%s\n" "#define HAVE_SAPDB 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -51852,13 +55662,15 @@ # Check whether --with-solid was given. -if test "${with_solid+set}" = set; then : +if test ${with_solid+y} +then : withval=$with_solid; PHP_SOLID=$withval -else - +else case e in #( + e) PHP_SOLID=no test "$PHP_ENABLE_ALL" && PHP_SOLID=$PHP_ENABLE_ALL - + ;; +esac fi @@ -51889,8 +55701,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solid support" >&5 -$as_echo_n "checking for Solid support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solid support" >&5 +printf %s "checking for Solid support... " >&6; } if test "$PHP_SOLID" != "no"; then if test "$PHP_SOLID" = "yes"; then PHP_SOLID=/usr/local/solid @@ -51901,22 +55713,22 @@ ODBC_TYPE=solid if test -f $ODBC_LIBDIR/soc*35.a; then -$as_echo "#define HAVE_SOLID_35 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOLID_35 1" >>confdefs.h elif test -f $ODBC_LIBDIR/scl*30.a; then -$as_echo "#define HAVE_SOLID_30 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOLID_30 1" >>confdefs.h elif test -f $ODBC_LIBDIR/scl*23.a; then -$as_echo "#define HAVE_SOLID 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOLID 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solid library file" >&5 -$as_echo_n "checking Solid library file... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Solid library file" >&5 +printf %s "checking Solid library file... " >&6; } ac_solid_uname_r=`uname -r 2>/dev/null` ac_solid_uname_s=`uname -s 2>/dev/null` case $ac_solid_uname_s in @@ -51926,12 +55738,12 @@ Linux) if ldd -v /bin/sh | grep GLIBC > /dev/null; then -$as_echo "#define SS_LINUX 1" >>confdefs.h +printf "%s\n" "#define SS_LINUX 1" >>confdefs.h ac_solid_os=l2x else -$as_echo "#define SS_LINUX 1" >>confdefs.h +printf "%s\n" "#define SS_LINUX 1" >>confdefs.h ac_solid_os=lux fi;; @@ -51940,12 +55752,12 @@ FreeBSD) if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then -$as_echo "#define SS_FBX 1" >>confdefs.h +printf "%s\n" "#define SS_FBX 1" >>confdefs.h ac_solid_os=fex else -$as_echo "#define SS_FBX 1" >>confdefs.h +printf "%s\n" "#define SS_FBX 1" >>confdefs.h ac_solid_os=fbx fi;; @@ -51976,12 +55788,12 @@ ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version} fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 -$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 +printf "%s\n" "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -51992,13 +55804,15 @@ # Check whether --with-ibm-db2 was given. -if test "${with_ibm_db2+set}" = set; then : +if test ${with_ibm_db2+y} +then : withval=$with_ibm_db2; PHP_IBM_DB2=$withval -else - +else case e in #( + e) PHP_IBM_DB2=no test "$PHP_ENABLE_ALL" && PHP_IBM_DB2=$PHP_ENABLE_ALL - + ;; +esac fi @@ -52029,8 +55843,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 support" >&5 -$as_echo_n "checking for IBM DB2 support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 support" >&5 +printf %s "checking for IBM DB2 support... " >&6; } if test "$PHP_IBM_DB2" != "no"; then if test "$PHP_IBM_DB2" = "yes"; then ODBC_INCDIR=/home/db2inst1/sqllib/include @@ -52067,37 +55881,39 @@ } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : LIBS=$old_LIBS -$as_echo "#define HAVE_IBMDB2 1" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +printf "%s\n" "#define HAVE_IBMDB2 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } -else +else case e in #( + e) LIBS=$old_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } as_fn_error $? " build test failed. Please check the config.log for details. You need to source your DB2 environment before running PHP configure: # . \$IBM_DB2/db2profile " "$LINENO" 5 - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -52108,13 +55924,15 @@ # Check whether --with-empress was given. -if test "${with_empress+set}" = set; then : +if test ${with_empress+y} +then : withval=$with_empress; PHP_EMPRESS=$withval -else - +else case e in #( + e) PHP_EMPRESS=no test "$PHP_ENABLE_ALL" && PHP_EMPRESS=$PHP_ENABLE_ALL - + ;; +esac fi @@ -52145,8 +55963,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress support" >&5 -$as_echo_n "checking for Empress support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Empress support" >&5 +printf %s "checking for Empress support... " >&6; } if test "$PHP_EMPRESS" != "no"; then if test "$PHP_EMPRESS" = "yes"; then ODBC_INCDIR=$EMPRESSPATH/include/odbc @@ -52159,23 +55977,23 @@ ODBC_LFLAGS=-L$ODBC_LIBDIR ODBC_TYPE=empress -$as_echo "#define HAVE_EMPRESS 1" >>confdefs.h +printf "%s\n" "#define HAVE_EMPRESS 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress library file" >&5 -$as_echo_n "checking Empress library file... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Empress library file" >&5 +printf %s "checking Empress library file... " >&6; } ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1` if test ! -f $ODBC_LIBS; then ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1` fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 -$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5 +printf "%s\n" "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -52186,13 +56004,15 @@ # Check whether --with-empress-bcs was given. -if test "${with_empress_bcs+set}" = set; then : +if test ${with_empress_bcs+y} +then : withval=$with_empress_bcs; PHP_EMPRESS_BCS=$withval -else - +else case e in #( + e) PHP_EMPRESS_BCS=no test "$PHP_ENABLE_ALL" && PHP_EMPRESS_BCS=$PHP_ENABLE_ALL - + ;; +esac fi @@ -52223,8 +56043,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress local access support" >&5 -$as_echo_n "checking for Empress local access support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Empress local access support" >&5 +printf %s "checking for Empress local access support... " >&6; } if test "$PHP_EMPRESS_BCS" != "no"; then if test "$PHP_EMPRESS_BCS" = "yes"; then ODBC_INCDIR=$EMPRESSPATH/include/odbc @@ -52253,23 +56073,23 @@ ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt" ODBC_TYPE=empress-bcs -$as_echo "#define HAVE_EMPRESS 1" >>confdefs.h +printf "%s\n" "#define HAVE_EMPRESS 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress local access library file" >&5 -$as_echo_n "checking Empress local access library file... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Empress local access library file" >&5 +printf %s "checking Empress local access library file... " >&6; } ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1` if test ! -f $ODBCBCS_LIBS; then ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1` fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5 -$as_echo "\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5 +printf "%s\n" "\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -52280,13 +56100,15 @@ # Check whether --with-custom-odbc was given. -if test "${with_custom_odbc+set}" = set; then : +if test ${with_custom_odbc+y} +then : withval=$with_custom_odbc; PHP_CUSTOM_ODBC=$withval -else - +else case e in #( + e) PHP_CUSTOM_ODBC=no test "$PHP_ENABLE_ALL" && PHP_CUSTOM_ODBC=$PHP_ENABLE_ALL - + ;; +esac fi @@ -52317,8 +56139,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a custom ODBC support" >&5 -$as_echo_n "checking for a custom ODBC support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a custom ODBC support" >&5 +printf %s "checking for a custom ODBC support... " >&6; } if test "$PHP_CUSTOM_ODBC" != "no"; then if test "$PHP_CUSTOM_ODBC" = "yes"; then PHP_CUSTOM_ODBC=/usr/local @@ -52330,13 +56152,13 @@ ODBC_LIBS=$CUSTOM_ODBC_LIBS ODBC_TYPE=custom-odbc -$as_echo "#define HAVE_CODBC 1" >>confdefs.h +printf "%s\n" "#define HAVE_CODBC 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -52347,13 +56169,15 @@ # Check whether --with-iodbc was given. -if test "${with_iodbc+set}" = set; then : +if test ${with_iodbc+y} +then : withval=$with_iodbc; PHP_IODBC=$withval -else - +else case e in #( + e) PHP_IODBC=no test "$PHP_ENABLE_ALL" && PHP_IODBC=$PHP_ENABLE_ALL - + ;; +esac fi @@ -52384,24 +56208,24 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with iODBC support" >&5 -$as_echo_n "checking whether to build with iODBC support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with iODBC support" >&5 +printf %s "checking whether to build with iODBC support... " >&6; } if test "$PHP_IODBC" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiodbc" >&5 -$as_echo_n "checking for libiodbc... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiodbc" >&5 +printf %s "checking for libiodbc... " >&6; } if test -n "$ODBC_CFLAGS"; then pkg_cv_ODBC_CFLAGS="$ODBC_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libiodbc\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libiodbc\""; } >&5 ($PKG_CONFIG --exists --print-errors "libiodbc") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ODBC_CFLAGS=`$PKG_CONFIG --cflags "libiodbc" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -52415,10 +56239,10 @@ pkg_cv_ODBC_LIBS="$ODBC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libiodbc\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libiodbc\""; } >&5 ($PKG_CONFIG --exists --print-errors "libiodbc") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ODBC_LIBS=`$PKG_CONFIG --libs "libiodbc" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -52432,8 +56256,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -52459,10 +56283,10 @@ and ODBC_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -52472,12 +56296,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ODBC_CFLAGS=$pkg_cv_ODBC_CFLAGS ODBC_LIBS=$pkg_cv_ODBC_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -52522,14 +56346,14 @@ ODBC_TYPE=iodbc -$as_echo "#define HAVE_IODBC 1" >>confdefs.h +printf "%s\n" "#define HAVE_IODBC 1" >>confdefs.h -$as_echo "#define HAVE_ODBC2 1" >>confdefs.h +printf "%s\n" "#define HAVE_ODBC2 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -52540,13 +56364,15 @@ # Check whether --with-esoob was given. -if test "${with_esoob+set}" = set; then : +if test ${with_esoob+y} +then : withval=$with_esoob; PHP_ESOOB=$withval -else - +else case e in #( + e) PHP_ESOOB=no test "$PHP_ENABLE_ALL" && PHP_ESOOB=$PHP_ENABLE_ALL - + ;; +esac fi @@ -52577,8 +56403,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Easysoft ODBC-ODBC Bridge support" >&5 -$as_echo_n "checking for Easysoft ODBC-ODBC Bridge support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Easysoft ODBC-ODBC Bridge support" >&5 +printf %s "checking for Easysoft ODBC-ODBC Bridge support... " >&6; } if test "$PHP_ESOOB" != "no"; then if test "$PHP_ESOOB" = "yes"; then PHP_ESOOB=/usr/local/easysoft/oob/client @@ -52590,13 +56416,13 @@ ODBC_LIBS=-lesoobclient ODBC_TYPE=esoob -$as_echo "#define HAVE_ESOOB 1" >>confdefs.h +printf "%s\n" "#define HAVE_ESOOB 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -52607,13 +56433,15 @@ # Check whether --with-unixODBC was given. -if test "${with_unixODBC+set}" = set; then : +if test ${with_unixODBC+y} +then : withval=$with_unixODBC; PHP_UNIXODBC=$withval -else - +else case e in #( + e) PHP_UNIXODBC=no test "$PHP_ENABLE_ALL" && PHP_UNIXODBC=$PHP_ENABLE_ALL - + ;; +esac fi @@ -52644,25 +56472,25 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with unixODBC support" >&5 -$as_echo_n "checking whether to build with unixODBC support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with unixODBC support" >&5 +printf %s "checking whether to build with unixODBC support... " >&6; } if test "$PHP_UNIXODBC" != "no"; then if test "$PHP_UNIXODBC" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from pkgconfig" >&5 -$as_echo "yes from pkgconfig" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes from pkgconfig" >&5 +printf "%s\n" "yes from pkgconfig" >&6; } pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc" >&5 -$as_echo_n "checking for odbc... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for odbc" >&5 +printf %s "checking for odbc... " >&6; } if test -n "$ODBC_CFLAGS"; then pkg_cv_ODBC_CFLAGS="$ODBC_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"odbc\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"odbc\""; } >&5 ($PKG_CONFIG --exists --print-errors "odbc") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ODBC_CFLAGS=`$PKG_CONFIG --cflags "odbc" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -52676,10 +56504,10 @@ pkg_cv_ODBC_LIBS="$ODBC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"odbc\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"odbc\""; } >&5 ($PKG_CONFIG --exists --print-errors "odbc") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ODBC_LIBS=`$PKG_CONFIG --libs "odbc" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -52693,8 +56521,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -52720,10 +56548,10 @@ and ODBC_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -52733,12 +56561,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ODBC_CFLAGS=$pkg_cv_ODBC_CFLAGS ODBC_LIBS=$pkg_cv_ODBC_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -52792,16 +56620,16 @@ as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes in $PHP_UNIXODBC" >&5 -$as_echo "yes in $PHP_UNIXODBC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes in $PHP_UNIXODBC" >&5 +printf "%s\n" "yes in $PHP_UNIXODBC" >&6; } fi ODBC_TYPE=unixODBC -$as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h +printf "%s\n" "#define HAVE_UNIXODBC 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -52812,13 +56640,15 @@ # Check whether --with-dbmaker was given. -if test "${with_dbmaker+set}" = set; then : +if test ${with_dbmaker+y} +then : withval=$with_dbmaker; PHP_DBMAKER=$withval -else - +else case e in #( + e) PHP_DBMAKER=no test "$PHP_ENABLE_ALL" && PHP_DBMAKER=$PHP_ENABLE_ALL - + ;; +esac fi @@ -52849,8 +56679,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBMaker support" >&5 -$as_echo_n "checking for DBMaker support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DBMaker support" >&5 +printf %s "checking for DBMaker support... " >&6; } if test "$PHP_DBMAKER" != "no"; then if test "$PHP_DBMAKER" = "yes"; then DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'` @@ -52879,17 +56709,17 @@ ODBC_TYPE=dbmaker -$as_echo "#define HAVE_DBMAKER 1" >>confdefs.h +printf "%s\n" "#define HAVE_DBMAKER 1" >>confdefs.h if test "$ext_shared" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (shared)" >&5 -$as_echo "yes (shared)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (shared)" >&5 +printf "%s\n" "yes (shared)" >&6; } ODBC_LIBS="-ldmapic -lc -lm" ODBC_SHARED="odbc.la" else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (static)" >&5 -$as_echo "yes (static)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (static)" >&5 +printf "%s\n" "yes (static)" >&6; } if test -n "$ODBC_LIBDIR"; then @@ -52973,22 +56803,20 @@ ODBC_STATIC="libphpext_odbc.la" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi if test "no" != "$PHP_ODBCVER"; then if test "$PHP_ODBCVER" != "0"; then -cat >>confdefs.h <<_ACEOF -#define ODBCVER $PHP_ODBCVER -_ACEOF +printf "%s\n" "#define ODBCVER $PHP_ODBCVER" >>confdefs.h fi else -$as_echo "#define ODBCVER 0x0300" >>confdefs.h +printf "%s\n" "#define ODBCVER 0x0300" >>confdefs.h fi @@ -53095,13 +56923,13 @@ if test "$ODBC_TYPE" != "solid"; then -$as_echo "#define HAVE_SQLDATASOURCES 1" >>confdefs.h +printf "%s\n" "#define HAVE_SQLDATASOURCES 1" >>confdefs.h fi fi -$as_echo "#define HAVE_UODBC 1" >>confdefs.h +printf "%s\n" "#define HAVE_UODBC 1" >>confdefs.h PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_SHARED_LIBADD" @@ -53271,9 +57099,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_ODBC 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_ODBC 1" >>confdefs.h fi fi @@ -53395,10 +57221,10 @@ fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any ODBC driver support" >&5 -$as_echo_n "checking for any ODBC driver support... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for any ODBC driver support" >&5 +printf %s "checking for any ODBC driver support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -53407,16 +57233,18 @@ php_enable_opcache=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend OPcache support" >&5 -$as_echo_n "checking whether to enable Zend OPcache support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend OPcache support" >&5 +printf %s "checking whether to enable Zend OPcache support... " >&6; } # Check whether --enable-opcache was given. -if test "${enable_opcache+set}" = set; then : +if test ${enable_opcache+y} +then : enableval=$enable_opcache; PHP_OPCACHE=$enableval -else - +else case e in #( + e) PHP_OPCACHE=yes test "$PHP_ENABLE_ALL" && PHP_OPCACHE=$PHP_ENABLE_ALL - + ;; +esac fi @@ -53442,8 +57270,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -53451,22 +57279,24 @@ php_enable_huge_code_pages=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable copying PHP CODE pages into HUGE PAGES" >&5 -$as_echo_n "checking whether to enable copying PHP CODE pages into HUGE PAGES... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable copying PHP CODE pages into HUGE PAGES" >&5 +printf %s "checking whether to enable copying PHP CODE pages into HUGE PAGES... " >&6; } # Check whether --enable-huge-code-pages was given. -if test "${enable_huge_code_pages+set}" = set; then : +if test ${enable_huge_code_pages+y} +then : enableval=$enable_huge_code_pages; PHP_HUGE_CODE_PAGES=$enableval -else - +else case e in #( + e) PHP_HUGE_CODE_PAGES=yes - + ;; +esac fi ext_output=$PHP_HUGE_CODE_PAGES -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -53474,22 +57304,24 @@ php_enable_opcache_jit=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JIT" >&5 -$as_echo_n "checking whether to enable JIT... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable JIT" >&5 +printf %s "checking whether to enable JIT... " >&6; } # Check whether --enable-opcache-jit was given. -if test "${enable_opcache_jit+set}" = set; then : +if test ${enable_opcache_jit+y} +then : enableval=$enable_opcache_jit; PHP_OPCACHE_JIT=$enableval -else - +else case e in #( + e) PHP_OPCACHE_JIT=yes - + ;; +esac fi ext_output=$PHP_OPCACHE_JIT -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -53500,7 +57332,7 @@ if test "$PHP_HUGE_CODE_PAGES" = "yes"; then -$as_echo "#define HAVE_HUGE_CODE_PAGES 1" >>confdefs.h +printf "%s\n" "#define HAVE_HUGE_CODE_PAGES 1" >>confdefs.h fi @@ -53509,21 +57341,21 @@ i[34567]86*|x86*|aarch64|amd64) ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JIT not supported by host architecture" >&5 -$as_echo "$as_me: WARNING: JIT not supported by host architecture" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: JIT not supported by host architecture" >&5 +printf "%s\n" "$as_me: WARNING: JIT not supported by host architecture" >&2;} PHP_OPCACHE_JIT=no ;; esac if test "$host_vendor" = "apple" && test "$host_cpu" = "aarch64" && test "$PHP_THREAD_SAFETY" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JIT not supported on Apple Silicon with ZTS" >&5 -$as_echo "$as_me: WARNING: JIT not supported on Apple Silicon with ZTS" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: JIT not supported on Apple Silicon with ZTS" >&5 +printf "%s\n" "$as_me: WARNING: JIT not supported on Apple Silicon with ZTS" >&2;} PHP_OPCACHE_JIT=no fi fi if test "$PHP_OPCACHE_JIT" = "yes"; then -$as_echo "#define HAVE_JIT 1" >>confdefs.h +printf "%s\n" "#define HAVE_JIT 1" >>confdefs.h ZEND_JIT_SRC="jit/zend_jit.c jit/zend_jit_gdb.c jit/zend_jit_vm_helpers.c" @@ -53555,17 +57387,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for capstone >= 3.0.0" >&5 -$as_echo_n "checking for capstone >= 3.0.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for capstone >= 3.0.0" >&5 +printf %s "checking for capstone >= 3.0.0... " >&6; } if test -n "$CAPSTONE_CFLAGS"; then pkg_cv_CAPSTONE_CFLAGS="$CAPSTONE_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capstone >= 3.0.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capstone >= 3.0.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "capstone >= 3.0.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CAPSTONE_CFLAGS=`$PKG_CONFIG --cflags "capstone >= 3.0.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -53579,10 +57411,10 @@ pkg_cv_CAPSTONE_LIBS="$CAPSTONE_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capstone >= 3.0.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capstone >= 3.0.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "capstone >= 3.0.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CAPSTONE_LIBS=`$PKG_CONFIG --libs "capstone >= 3.0.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -53596,8 +57428,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -53614,19 +57446,19 @@ have_capstone="no" elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } have_capstone="no" else CAPSTONE_CFLAGS=$pkg_cv_CAPSTONE_CFLAGS CAPSTONE_LIBS=$pkg_cv_CAPSTONE_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } have_capstone="yes" fi if test "$have_capstone" = "yes"; then -$as_echo "#define HAVE_CAPSTONE 1" >>confdefs.h +printf "%s\n" "#define HAVE_CAPSTONE 1" >>confdefs.h for ac_i in $CAPSTONE_LIBS; do @@ -53776,19 +57608,19 @@ PHP_VAR_SUBST="$PHP_VAR_SUBST DASM_ARCH" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opagent in default path" >&5 -$as_echo_n "checking for opagent in default path... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opagent in default path" >&5 +printf %s "checking for opagent in default path... " >&6; } for i in /usr/local /usr; do if test -r $i/include/opagent.h; then OPAGENT_DIR=$i - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 -$as_echo "found in $i" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5 +printf "%s\n" "found in $i" >&6; } break fi done if test -z "$OPAGENT_DIR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 -$as_echo "not found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +printf "%s\n" "not found" >&6; } else save_old_LDFLAGS=$LDFLAGS @@ -53897,49 +57729,57 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for op_write_native_code in -lopagent" >&5 -$as_echo_n "checking for op_write_native_code in -lopagent... " >&6; } -if ${ac_cv_lib_opagent_op_write_native_code+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for op_write_native_code in -lopagent" >&5 +printf %s "checking for op_write_native_code in -lopagent... " >&6; } +if test ${ac_cv_lib_opagent_op_write_native_code+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lopagent $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char op_write_native_code (); +char op_write_native_code (void); int -main () +main (void) { return op_write_native_code (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_opagent_op_write_native_code=yes -else - ac_cv_lib_opagent_op_write_native_code=no +else case e in #( + e) ac_cv_lib_opagent_op_write_native_code=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opagent_op_write_native_code" >&5 -$as_echo "$ac_cv_lib_opagent_op_write_native_code" >&6; } -if test "x$ac_cv_lib_opagent_op_write_native_code" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opagent_op_write_native_code" >&5 +printf "%s\n" "$ac_cv_lib_opagent_op_write_native_code" >&6; } +if test "x$ac_cv_lib_opagent_op_write_native_code" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_OPROFILE 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPROFILE 1" >>confdefs.h if test "$OPAGENT_DIR/include" != "/usr/include"; then @@ -54074,40 +57914,38 @@ -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_opagent_op_write_native_code - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 -$as_echo "not found" >&6; } - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +printf "%s\n" "not found" >&6; } + ;; +esac fi fi fi - for ac_func in mprotect -do : ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" -if test "x$ac_cv_func_mprotect" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MPROTECT 1 -_ACEOF +if test "x$ac_cv_func_mprotect" = xyes +then : + printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h fi -done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysvipc shared memory support" >&5 -$as_echo_n "checking for sysvipc shared memory support... " >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysvipc shared memory support" >&5 +printf %s "checking for sysvipc shared memory support... " >&6; } + if test "$cross_compiling" = yes +then : have_shm_ipc=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -54175,26 +58013,30 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : have_shm_ipc=yes -else - have_shm_ipc=no +else case e in #( + e) have_shm_ipc=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi if test "$have_shm_ipc" = "yes"; then -$as_echo "#define HAVE_SHM_IPC 1" >>confdefs.h +printf "%s\n" "#define HAVE_SHM_IPC 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_shm_ipc" >&5 -$as_echo "$have_shm_ipc" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_shm_ipc" >&5 +printf "%s\n" "$have_shm_ipc" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5 -$as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5 +printf %s "checking for mmap() using MAP_ANON shared memory support... " >&6; } + if test "$cross_compiling" = yes +then : case $host_alias in *linux*) @@ -54205,8 +58047,8 @@ ;; esac -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -54256,140 +58098,165 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : have_shm_mmap_anon=yes -else - have_shm_mmap_anon=no +else case e in #( + e) have_shm_mmap_anon=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi if test "$have_shm_mmap_anon" = "yes"; then -$as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h +printf "%s\n" "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_shm_mmap_anon" >&5 -$as_echo "$have_shm_mmap_anon" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_shm_mmap_anon" >&5 +printf "%s\n" "$have_shm_mmap_anon" >&6; } unset ac_cv_lib_rt_shm_open unset ac_cv_lib_rt___shm_open unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5 -$as_echo_n "checking for shm_open in -lrt... " >&6; } -if ${ac_cv_lib_rt_shm_open+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5 +printf %s "checking for shm_open in -lrt... " >&6; } +if test ${ac_cv_lib_rt_shm_open+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char shm_open (); +char shm_open (void); int -main () +main (void) { return shm_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt_shm_open=yes -else - ac_cv_lib_rt_shm_open=no +else case e in #( + e) ac_cv_lib_rt_shm_open=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5 -$as_echo "$ac_cv_lib_rt_shm_open" >&6; } -if test "x$ac_cv_lib_rt_shm_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5 +printf "%s\n" "$ac_cv_lib_rt_shm_open" >&6; } +if test "x$ac_cv_lib_rt_shm_open" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __shm_open in -lrt" >&5 -$as_echo_n "checking for __shm_open in -lrt... " >&6; } -if ${ac_cv_lib_rt___shm_open+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __shm_open in -lrt" >&5 +printf %s "checking for __shm_open in -lrt... " >&6; } +if test ${ac_cv_lib_rt___shm_open+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __shm_open (); +char __shm_open (void); int -main () +main (void) { return __shm_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt___shm_open=yes -else - ac_cv_lib_rt___shm_open=no +else case e in #( + e) ac_cv_lib_rt___shm_open=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___shm_open" >&5 -$as_echo "$ac_cv_lib_rt___shm_open" >&6; } -if test "x$ac_cv_lib_rt___shm_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___shm_open" >&5 +printf "%s\n" "$ac_cv_lib_rt___shm_open" >&6; } +if test "x$ac_cv_lib_rt___shm_open" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lrt" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -54407,10 +58274,10 @@ -$as_echo "#define HAVE_SHM_OPEN 1" >>confdefs.h +printf "%s\n" "#define HAVE_SHM_OPEN 1" >>confdefs.h -$as_echo "#define HAVE_LIBRT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h ac_cv_func_shm_open=yes else @@ -54419,118 +58286,140 @@ unset ac_cv_lib_root_shm_open unset ac_cv_lib_root___shm_open unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lroot" >&5 -$as_echo_n "checking for shm_open in -lroot... " >&6; } -if ${ac_cv_lib_root_shm_open+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lroot" >&5 +printf %s "checking for shm_open in -lroot... " >&6; } +if test ${ac_cv_lib_root_shm_open+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lroot $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char shm_open (); +char shm_open (void); int -main () +main (void) { return shm_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_root_shm_open=yes -else - ac_cv_lib_root_shm_open=no +else case e in #( + e) ac_cv_lib_root_shm_open=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_shm_open" >&5 -$as_echo "$ac_cv_lib_root_shm_open" >&6; } -if test "x$ac_cv_lib_root_shm_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_shm_open" >&5 +printf "%s\n" "$ac_cv_lib_root_shm_open" >&6; } +if test "x$ac_cv_lib_root_shm_open" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __shm_open in -lroot" >&5 -$as_echo_n "checking for __shm_open in -lroot... " >&6; } -if ${ac_cv_lib_root___shm_open+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __shm_open in -lroot" >&5 +printf %s "checking for __shm_open in -lroot... " >&6; } +if test ${ac_cv_lib_root___shm_open+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lroot $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __shm_open (); +char __shm_open (void); int -main () +main (void) { return __shm_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_root___shm_open=yes -else - ac_cv_lib_root___shm_open=no +else case e in #( + e) ac_cv_lib_root___shm_open=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root___shm_open" >&5 -$as_echo "$ac_cv_lib_root___shm_open" >&6; } -if test "x$ac_cv_lib_root___shm_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root___shm_open" >&5 +printf "%s\n" "$ac_cv_lib_root___shm_open" >&6; } +if test "x$ac_cv_lib_root___shm_open" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lroot" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -54548,10 +58437,10 @@ -$as_echo "#define HAVE_SHM_OPEN 1" >>confdefs.h +printf "%s\n" "#define HAVE_SHM_OPEN 1" >>confdefs.h -$as_echo "#define HAVE_LIBROOT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBROOT 1" >>confdefs.h ac_cv_func_shm_open=yes else @@ -54564,12 +58453,13 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using shm_open() shared memory support" >&5 -$as_echo_n "checking for mmap() using shm_open() shared memory support... " >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mmap() using shm_open() shared memory support" >&5 +printf %s "checking for mmap() using shm_open() shared memory support... " >&6; } + if test "$cross_compiling" = yes +then : have_shm_mmap_posix=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -54636,18 +58526,21 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : have_shm_mmap_posix=yes -else - have_shm_mmap_posix=no +else case e in #( + e) have_shm_mmap_posix=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi if test "$have_shm_mmap_posix" = "yes"; then -$as_echo "#define HAVE_SHM_MMAP_POSIX 1" >>confdefs.h +printf "%s\n" "#define HAVE_SHM_MMAP_POSIX 1" >>confdefs.h save_old_LDFLAGS=$LDFLAGS @@ -54754,43 +58647,51 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_unlink in -lrt" >&5 -$as_echo_n "checking for shm_unlink in -lrt... " >&6; } -if ${ac_cv_lib_rt_shm_unlink+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shm_unlink in -lrt" >&5 +printf %s "checking for shm_unlink in -lrt... " >&6; } +if test ${ac_cv_lib_rt_shm_unlink+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char shm_unlink (); +char shm_unlink (void); int -main () +main (void) { return shm_unlink (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt_shm_unlink=yes -else - ac_cv_lib_rt_shm_unlink=no +else case e in #( + e) ac_cv_lib_rt_shm_unlink=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_unlink" >&5 -$as_echo "$ac_cv_lib_rt_shm_unlink" >&6; } -if test "x$ac_cv_lib_rt_shm_unlink" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_unlink" >&5 +printf "%s\n" "$ac_cv_lib_rt_shm_unlink" >&6; } +if test "x$ac_cv_lib_rt_shm_unlink" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -54818,52 +58719,59 @@ -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_rt_shm_unlink - + ;; +esac fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_shm_mmap_posix" >&5 -$as_echo "$have_shm_mmap_posix" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-implicit-fallthrough" >&5 -$as_echo_n "checking whether C compiler accepts -Wno-implicit-fallthrough... " >&6; } -if ${ax_cv_check_cflags__Werror__Wno_implicit_fallthrough+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_shm_mmap_posix" >&5 +printf "%s\n" "$have_shm_mmap_posix" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-implicit-fallthrough" >&5 +printf %s "checking whether C compiler accepts -Wno-implicit-fallthrough... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wno_implicit_fallthrough+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -Wno-implicit-fallthrough" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=yes -else - ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=no +else case e in #( + e) ax_cv_check_cflags__Werror__Wno_implicit_fallthrough=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&5 -$as_echo "$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&6; } -if test "x$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wno_implicit_fallthrough" = xyes +then : PHP_OPCACHE_CFLAGS="$PHP_OPCACHE_CFLAGS -Wno-implicit-fallthrough" -else - : +else case e in #( + e) : ;; +esac fi @@ -55027,9 +58935,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_OPCACHE 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_OPCACHE 1" >>confdefs.h fi fi @@ -55225,16 +59131,18 @@ php_enable_pcntl=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pcntl support" >&5 -$as_echo_n "checking whether to enable pcntl support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable pcntl support" >&5 +printf %s "checking whether to enable pcntl support... " >&6; } # Check whether --enable-pcntl was given. -if test "${enable_pcntl+set}" = set; then : +if test ${enable_pcntl+y} +then : enableval=$enable_pcntl; PHP_PCNTL=$enableval -else - +else case e in #( + e) PHP_PCNTL=no test "$PHP_ENABLE_ALL" && PHP_PCNTL=$PHP_ENABLE_ALL - + ;; +esac fi @@ -55260,67 +59168,113 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_PCNTL" != "no"; then + for ac_func in fork do : ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" -if test "x$ac_cv_func_fork" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_FORK 1 -_ACEOF +if test "x$ac_cv_func_fork" = xyes +then : + printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h -else - as_fn_error $? "pcntl: fork() not supported by this platform" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "pcntl: fork() not supported by this platform" "$LINENO" 5 ;; +esac fi + done for ac_func in waitpid do : ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" -if test "x$ac_cv_func_waitpid" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WAITPID 1 -_ACEOF +if test "x$ac_cv_func_waitpid" = xyes +then : + printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h -else - as_fn_error $? "pcntl: waitpid() not supported by this platform" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "pcntl: waitpid() not supported by this platform" "$LINENO" 5 ;; +esac fi + done for ac_func in sigaction do : ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" -if test "x$ac_cv_func_sigaction" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SIGACTION 1 -_ACEOF +if test "x$ac_cv_func_sigaction" = xyes +then : + printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h -else - as_fn_error $? "pcntl: sigaction() not supported by this platform" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "pcntl: sigaction() not supported by this platform" "$LINENO" 5 ;; +esac fi + done + ac_fn_c_check_func "$LINENO" "getpriority" "ac_cv_func_getpriority" +if test "x$ac_cv_func_getpriority" = xyes +then : + printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h - for ac_func in getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare rfork forkx -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +fi +ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority" +if test "x$ac_cv_func_setpriority" = xyes +then : + printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3" +if test "x$ac_cv_func_wait3" = xyes +then : + printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4" +if test "x$ac_cv_func_wait4" = xyes +then : + printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo" +if test "x$ac_cv_func_sigwaitinfo" = xyes +then : + printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait" +if test "x$ac_cv_func_sigtimedwait" = xyes +then : + printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare" +if test "x$ac_cv_func_unshare" = xyes +then : + printf "%s\n" "#define HAVE_UNSHARE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "rfork" "ac_cv_func_rfork" +if test "x$ac_cv_func_rfork" = xyes +then : + printf "%s\n" "#define HAVE_RFORK 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "forkx" "ac_cv_func_forkx" +if test "x$ac_cv_func_forkx" = xyes +then : + printf "%s\n" "#define HAVE_FORKX 1" >>confdefs.h fi -done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5 -$as_echo_n "checking for siginfo_t... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5 +printf %s "checking for siginfo_t... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -55330,7 +59284,7 @@ #endif int -main () +main (void) { siginfo_t info; @@ -55339,19 +59293,21 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ext_builddir=ext/pcntl @@ -55487,9 +59443,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PCNTL 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PCNTL 1" >>confdefs.h fi fi @@ -55616,375 +59570,21 @@ -php_enable_pdo=yes - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PDO support" >&5 -$as_echo_n "checking whether to enable PDO support... " >&6; } -# Check whether --enable-pdo was given. -if test "${enable_pdo+set}" = set; then : - enableval=$enable_pdo; PHP_PDO=$enableval -else - - PHP_PDO=yes - test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL - -fi - - - -ext_output="yes, shared" -ext_shared=yes -case $PHP_PDO in -shared,*) - PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'` - ;; -shared) - PHP_PDO=yes - ;; -no) - ext_output=no - ext_shared=no - ;; -*) - ext_output=yes - ext_shared=no - ;; -esac - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } - - - - -if test "$PHP_PDO" != "no"; then - - PHP_PDO=yes - - - ext_builddir=ext/pdo - ext_srcdir=$abs_srcdir/ext/pdo - ext_dir=ext/pdo - - ac_extra= - - if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then - PHP_PDO_SHARED=no - - - case $ext_dir in - "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; - /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; - *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; - esac - - - - b_c_pre=$php_c_pre - b_cxx_pre=$php_cxx_pre - b_c_meta=$php_c_meta - b_cxx_meta=$php_cxx_meta - b_c_post=$php_c_post - b_cxx_post=$php_cxx_post - b_lo=$php_lo - - - old_IFS=$IFS - for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do - - IFS=. - set $ac_src - ac_obj=$1 - IFS=$old_IFS - - PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" - - case $ac_src in - *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; - *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; - *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; - *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; - esac - - ac_comp="$ac_comp -MMD -MF $ac_bdir$ac_obj.dep -MT $ac_bdir$ac_obj.lo" - - cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h <<_ACEOF -#define COMPILE_DL_PDO 1 -_ACEOF - - fi - fi - - if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then - PHP_PDO_SHARED=no - case "$PHP_SAPI" in - cgi|embed|phpdbg) - - - case $ext_dir in - "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; - /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; - *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; - esac - - - - b_c_pre=$php_c_pre - b_cxx_pre=$php_cxx_pre - b_c_meta=$php_c_meta - b_cxx_meta=$php_cxx_meta - b_c_post=$php_c_post - b_cxx_post=$php_cxx_post - b_lo=$php_lo - - - old_IFS=$IFS - for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do - - IFS=. - set $ac_src - ac_obj=$1 - IFS=$old_IFS - - PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" - - case $ac_src in - *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; - *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; - *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; - *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; - esac - - ac_comp="$ac_comp -MMD -MF $ac_bdir$ac_obj.dep -MT $ac_bdir$ac_obj.lo" - - cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments - -fi - - - - - php_with_pdo_dblib=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO_DBLIB support via FreeTDS" >&5 -$as_echo_n "checking for PDO_DBLIB support via FreeTDS... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PDO_DBLIB support via FreeTDS" >&5 +printf %s "checking for PDO_DBLIB support via FreeTDS... " >&6; } # Check whether --with-pdo-dblib was given. -if test "${with_pdo_dblib+set}" = set; then : +if test ${with_pdo_dblib+y} +then : withval=$with_pdo_dblib; PHP_PDO_DBLIB=$withval -else - +else case e in #( + e) PHP_PDO_DBLIB=no test "$PHP_ENABLE_ALL" && PHP_PDO_DBLIB=$PHP_ENABLE_ALL - + ;; +esac fi @@ -56010,8 +59610,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -56128,57 +59728,66 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbsqlexec in -lsybdb" >&5 -$as_echo_n "checking for dbsqlexec in -lsybdb... " >&6; } -if ${ac_cv_lib_sybdb_dbsqlexec+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbsqlexec in -lsybdb" >&5 +printf %s "checking for dbsqlexec in -lsybdb... " >&6; } +if test ${ac_cv_lib_sybdb_dbsqlexec+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsybdb $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dbsqlexec (); +char dbsqlexec (void); int -main () +main (void) { return dbsqlexec (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_sybdb_dbsqlexec=yes -else - ac_cv_lib_sybdb_dbsqlexec=no +else case e in #( + e) ac_cv_lib_sybdb_dbsqlexec=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_dbsqlexec" >&5 -$as_echo "$ac_cv_lib_sybdb_dbsqlexec" >&6; } -if test "x$ac_cv_lib_sybdb_dbsqlexec" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_dbsqlexec" >&5 +printf "%s\n" "$ac_cv_lib_sybdb_dbsqlexec" >&6; } +if test "x$ac_cv_lib_sybdb_dbsqlexec" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_sybdb_dbsqlexec as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5 - + ;; +esac fi @@ -56355,12 +59964,13 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 -$as_echo_n "checking for PDO includes... " >&6; } -if ${pdo_cv_inc_path+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +printf %s "checking for PDO includes... " >&6; } +if test ${pdo_cv_inc_path+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$abs_srcdir/ext elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then @@ -56368,10 +59978,11 @@ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$phpincludedir/ext fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 -$as_echo "$pdo_cv_inc_path" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +printf "%s\n" "$pdo_cv_inc_path" >&6; } if test -n "$pdo_cv_inc_path"; then : else @@ -56514,9 +60125,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PDO_DBLIB 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PDO_DBLIB 1" >>confdefs.h fi fi @@ -56637,43 +60246,51 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_addr in -ldnet_stub" >&5 -$as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; } -if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_addr in -ldnet_stub" >&5 +printf %s "checking for dnet_addr in -ldnet_stub... " >&6; } +if test ${ac_cv_lib_dnet_stub_dnet_addr+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dnet_addr (); +char dnet_addr (void); int -main () +main (void) { return dnet_addr (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dnet_stub_dnet_addr=yes -else - ac_cv_lib_dnet_stub_dnet_addr=no +else case e in #( + e) ac_cv_lib_dnet_stub_dnet_addr=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5 -$as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; } -if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5 +printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_addr" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes +then : @@ -56776,7 +60393,7 @@ fi -$as_echo "#define HAVE_PDO_DBLIB 1" >>confdefs.h +printf "%s\n" "#define HAVE_PDO_DBLIB 1" >>confdefs.h PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_DBLIB_SHARED_LIBADD" @@ -56809,17 +60426,19 @@ php_with_pdo_firebird=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird support for PDO" >&5 -$as_echo_n "checking for Firebird support for PDO... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Firebird support for PDO" >&5 +printf %s "checking for Firebird support for PDO... " >&6; } # Check whether --with-pdo-firebird was given. -if test "${with_pdo_firebird+set}" = set; then : +if test ${with_pdo_firebird+y} +then : withval=$with_pdo_firebird; PHP_PDO_FIREBIRD=$withval -else - +else case e in #( + e) PHP_PDO_FIREBIRD=no test "$PHP_ENABLE_ALL" && PHP_PDO_FIREBIRD=$PHP_ENABLE_ALL - + ;; +esac fi @@ -56845,8 +60464,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -56859,12 +60478,13 @@ # Extract the first word of "fb_config", so it can be a program name with args. set dummy fb_config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_FB_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $FB_CONFIG in +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_FB_CONFIG+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $FB_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_FB_CONFIG="$FB_CONFIG" # Let the user override the test with a path. ;; @@ -56873,11 +60493,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_FB_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_FB_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -56886,27 +60510,28 @@ test -z "$ac_cv_path_FB_CONFIG" && ac_cv_path_FB_CONFIG="no" ;; +esac ;; esac fi FB_CONFIG=$ac_cv_path_FB_CONFIG if test -n "$FB_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FB_CONFIG" >&5 -$as_echo "$FB_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FB_CONFIG" >&5 +printf "%s\n" "$FB_CONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test -x "$FB_CONFIG" && test "$PHP_PDO_FIREBIRD" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfbconfig" >&5 -$as_echo_n "checking for libfbconfig... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfbconfig" >&5 +printf %s "checking for libfbconfig... " >&6; } FB_CFLAGS=`$FB_CONFIG --cflags` FB_LIBDIR=`$FB_CONFIG --libs` FB_VERSION=`$FB_CONFIG --version` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $FB_VERSION" >&5 -$as_echo "version $FB_VERSION" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: version $FB_VERSION" >&5 +printf "%s\n" "version $FB_VERSION" >&6; } for ac_i in $FB_LIBDIR; do case $ac_i in @@ -57165,43 +60790,51 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5 -$as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; } -if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5 +printf %s "checking for isc_detach_database in -lfbclient... " >&6; } +if test ${ac_cv_lib_fbclient_isc_detach_database+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lfbclient $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char isc_detach_database (); +char isc_detach_database (void); int -main () +main (void) { return isc_detach_database (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fbclient_isc_detach_database=yes -else - ac_cv_lib_fbclient_isc_detach_database=no +else case e in #( + e) ac_cv_lib_fbclient_isc_detach_database=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5 -$as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; } -if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5 +printf "%s\n" "$ac_cv_lib_fbclient_isc_detach_database" >&6; } +if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -57209,8 +60842,8 @@ FIREBIRD_LIBNAME=fbclient -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_fbclient_isc_detach_database @@ -57322,43 +60955,51 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5 -$as_echo_n "checking for isc_detach_database in -lgds... " >&6; } -if ${ac_cv_lib_gds_isc_detach_database+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5 +printf %s "checking for isc_detach_database in -lgds... " >&6; } +if test ${ac_cv_lib_gds_isc_detach_database+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lgds $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char isc_detach_database (); +char isc_detach_database (void); int -main () +main (void) { return isc_detach_database (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_gds_isc_detach_database=yes -else - ac_cv_lib_gds_isc_detach_database=no +else case e in #( + e) ac_cv_lib_gds_isc_detach_database=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5 -$as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; } -if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5 +printf "%s\n" "$ac_cv_lib_gds_isc_detach_database" >&6; } +if test "x$ac_cv_lib_gds_isc_detach_database" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -57366,8 +61007,8 @@ FIREBIRD_LIBNAME=gds -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_gds_isc_detach_database @@ -57479,43 +61120,51 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5 -$as_echo_n "checking for isc_detach_database in -lib_util... " >&6; } -if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5 +printf %s "checking for isc_detach_database in -lib_util... " >&6; } +if test ${ac_cv_lib_ib_util_isc_detach_database+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lib_util $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char isc_detach_database (); +char isc_detach_database (void); int -main () +main (void) { return isc_detach_database (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_ib_util_isc_detach_database=yes -else - ac_cv_lib_ib_util_isc_detach_database=no +else case e in #( + e) ac_cv_lib_ib_util_isc_detach_database=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5 -$as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; } -if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5 +printf "%s\n" "$ac_cv_lib_ib_util_isc_detach_database" >&6; } +if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -57523,23 +61172,26 @@ FIREBIRD_LIBNAME=ib_util -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_ib_util_isc_detach_database as_fn_error $? "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5 - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi @@ -57673,12 +61325,13 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 -$as_echo_n "checking for PDO includes... " >&6; } -if ${pdo_cv_inc_path+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +printf %s "checking for PDO includes... " >&6; } +if test ${pdo_cv_inc_path+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$abs_srcdir/ext elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then @@ -57686,10 +61339,11 @@ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$phpincludedir/ext fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 -$as_echo "$pdo_cv_inc_path" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +printf "%s\n" "$pdo_cv_inc_path" >&6; } if test -n "$pdo_cv_inc_path"; then : else @@ -57698,7 +61352,7 @@ -$as_echo "#define HAVE_PDO_FIREBIRD 1" >>confdefs.h +printf "%s\n" "#define HAVE_PDO_FIREBIRD 1" >>confdefs.h ext_builddir=ext/pdo_firebird @@ -57834,9 +61488,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PDO_FIREBIRD 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PDO_FIREBIRD 1" >>confdefs.h fi fi @@ -57987,17 +61639,19 @@ php_with_pdo_mysql=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support for PDO" >&5 -$as_echo_n "checking for MySQL support for PDO... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MySQL support for PDO" >&5 +printf %s "checking for MySQL support for PDO... " >&6; } # Check whether --with-pdo-mysql was given. -if test "${with_pdo_mysql+set}" = set; then : +if test ${with_pdo_mysql+y} +then : withval=$with_pdo_mysql; PHP_PDO_MYSQL=$withval -else - +else case e in #( + e) PHP_PDO_MYSQL=no test "$PHP_ENABLE_ALL" && PHP_PDO_MYSQL=$PHP_ENABLE_ALL - + ;; +esac fi @@ -58023,8 +61677,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -58033,40 +61687,40 @@ php_with_zlib_dir=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 -$as_echo_n "checking for the location of libz... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5 +printf %s "checking for the location of libz... " >&6; } # Check whether --with-zlib-dir was given. -if test "${with_zlib_dir+set}" = set; then : +if test ${with_zlib_dir+y} +then : withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval -else - +else case e in #( + e) PHP_ZLIB_DIR=no - + ;; +esac fi ext_output=$PHP_ZLIB_DIR -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } fi if test "$PHP_PDO_MYSQL" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5 -$as_echo_n "checking for MySQL UNIX socket location... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5 +printf %s "checking for MySQL UNIX socket location... " >&6; } if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then MYSQL_SOCK=$PHP_MYSQL_SOCK -cat >>confdefs.h <<_ACEOF -#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" -_ACEOF +printf "%s\n" "#define PHP_MYSQL_UNIX_SOCK_ADDR \"$MYSQL_SOCK\"" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 -$as_echo "$MYSQL_SOCK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +printf "%s\n" "$MYSQL_SOCK" >&6; } elif test "$PHP_MYSQL_SOCK" = "yes"; then for i in \ @@ -58088,20 +61742,18 @@ if test -n "$MYSQL_SOCK"; then -cat >>confdefs.h <<_ACEOF -#define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK" -_ACEOF +printf "%s\n" "#define PHP_MYSQL_UNIX_SOCK_ADDR \"$MYSQL_SOCK\"" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 -$as_echo "$MYSQL_SOCK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5 +printf "%s\n" "$MYSQL_SOCK" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then @@ -58125,27 +61777,28 @@ if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then PHP_MYSQLND_ENABLED=yes -$as_echo "#define PDO_USE_MYSQLND 1" >>confdefs.h +printf "%s\n" "#define PDO_USE_MYSQLND 1" >>confdefs.h else -$as_echo "#define HAVE_MYSQL 1" >>confdefs.h +printf "%s\n" "#define HAVE_MYSQL 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_config" >&5 -$as_echo_n "checking for mysql_config... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_config" >&5 +printf %s "checking for mysql_config... " >&6; } if test -n "$PDO_MYSQL_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_MYSQL_CONFIG" >&5 -$as_echo "$PDO_MYSQL_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDO_MYSQL_CONFIG" >&5 +printf "%s\n" "$PDO_MYSQL_CONFIG" >&6; } if test "x$SED" = "x"; then # Extract the first word of "sed", so it can be a program name with args. set dummy sed; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $SED in +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_SED+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $SED in [\\/]* | ?:[\\/]*) ac_cv_path_SED="$SED" # Let the user override the test with a path. ;; @@ -58154,11 +61807,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -58166,15 +61823,16 @@ IFS=$as_save_IFS ;; +esac ;; esac fi SED=$ac_cv_path_SED if test -n "$SED"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 -$as_echo "$SED" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +printf "%s\n" "$SED" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -58182,10 +61840,10 @@ PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"` PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"` elif test -n "$PDO_MYSQL_DIR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 -$as_echo "not found" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql install under $PDO_MYSQL_DIR" >&5 -$as_echo_n "checking for mysql install under $PDO_MYSQL_DIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +printf "%s\n" "not found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql install under $PDO_MYSQL_DIR" >&5 +printf %s "checking for mysql install under $PDO_MYSQL_DIR... " >&6; } if test -r $PDO_MYSQL_DIR/include/mysql; then PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql else @@ -58198,11 +61856,11 @@ fi if test -r "$PDO_MYSQL_LIB_DIR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5 -$as_echo "libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5 +printf "%s\n" "libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not find it" >&5 -$as_echo "can not find it" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: can not find it" >&5 +printf "%s\n" "can not find it" >&6; } as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 fi @@ -58239,8 +61897,8 @@ PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 -$as_echo "not found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +printf "%s\n" "not found" >&6; } as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 fi @@ -58386,12 +62044,13 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 -$as_echo_n "checking for PDO includes... " >&6; } -if ${pdo_cv_inc_path+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +printf %s "checking for PDO includes... " >&6; } +if test ${pdo_cv_inc_path+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$abs_srcdir/ext elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then @@ -58399,10 +62058,11 @@ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$phpincludedir/ext fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 -$as_echo "$pdo_cv_inc_path" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +printf "%s\n" "$pdo_cv_inc_path" >&6; } if test -n "$pdo_cv_inc_path"; then : else @@ -58413,9 +62073,7 @@ if test -n "$PDO_MYSQL_CONFIG"; then PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket` -cat >>confdefs.h <<_ACEOF -#define PDO_MYSQL_UNIX_ADDR "$PDO_MYSQL_SOCKET" -_ACEOF +printf "%s\n" "#define PDO_MYSQL_UNIX_ADDR \"$PDO_MYSQL_SOCKET\"" >>confdefs.h fi @@ -58553,9 +62211,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PDO_MYSQL 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PDO_MYSQL 1" >>confdefs.h fi fi @@ -58755,17 +62411,19 @@ php_with_pdo_oci=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle OCI support for PDO" >&5 -$as_echo_n "checking Oracle OCI support for PDO... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Oracle OCI support for PDO" >&5 +printf %s "checking Oracle OCI support for PDO... " >&6; } # Check whether --with-pdo-oci was given. -if test "${with_pdo_oci+set}" = set; then : +if test ${with_pdo_oci+y} +then : withval=$with_pdo_oci; PHP_PDO_OCI=$withval -else - +else case e in #( + e) PHP_PDO_OCI=no test "$PHP_ENABLE_ALL" && PHP_PDO_OCI=$PHP_ENABLE_ALL - + ;; +esac fi @@ -58791,8 +62449,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -58803,79 +62461,83 @@ as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Install-Dir" >&5 -$as_echo_n "checking Oracle Install-Dir... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Oracle Install-Dir" >&5 +printf %s "checking Oracle Install-Dir... " >&6; } if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then PDO_OCI_DIR=$ORACLE_HOME else PDO_OCI_DIR=$PHP_PDO_OCI fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_PDO_OCI" >&5 -$as_echo "$PHP_PDO_OCI" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PHP_PDO_OCI" >&5 +printf "%s\n" "$PHP_PDO_OCI" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if that is sane" >&5 -$as_echo_n "checking if that is sane... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if that is sane" >&5 +printf %s "checking if that is sane... " >&6; } if test -z "$PDO_OCI_DIR"; then as_fn_error $? "You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME." "$LINENO" 5 else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +printf %s "checking size of long... " >&6; } +if test ${ac_cv_sizeof_long+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_long" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 -$as_echo_n "checking if we're at 64-bit platform... " >&6; } - if test "$ac_cv_sizeof_long" -eq 4; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +printf %s "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } PDO_OCI_CLIENT_DIR="client" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } PDO_OCI_CLIENT_DIR="client64" - + ;; +esac fi PDO_OCI_LIB_DIR="`echo $PDO_OCI_DIR | cut -d, -f2`" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5 -$as_echo_n "checking Oracle version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5 +printf %s "checking Oracle version... " >&6; } PDO_OCI_LCS_BASE=$PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME PDO_OCI_LCS=`ls $PDO_OCI_LCS_BASE.*.1 2> /dev/null | $PHP_PDO_OCI_TAIL1` if test -f "$PDO_OCI_LCS"; then @@ -58885,12 +62547,12 @@ else as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found or its version is lower than 9" "$LINENO" 5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5 -$as_echo "$PDO_OCI_VERSION" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5 +printf "%s\n" "$PDO_OCI_VERSION" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oci.h" >&5 -$as_echo_n "checking for oci.h... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for oci.h" >&5 +printf %s "checking for oci.h... " >&6; } OCISDKRPMINC=`echo "$PDO_OCI_LIB_DIR" | $PHP_PDO_OCI_SED -e 's!^\(.*\)/lib/oracle/\(.*\)/\('${PDO_OCI_CLIENT_DIR}'\)/lib/*$!\1/include/oracle/\2/\3!'` OCISDKMANINC=`echo "$PDO_OCI_LIB_DIR" | $PHP_PDO_OCI_SED -e 's!^\(.*\)/lib/*$!\1/include!'` @@ -58930,8 +62592,8 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5 -$as_echo "$OCISDKRPMINC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5 +printf "%s\n" "$OCISDKRPMINC" >&6; } elif test -f "$OCISDKMANINC/oci.h" ; then if test "$OCISDKMANINC" != "/usr/include"; then @@ -58964,8 +62626,8 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5 -$as_echo "$OCISDKMANINC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5 +printf "%s\n" "$OCISDKMANINC" >&6; } elif test -f "$OCISDKZIPINC/oci.h" ; then if test "$OCISDKZIPINC" != "/usr/include"; then @@ -58998,8 +62660,8 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5 -$as_echo "$OCISDKZIPINC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5 +printf "%s\n" "$OCISDKZIPINC" >&6; } else as_fn_error $? "I'm too dumb to figure out where the include dir is in your Instant Client install" "$LINENO" 5 fi @@ -59007,55 +62669,59 @@ # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +printf %s "checking size of long... " >&6; } +if test ${ac_cv_sizeof_long+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" +then : + +else case e in #( + e) if test "$ac_cv_type_long" = yes; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 - fi + fi ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 -$as_echo_n "checking if we're at 64-bit platform... " >&6; } - if test "$ac_cv_sizeof_long" -eq 4; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're at 64-bit platform" >&5 +printf %s "checking if we're at 64-bit platform... " >&6; } + if test "$ac_cv_sizeof_long" -eq 4 +then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" - + ;; +esac fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 libraries dir" >&5 -$as_echo_n "checking OCI8 libraries dir... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OCI8 libraries dir" >&5 +printf %s "checking OCI8 libraries dir... " >&6; } if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib" elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then @@ -59065,8 +62731,8 @@ else as_fn_error $? "Oracle required OCI8 libraries not found" "$LINENO" 5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_LIB_DIR" >&5 -$as_echo "$PDO_OCI_LIB_DIR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_LIB_DIR" >&5 +printf "%s\n" "$PDO_OCI_LIB_DIR" >&6; } if test -d "$PDO_OCI_DIR/rdbms/public"; then @@ -59442,8 +63108,8 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5 -$as_echo_n "checking Oracle version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5 +printf %s "checking Oracle version... " >&6; } PDO_OCI_LCS_BASE=$PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME PDO_OCI_LCS=`ls $PDO_OCI_LCS_BASE.*.1 2> /dev/null | $PHP_PDO_OCI_TAIL1` if test -f "$PDO_OCI_LCS"; then @@ -59453,8 +63119,8 @@ else as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found or its version is lower than 9" "$LINENO" 5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5 -$as_echo "$PDO_OCI_VERSION" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5 +printf "%s\n" "$PDO_OCI_VERSION" >&6; } fi @@ -59633,59 +63299,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 -$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } -if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 +printf %s "checking for OCIEnvCreate in -lclntsh... " >&6; } +if test ${ac_cv_lib_clntsh_OCIEnvCreate+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lclntsh $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char OCIEnvCreate (); +char OCIEnvCreate (void); int -main () +main (void) { return OCIEnvCreate (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_clntsh_OCIEnvCreate=yes -else - ac_cv_lib_clntsh_OCIEnvCreate=no +else case e in #( + e) ac_cv_lib_clntsh_OCIEnvCreate=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 -$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } -if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 +printf "%s\n" "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_OCIENVCREATE 1" >>confdefs.h - +printf "%s\n" "#define HAVE_OCIENVCREATE 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_clntsh_OCIEnvCreate - + ;; +esac fi @@ -59796,59 +63471,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5 -$as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; } -if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5 +printf %s "checking for OCIEnvNlsCreate in -lclntsh... " >&6; } +if test ${ac_cv_lib_clntsh_OCIEnvNlsCreate+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lclntsh $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char OCIEnvNlsCreate (); +char OCIEnvNlsCreate (void); int -main () +main (void) { return OCIEnvNlsCreate (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_clntsh_OCIEnvNlsCreate=yes -else - ac_cv_lib_clntsh_OCIEnvNlsCreate=no +else case e in #( + e) ac_cv_lib_clntsh_OCIEnvNlsCreate=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5 -$as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; } -if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5 +printf "%s\n" "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; } +if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_OCIENVNLSCREATE 1" >>confdefs.h - +printf "%s\n" "#define HAVE_OCIENVNLSCREATE 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_clntsh_OCIEnvNlsCreate - + ;; +esac fi @@ -59959,59 +63643,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIStmtFetch2 in -lclntsh" >&5 -$as_echo_n "checking for OCIStmtFetch2 in -lclntsh... " >&6; } -if ${ac_cv_lib_clntsh_OCIStmtFetch2+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCIStmtFetch2 in -lclntsh" >&5 +printf %s "checking for OCIStmtFetch2 in -lclntsh... " >&6; } +if test ${ac_cv_lib_clntsh_OCIStmtFetch2+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lclntsh $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char OCIStmtFetch2 (); +char OCIStmtFetch2 (void); int -main () +main (void) { return OCIStmtFetch2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_clntsh_OCIStmtFetch2=yes -else - ac_cv_lib_clntsh_OCIStmtFetch2=no +else case e in #( + e) ac_cv_lib_clntsh_OCIStmtFetch2=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5 -$as_echo "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; } -if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5 +printf "%s\n" "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; } +if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_OCISTMTFETCH2 1" >>confdefs.h - +printf "%s\n" "#define HAVE_OCISTMTFETCH2 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_clntsh_OCIStmtFetch2 - + ;; +esac fi @@ -60122,69 +63815,79 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobRead2 in -lclntsh" >&5 -$as_echo_n "checking for OCILobRead2 in -lclntsh... " >&6; } -if ${ac_cv_lib_clntsh_OCILobRead2+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCILobRead2 in -lclntsh" >&5 +printf %s "checking for OCILobRead2 in -lclntsh... " >&6; } +if test ${ac_cv_lib_clntsh_OCILobRead2+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lclntsh $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char OCILobRead2 (); +char OCILobRead2 (void); int -main () +main (void) { return OCILobRead2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_clntsh_OCILobRead2=yes -else - ac_cv_lib_clntsh_OCILobRead2=no +else case e in #( + e) ac_cv_lib_clntsh_OCILobRead2=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCILobRead2" >&5 -$as_echo "$ac_cv_lib_clntsh_OCILobRead2" >&6; } -if test "x$ac_cv_lib_clntsh_OCILobRead2" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCILobRead2" >&5 +printf "%s\n" "$ac_cv_lib_clntsh_OCILobRead2" >&6; } +if test "x$ac_cv_lib_clntsh_OCILobRead2" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_OCILOBREAD2 1" >>confdefs.h - +printf "%s\n" "#define HAVE_OCILOBREAD2 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_clntsh_OCILobRead2 - + ;; +esac fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 -$as_echo_n "checking for PDO includes... " >&6; } -if ${pdo_cv_inc_path+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +printf %s "checking for PDO includes... " >&6; } +if test ${pdo_cv_inc_path+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$abs_srcdir/ext elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then @@ -60192,10 +63895,11 @@ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$phpincludedir/ext fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 -$as_echo "$pdo_cv_inc_path" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +printf "%s\n" "$pdo_cv_inc_path" >&6; } if test -n "$pdo_cv_inc_path"; then : else @@ -60337,9 +64041,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PDO_OCI 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PDO_OCI 1" >>confdefs.h fi fi @@ -60501,9 +64203,7 @@ -cat >>confdefs.h <<_ACEOF -#define PHP_PDO_OCI_CLIENT_VERSION "$PDO_OCI_VERSION" -_ACEOF +printf "%s\n" "#define PHP_PDO_OCI_CLIENT_VERSION \"$PDO_OCI_VERSION\"" >>confdefs.h fi @@ -60515,17 +64215,19 @@ php_with_pdo_odbc=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC v3 support for PDO" >&5 -$as_echo_n "checking for ODBC v3 support for PDO... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ODBC v3 support for PDO" >&5 +printf %s "checking for ODBC v3 support for PDO... " >&6; } # Check whether --with-pdo-odbc was given. -if test "${with_pdo_odbc+set}" = set; then : +if test ${with_pdo_odbc+y} +then : withval=$with_pdo_odbc; PHP_PDO_ODBC=$withval -else - +else case e in #( + e) PHP_PDO_ODBC=no test "$PHP_ENABLE_ALL" && PHP_PDO_ODBC=$PHP_ENABLE_ALL - + ;; +esac fi @@ -60551,8 +64253,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -60566,12 +64268,13 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 -$as_echo_n "checking for PDO includes... " >&6; } -if ${pdo_cv_inc_path+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +printf %s "checking for PDO includes... " >&6; } +if test ${pdo_cv_inc_path+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$abs_srcdir/ext elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then @@ -60579,10 +64282,11 @@ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$phpincludedir/ext fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 -$as_echo "$pdo_cv_inc_path" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +printf "%s\n" "$pdo_cv_inc_path" >&6; } if test -n "$pdo_cv_inc_path"; then : else @@ -60590,8 +64294,8 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selected PDO ODBC flavour" >&5 -$as_echo_n "checking for selected PDO ODBC flavour... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for selected PDO ODBC flavour" >&5 +printf %s "checking for selected PDO ODBC flavour... " >&6; } pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`" pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`" @@ -60652,286 +64356,286 @@ PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_odbc_flavour + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pdo_odbc_flavour libs $PDO_ODBC_LIBDIR, headers $PDO_ODBC_INCDIR" >&5 -$as_echo "$pdo_odbc_flavour +printf "%s\n" "$pdo_odbc_flavour libs $PDO_ODBC_LIBDIR, headers $PDO_ODBC_INCDIR" >&6; } if test ! -d "$PDO_ODBC_LIBDIR" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5 -$as_echo "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5 +printf "%s\n" "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;} fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for odbc.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for odbc.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for odbc.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/odbc.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_ODBC_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_ODBC_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for odbcsdk.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for odbcsdk.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/odbcsdk.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_ODBCSDK_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_ODBCSDK_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for iodbc.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for iodbc.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/iodbc.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_IODBC_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_IODBC_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for sqlunix.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for sqlunix.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/sqlunix.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_SQLUNIX_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_SQLUNIX_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for sqltypes.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for sqltypes.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/sqltypes.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_SQLTYPES_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_SQLTYPES_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for sqlucode.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for sqlucode.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/sqlucode.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_SQLUCODE_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_SQLUCODE_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sql.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for sql.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sql.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for sql.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/sql.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_SQL_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_SQL_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isql.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for isql.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isql.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for isql.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/isql.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_ISQL_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_ISQL_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for sqlext.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for sqlext.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/sqlext.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_SQLEXT_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_SQLEXT_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for isqlext.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for isqlext.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/isqlext.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_ISQLEXT_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_ISQLEXT_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for udbcext.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for udbcext.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/udbcext.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_UDBCEXT_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_UDBCEXT_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for sqlcli1.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for sqlcli1.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/sqlcli1.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_SQLCLI1_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_SQLCLI1_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for LibraryManager.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for LibraryManager.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/LibraryManager.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_LIBRARYMANAGER_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBRARYMANAGER_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for cli0core.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for cli0core.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/cli0core.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_CLI0CORE_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_CLI0CORE_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for cli0ext.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for cli0ext.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/cli0ext.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_CLI0EXT_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_CLI0EXT_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for cli0cli.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for cli0cli.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/cli0cli.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_CLI0CLI_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_CLI0CLI_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for cli0defs.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for cli0defs.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/cli0defs.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_CLI0DEFS_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_CLI0DEFS_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5 -$as_echo_n "checking for cli0env.h in $PDO_ODBC_INCDIR... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5 +printf %s "checking for cli0env.h in $PDO_ODBC_INCDIR... " >&6; } if test -f "$PDO_ODBC_INCDIR/cli0env.h"; then php_pdo_have_header=yes -$as_echo "#define HAVE_CLI0ENV_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_CLI0ENV_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -61147,45 +64851,53 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5 -$as_echo_n "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$pdo_odbc_def_lib""_SQLBindCol" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5 +printf %s "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$pdo_odbc_def_lib $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char SQLBindCol (); +char SQLBindCol (void); int -main () +main (void) { return SQLBindCol (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -61295,52 +65007,60 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5 -$as_echo_n "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$pdo_odbc_def_lib""_SQLAllocHandle" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5 +printf %s "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$pdo_odbc_def_lib $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char SQLAllocHandle (); +char SQLAllocHandle (void); int -main () +main (void) { return SQLAllocHandle (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle @@ -61351,20 +65071,22 @@ libraries as a driver in that environment; it will emulate the functions required for PDO support. " "$LINENO" 5 - + ;; +esac fi -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol as_fn_error $? "Your ODBC library does not exist or there was an error. Check config.log for more information" "$LINENO" 5 - + ;; +esac fi @@ -61502,9 +65224,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PDO_ODBC 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PDO_ODBC 1" >>confdefs.h fi fi @@ -61655,17 +65375,19 @@ php_with_pdo_pgsql=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support for PDO" >&5 -$as_echo_n "checking for PostgreSQL support for PDO... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support for PDO" >&5 +printf %s "checking for PostgreSQL support for PDO... " >&6; } # Check whether --with-pdo-pgsql was given. -if test "${with_pdo_pgsql+set}" = set; then : +if test ${with_pdo_pgsql+y} +then : withval=$with_pdo_pgsql; PHP_PDO_PGSQL=$withval -else - +else case e in #( + e) PHP_PDO_PGSQL=no test "$PHP_ENABLE_ALL" && PHP_PDO_PGSQL=$PHP_ENABLE_ALL - + ;; +esac fi @@ -61691,8 +65413,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -61715,8 +65437,8 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 -$as_echo_n "checking for pg_config... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 +printf %s "checking for pg_config... " >&6; } for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do if test -x $i/pg_config; then PG_CONFIG="$i/pg_config" @@ -61725,13 +65447,13 @@ done if test -n "$PG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 -$as_echo "$PG_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 +printf "%s\n" "$PG_CONFIG" >&6; } PGSQL_INCLUDE=`$PG_CONFIG --includedir` PGSQL_LIBDIR=`$PG_CONFIG --libdir` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 -$as_echo "not found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +printf "%s\n" "not found" >&6; } if test "$PHP_PDO_PGSQL" = "yes"; then PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" else @@ -61767,58 +65489,65 @@ fi -$as_echo "#define HAVE_PDO_PGSQL 1" >>confdefs.h +printf "%s\n" "#define HAVE_PDO_PGSQL 1" >>confdefs.h old_LIBS=$LIBS old_LDFLAGS=$LDFLAGS LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQlibVersion in -lpq" >&5 -$as_echo_n "checking for PQlibVersion in -lpq... " >&6; } -if ${ac_cv_lib_pq_PQlibVersion+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PQlibVersion in -lpq" >&5 +printf %s "checking for PQlibVersion in -lpq... " >&6; } +if test ${ac_cv_lib_pq_PQlibVersion+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lpq $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char PQlibVersion (); +char PQlibVersion (void); int -main () +main (void) { return PQlibVersion (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pq_PQlibVersion=yes -else - ac_cv_lib_pq_PQlibVersion=no +else case e in #( + e) ac_cv_lib_pq_PQlibVersion=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQlibVersion" >&5 -$as_echo "$ac_cv_lib_pq_PQlibVersion" >&6; } -if test "x$ac_cv_lib_pq_PQlibVersion" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBPQ 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQlibVersion" >&5 +printf "%s\n" "$ac_cv_lib_pq_PQlibVersion" >&6; } +if test "x$ac_cv_lib_pq_PQlibVersion" = xyes +then : + printf "%s\n" "#define HAVE_LIBPQ 1" >>confdefs.h LIBS="-lpq $LIBS" -else - as_fn_error $? "Unable to build the PDO PostgreSQL driver: at least libpq 9.1 is required" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "Unable to build the PDO PostgreSQL driver: at least libpq 9.1 is required" "$LINENO" 5 ;; +esac fi @@ -61959,12 +65688,13 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 -$as_echo_n "checking for PDO includes... " >&6; } -if ${pdo_cv_inc_path+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +printf %s "checking for PDO includes... " >&6; } +if test ${pdo_cv_inc_path+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$abs_srcdir/ext elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then @@ -61972,10 +65702,11 @@ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$phpincludedir/ext fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 -$as_echo "$pdo_cv_inc_path" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +printf "%s\n" "$pdo_cv_inc_path" >&6; } if test -n "$pdo_cv_inc_path"; then : else @@ -62117,9 +65848,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PDO_PGSQL 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PDO_PGSQL 1" >>confdefs.h fi fi @@ -62267,17 +65996,19 @@ php_with_pdo_sqlite=$PHP_PDO -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite 3 support for PDO" >&5 -$as_echo_n "checking for sqlite 3 support for PDO... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite 3 support for PDO" >&5 +printf %s "checking for sqlite 3 support for PDO... " >&6; } # Check whether --with-pdo-sqlite was given. -if test "${with_pdo_sqlite+set}" = set; then : +if test ${with_pdo_sqlite+y} +then : withval=$with_pdo_sqlite; PHP_PDO_SQLITE=$withval -else - +else case e in #( + e) PHP_PDO_SQLITE=$PHP_PDO test "$PHP_ENABLE_ALL" && PHP_PDO_SQLITE=$PHP_ENABLE_ALL - + ;; +esac fi @@ -62303,8 +66034,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -62316,12 +66047,13 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 -$as_echo_n "checking for PDO includes... " >&6; } -if ${pdo_cv_inc_path+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 +printf %s "checking for PDO includes... " >&6; } +if test ${pdo_cv_inc_path+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$abs_srcdir/ext elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then @@ -62329,10 +66061,11 @@ elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then pdo_cv_inc_path=$phpincludedir/ext fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 -$as_echo "$pdo_cv_inc_path" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5 +printf "%s\n" "$pdo_cv_inc_path" >&6; } if test -n "$pdo_cv_inc_path"; then : else @@ -62342,17 +66075,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.7.7" >&5 -$as_echo_n "checking for sqlite3 >= 3.7.7... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.7.7" >&5 +printf %s "checking for sqlite3 >= 3.7.7... " >&6; } if test -n "$SQLITE_CFLAGS"; then pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.7\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.7\""; } >&5 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.7.7") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.7.7" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -62366,10 +66099,10 @@ pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.7\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.7\""; } >&5 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.7.7") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.7.7" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -62383,8 +66116,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -62410,10 +66143,10 @@ and SQLITE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -62423,12 +66156,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS SQLITE_LIBS=$pkg_cv_SQLITE_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -62572,7 +66305,7 @@ done -$as_echo "#define HAVE_PDO_SQLITELIB 1" >>confdefs.h +printf "%s\n" "#define HAVE_PDO_SQLITELIB 1" >>confdefs.h @@ -62680,59 +66413,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close_v2 in -lsqlite3" >&5 -$as_echo_n "checking for sqlite3_close_v2 in -lsqlite3... " >&6; } -if ${ac_cv_lib_sqlite3_sqlite3_close_v2+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close_v2 in -lsqlite3" >&5 +printf %s "checking for sqlite3_close_v2 in -lsqlite3... " >&6; } +if test ${ac_cv_lib_sqlite3_sqlite3_close_v2+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsqlite3 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char sqlite3_close_v2 (); +char sqlite3_close_v2 (void); int -main () +main (void) { return sqlite3_close_v2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_sqlite3_sqlite3_close_v2=yes -else - ac_cv_lib_sqlite3_sqlite3_close_v2=no +else case e in #( + e) ac_cv_lib_sqlite3_sqlite3_close_v2=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close_v2" >&5 -$as_echo "$ac_cv_lib_sqlite3_sqlite3_close_v2" >&6; } -if test "x$ac_cv_lib_sqlite3_sqlite3_close_v2" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close_v2" >&5 +printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_close_v2" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_close_v2" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_SQLITE3_CLOSE_V2 1" >>confdefs.h - +printf "%s\n" "#define HAVE_SQLITE3_CLOSE_V2 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_sqlite3_sqlite3_close_v2 - + ;; +esac fi @@ -62841,59 +66583,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_table_name in -lsqlite3" >&5 -$as_echo_n "checking for sqlite3_column_table_name in -lsqlite3... " >&6; } -if ${ac_cv_lib_sqlite3_sqlite3_column_table_name+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_table_name in -lsqlite3" >&5 +printf %s "checking for sqlite3_column_table_name in -lsqlite3... " >&6; } +if test ${ac_cv_lib_sqlite3_sqlite3_column_table_name+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsqlite3 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char sqlite3_column_table_name (); +char sqlite3_column_table_name (void); int -main () +main (void) { return sqlite3_column_table_name (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_sqlite3_sqlite3_column_table_name=yes -else - ac_cv_lib_sqlite3_sqlite3_column_table_name=no +else case e in #( + e) ac_cv_lib_sqlite3_sqlite3_column_table_name=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name" >&5 -$as_echo "$ac_cv_lib_sqlite3_sqlite3_column_table_name" >&6; } -if test "x$ac_cv_lib_sqlite3_sqlite3_column_table_name" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name" >&5 +printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_table_name" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_column_table_name" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_SQLITE3_COLUMN_TABLE_NAME 1" >>confdefs.h - +printf "%s\n" "#define HAVE_SQLITE3_COLUMN_TABLE_NAME 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_sqlite3_sqlite3_column_table_name - + ;; +esac fi @@ -63034,9 +66785,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PDO_SQLITE 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PDO_SQLITE 1" >>confdefs.h fi fi @@ -63183,19 +66932,377 @@ +php_enable_pdo=yes + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable PDO support" >&5 +printf %s "checking whether to enable PDO support... " >&6; } +# Check whether --enable-pdo was given. +if test ${enable_pdo+y} +then : + enableval=$enable_pdo; PHP_PDO=$enableval +else case e in #( + e) + PHP_PDO=yes + test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL + ;; +esac +fi + + + +ext_output="yes, shared" +ext_shared=yes +case $PHP_PDO in +shared,*) + PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'` + ;; +shared) + PHP_PDO=yes + ;; +no) + ext_output=no + ext_shared=no + ;; +*) + ext_output=yes + ext_shared=no + ;; +esac + + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } + + + + +if test "$PHP_PDO" != "no"; then + + PHP_PDO=yes + + + ext_builddir=ext/pdo + ext_srcdir=$abs_srcdir/ext/pdo + ext_dir=ext/pdo + + ac_extra= + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then + PHP_PDO_SHARED=no + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + ac_comp="$ac_comp -MMD -MF $ac_bdir$ac_obj.dep -MT $ac_bdir$ac_obj.lo" + + cat >>Makefile.objects<>Makefile.objects<>Makefile.objects<>confdefs.h + + fi + fi + + if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then + PHP_PDO_SHARED=no + case "$PHP_SAPI" in + cgi|embed|phpdbg) + + + case $ext_dir in + "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;; + /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;; + *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;; + esac + + + + b_c_pre=$php_c_pre + b_cxx_pre=$php_cxx_pre + b_c_meta=$php_c_meta + b_cxx_meta=$php_cxx_meta + b_c_post=$php_c_post + b_cxx_post=$php_cxx_post + b_lo=$php_lo + + + old_IFS=$IFS + for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do + + IFS=. + set $ac_src + ac_obj=$1 + IFS=$old_IFS + + PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo" + + case $ac_src in + *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;; + *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta $ac_extra -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;; + esac + + ac_comp="$ac_comp -MMD -MF $ac_bdir$ac_obj.dep -MT $ac_bdir$ac_obj.lo" + + cat >>Makefile.objects<>Makefile.objects<> Makefile.fragments + +fi + + + + + php_with_pgsql=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5 -$as_echo_n "checking for PostgreSQL support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5 +printf %s "checking for PostgreSQL support... " >&6; } # Check whether --with-pgsql was given. -if test "${with_pgsql+set}" = set; then : +if test ${with_pgsql+y} +then : withval=$with_pgsql; PHP_PGSQL=$withval -else - +else case e in #( + e) PHP_PGSQL=no test "$PHP_ENABLE_ALL" && PHP_PGSQL=$PHP_ENABLE_ALL - + ;; +esac fi @@ -63221,8 +67328,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -63241,8 +67348,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 -$as_echo_n "checking for pg_config... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5 +printf %s "checking for pg_config... " >&6; } for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do if test -x $i/pg_config; then PG_CONFIG="$i/pg_config" @@ -63251,13 +67358,13 @@ done if test -n "$PG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 -$as_echo "$PG_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 +printf "%s\n" "$PG_CONFIG" >&6; } PGSQL_INCLUDE=`$PG_CONFIG --includedir` PGSQL_LIBDIR=`$PG_CONFIG --libdir` else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 -$as_echo "not found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 +printf "%s\n" "not found" >&6; } if test "$PHP_PGSQL" = "yes"; then PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql" else @@ -63293,139 +67400,162 @@ fi -$as_echo "#define HAVE_PGSQL 1" >>confdefs.h +printf "%s\n" "#define HAVE_PGSQL 1" >>confdefs.h old_LIBS=$LIBS old_LDFLAGS=$LDFLAGS LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQlibVersion in -lpq" >&5 -$as_echo_n "checking for PQlibVersion in -lpq... " >&6; } -if ${ac_cv_lib_pq_PQlibVersion+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PQlibVersion in -lpq" >&5 +printf %s "checking for PQlibVersion in -lpq... " >&6; } +if test ${ac_cv_lib_pq_PQlibVersion+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lpq $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char PQlibVersion (); +char PQlibVersion (void); int -main () +main (void) { return PQlibVersion (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pq_PQlibVersion=yes -else - ac_cv_lib_pq_PQlibVersion=no +else case e in #( + e) ac_cv_lib_pq_PQlibVersion=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQlibVersion" >&5 -$as_echo "$ac_cv_lib_pq_PQlibVersion" >&6; } -if test "x$ac_cv_lib_pq_PQlibVersion" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBPQ 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQlibVersion" >&5 +printf "%s\n" "$ac_cv_lib_pq_PQlibVersion" >&6; } +if test "x$ac_cv_lib_pq_PQlibVersion" = xyes +then : + printf "%s\n" "#define HAVE_LIBPQ 1" >>confdefs.h LIBS="-lpq $LIBS" -else - as_fn_error $? "Unable to build the PostgreSQL extension: at least libpq 9.1 is required" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "Unable to build the PostgreSQL extension: at least libpq 9.1 is required" "$LINENO" 5 ;; +esac fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5 -$as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; } -if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5 +printf %s "checking for pg_encoding_to_char in -lpq... " >&6; } +if test ${ac_cv_lib_pq_pg_encoding_to_char+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lpq $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char pg_encoding_to_char (); +char pg_encoding_to_char (void); int -main () +main (void) { return pg_encoding_to_char (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pq_pg_encoding_to_char=yes -else - ac_cv_lib_pq_pg_encoding_to_char=no +else case e in #( + e) ac_cv_lib_pq_pg_encoding_to_char=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5 -$as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; } -if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5 +printf "%s\n" "$ac_cv_lib_pq_pg_encoding_to_char" >&6; } +if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes +then : -$as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h +printf "%s\n" "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_truncate64 in -lpq" >&5 -$as_echo_n "checking for lo_truncate64 in -lpq... " >&6; } -if ${ac_cv_lib_pq_lo_truncate64+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lo_truncate64 in -lpq" >&5 +printf %s "checking for lo_truncate64 in -lpq... " >&6; } +if test ${ac_cv_lib_pq_lo_truncate64+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lpq $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char lo_truncate64 (); +char lo_truncate64 (void); int -main () +main (void) { return lo_truncate64 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pq_lo_truncate64=yes -else - ac_cv_lib_pq_lo_truncate64=no +else case e in #( + e) ac_cv_lib_pq_lo_truncate64=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_truncate64" >&5 -$as_echo "$ac_cv_lib_pq_lo_truncate64" >&6; } -if test "x$ac_cv_lib_pq_lo_truncate64" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_truncate64" >&5 +printf "%s\n" "$ac_cv_lib_pq_lo_truncate64" >&6; } +if test "x$ac_cv_lib_pq_lo_truncate64" = xyes +then : -$as_echo "#define HAVE_PG_LO64 1" >>confdefs.h +printf "%s\n" "#define HAVE_PG_LO64 1" >>confdefs.h fi @@ -63699,9 +67829,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PGSQL 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PGSQL 1" >>confdefs.h fi fi @@ -63830,16 +67958,18 @@ php_enable_phar=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for phar archive support" >&5 -$as_echo_n "checking for phar archive support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for phar archive support" >&5 +printf %s "checking for phar archive support... " >&6; } # Check whether --enable-phar was given. -if test "${enable_phar+set}" = set; then : +if test ${enable_phar+y} +then : enableval=$enable_phar; PHP_PHAR=$enableval -else - +else case e in #( + e) PHP_PHAR=yes test "$PHP_ENABLE_ALL" && PHP_PHAR=$PHP_ENABLE_ALL - + ;; +esac fi @@ -63865,8 +67995,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -64006,9 +68136,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PHAR 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PHAR 1" >>confdefs.h fi fi @@ -64129,21 +68257,21 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phar openssl support" >&5 -$as_echo_n "checking for phar openssl support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for phar openssl support" >&5 +printf %s "checking for phar openssl support... " >&6; } if test "$PHP_OPENSSL_SHARED" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (shared openssl)" >&5 -$as_echo "no (shared openssl)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (shared openssl)" >&5 +printf "%s\n" "no (shared openssl)" >&6; } else if test "$PHP_OPENSSL" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define PHAR_HAVE_OPENSSL 1" >>confdefs.h +printf "%s\n" "#define PHAR_HAVE_OPENSSL 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -64223,16 +68351,18 @@ php_enable_posix=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable POSIX-like functions" >&5 -$as_echo_n "checking whether to enable POSIX-like functions... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable POSIX-like functions" >&5 +printf %s "checking whether to enable POSIX-like functions... " >&6; } # Check whether --enable-posix was given. -if test "${enable_posix+set}" = set; then : +if test ${enable_posix+y} +then : enableval=$enable_posix; PHP_POSIX=$enableval -else - +else case e in #( + e) PHP_POSIX=yes test "$PHP_ENABLE_ALL" && PHP_POSIX=$PHP_ENABLE_ALL - + ;; +esac fi @@ -64258,15 +68388,15 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_POSIX" = "yes"; then -$as_echo "#define HAVE_POSIX 1" >>confdefs.h +printf "%s\n" "#define HAVE_POSIX 1" >>confdefs.h ext_builddir=ext/posix @@ -64402,9 +68532,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_POSIX 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_POSIX 1" >>confdefs.h fi fi @@ -64526,42 +68654,116 @@ fi - for ac_header in sys/mkdev.h sys/sysmacros.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_mkdev_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sysmacros_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h -done +fi - for ac_func in seteuid setegid setsid getsid getpgid ctermid mkfifo mknod setrlimit getrlimit getgroups makedev initgroups getgrgid_r -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" +if test "x$ac_cv_func_seteuid" = xyes +then : + printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid" +if test "x$ac_cv_func_setegid" = xyes +then : + printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" +if test "x$ac_cv_func_setsid" = xyes +then : + printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid" +if test "x$ac_cv_func_getsid" = xyes +then : + printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h +fi +ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid" +if test "x$ac_cv_func_getpgid" = xyes +then : + printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ttyname_r() implementation" >&5 -$as_echo_n "checking for working ttyname_r() implementation... " >&6; } - if test "$cross_compiling" = yes; then : +fi +ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid" +if test "x$ac_cv_func_ctermid" = xyes +then : + printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5 -$as_echo "no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; } +fi +ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo" +if test "x$ac_cv_func_mkfifo" = xyes +then : + printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +fi +ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod" +if test "x$ac_cv_func_mknod" = xyes +then : + printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" +if test "x$ac_cv_func_setrlimit" = xyes +then : + printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" +if test "x$ac_cv_func_getrlimit" = xyes +then : + printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" +if test "x$ac_cv_func_getgroups" = xyes +then : + printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "makedev" "ac_cv_func_makedev" +if test "x$ac_cv_func_makedev" = xyes +then : + printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" +if test "x$ac_cv_func_initgroups" = xyes +then : + printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r" +if test "x$ac_cv_func_getgrgid_r" = xyes +then : + printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h + +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ttyname_r() implementation" >&5 +printf %s "checking for working ttyname_r() implementation... " >&6; } + if test "$cross_compiling" = yes +then : + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5 +printf "%s\n" "no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; } + +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -64574,31 +68776,35 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +if ac_fn_c_try_run "$LINENO" +then : -$as_echo "#define HAVE_TTYNAME_R 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +printf "%s\n" "#define HAVE_TTYNAME_R 1" >>confdefs.h -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, posix_ttyname() will be thread-unsafe" >&5 -$as_echo "no, posix_ttyname() will be thread-unsafe" >&6; } +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, posix_ttyname() will be thread-unsafe" >&5 +printf "%s\n" "no, posix_ttyname() will be thread-unsafe" >&6; } + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utsname.domainname" >&5 -$as_echo_n "checking for utsname.domainname... " >&6; } -if ${ac_cv_have_utsname_domainname+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utsname.domainname" >&5 +printf %s "checking for utsname.domainname... " >&6; } +if test ${ac_cv_have_utsname_domainname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -64606,7 +68812,7 @@ #include int -main () +main (void) { return sizeof(((struct utsname *)0)->domainname); @@ -64615,23 +68821,26 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_have_utsname_domainname=yes -else - +else case e in #( + e) ac_cv_have_utsname_domainname=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_utsname_domainname" >&5 -$as_echo "$ac_cv_have_utsname_domainname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_utsname_domainname" >&5 +printf "%s\n" "$ac_cv_have_utsname_domainname" >&6; } if test "$ac_cv_have_utsname_domainname" = yes; then -$as_echo "#define HAVE_UTSNAME_DOMAINNAME 1" >>confdefs.h +printf "%s\n" "#define HAVE_UTSNAME_DOMAINNAME 1" >>confdefs.h fi fi @@ -64642,17 +68851,19 @@ php_with_pspell=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSPELL support" >&5 -$as_echo_n "checking for PSPELL support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PSPELL support" >&5 +printf %s "checking for PSPELL support... " >&6; } # Check whether --with-pspell was given. -if test "${with_pspell+set}" = set; then : +if test ${with_pspell+y} +then : withval=$with_pspell; PHP_PSPELL=$withval -else - +else case e in #( + e) PHP_PSPELL=no test "$PHP_ENABLE_ALL" && PHP_PSPELL=$PHP_ENABLE_ALL - + ;; +esac fi @@ -64678,8 +68889,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -64819,9 +69030,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_PSPELL 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_PSPELL 1" >>confdefs.h fi fi @@ -65168,43 +69377,51 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_aspell_config in -laspell" >&5 -$as_echo_n "checking for new_aspell_config in -laspell... " >&6; } -if ${ac_cv_lib_aspell_new_aspell_config+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new_aspell_config in -laspell" >&5 +printf %s "checking for new_aspell_config in -laspell... " >&6; } +if test ${ac_cv_lib_aspell_new_aspell_config+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-laspell $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char new_aspell_config (); +char new_aspell_config (void); int -main () +main (void) { return new_aspell_config (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_aspell_new_aspell_config=yes -else - ac_cv_lib_aspell_new_aspell_config=no +else case e in #( + e) ac_cv_lib_aspell_new_aspell_config=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aspell_new_aspell_config" >&5 -$as_echo "$ac_cv_lib_aspell_new_aspell_config" >&6; } -if test "x$ac_cv_lib_aspell_new_aspell_config" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aspell_new_aspell_config" >&5 +printf "%s\n" "$ac_cv_lib_aspell_new_aspell_config" >&6; } +if test "x$ac_cv_lib_aspell_new_aspell_config" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -65308,13 +69525,14 @@ -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_aspell_new_aspell_config - + ;; +esac fi @@ -65353,53 +69571,43 @@ PHP_VAR_SUBST="$PHP_VAR_SUBST PSPELL_SHARED_LIBADD" -$as_echo "#define HAVE_PSPELL 1" >>confdefs.h +printf "%s\n" "#define HAVE_PSPELL 1" >>confdefs.h fi -ac_fn_c_check_decl "$LINENO" "arc4random_buf" "ac_cv_have_decl_arc4random_buf" "$ac_includes_default" -if test "x$ac_cv_have_decl_arc4random_buf" = xyes; then : +ac_fn_check_decl "$LINENO" "arc4random_buf" "ac_cv_have_decl_arc4random_buf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_arc4random_buf" = xyes +then : ac_have_decl=1 -else - ac_have_decl=0 +else case e in #( + e) ac_have_decl=0 ;; +esac fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ARC4RANDOM_BUF $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_ARC4RANDOM_BUF $ac_have_decl" >>confdefs.h -for ac_header in CommonCrypto/CommonRandom.h -do : - ac_fn_c_check_header_compile "$LINENO" "CommonCrypto/CommonRandom.h" "ac_cv_header_CommonCrypto_CommonRandom_h" " +ac_fn_c_check_header_compile "$LINENO" "CommonCrypto/CommonRandom.h" "ac_cv_header_CommonCrypto_CommonRandom_h" " #include #include #include " -if test "x$ac_cv_header_CommonCrypto_CommonRandom_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_COMMONCRYPTO_COMMONRANDOM_H 1 -_ACEOF +if test "x$ac_cv_header_CommonCrypto_CommonRandom_h" = xyes +then : + printf "%s\n" "#define HAVE_COMMONCRYPTO_COMMONRANDOM_H 1" >>confdefs.h fi -done - -for ac_func in getrandom -do : - ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" -if test "x$ac_cv_func_getrandom" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETRANDOM 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" +if test "x$ac_cv_func_getrandom" = xyes +then : + printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h fi -done @@ -65550,9 +69758,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_RANDOM 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_RANDOM 1" >>confdefs.h fi fi @@ -65714,17 +69920,19 @@ php_with_libedit=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit readline replacement" >&5 -$as_echo_n "checking for libedit readline replacement... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit readline replacement" >&5 +printf %s "checking for libedit readline replacement... " >&6; } # Check whether --with-libedit was given. -if test "${with_libedit+set}" = set; then : +if test ${with_libedit+y} +then : withval=$with_libedit; PHP_LIBEDIT=$withval -else - +else case e in #( + e) PHP_LIBEDIT=no test "$PHP_ENABLE_ALL" && PHP_LIBEDIT=$PHP_ENABLE_ALL - + ;; +esac fi @@ -65750,8 +69958,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -65760,17 +69968,19 @@ php_with_readline=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline support" >&5 -$as_echo_n "checking for readline support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline support" >&5 +printf %s "checking for readline support... " >&6; } # Check whether --with-readline was given. -if test "${with_readline+set}" = set; then : +if test ${with_readline+y} +then : withval=$with_readline; PHP_READLINE=$withval -else - +else case e in #( + e) PHP_READLINE=no test "$PHP_ENABLE_ALL" && PHP_READLINE=$PHP_ENABLE_ALL - + ;; +esac fi @@ -65796,8 +70006,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -65847,43 +70057,51 @@ PHP_READLINE_LIBS="" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 -$as_echo_n "checking for tgetent in -lncurses... " >&6; } -if ${ac_cv_lib_ncurses_tgetent+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 +printf %s "checking for tgetent in -lncurses... " >&6; } +if test ${ac_cv_lib_ncurses_tgetent+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lncurses $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char tgetent (); +char tgetent (void); int -main () +main (void) { return tgetent (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_ncurses_tgetent=yes -else - ac_cv_lib_ncurses_tgetent=no +else case e in #( + e) ac_cv_lib_ncurses_tgetent=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 -$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } -if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 +printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; } +if test "x$ac_cv_lib_ncurses_tgetent" = xyes +then : @@ -65910,45 +70128,53 @@ PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 -$as_echo_n "checking for tgetent in -ltermcap... " >&6; } -if ${ac_cv_lib_termcap_tgetent+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 +printf %s "checking for tgetent in -ltermcap... " >&6; } +if test ${ac_cv_lib_termcap_tgetent+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ltermcap $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char tgetent (); +char tgetent (void); int -main () +main (void) { return tgetent (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_termcap_tgetent=yes -else - ac_cv_lib_termcap_tgetent=no +else case e in #( + e) ac_cv_lib_termcap_tgetent=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 -$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } -if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 +printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; } +if test "x$ac_cv_lib_termcap_tgetent" = xyes +then : @@ -65977,7 +70203,8 @@ fi - + ;; +esac fi @@ -66088,43 +70315,51 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 -$as_echo_n "checking for readline in -lreadline... " >&6; } -if ${ac_cv_lib_readline_readline+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 +printf %s "checking for readline in -lreadline... " >&6; } +if test ${ac_cv_lib_readline_readline+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char readline (); +char readline (void); int -main () +main (void) { return readline (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_readline_readline=yes -else - ac_cv_lib_readline_readline=no +else case e in #( + e) ac_cv_lib_readline_readline=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 -$as_echo "$ac_cv_lib_readline_readline" >&6; } -if test "x$ac_cv_lib_readline_readline" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 +printf "%s\n" "$ac_cv_lib_readline_readline" >&6; } +if test "x$ac_cv_lib_readline_readline" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -66228,15 +70463,16 @@ -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_readline_readline as_fn_error $? "readline library not found" "$LINENO" 5 - + ;; +esac fi @@ -66347,57 +70583,66 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pending_input in -lreadline" >&5 -$as_echo_n "checking for rl_pending_input in -lreadline... " >&6; } -if ${ac_cv_lib_readline_rl_pending_input+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_pending_input in -lreadline" >&5 +printf %s "checking for rl_pending_input in -lreadline... " >&6; } +if test ${ac_cv_lib_readline_rl_pending_input+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char rl_pending_input (); +char rl_pending_input (void); int -main () +main (void) { return rl_pending_input (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_readline_rl_pending_input=yes -else - ac_cv_lib_readline_rl_pending_input=no +else case e in #( + e) ac_cv_lib_readline_rl_pending_input=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pending_input" >&5 -$as_echo "$ac_cv_lib_readline_rl_pending_input" >&6; } -if test "x$ac_cv_lib_readline_rl_pending_input" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pending_input" >&5 +printf "%s\n" "$ac_cv_lib_readline_rl_pending_input" >&6; } +if test "x$ac_cv_lib_readline_rl_pending_input" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_readline_rl_pending_input as_fn_error $? "invalid readline installation detected. Try --with-libedit instead." "$LINENO" 5 - + ;; +esac fi @@ -66508,59 +70753,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 -$as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; } -if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 +printf %s "checking for rl_callback_read_char in -lreadline... " >&6; } +if test ${ac_cv_lib_readline_rl_callback_read_char+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char rl_callback_read_char (); +char rl_callback_read_char (void); int -main () +main (void) { return rl_callback_read_char (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_readline_rl_callback_read_char=yes -else - ac_cv_lib_readline_rl_callback_read_char=no +else case e in #( + e) ac_cv_lib_readline_rl_callback_read_char=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 -$as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; } -if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 +printf "%s\n" "$ac_cv_lib_readline_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h +printf "%s\n" "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_readline_rl_callback_read_char - + ;; +esac fi @@ -66671,59 +70925,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -lreadline" >&5 -$as_echo_n "checking for rl_on_new_line in -lreadline... " >&6; } -if ${ac_cv_lib_readline_rl_on_new_line+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -lreadline" >&5 +printf %s "checking for rl_on_new_line in -lreadline... " >&6; } +if test ${ac_cv_lib_readline_rl_on_new_line+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char rl_on_new_line (); +char rl_on_new_line (void); int -main () +main (void) { return rl_on_new_line (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_readline_rl_on_new_line=yes -else - ac_cv_lib_readline_rl_on_new_line=no +else case e in #( + e) ac_cv_lib_readline_rl_on_new_line=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_on_new_line" >&5 -$as_echo "$ac_cv_lib_readline_rl_on_new_line" >&6; } -if test "x$ac_cv_lib_readline_rl_on_new_line" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_on_new_line" >&5 +printf "%s\n" "$ac_cv_lib_readline_rl_on_new_line" >&6; } +if test "x$ac_cv_lib_readline_rl_on_new_line" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h +printf "%s\n" "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_readline_rl_on_new_line - + ;; +esac fi @@ -66834,88 +71097,97 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 -$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } -if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 +printf %s "checking for rl_completion_matches in -lreadline... " >&6; } +if test ${ac_cv_lib_readline_rl_completion_matches+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char rl_completion_matches (); +char rl_completion_matches (void); int -main () +main (void) { return rl_completion_matches (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_readline_rl_completion_matches=yes -else - ac_cv_lib_readline_rl_completion_matches=no +else case e in #( + e) ac_cv_lib_readline_rl_completion_matches=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 -$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } -if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 +printf "%s\n" "$ac_cv_lib_readline_rl_completion_matches" >&6; } +if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h +printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_readline_rl_completion_matches - + ;; +esac fi -$as_echo "#define HAVE_HISTORY_LIST 1" >>confdefs.h +printf "%s\n" "#define HAVE_HISTORY_LIST 1" >>confdefs.h -$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h elif test "$PHP_LIBEDIT" != "no"; then if test "$PHP_LIBEDIT" != "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libedit directory ignored, rely on pkg-config" >&5 -$as_echo "$as_me: WARNING: libedit directory ignored, rely on pkg-config" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libedit directory ignored, rely on pkg-config" >&5 +printf "%s\n" "$as_me: WARNING: libedit directory ignored, rely on pkg-config" >&2;} fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 -$as_echo_n "checking for libedit... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 +printf %s "checking for libedit... " >&6; } if test -n "$EDIT_CFLAGS"; then pkg_cv_EDIT_CFLAGS="$EDIT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_EDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -66929,10 +71201,10 @@ pkg_cv_EDIT_LIBS="$EDIT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_EDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -66946,8 +71218,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -66973,10 +71245,10 @@ and EDIT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -66986,12 +71258,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else EDIT_CFLAGS=$pkg_cv_EDIT_CFLAGS EDIT_LIBS=$pkg_cv_EDIT_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -67134,43 +71406,51 @@ done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 -$as_echo_n "checking for tgetent in -lncurses... " >&6; } -if ${ac_cv_lib_ncurses_tgetent+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 +printf %s "checking for tgetent in -lncurses... " >&6; } +if test ${ac_cv_lib_ncurses_tgetent+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lncurses $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char tgetent (); +char tgetent (void); int -main () +main (void) { return tgetent (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_ncurses_tgetent=yes -else - ac_cv_lib_ncurses_tgetent=no +else case e in #( + e) ac_cv_lib_ncurses_tgetent=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 -$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } -if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 +printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; } +if test "x$ac_cv_lib_ncurses_tgetent" = xyes +then : @@ -67196,45 +71476,53 @@ -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 -$as_echo_n "checking for tgetent in -ltermcap... " >&6; } -if ${ac_cv_lib_termcap_tgetent+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 +printf %s "checking for tgetent in -ltermcap... " >&6; } +if test ${ac_cv_lib_termcap_tgetent+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ltermcap $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char tgetent (); +char tgetent (void); int -main () +main (void) { return tgetent (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_termcap_tgetent=yes -else - ac_cv_lib_termcap_tgetent=no +else case e in #( + e) ac_cv_lib_termcap_tgetent=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 -$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } -if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 +printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; } +if test "x$ac_cv_lib_termcap_tgetent" = xyes +then : @@ -67262,7 +71550,8 @@ fi - + ;; +esac fi @@ -67373,58 +71662,67 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 -$as_echo_n "checking for readline in -ledit... " >&6; } -if ${ac_cv_lib_edit_readline+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 +printf %s "checking for readline in -ledit... " >&6; } +if test ${ac_cv_lib_edit_readline+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ledit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char readline (); +char readline (void); int -main () +main (void) { return readline (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_edit_readline=yes -else - ac_cv_lib_edit_readline=no +else case e in #( + e) ac_cv_lib_edit_readline=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 -$as_echo "$ac_cv_lib_edit_readline" >&6; } -if test "x$ac_cv_lib_edit_readline" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 +printf "%s\n" "$ac_cv_lib_edit_readline" >&6; } +if test "x$ac_cv_lib_edit_readline" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_edit_readline as_fn_error $? "edit library required by readline not found" "$LINENO" 5 - + ;; +esac fi @@ -67535,59 +71833,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -ledit" >&5 -$as_echo_n "checking for rl_callback_read_char in -ledit... " >&6; } -if ${ac_cv_lib_edit_rl_callback_read_char+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -ledit" >&5 +printf %s "checking for rl_callback_read_char in -ledit... " >&6; } +if test ${ac_cv_lib_edit_rl_callback_read_char+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ledit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char rl_callback_read_char (); +char rl_callback_read_char (void); int -main () +main (void) { return rl_callback_read_char (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_edit_rl_callback_read_char=yes -else - ac_cv_lib_edit_rl_callback_read_char=no +else case e in #( + e) ac_cv_lib_edit_rl_callback_read_char=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_callback_read_char" >&5 -$as_echo "$ac_cv_lib_edit_rl_callback_read_char" >&6; } -if test "x$ac_cv_lib_edit_rl_callback_read_char" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_callback_read_char" >&5 +printf "%s\n" "$ac_cv_lib_edit_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_edit_rl_callback_read_char" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h - +printf "%s\n" "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_edit_rl_callback_read_char - + ;; +esac fi @@ -67698,59 +72005,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5 -$as_echo_n "checking for rl_on_new_line in -ledit... " >&6; } -if ${ac_cv_lib_edit_rl_on_new_line+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5 +printf %s "checking for rl_on_new_line in -ledit... " >&6; } +if test ${ac_cv_lib_edit_rl_on_new_line+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ledit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char rl_on_new_line (); +char rl_on_new_line (void); int -main () +main (void) { return rl_on_new_line (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_edit_rl_on_new_line=yes -else - ac_cv_lib_edit_rl_on_new_line=no +else case e in #( + e) ac_cv_lib_edit_rl_on_new_line=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5 -$as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; } -if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5 +printf "%s\n" "$ac_cv_lib_edit_rl_on_new_line" >&6; } +if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h - +printf "%s\n" "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_edit_rl_on_new_line - + ;; +esac fi @@ -67861,59 +72177,68 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -ledit" >&5 -$as_echo_n "checking for rl_completion_matches in -ledit... " >&6; } -if ${ac_cv_lib_edit_rl_completion_matches+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -ledit" >&5 +printf %s "checking for rl_completion_matches in -ledit... " >&6; } +if test ${ac_cv_lib_edit_rl_completion_matches+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ledit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char rl_completion_matches (); +char rl_completion_matches (void); int -main () +main (void) { return rl_completion_matches (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_edit_rl_completion_matches=yes -else - ac_cv_lib_edit_rl_completion_matches=no +else case e in #( + e) ac_cv_lib_edit_rl_completion_matches=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_completion_matches" >&5 -$as_echo "$ac_cv_lib_edit_rl_completion_matches" >&6; } -if test "x$ac_cv_lib_edit_rl_completion_matches" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_completion_matches" >&5 +printf "%s\n" "$ac_cv_lib_edit_rl_completion_matches" >&6; } +if test "x$ac_cv_lib_edit_rl_completion_matches" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h - +printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_edit_rl_completion_matches - + ;; +esac fi @@ -68024,64 +72349,73 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for history_list in -ledit" >&5 -$as_echo_n "checking for history_list in -ledit... " >&6; } -if ${ac_cv_lib_edit_history_list+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for history_list in -ledit" >&5 +printf %s "checking for history_list in -ledit... " >&6; } +if test ${ac_cv_lib_edit_history_list+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ledit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char history_list (); +char history_list (void); int -main () +main (void) { return history_list (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_edit_history_list=yes -else - ac_cv_lib_edit_history_list=no +else case e in #( + e) ac_cv_lib_edit_history_list=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_history_list" >&5 -$as_echo "$ac_cv_lib_edit_history_list" >&6; } -if test "x$ac_cv_lib_edit_history_list" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_history_list" >&5 +printf "%s\n" "$ac_cv_lib_edit_history_list" >&6; } +if test "x$ac_cv_lib_edit_history_list" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_HISTORY_LIST 1" >>confdefs.h - +printf "%s\n" "#define HAVE_HISTORY_LIST 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_edit_history_list - + ;; +esac fi -$as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBEDIT 1" >>confdefs.h fi @@ -68220,9 +72554,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_READLINE 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_READLINE 1" >>confdefs.h fi fi @@ -68485,9 +72817,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_REFLECTION 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_REFLECTION 1" >>confdefs.h fi fi @@ -68615,16 +72945,18 @@ php_enable_session=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP sessions" >&5 -$as_echo_n "checking whether to enable PHP sessions... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP sessions" >&5 +printf %s "checking whether to enable PHP sessions... " >&6; } # Check whether --enable-session was given. -if test "${enable_session+set}" = set; then : +if test ${enable_session+y} +then : enableval=$enable_session; PHP_SESSION=$enableval -else - +else case e in #( + e) PHP_SESSION=yes test "$PHP_ENABLE_ALL" && PHP_SESSION=$PHP_ENABLE_ALL - + ;; +esac fi @@ -68650,8 +72982,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -68659,42 +72991,46 @@ php_with_mm=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mm support" >&5 -$as_echo_n "checking for mm support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mm support" >&5 +printf %s "checking for mm support... " >&6; } # Check whether --with-mm was given. -if test "${with_mm+set}" = set; then : +if test ${with_mm+y} +then : withval=$with_mm; PHP_MM=$withval -else - +else case e in #( + e) PHP_MM=no - + ;; +esac fi ext_output=$PHP_MM -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_SESSION" != "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pwrite works" >&5 -$as_echo_n "checking whether pwrite works... " >&6; } -if ${ac_cv_pwrite+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pwrite works" >&5 +printf %s "checking whether pwrite works... " >&6; } +if test ${ac_cv_pwrite+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : ac_cv_pwrite=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -68716,28 +73052,32 @@ _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_pwrite=yes -else - +else case e in #( + e) ac_cv_pwrite=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi if test "$ac_cv_pwrite" = "no"; then - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : ac_cv_pwrite=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -68759,17 +73099,20 @@ _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_pwrite=yes -else - +else case e in #( + e) ac_cv_pwrite=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi @@ -68777,37 +73120,40 @@ ac_cv_pwrite=64 fi fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pwrite" >&5 -$as_echo "$ac_cv_pwrite" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pwrite" >&5 +printf "%s\n" "$ac_cv_pwrite" >&6; } if test "$ac_cv_pwrite" != "no"; then -$as_echo "#define HAVE_PWRITE 1" >>confdefs.h +printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h if test "$ac_cv_pwrite" = "64"; then -$as_echo "#define PHP_PWRITE_64 1" >>confdefs.h +printf "%s\n" "#define PHP_PWRITE_64 1" >>confdefs.h fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pread works" >&5 -$as_echo_n "checking whether pread works... " >&6; } -if ${ac_cv_pread+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pread works" >&5 +printf %s "checking whether pread works... " >&6; } +if test ${ac_cv_pread+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) echo test > conftest_in - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : ac_cv_pread=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -68828,17 +73174,20 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_pread=yes -else - +else case e in #( + e) ac_cv_pread=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f conftest_in @@ -68846,12 +73195,13 @@ if test "$ac_cv_pread" = "no"; then echo test > conftest_in - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : ac_cv_pread=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -68872,17 +73222,20 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_pread=yes -else - +else case e in #( + e) ac_cv_pread=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f conftest_in @@ -68891,18 +73244,19 @@ ac_cv_pread=64 fi fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pread" >&5 -$as_echo "$ac_cv_pread" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pread" >&5 +printf "%s\n" "$ac_cv_pread" >&6; } if test "$ac_cv_pread" != "no"; then -$as_echo "#define HAVE_PREAD 1" >>confdefs.h +printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h if test "$ac_cv_pread" = "64"; then -$as_echo "#define PHP_PREAD_64 1" >>confdefs.h +printf "%s\n" "#define PHP_PREAD_64 1" >>confdefs.h fi fi @@ -69041,9 +73395,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SESSION 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SESSION 1" >>confdefs.h fi fi @@ -69226,7 +73578,7 @@ -$as_echo "#define HAVE_PHP_SESSION 1" >>confdefs.h +printf "%s\n" "#define HAVE_PHP_SESSION 1" >>confdefs.h fi @@ -69390,7 +73742,7 @@ -$as_echo "#define HAVE_LIBMM 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBMM 1" >>confdefs.h fi @@ -69400,16 +73752,18 @@ php_enable_shmop=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shmop support" >&5 -$as_echo_n "checking whether to enable shmop support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable shmop support" >&5 +printf %s "checking whether to enable shmop support... " >&6; } # Check whether --enable-shmop was given. -if test "${enable_shmop+set}" = set; then : +if test ${enable_shmop+y} +then : enableval=$enable_shmop; PHP_SHMOP=$enableval -else - +else case e in #( + e) PHP_SHMOP=no test "$PHP_ENABLE_ALL" && PHP_SHMOP=$PHP_ENABLE_ALL - + ;; +esac fi @@ -69435,15 +73789,15 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_SHMOP" != "no"; then -$as_echo "#define HAVE_SHMOP 1" >>confdefs.h +printf "%s\n" "#define HAVE_SHMOP 1" >>confdefs.h ext_builddir=ext/shmop @@ -69579,9 +73933,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SHMOP 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SHMOP 1" >>confdefs.h fi fi @@ -69710,16 +74062,18 @@ php_enable_simplexml=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SimpleXML support" >&5 -$as_echo_n "checking whether to enable SimpleXML support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SimpleXML support" >&5 +printf %s "checking whether to enable SimpleXML support... " >&6; } # Check whether --enable-simplexml was given. -if test "${enable_simplexml+set}" = set; then : +if test ${enable_simplexml+y} +then : enableval=$enable_simplexml; PHP_SIMPLEXML=$enableval -else - +else case e in #( + e) PHP_SIMPLEXML=yes test "$PHP_ENABLE_ALL" && PHP_SIMPLEXML=$PHP_ENABLE_ALL - + ;; +esac fi @@ -69745,8 +74099,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -69760,17 +74114,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 -$as_echo_n "checking for libxml-2.0 >= 2.9.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 +printf %s "checking for libxml-2.0 >= 2.9.0... " >&6; } if test -n "$LIBXML_CFLAGS"; then pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -69784,10 +74138,10 @@ pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -69801,8 +74155,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -69828,10 +74182,10 @@ and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -69841,12 +74195,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS LIBXML_LIBS=$pkg_cv_LIBXML_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -69991,12 +74345,12 @@ -$as_echo "#define HAVE_LIBXML 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h -$as_echo "#define HAVE_SIMPLEXML 1" >>confdefs.h +printf "%s\n" "#define HAVE_SIMPLEXML 1" >>confdefs.h ext_builddir=ext/simplexml @@ -70132,9 +74486,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SIMPLEXML 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SIMPLEXML 1" >>confdefs.h fi fi @@ -70324,17 +74676,19 @@ php_with_snmp=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNMP support" >&5 -$as_echo_n "checking for SNMP support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SNMP support" >&5 +printf %s "checking for SNMP support... " >&6; } # Check whether --with-snmp was given. -if test "${with_snmp+set}" = set; then : +if test ${with_snmp+y} +then : withval=$with_snmp; PHP_SNMP=$withval -else - +else case e in #( + e) PHP_SNMP=no test "$PHP_ENABLE_ALL" && PHP_SNMP=$PHP_ENABLE_ALL - + ;; +esac fi @@ -70360,8 +74714,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -70371,12 +74725,13 @@ if test "$PHP_SNMP" = "yes"; then # Extract the first word of "net-snmp-config", so it can be a program name with args. set dummy net-snmp-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_SNMP_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $SNMP_CONFIG in +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_SNMP_CONFIG+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $SNMP_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path. ;; @@ -70386,11 +74741,15 @@ for as_dir in $as_dummy do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_SNMP_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -70398,15 +74757,16 @@ IFS=$as_save_IFS ;; +esac ;; esac fi SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG if test -n "$SNMP_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG" >&5 -$as_echo "$SNMP_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG" >&5 +printf "%s\n" "$SNMP_CONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -70674,63 +75034,72 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -l$SNMP_LIBNAME" >&5 -$as_echo_n "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$SNMP_LIBNAME""_init_snmp" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -l$SNMP_LIBNAME" >&5 +printf %s "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$SNMP_LIBNAME $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char init_snmp (); +char init_snmp (void); int -main () +main (void) { return init_snmp (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_SNMP 1" >>confdefs.h +printf "%s\n" "#define HAVE_SNMP 1" >>confdefs.h -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$SNMP_LIBNAME_init_snmp as_fn_error $? "SNMP sanity check failed. Please check config.log for more information." "$LINENO" 5 - + ;; +esac fi @@ -70841,61 +75210,70 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_shutdown_snmp_logging" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shutdown_snmp_logging in -l$SNMP_LIBNAME" >&5 -$as_echo_n "checking for shutdown_snmp_logging in -l$SNMP_LIBNAME... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$SNMP_LIBNAME""_shutdown_snmp_logging" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shutdown_snmp_logging in -l$SNMP_LIBNAME" >&5 +printf %s "checking for shutdown_snmp_logging in -l$SNMP_LIBNAME... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$SNMP_LIBNAME $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char shutdown_snmp_logging (); +char shutdown_snmp_logging (void); int -main () +main (void) { return shutdown_snmp_logging (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_SHUTDOWN_SNMP_LOGGING 1" >>confdefs.h +printf "%s\n" "#define HAVE_SHUTDOWN_SNMP_LOGGING 1" >>confdefs.h -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$SNMP_LIBNAME_shutdown_snmp_logging - + ;; +esac fi @@ -71006,61 +75384,70 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_usmHMAC192SHA256AuthProtocol" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usmHMAC192SHA256AuthProtocol in -l$SNMP_LIBNAME" >&5 -$as_echo_n "checking for usmHMAC192SHA256AuthProtocol in -l$SNMP_LIBNAME... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$SNMP_LIBNAME""_usmHMAC192SHA256AuthProtocol" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usmHMAC192SHA256AuthProtocol in -l$SNMP_LIBNAME" >&5 +printf %s "checking for usmHMAC192SHA256AuthProtocol in -l$SNMP_LIBNAME... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$SNMP_LIBNAME $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char usmHMAC192SHA256AuthProtocol (); +char usmHMAC192SHA256AuthProtocol (void); int -main () +main (void) { return usmHMAC192SHA256AuthProtocol (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_SNMP_SHA256 1" >>confdefs.h +printf "%s\n" "#define HAVE_SNMP_SHA256 1" >>confdefs.h -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$SNMP_LIBNAME_usmHMAC192SHA256AuthProtocol - + ;; +esac fi @@ -71171,61 +75558,70 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_usmHMAC384SHA512AuthProtocol" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usmHMAC384SHA512AuthProtocol in -l$SNMP_LIBNAME" >&5 -$as_echo_n "checking for usmHMAC384SHA512AuthProtocol in -l$SNMP_LIBNAME... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$SNMP_LIBNAME""_usmHMAC384SHA512AuthProtocol" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usmHMAC384SHA512AuthProtocol in -l$SNMP_LIBNAME" >&5 +printf %s "checking for usmHMAC384SHA512AuthProtocol in -l$SNMP_LIBNAME... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$SNMP_LIBNAME $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char usmHMAC384SHA512AuthProtocol (); +char usmHMAC384SHA512AuthProtocol (void); int -main () +main (void) { return usmHMAC384SHA512AuthProtocol (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_SNMP_SHA512 1" >>confdefs.h +printf "%s\n" "#define HAVE_SNMP_SHA512 1" >>confdefs.h -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$SNMP_LIBNAME_usmHMAC384SHA512AuthProtocol - + ;; +esac fi @@ -71363,9 +75759,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SNMP 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SNMP 1" >>confdefs.h fi fi @@ -71497,16 +75891,18 @@ php_enable_soap=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SOAP support" >&5 -$as_echo_n "checking whether to enable SOAP support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SOAP support" >&5 +printf %s "checking whether to enable SOAP support... " >&6; } # Check whether --enable-soap was given. -if test "${enable_soap+set}" = set; then : +if test ${enable_soap+y} +then : enableval=$enable_soap; PHP_SOAP=$enableval -else - +else case e in #( + e) PHP_SOAP=no test "$PHP_ENABLE_ALL" && PHP_SOAP=$PHP_ENABLE_ALL - + ;; +esac fi @@ -71532,8 +75928,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -71547,17 +75943,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 -$as_echo_n "checking for libxml-2.0 >= 2.9.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 +printf %s "checking for libxml-2.0 >= 2.9.0... " >&6; } if test -n "$LIBXML_CFLAGS"; then pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -71571,10 +75967,10 @@ pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -71588,8 +75984,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -71615,10 +76011,10 @@ and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -71628,12 +76024,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS LIBXML_LIBS=$pkg_cv_LIBXML_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -71778,12 +76174,12 @@ -$as_echo "#define HAVE_LIBXML 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h -$as_echo "#define HAVE_SOAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_SOAP 1" >>confdefs.h ext_builddir=ext/soap @@ -71919,9 +76315,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SOAP 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SOAP 1" >>confdefs.h fi fi @@ -72055,16 +76449,18 @@ php_enable_sockets=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sockets support" >&5 -$as_echo_n "checking whether to enable sockets support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable sockets support" >&5 +printf %s "checking whether to enable sockets support... " >&6; } # Check whether --enable-sockets was given. -if test "${enable_sockets+set}" = set; then : +if test ${enable_sockets+y} +then : enableval=$enable_sockets; PHP_SOCKETS=$enableval -else - +else case e in #( + e) PHP_SOCKETS=no test "$PHP_ENABLE_ALL" && PHP_SOCKETS=$PHP_ENABLE_ALL - + ;; +esac fi @@ -72090,48 +76486,62 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_SOCKETS" != "no"; then - for ac_func in hstrerror if_nametoindex if_indextoname -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror" +if test "x$ac_cv_func_hstrerror" = xyes +then : + printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" +if test "x$ac_cv_func_if_nametoindex" = xyes +then : + printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h - for ac_header in netinet/tcp.h sys/un.h sys/sockio.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +fi +ac_fn_c_check_func "$LINENO" "if_indextoname" "ac_cv_func_if_indextoname" +if test "x$ac_cv_func_if_indextoname" = xyes +then : + printf "%s\n" "#define HAVE_IF_INDEXTONAME 1" >>confdefs.h fi -done + ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" +if test "x$ac_cv_header_netinet_tcp_h" = xyes +then : + printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_un_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h +fi +ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_sockio_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h -$as_echo "#define HAVE_SOCKETS 1" >>confdefs.h +fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field ss_family in struct sockaddr_storage" >&5 -$as_echo_n "checking for field ss_family in struct sockaddr_storage... " >&6; } -if ${ac_cv_ss_family+:} false; then : - $as_echo_n "(cached) " >&6 -else +printf "%s\n" "#define HAVE_SOCKETS 1" >>confdefs.h + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for field ss_family in struct sockaddr_storage" >&5 +printf %s "checking for field ss_family in struct sockaddr_storage... " >&6; } +if test ${ac_cv_ss_family+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -72140,144 +76550,160 @@ #include int -main () +main (void) { struct sockaddr_storage sa_store; sa_store.ss_family = AF_INET6; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_ss_family=yes -else - ac_cv_ss_family=no +else case e in #( + e) ac_cv_ss_family=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ss_family" >&5 -$as_echo "$ac_cv_ss_family" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ss_family" >&5 +printf "%s\n" "$ac_cv_ss_family" >&6; } if test "$ac_cv_ss_family" = yes; then -$as_echo "#define HAVE_SA_SS_FAMILY 1" >>confdefs.h +printf "%s\n" "#define HAVE_SA_SS_FAMILY 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_V4MAPPED" >&5 -$as_echo_n "checking if getaddrinfo supports AI_V4MAPPED... " >&6; } -if ${ac_cv_gai_ai_v4mapped+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_V4MAPPED" >&5 +printf %s "checking if getaddrinfo supports AI_V4MAPPED... " >&6; } +if test ${ac_cv_gai_ai_v4mapped+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { int flag = AI_V4MAPPED; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_gai_ai_v4mapped=yes -else - ac_cv_gai_ai_v4mapped=no +else case e in #( + e) ac_cv_gai_ai_v4mapped=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_v4mapped" >&5 -$as_echo "$ac_cv_gai_ai_v4mapped" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_v4mapped" >&5 +printf "%s\n" "$ac_cv_gai_ai_v4mapped" >&6; } if test "$ac_cv_gai_ai_v4mapped" = yes; then -$as_echo "#define HAVE_AI_V4MAPPED 1" >>confdefs.h +printf "%s\n" "#define HAVE_AI_V4MAPPED 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_ALL" >&5 -$as_echo_n "checking if getaddrinfo supports AI_ALL... " >&6; } -if ${ac_cv_gai_ai_all+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_ALL" >&5 +printf %s "checking if getaddrinfo supports AI_ALL... " >&6; } +if test ${ac_cv_gai_ai_all+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { int flag = AI_ALL; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_gai_ai_all=yes -else - ac_cv_gai_ai_all=no +else case e in #( + e) ac_cv_gai_ai_all=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_all" >&5 -$as_echo "$ac_cv_gai_ai_all" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_all" >&5 +printf "%s\n" "$ac_cv_gai_ai_all" >&6; } if test "$ac_cv_gai_ai_all" = yes; then -$as_echo "#define HAVE_AI_ALL 1" >>confdefs.h +printf "%s\n" "#define HAVE_AI_ALL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_IDN" >&5 -$as_echo_n "checking if getaddrinfo supports AI_IDN... " >&6; } -if ${ac_cv_gai_ai_idn+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_IDN" >&5 +printf %s "checking if getaddrinfo supports AI_IDN... " >&6; } +if test ${ac_cv_gai_ai_idn+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { int flag = AI_IDN; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_gai_ai_idn=yes -else - ac_cv_gai_ai_idn=no +else case e in #( + e) ac_cv_gai_ai_idn=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_idn" >&5 -$as_echo "$ac_cv_gai_ai_idn" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_idn" >&5 +printf "%s\n" "$ac_cv_gai_ai_idn" >&6; } if test "$ac_cv_gai_ai_idn" = yes; then -$as_echo "#define HAVE_AI_IDN 1" >>confdefs.h +printf "%s\n" "#define HAVE_AI_IDN 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ancillary credentials uses ucred" >&5 -$as_echo_n "checking if ancillary credentials uses ucred... " >&6; } -if ${ac_cv_ucred+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ancillary credentials uses ucred" >&5 +printf %s "checking if ancillary credentials uses ucred... " >&6; } +if test ${ac_cv_ucred+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -72287,63 +76713,70 @@ #include int -main () +main (void) { struct ucred u = {.gid = 0}; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_ucred=yes -else - ac_cv_ucred=no +else case e in #( + e) ac_cv_ucred=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ucred" >&5 -$as_echo "$ac_cv_ucred" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ucred" >&5 +printf "%s\n" "$ac_cv_ucred" >&6; } if test "$ac_cv_ucred" = yes; then -$as_echo "#define ANC_CREDS_UCRED 1" >>confdefs.h +printf "%s\n" "#define ANC_CREDS_UCRED 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ancillary credentials uses cmsgcred" >&5 -$as_echo_n "checking if ancillary credentials uses cmsgcred... " >&6; } -if ${ac_cv_cmsgcred+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ancillary credentials uses cmsgcred" >&5 +printf %s "checking if ancillary credentials uses cmsgcred... " >&6; } +if test ${ac_cv_cmsgcred+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { struct cmsgcred c = {0}; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_cmsgcred=yes -else - ac_cv_cmsgcred=no +else case e in #( + e) ac_cv_cmsgcred=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmsgcred" >&5 -$as_echo "$ac_cv_cmsgcred" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmsgcred" >&5 +printf "%s\n" "$ac_cv_cmsgcred" >&6; } if test "$ac_cv_cmsgcred" = yes; then -$as_echo "#define ANC_CREDS_CMSGCRED 1" >>confdefs.h +printf "%s\n" "#define ANC_CREDS_CMSGCRED 1" >>confdefs.h fi @@ -72486,9 +76919,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SOCKETS 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SOCKETS 1" >>confdefs.h fi fi @@ -72637,17 +77068,19 @@ php_with_sodium=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sodium support" >&5 -$as_echo_n "checking for sodium support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sodium support" >&5 +printf %s "checking for sodium support... " >&6; } # Check whether --with-sodium was given. -if test "${with_sodium+set}" = set; then : +if test ${with_sodium+y} +then : withval=$with_sodium; PHP_SODIUM=$withval -else - +else case e in #( + e) PHP_SODIUM=no test "$PHP_ENABLE_ALL" && PHP_SODIUM=$PHP_ENABLE_ALL - + ;; +esac fi @@ -72673,8 +77106,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -72682,17 +77115,17 @@ if test "$PHP_SODIUM" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsodium >= 1.0.8" >&5 -$as_echo_n "checking for libsodium >= 1.0.8... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsodium >= 1.0.8" >&5 +printf %s "checking for libsodium >= 1.0.8... " >&6; } if test -n "$LIBSODIUM_CFLAGS"; then pkg_cv_LIBSODIUM_CFLAGS="$LIBSODIUM_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.8\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.8\""; } >&5 ($PKG_CONFIG --exists --print-errors "libsodium >= 1.0.8") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBSODIUM_CFLAGS=`$PKG_CONFIG --cflags "libsodium >= 1.0.8" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -72706,10 +77139,10 @@ pkg_cv_LIBSODIUM_LIBS="$LIBSODIUM_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.8\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.8\""; } >&5 ($PKG_CONFIG --exists --print-errors "libsodium >= 1.0.8") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBSODIUM_LIBS=`$PKG_CONFIG --libs "libsodium >= 1.0.8" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -72723,8 +77156,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -72750,10 +77183,10 @@ and LIBSODIUM_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -72763,12 +77196,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else LIBSODIUM_CFLAGS=$pkg_cv_LIBSODIUM_CFLAGS LIBSODIUM_LIBS=$pkg_cv_LIBSODIUM_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -72913,43 +77346,49 @@ -$as_echo "#define HAVE_LIBSODIUMLIB 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBSODIUMLIB 1" >>confdefs.h SODIUM_COMPILER_FLAGS="$LIBSODIUM_CFLAGS -Wno-type-limits" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-logical-op" >&5 -$as_echo_n "checking whether C compiler accepts -Wno-logical-op... " >&6; } -if ${ax_cv_check_cflags__Werror__Wno_logical_op+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-logical-op" >&5 +printf %s "checking whether C compiler accepts -Wno-logical-op... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wno_logical_op+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -Wno-logical-op" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__Wno_logical_op=yes -else - ax_cv_check_cflags__Werror__Wno_logical_op=no +else case e in #( + e) ax_cv_check_cflags__Werror__Wno_logical_op=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_logical_op" >&5 -$as_echo "$ax_cv_check_cflags__Werror__Wno_logical_op" >&6; } -if test "x$ax_cv_check_cflags__Werror__Wno_logical_op" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_logical_op" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wno_logical_op" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wno_logical_op" = xyes +then : SODIUM_COMPILER_FLAGS="$SODIUM_COMPILER_FLAGS -Wno-logical-op" -else - : +else case e in #( + e) : ;; +esac fi @@ -73086,9 +77525,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SODIUM 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SODIUM 1" >>confdefs.h fi fi @@ -73351,9 +77788,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SPL 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SPL 1" >>confdefs.h fi fi @@ -73555,18 +77990,20 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flush should be called explicitly after a buffered io" >&5 -$as_echo_n "checking whether flush should be called explicitly after a buffered io... " >&6; } -if ${ac_cv_flush_io+:} false; then : - $as_echo_n "(cached) " >&6 -else - -if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether flush should be called explicitly after a buffered io" >&5 +printf %s "checking whether flush should be called explicitly after a buffered io... " >&6; } +if test ${ac_cv_flush_io+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) +if test "$cross_compiling" = yes +then : ac_cv_flush_io=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -73608,48 +78045,54 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_flush_io=no -else - +else case e in #( + e) ac_cv_flush_io=yes - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flush_io" >&5 -$as_echo "$ac_cv_flush_io" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flush_io" >&5 +printf "%s\n" "$ac_cv_flush_io" >&6; } if test "$ac_cv_flush_io" = "yes"; then -$as_echo "#define HAVE_FLUSHIO 1" >>confdefs.h +printf "%s\n" "#define HAVE_FLUSHIO 1" >>confdefs.h fi php_with_external_libcrypt=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external libcrypt or libxcrypt" >&5 -$as_echo_n "checking for external libcrypt or libxcrypt... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for external libcrypt or libxcrypt" >&5 +printf %s "checking for external libcrypt or libxcrypt... " >&6; } # Check whether --with-external-libcrypt was given. -if test "${with_external_libcrypt+set}" = set; then : +if test ${with_external_libcrypt+y} +then : withval=$with_external_libcrypt; PHP_EXTERNAL_LIBCRYPT=$withval -else - +else case e in #( + e) PHP_EXTERNAL_LIBCRYPT=no - + ;; +esac fi ext_output=$PHP_EXTERNAL_LIBCRYPT -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -73661,23 +78104,27 @@ unset found ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" -if test "x$ac_cv_func_crypt" = xyes; then : +if test "x$ac_cv_func_crypt" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__crypt" "ac_cv_func___crypt" -if test "x$ac_cv_func___crypt" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__crypt" "ac_cv_func___crypt" +if test "x$ac_cv_func___crypt" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_CRYPT 1" >>confdefs.h +printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h ac_cv_func_crypt=yes ;; @@ -73687,118 +78134,140 @@ unset ac_cv_lib_crypt_crypt unset ac_cv_lib_crypt___crypt unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 -$as_echo_n "checking for crypt in -lcrypt... " >&6; } -if ${ac_cv_lib_crypt_crypt+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 +printf %s "checking for crypt in -lcrypt... " >&6; } +if test ${ac_cv_lib_crypt_crypt+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char crypt (); +char crypt (void); int -main () +main (void) { return crypt (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_crypt_crypt=yes -else - ac_cv_lib_crypt_crypt=no +else case e in #( + e) ac_cv_lib_crypt_crypt=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 -$as_echo "$ac_cv_lib_crypt_crypt" >&6; } -if test "x$ac_cv_lib_crypt_crypt" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 +printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; } +if test "x$ac_cv_lib_crypt_crypt" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crypt in -lcrypt" >&5 -$as_echo_n "checking for __crypt in -lcrypt... " >&6; } -if ${ac_cv_lib_crypt___crypt+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __crypt in -lcrypt" >&5 +printf %s "checking for __crypt in -lcrypt... " >&6; } +if test ${ac_cv_lib_crypt___crypt+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __crypt (); +char __crypt (void); int -main () +main (void) { return __crypt (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_crypt___crypt=yes -else - ac_cv_lib_crypt___crypt=no +else case e in #( + e) ac_cv_lib_crypt___crypt=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt___crypt" >&5 -$as_echo "$ac_cv_lib_crypt___crypt" >&6; } -if test "x$ac_cv_lib_crypt___crypt" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt___crypt" >&5 +printf "%s\n" "$ac_cv_lib_crypt___crypt" >&6; } +if test "x$ac_cv_lib_crypt___crypt" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lcrypt" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -73816,10 +78285,10 @@ -$as_echo "#define HAVE_CRYPT 1" >>confdefs.h +printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h -$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBCRYPT 1" >>confdefs.h ac_cv_func_crypt=yes else @@ -73838,23 +78307,27 @@ unset found ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" -if test "x$ac_cv_func_crypt_r" = xyes; then : +if test "x$ac_cv_func_crypt_r" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__crypt_r" "ac_cv_func___crypt_r" -if test "x$ac_cv_func___crypt_r" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__crypt_r" "ac_cv_func___crypt_r" +if test "x$ac_cv_func___crypt_r" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h +printf "%s\n" "#define HAVE_CRYPT_R 1" >>confdefs.h ac_cv_func_crypt_r=yes ;; @@ -73864,118 +78337,140 @@ unset ac_cv_lib_crypt_crypt_r unset ac_cv_lib_crypt___crypt_r unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5 -$as_echo_n "checking for crypt_r in -lcrypt... " >&6; } -if ${ac_cv_lib_crypt_crypt_r+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5 +printf %s "checking for crypt_r in -lcrypt... " >&6; } +if test ${ac_cv_lib_crypt_crypt_r+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char crypt_r (); +char crypt_r (void); int -main () +main (void) { return crypt_r (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_crypt_crypt_r=yes -else - ac_cv_lib_crypt_crypt_r=no +else case e in #( + e) ac_cv_lib_crypt_crypt_r=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt_r" >&5 -$as_echo "$ac_cv_lib_crypt_crypt_r" >&6; } -if test "x$ac_cv_lib_crypt_crypt_r" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt_r" >&5 +printf "%s\n" "$ac_cv_lib_crypt_crypt_r" >&6; } +if test "x$ac_cv_lib_crypt_crypt_r" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crypt_r in -lcrypt" >&5 -$as_echo_n "checking for __crypt_r in -lcrypt... " >&6; } -if ${ac_cv_lib_crypt___crypt_r+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __crypt_r in -lcrypt" >&5 +printf %s "checking for __crypt_r in -lcrypt... " >&6; } +if test ${ac_cv_lib_crypt___crypt_r+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __crypt_r (); +char __crypt_r (void); int -main () +main (void) { return __crypt_r (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_crypt___crypt_r=yes -else - ac_cv_lib_crypt___crypt_r=no +else case e in #( + e) ac_cv_lib_crypt___crypt_r=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt___crypt_r" >&5 -$as_echo "$ac_cv_lib_crypt___crypt_r" >&6; } -if test "x$ac_cv_lib_crypt___crypt_r" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt___crypt_r" >&5 +printf "%s\n" "$ac_cv_lib_crypt___crypt_r" >&6; } +if test "x$ac_cv_lib_crypt___crypt_r" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lcrypt" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -73993,10 +78488,10 @@ -$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h +printf "%s\n" "#define HAVE_CRYPT_R 1" >>confdefs.h -$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBCRYPT 1" >>confdefs.h ac_cv_func_crypt_r=yes else @@ -74009,26 +78504,22 @@ esac - for ac_header in crypt.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" -if test "x$ac_cv_header_crypt_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_CRYPT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" +if test "x$ac_cv_header_crypt_h" = xyes +then : + printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h fi -done - if test "$ac_cv_func_crypt_r" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5 -$as_echo_n "checking which data struct is used by crypt_r... " >&6; } -if ${php_cv_crypt_r_style+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5 +printf %s "checking which data struct is used by crypt_r... " >&6; } +if test ${php_cv_crypt_r_style+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) php_cv_crypt_r_style=none cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -74037,7 +78528,7 @@ #include int -main () +main (void) { CRYPTD buffer; @@ -74047,10 +78538,11 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : php_cv_crypt_r_style=cryptd fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test "$php_cv_crypt_r_style" = "none"; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -74060,7 +78552,7 @@ #include int -main () +main (void) { struct crypt_data buffer; @@ -74070,10 +78562,11 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : php_cv_crypt_r_style=struct_crypt_data fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$php_cv_crypt_r_style" = "none"; then @@ -74085,7 +78578,7 @@ #include int -main () +main (void) { struct crypt_data buffer; @@ -74095,10 +78588,11 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : php_cv_crypt_r_style=struct_crypt_data_gnu_source fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$php_cv_crypt_r_style" = "none"; then @@ -74109,7 +78603,7 @@ #include int -main () +main (void) { struct crypt_data buffer; @@ -74119,29 +78613,31 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : php_cv_crypt_r_style=struct_crypt_data fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_crypt_r_style" >&5 -$as_echo "$php_cv_crypt_r_style" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_cv_crypt_r_style" >&5 +printf "%s\n" "$php_cv_crypt_r_style" >&6; } if test "$php_cv_crypt_r_style" = "cryptd"; then -$as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h +printf "%s\n" "#define CRYPT_R_CRYPTD 1" >>confdefs.h fi if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then -$as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h +printf "%s\n" "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h fi if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then -$as_echo "#define CRYPT_R_GNU_SOURCE 1" >>confdefs.h +printf "%s\n" "#define CRYPT_R_GNU_SOURCE 1" >>confdefs.h fi if test "$php_cv_crypt_r_style" = "none"; then @@ -74150,18 +78646,20 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5 -$as_echo_n "checking for standard DES crypt... " >&6; } -if ${ac_cv_crypt_des+:} false; then : - $as_echo_n "(cached) " >&6 -else - - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5 +printf %s "checking for standard DES crypt... " >&6; } +if test ${ac_cv_crypt_des+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + if test "$cross_compiling" = yes +then : ac_cv_crypt_des=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -74186,35 +78684,41 @@ #endif } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_crypt_des=yes -else - +else case e in #( + e) ac_cv_crypt_des=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5 -$as_echo "$ac_cv_crypt_des" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5 -$as_echo_n "checking for extended DES crypt... " >&6; } -if ${ac_cv_crypt_ext_des+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5 +printf "%s\n" "$ac_cv_crypt_des" >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5 +printf %s "checking for extended DES crypt... " >&6; } +if test ${ac_cv_crypt_ext_des+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + if test "$cross_compiling" = yes +then : ac_cv_crypt_ext_des=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -74239,35 +78743,41 @@ #endif } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_crypt_ext_des=yes -else - +else case e in #( + e) ac_cv_crypt_ext_des=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_ext_des" >&5 -$as_echo "$ac_cv_crypt_ext_des" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 crypt" >&5 -$as_echo_n "checking for MD5 crypt... " >&6; } -if ${ac_cv_crypt_md5+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_ext_des" >&5 +printf "%s\n" "$ac_cv_crypt_ext_des" >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MD5 crypt" >&5 +printf %s "checking for MD5 crypt... " >&6; } +if test ${ac_cv_crypt_md5+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + if test "$cross_compiling" = yes +then : ac_cv_crypt_md5=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -74302,35 +78812,41 @@ #endif } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_crypt_md5=yes -else - +else case e in #( + e) ac_cv_crypt_md5=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_md5" >&5 -$as_echo "$ac_cv_crypt_md5" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blowfish crypt" >&5 -$as_echo_n "checking for Blowfish crypt... " >&6; } -if ${ac_cv_crypt_blowfish+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_md5" >&5 +printf "%s\n" "$ac_cv_crypt_md5" >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Blowfish crypt" >&5 +printf %s "checking for Blowfish crypt... " >&6; } +if test ${ac_cv_crypt_blowfish+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + if test "$cross_compiling" = yes +then : ac_cv_crypt_blowfish=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -74362,35 +78878,41 @@ #endif } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_crypt_blowfish=yes -else - +else case e in #( + e) ac_cv_crypt_blowfish=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_blowfish" >&5 -$as_echo "$ac_cv_crypt_blowfish" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 crypt" >&5 -$as_echo_n "checking for SHA512 crypt... " >&6; } -if ${ac_cv_crypt_sha512+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_blowfish" >&5 +printf "%s\n" "$ac_cv_crypt_blowfish" >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA512 crypt" >&5 +printf %s "checking for SHA512 crypt... " >&6; } +if test ${ac_cv_crypt_sha512+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + if test "$cross_compiling" = yes +then : ac_cv_crypt_sha512=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -74421,35 +78943,41 @@ #endif } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_crypt_sha512=yes -else - +else case e in #( + e) ac_cv_crypt_sha512=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_sha512" >&5 -$as_echo "$ac_cv_crypt_sha512" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 crypt" >&5 -$as_echo_n "checking for SHA256 crypt... " >&6; } -if ${ac_cv_crypt_sha256+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_sha512" >&5 +printf "%s\n" "$ac_cv_crypt_sha512" >&6; } - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA256 crypt" >&5 +printf %s "checking for SHA256 crypt... " >&6; } +if test ${ac_cv_crypt_sha256+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + if test "$cross_compiling" = yes +then : ac_cv_crypt_sha256=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -74480,22 +79008,26 @@ #endif } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_crypt_sha256=yes -else - +else case e in #( + e) ac_cv_crypt_sha256=no - + ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_sha256" >&5 -$as_echo "$ac_cv_crypt_sha256" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_sha256" >&5 +printf "%s\n" "$ac_cv_crypt_sha256" >&6; } if test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "$ac_cv_crypt_md5" = "no" || test "$ac_cv_crypt_sha512" = "no" || test "$ac_cv_crypt_sha256" = "no" || test "$ac_cv_func_crypt_r" != "yes"; then @@ -74503,15 +79035,11 @@ fi -cat >>confdefs.h <<_ACEOF -#define PHP_USE_PHP_CRYPT_R 0 -_ACEOF +printf "%s\n" "#define PHP_USE_PHP_CRYPT_R 0" >>confdefs.h else -cat >>confdefs.h <<_ACEOF -#define PHP_USE_PHP_CRYPT_R 1 -_ACEOF +printf "%s\n" "#define PHP_USE_PHP_CRYPT_R 1" >>confdefs.h @@ -74562,18 +79090,19 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports aligned attribute" >&5 -$as_echo_n "checking whether the compiler supports aligned attribute... " >&6; } -if ${ac_cv_attribute_aligned+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports aligned attribute" >&5 +printf %s "checking whether the compiler supports aligned attribute... " >&6; } +if test ${ac_cv_attribute_aligned+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int)))); @@ -74582,22 +79111,25 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_attribute_aligned=yes -else - +else case e in #( + e) ac_cv_attribute_aligned=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_attribute_aligned" >&5 -$as_echo "$ac_cv_attribute_aligned" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_attribute_aligned" >&5 +printf "%s\n" "$ac_cv_attribute_aligned" >&6; } if test "$ac_cv_attribute_aligned" = "yes"; then -$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h +printf "%s\n" "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h fi @@ -74605,31 +79137,33 @@ case $host_alias in *linux*) -$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h ;; esac else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 -$as_echo_n "checking for working POSIX fnmatch... " >&6; } -if ${ac_cv_func_fnmatch_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Some versions of Solaris, SCO, and the GNU C Library + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 +printf %s "checking for working POSIX fnmatch... " >&6; } +if test ${ac_cv_func_fnmatch_works+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # Some versions of Solaris, SCO, and the GNU C Library # have a broken or incompatible fnmatch. # So we run a test program. If we are cross-compiling, take no chance. - # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. - if test "$cross_compiling" = yes; then : + # Thanks to John Oleynick, François Pinard, and Paul Eggert for this test. + if test "$cross_compiling" = yes +then : ac_cv_func_fnmatch_works=cross -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include # define y(a, b, c) (fnmatch (a, b, c) == 0) # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) int -main () +main (void) { return (!(y ("a*", "abc", 0) @@ -74643,57 +79177,65 @@ return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_fnmatch_works=yes -else - ac_cv_func_fnmatch_works=no +else case e in #( + e) ac_cv_func_fnmatch_works=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5 -$as_echo "$ac_cv_func_fnmatch_works" >&6; } -if test $ac_cv_func_fnmatch_works = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5 +printf "%s\n" "$ac_cv_func_fnmatch_works" >&6; } +if test $ac_cv_func_fnmatch_works = yes +then : -$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h fi fi -for ac_func in fork CreateProcess + + for ac_func in fork CreateProcess do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` + as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : +if eval test \"x\$"$as_ac_var"\" = x"yes" +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 _ACEOF php_can_support_proc_open=yes break -else - +else case e in #( + e) php_can_support_proc_open=no - + ;; +esac fi -done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your OS can spawn processes with inherited handles" >&5 -$as_echo_n "checking if your OS can spawn processes with inherited handles... " >&6; } +done +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your OS can spawn processes with inherited handles" >&5 +printf %s "checking if your OS can spawn processes with inherited handles... " >&6; } if test "$php_can_support_proc_open" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define PHP_CAN_SUPPORT_PROC_OPEN 1" >>confdefs.h +printf "%s\n" "#define PHP_CAN_SUPPORT_PROC_OPEN 1" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi PHP_ENABLE_CHROOT_FUNC=no @@ -74720,7 +79262,7 @@ if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then -$as_echo "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h +printf "%s\n" "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h fi @@ -74730,23 +79272,27 @@ unset found ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch" -if test "x$ac_cv_func_res_nsearch" = xyes; then : +if test "x$ac_cv_func_res_nsearch" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__res_nsearch" "ac_cv_func___res_nsearch" -if test "x$ac_cv_func___res_nsearch" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__res_nsearch" "ac_cv_func___res_nsearch" +if test "x$ac_cv_func___res_nsearch" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_NSEARCH 1" >>confdefs.h ac_cv_func_res_nsearch=yes ;; @@ -74756,118 +79302,140 @@ unset ac_cv_lib_resolv_res_nsearch unset ac_cv_lib_resolv___res_nsearch unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lresolv" >&5 -$as_echo_n "checking for res_nsearch in -lresolv... " >&6; } -if ${ac_cv_lib_resolv_res_nsearch+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lresolv" >&5 +printf %s "checking for res_nsearch in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv_res_nsearch+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char res_nsearch (); +char res_nsearch (void); int -main () +main (void) { return res_nsearch (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv_res_nsearch=yes -else - ac_cv_lib_resolv_res_nsearch=no +else case e in #( + e) ac_cv_lib_resolv_res_nsearch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_nsearch" >&5 -$as_echo "$ac_cv_lib_resolv_res_nsearch" >&6; } -if test "x$ac_cv_lib_resolv_res_nsearch" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_nsearch" >&5 +printf "%s\n" "$ac_cv_lib_resolv_res_nsearch" >&6; } +if test "x$ac_cv_lib_resolv_res_nsearch" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lresolv" >&5 -$as_echo_n "checking for __res_nsearch in -lresolv... " >&6; } -if ${ac_cv_lib_resolv___res_nsearch+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lresolv" >&5 +printf %s "checking for __res_nsearch in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv___res_nsearch+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __res_nsearch (); +char __res_nsearch (void); int -main () +main (void) { return __res_nsearch (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv___res_nsearch=yes -else - ac_cv_lib_resolv___res_nsearch=no +else case e in #( + e) ac_cv_lib_resolv___res_nsearch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_nsearch" >&5 -$as_echo "$ac_cv_lib_resolv___res_nsearch" >&6; } -if test "x$ac_cv_lib_resolv___res_nsearch" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_nsearch" >&5 +printf "%s\n" "$ac_cv_lib_resolv___res_nsearch" >&6; } +if test "x$ac_cv_lib_resolv___res_nsearch" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lresolv" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -74885,10 +79453,10 @@ -$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_NSEARCH 1" >>confdefs.h -$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h ac_cv_func_res_nsearch=yes else @@ -74897,118 +79465,140 @@ unset ac_cv_lib_bind_res_nsearch unset ac_cv_lib_bind___res_nsearch unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lbind" >&5 -$as_echo_n "checking for res_nsearch in -lbind... " >&6; } -if ${ac_cv_lib_bind_res_nsearch+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lbind" >&5 +printf %s "checking for res_nsearch in -lbind... " >&6; } +if test ${ac_cv_lib_bind_res_nsearch+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char res_nsearch (); +char res_nsearch (void); int -main () +main (void) { return res_nsearch (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind_res_nsearch=yes -else - ac_cv_lib_bind_res_nsearch=no +else case e in #( + e) ac_cv_lib_bind_res_nsearch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_nsearch" >&5 -$as_echo "$ac_cv_lib_bind_res_nsearch" >&6; } -if test "x$ac_cv_lib_bind_res_nsearch" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_nsearch" >&5 +printf "%s\n" "$ac_cv_lib_bind_res_nsearch" >&6; } +if test "x$ac_cv_lib_bind_res_nsearch" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lbind" >&5 -$as_echo_n "checking for __res_nsearch in -lbind... " >&6; } -if ${ac_cv_lib_bind___res_nsearch+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lbind" >&5 +printf %s "checking for __res_nsearch in -lbind... " >&6; } +if test ${ac_cv_lib_bind___res_nsearch+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __res_nsearch (); +char __res_nsearch (void); int -main () +main (void) { return __res_nsearch (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind___res_nsearch=yes -else - ac_cv_lib_bind___res_nsearch=no +else case e in #( + e) ac_cv_lib_bind___res_nsearch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_nsearch" >&5 -$as_echo "$ac_cv_lib_bind___res_nsearch" >&6; } -if test "x$ac_cv_lib_bind___res_nsearch" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_nsearch" >&5 +printf "%s\n" "$ac_cv_lib_bind___res_nsearch" >&6; } +if test "x$ac_cv_lib_bind___res_nsearch" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lbind" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -75026,10 +79616,10 @@ -$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_NSEARCH 1" >>confdefs.h -$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBBIND 1" >>confdefs.h ac_cv_func_res_nsearch=yes else @@ -75038,118 +79628,140 @@ unset ac_cv_lib_socket_res_nsearch unset ac_cv_lib_socket___res_nsearch unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lsocket" >&5 -$as_echo_n "checking for res_nsearch in -lsocket... " >&6; } -if ${ac_cv_lib_socket_res_nsearch+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lsocket" >&5 +printf %s "checking for res_nsearch in -lsocket... " >&6; } +if test ${ac_cv_lib_socket_res_nsearch+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char res_nsearch (); +char res_nsearch (void); int -main () +main (void) { return res_nsearch (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket_res_nsearch=yes -else - ac_cv_lib_socket_res_nsearch=no +else case e in #( + e) ac_cv_lib_socket_res_nsearch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_nsearch" >&5 -$as_echo "$ac_cv_lib_socket_res_nsearch" >&6; } -if test "x$ac_cv_lib_socket_res_nsearch" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_nsearch" >&5 +printf "%s\n" "$ac_cv_lib_socket_res_nsearch" >&6; } +if test "x$ac_cv_lib_socket_res_nsearch" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lsocket" >&5 -$as_echo_n "checking for __res_nsearch in -lsocket... " >&6; } -if ${ac_cv_lib_socket___res_nsearch+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lsocket" >&5 +printf %s "checking for __res_nsearch in -lsocket... " >&6; } +if test ${ac_cv_lib_socket___res_nsearch+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __res_nsearch (); +char __res_nsearch (void); int -main () +main (void) { return __res_nsearch (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket___res_nsearch=yes -else - ac_cv_lib_socket___res_nsearch=no +else case e in #( + e) ac_cv_lib_socket___res_nsearch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_nsearch" >&5 -$as_echo "$ac_cv_lib_socket___res_nsearch" >&6; } -if test "x$ac_cv_lib_socket___res_nsearch" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_nsearch" >&5 +printf "%s\n" "$ac_cv_lib_socket___res_nsearch" >&6; } +if test "x$ac_cv_lib_socket___res_nsearch" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lsocket" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -75167,10 +79779,10 @@ -$as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_NSEARCH 1" >>confdefs.h -$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h ac_cv_func_res_nsearch=yes else @@ -75195,23 +79807,27 @@ unset found ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy" -if test "x$ac_cv_func_res_ndestroy" = xyes; then : +if test "x$ac_cv_func_res_ndestroy" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__res_ndestroy" "ac_cv_func___res_ndestroy" -if test "x$ac_cv_func___res_ndestroy" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__res_ndestroy" "ac_cv_func___res_ndestroy" +if test "x$ac_cv_func___res_ndestroy" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_NDESTROY 1" >>confdefs.h ac_cv_func_res_ndestroy=yes ;; @@ -75221,118 +79837,140 @@ unset ac_cv_lib_resolv_res_ndestroy unset ac_cv_lib_resolv___res_ndestroy unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lresolv" >&5 -$as_echo_n "checking for res_ndestroy in -lresolv... " >&6; } -if ${ac_cv_lib_resolv_res_ndestroy+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lresolv" >&5 +printf %s "checking for res_ndestroy in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv_res_ndestroy+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char res_ndestroy (); +char res_ndestroy (void); int -main () +main (void) { return res_ndestroy (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv_res_ndestroy=yes -else - ac_cv_lib_resolv_res_ndestroy=no +else case e in #( + e) ac_cv_lib_resolv_res_ndestroy=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_ndestroy" >&5 -$as_echo "$ac_cv_lib_resolv_res_ndestroy" >&6; } -if test "x$ac_cv_lib_resolv_res_ndestroy" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_ndestroy" >&5 +printf "%s\n" "$ac_cv_lib_resolv_res_ndestroy" >&6; } +if test "x$ac_cv_lib_resolv_res_ndestroy" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lresolv" >&5 -$as_echo_n "checking for __res_ndestroy in -lresolv... " >&6; } -if ${ac_cv_lib_resolv___res_ndestroy+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lresolv" >&5 +printf %s "checking for __res_ndestroy in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv___res_ndestroy+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __res_ndestroy (); +char __res_ndestroy (void); int -main () +main (void) { return __res_ndestroy (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv___res_ndestroy=yes -else - ac_cv_lib_resolv___res_ndestroy=no +else case e in #( + e) ac_cv_lib_resolv___res_ndestroy=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_ndestroy" >&5 -$as_echo "$ac_cv_lib_resolv___res_ndestroy" >&6; } -if test "x$ac_cv_lib_resolv___res_ndestroy" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_ndestroy" >&5 +printf "%s\n" "$ac_cv_lib_resolv___res_ndestroy" >&6; } +if test "x$ac_cv_lib_resolv___res_ndestroy" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lresolv" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -75350,10 +79988,10 @@ -$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_NDESTROY 1" >>confdefs.h -$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h ac_cv_func_res_ndestroy=yes else @@ -75362,118 +80000,140 @@ unset ac_cv_lib_bind_res_ndestroy unset ac_cv_lib_bind___res_ndestroy unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lbind" >&5 -$as_echo_n "checking for res_ndestroy in -lbind... " >&6; } -if ${ac_cv_lib_bind_res_ndestroy+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lbind" >&5 +printf %s "checking for res_ndestroy in -lbind... " >&6; } +if test ${ac_cv_lib_bind_res_ndestroy+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char res_ndestroy (); +char res_ndestroy (void); int -main () +main (void) { return res_ndestroy (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind_res_ndestroy=yes -else - ac_cv_lib_bind_res_ndestroy=no +else case e in #( + e) ac_cv_lib_bind_res_ndestroy=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_ndestroy" >&5 -$as_echo "$ac_cv_lib_bind_res_ndestroy" >&6; } -if test "x$ac_cv_lib_bind_res_ndestroy" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_ndestroy" >&5 +printf "%s\n" "$ac_cv_lib_bind_res_ndestroy" >&6; } +if test "x$ac_cv_lib_bind_res_ndestroy" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lbind" >&5 -$as_echo_n "checking for __res_ndestroy in -lbind... " >&6; } -if ${ac_cv_lib_bind___res_ndestroy+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lbind" >&5 +printf %s "checking for __res_ndestroy in -lbind... " >&6; } +if test ${ac_cv_lib_bind___res_ndestroy+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __res_ndestroy (); +char __res_ndestroy (void); int -main () +main (void) { return __res_ndestroy (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind___res_ndestroy=yes -else - ac_cv_lib_bind___res_ndestroy=no +else case e in #( + e) ac_cv_lib_bind___res_ndestroy=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_ndestroy" >&5 -$as_echo "$ac_cv_lib_bind___res_ndestroy" >&6; } -if test "x$ac_cv_lib_bind___res_ndestroy" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_ndestroy" >&5 +printf "%s\n" "$ac_cv_lib_bind___res_ndestroy" >&6; } +if test "x$ac_cv_lib_bind___res_ndestroy" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lbind" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -75491,10 +80151,10 @@ -$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_NDESTROY 1" >>confdefs.h -$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBBIND 1" >>confdefs.h ac_cv_func_res_ndestroy=yes else @@ -75503,118 +80163,140 @@ unset ac_cv_lib_socket_res_ndestroy unset ac_cv_lib_socket___res_ndestroy unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lsocket" >&5 -$as_echo_n "checking for res_ndestroy in -lsocket... " >&6; } -if ${ac_cv_lib_socket_res_ndestroy+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lsocket" >&5 +printf %s "checking for res_ndestroy in -lsocket... " >&6; } +if test ${ac_cv_lib_socket_res_ndestroy+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char res_ndestroy (); +char res_ndestroy (void); int -main () +main (void) { return res_ndestroy (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket_res_ndestroy=yes -else - ac_cv_lib_socket_res_ndestroy=no +else case e in #( + e) ac_cv_lib_socket_res_ndestroy=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_ndestroy" >&5 -$as_echo "$ac_cv_lib_socket_res_ndestroy" >&6; } -if test "x$ac_cv_lib_socket_res_ndestroy" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_ndestroy" >&5 +printf "%s\n" "$ac_cv_lib_socket_res_ndestroy" >&6; } +if test "x$ac_cv_lib_socket_res_ndestroy" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lsocket" >&5 -$as_echo_n "checking for __res_ndestroy in -lsocket... " >&6; } -if ${ac_cv_lib_socket___res_ndestroy+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lsocket" >&5 +printf %s "checking for __res_ndestroy in -lsocket... " >&6; } +if test ${ac_cv_lib_socket___res_ndestroy+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __res_ndestroy (); +char __res_ndestroy (void); int -main () +main (void) { return __res_ndestroy (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket___res_ndestroy=yes -else - ac_cv_lib_socket___res_ndestroy=no +else case e in #( + e) ac_cv_lib_socket___res_ndestroy=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_ndestroy" >&5 -$as_echo "$ac_cv_lib_socket___res_ndestroy" >&6; } -if test "x$ac_cv_lib_socket___res_ndestroy" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_ndestroy" >&5 +printf "%s\n" "$ac_cv_lib_socket___res_ndestroy" >&6; } +if test "x$ac_cv_lib_socket___res_ndestroy" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lsocket" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -75632,10 +80314,10 @@ -$as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_NDESTROY 1" >>confdefs.h -$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h ac_cv_func_res_ndestroy=yes else @@ -75660,23 +80342,27 @@ unset found ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search" -if test "x$ac_cv_func_dns_search" = xyes; then : +if test "x$ac_cv_func_dns_search" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__dns_search" "ac_cv_func___dns_search" -if test "x$ac_cv_func___dns_search" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__dns_search" "ac_cv_func___dns_search" +if test "x$ac_cv_func___dns_search" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_DNS_SEARCH 1" >>confdefs.h ac_cv_func_dns_search=yes ;; @@ -75686,118 +80372,140 @@ unset ac_cv_lib_resolv_dns_search unset ac_cv_lib_resolv___dns_search unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lresolv" >&5 -$as_echo_n "checking for dns_search in -lresolv... " >&6; } -if ${ac_cv_lib_resolv_dns_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lresolv" >&5 +printf %s "checking for dns_search in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv_dns_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dns_search (); +char dns_search (void); int -main () +main (void) { return dns_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv_dns_search=yes -else - ac_cv_lib_resolv_dns_search=no +else case e in #( + e) ac_cv_lib_resolv_dns_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dns_search" >&5 -$as_echo "$ac_cv_lib_resolv_dns_search" >&6; } -if test "x$ac_cv_lib_resolv_dns_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dns_search" >&5 +printf "%s\n" "$ac_cv_lib_resolv_dns_search" >&6; } +if test "x$ac_cv_lib_resolv_dns_search" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lresolv" >&5 -$as_echo_n "checking for __dns_search in -lresolv... " >&6; } -if ${ac_cv_lib_resolv___dns_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lresolv" >&5 +printf %s "checking for __dns_search in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv___dns_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dns_search (); +char __dns_search (void); int -main () +main (void) { return __dns_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv___dns_search=yes -else - ac_cv_lib_resolv___dns_search=no +else case e in #( + e) ac_cv_lib_resolv___dns_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dns_search" >&5 -$as_echo "$ac_cv_lib_resolv___dns_search" >&6; } -if test "x$ac_cv_lib_resolv___dns_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dns_search" >&5 +printf "%s\n" "$ac_cv_lib_resolv___dns_search" >&6; } +if test "x$ac_cv_lib_resolv___dns_search" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lresolv" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -75815,10 +80523,10 @@ -$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_DNS_SEARCH 1" >>confdefs.h -$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h ac_cv_func_dns_search=yes else @@ -75827,118 +80535,140 @@ unset ac_cv_lib_bind_dns_search unset ac_cv_lib_bind___dns_search unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lbind" >&5 -$as_echo_n "checking for dns_search in -lbind... " >&6; } -if ${ac_cv_lib_bind_dns_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lbind" >&5 +printf %s "checking for dns_search in -lbind... " >&6; } +if test ${ac_cv_lib_bind_dns_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dns_search (); +char dns_search (void); int -main () +main (void) { return dns_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind_dns_search=yes -else - ac_cv_lib_bind_dns_search=no +else case e in #( + e) ac_cv_lib_bind_dns_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dns_search" >&5 -$as_echo "$ac_cv_lib_bind_dns_search" >&6; } -if test "x$ac_cv_lib_bind_dns_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dns_search" >&5 +printf "%s\n" "$ac_cv_lib_bind_dns_search" >&6; } +if test "x$ac_cv_lib_bind_dns_search" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lbind" >&5 -$as_echo_n "checking for __dns_search in -lbind... " >&6; } -if ${ac_cv_lib_bind___dns_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lbind" >&5 +printf %s "checking for __dns_search in -lbind... " >&6; } +if test ${ac_cv_lib_bind___dns_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dns_search (); +char __dns_search (void); int -main () +main (void) { return __dns_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind___dns_search=yes -else - ac_cv_lib_bind___dns_search=no +else case e in #( + e) ac_cv_lib_bind___dns_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dns_search" >&5 -$as_echo "$ac_cv_lib_bind___dns_search" >&6; } -if test "x$ac_cv_lib_bind___dns_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dns_search" >&5 +printf "%s\n" "$ac_cv_lib_bind___dns_search" >&6; } +if test "x$ac_cv_lib_bind___dns_search" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lbind" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -75956,10 +80686,10 @@ -$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_DNS_SEARCH 1" >>confdefs.h -$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBBIND 1" >>confdefs.h ac_cv_func_dns_search=yes else @@ -75968,118 +80698,140 @@ unset ac_cv_lib_socket_dns_search unset ac_cv_lib_socket___dns_search unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lsocket" >&5 -$as_echo_n "checking for dns_search in -lsocket... " >&6; } -if ${ac_cv_lib_socket_dns_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lsocket" >&5 +printf %s "checking for dns_search in -lsocket... " >&6; } +if test ${ac_cv_lib_socket_dns_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dns_search (); +char dns_search (void); int -main () +main (void) { return dns_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket_dns_search=yes -else - ac_cv_lib_socket_dns_search=no +else case e in #( + e) ac_cv_lib_socket_dns_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dns_search" >&5 -$as_echo "$ac_cv_lib_socket_dns_search" >&6; } -if test "x$ac_cv_lib_socket_dns_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dns_search" >&5 +printf "%s\n" "$ac_cv_lib_socket_dns_search" >&6; } +if test "x$ac_cv_lib_socket_dns_search" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lsocket" >&5 -$as_echo_n "checking for __dns_search in -lsocket... " >&6; } -if ${ac_cv_lib_socket___dns_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lsocket" >&5 +printf %s "checking for __dns_search in -lsocket... " >&6; } +if test ${ac_cv_lib_socket___dns_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dns_search (); +char __dns_search (void); int -main () +main (void) { return __dns_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket___dns_search=yes -else - ac_cv_lib_socket___dns_search=no +else case e in #( + e) ac_cv_lib_socket___dns_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dns_search" >&5 -$as_echo "$ac_cv_lib_socket___dns_search" >&6; } -if test "x$ac_cv_lib_socket___dns_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dns_search" >&5 +printf "%s\n" "$ac_cv_lib_socket___dns_search" >&6; } +if test "x$ac_cv_lib_socket___dns_search" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lsocket" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -76097,10 +80849,10 @@ -$as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_DNS_SEARCH 1" >>confdefs.h -$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h ac_cv_func_dns_search=yes else @@ -76125,23 +80877,27 @@ unset found ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand" -if test "x$ac_cv_func_dn_expand" = xyes; then : +if test "x$ac_cv_func_dn_expand" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__dn_expand" "ac_cv_func___dn_expand" -if test "x$ac_cv_func___dn_expand" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__dn_expand" "ac_cv_func___dn_expand" +if test "x$ac_cv_func___dn_expand" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h +printf "%s\n" "#define HAVE_DN_EXPAND 1" >>confdefs.h ac_cv_func_dn_expand=yes ;; @@ -76151,118 +80907,140 @@ unset ac_cv_lib_resolv_dn_expand unset ac_cv_lib_resolv___dn_expand unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5 -$as_echo_n "checking for dn_expand in -lresolv... " >&6; } -if ${ac_cv_lib_resolv_dn_expand+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5 +printf %s "checking for dn_expand in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv_dn_expand+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dn_expand (); +char dn_expand (void); int -main () +main (void) { return dn_expand (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv_dn_expand=yes -else - ac_cv_lib_resolv_dn_expand=no +else case e in #( + e) ac_cv_lib_resolv_dn_expand=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5 -$as_echo "$ac_cv_lib_resolv_dn_expand" >&6; } -if test "x$ac_cv_lib_resolv_dn_expand" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5 +printf "%s\n" "$ac_cv_lib_resolv_dn_expand" >&6; } +if test "x$ac_cv_lib_resolv_dn_expand" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lresolv" >&5 -$as_echo_n "checking for __dn_expand in -lresolv... " >&6; } -if ${ac_cv_lib_resolv___dn_expand+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lresolv" >&5 +printf %s "checking for __dn_expand in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv___dn_expand+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dn_expand (); +char __dn_expand (void); int -main () +main (void) { return __dn_expand (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv___dn_expand=yes -else - ac_cv_lib_resolv___dn_expand=no +else case e in #( + e) ac_cv_lib_resolv___dn_expand=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_expand" >&5 -$as_echo "$ac_cv_lib_resolv___dn_expand" >&6; } -if test "x$ac_cv_lib_resolv___dn_expand" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_expand" >&5 +printf "%s\n" "$ac_cv_lib_resolv___dn_expand" >&6; } +if test "x$ac_cv_lib_resolv___dn_expand" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lresolv" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -76280,10 +81058,10 @@ -$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h +printf "%s\n" "#define HAVE_DN_EXPAND 1" >>confdefs.h -$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h ac_cv_func_dn_expand=yes else @@ -76292,118 +81070,140 @@ unset ac_cv_lib_bind_dn_expand unset ac_cv_lib_bind___dn_expand unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lbind" >&5 -$as_echo_n "checking for dn_expand in -lbind... " >&6; } -if ${ac_cv_lib_bind_dn_expand+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lbind" >&5 +printf %s "checking for dn_expand in -lbind... " >&6; } +if test ${ac_cv_lib_bind_dn_expand+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dn_expand (); +char dn_expand (void); int -main () +main (void) { return dn_expand (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind_dn_expand=yes -else - ac_cv_lib_bind_dn_expand=no +else case e in #( + e) ac_cv_lib_bind_dn_expand=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_expand" >&5 -$as_echo "$ac_cv_lib_bind_dn_expand" >&6; } -if test "x$ac_cv_lib_bind_dn_expand" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_expand" >&5 +printf "%s\n" "$ac_cv_lib_bind_dn_expand" >&6; } +if test "x$ac_cv_lib_bind_dn_expand" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lbind" >&5 -$as_echo_n "checking for __dn_expand in -lbind... " >&6; } -if ${ac_cv_lib_bind___dn_expand+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lbind" >&5 +printf %s "checking for __dn_expand in -lbind... " >&6; } +if test ${ac_cv_lib_bind___dn_expand+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dn_expand (); +char __dn_expand (void); int -main () +main (void) { return __dn_expand (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind___dn_expand=yes -else - ac_cv_lib_bind___dn_expand=no +else case e in #( + e) ac_cv_lib_bind___dn_expand=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_expand" >&5 -$as_echo "$ac_cv_lib_bind___dn_expand" >&6; } -if test "x$ac_cv_lib_bind___dn_expand" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_expand" >&5 +printf "%s\n" "$ac_cv_lib_bind___dn_expand" >&6; } +if test "x$ac_cv_lib_bind___dn_expand" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lbind" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -76421,10 +81221,10 @@ -$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h +printf "%s\n" "#define HAVE_DN_EXPAND 1" >>confdefs.h -$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBBIND 1" >>confdefs.h ac_cv_func_dn_expand=yes else @@ -76433,118 +81233,140 @@ unset ac_cv_lib_socket_dn_expand unset ac_cv_lib_socket___dn_expand unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lsocket" >&5 -$as_echo_n "checking for dn_expand in -lsocket... " >&6; } -if ${ac_cv_lib_socket_dn_expand+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lsocket" >&5 +printf %s "checking for dn_expand in -lsocket... " >&6; } +if test ${ac_cv_lib_socket_dn_expand+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dn_expand (); +char dn_expand (void); int -main () +main (void) { return dn_expand (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket_dn_expand=yes -else - ac_cv_lib_socket_dn_expand=no +else case e in #( + e) ac_cv_lib_socket_dn_expand=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_expand" >&5 -$as_echo "$ac_cv_lib_socket_dn_expand" >&6; } -if test "x$ac_cv_lib_socket_dn_expand" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_expand" >&5 +printf "%s\n" "$ac_cv_lib_socket_dn_expand" >&6; } +if test "x$ac_cv_lib_socket_dn_expand" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lsocket" >&5 -$as_echo_n "checking for __dn_expand in -lsocket... " >&6; } -if ${ac_cv_lib_socket___dn_expand+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lsocket" >&5 +printf %s "checking for __dn_expand in -lsocket... " >&6; } +if test ${ac_cv_lib_socket___dn_expand+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dn_expand (); +char __dn_expand (void); int -main () +main (void) { return __dn_expand (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket___dn_expand=yes -else - ac_cv_lib_socket___dn_expand=no +else case e in #( + e) ac_cv_lib_socket___dn_expand=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_expand" >&5 -$as_echo "$ac_cv_lib_socket___dn_expand" >&6; } -if test "x$ac_cv_lib_socket___dn_expand" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_expand" >&5 +printf "%s\n" "$ac_cv_lib_socket___dn_expand" >&6; } +if test "x$ac_cv_lib_socket___dn_expand" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lsocket" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -76562,10 +81384,10 @@ -$as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h +printf "%s\n" "#define HAVE_DN_EXPAND 1" >>confdefs.h -$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h ac_cv_func_dn_expand=yes else @@ -76590,23 +81412,27 @@ unset found ac_fn_c_check_func "$LINENO" "dn_skipname" "ac_cv_func_dn_skipname" -if test "x$ac_cv_func_dn_skipname" = xyes; then : +if test "x$ac_cv_func_dn_skipname" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__dn_skipname" "ac_cv_func___dn_skipname" -if test "x$ac_cv_func___dn_skipname" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__dn_skipname" "ac_cv_func___dn_skipname" +if test "x$ac_cv_func___dn_skipname" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h +printf "%s\n" "#define HAVE_DN_SKIPNAME 1" >>confdefs.h ac_cv_func_dn_skipname=yes ;; @@ -76616,118 +81442,140 @@ unset ac_cv_lib_resolv_dn_skipname unset ac_cv_lib_resolv___dn_skipname unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lresolv" >&5 -$as_echo_n "checking for dn_skipname in -lresolv... " >&6; } -if ${ac_cv_lib_resolv_dn_skipname+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lresolv" >&5 +printf %s "checking for dn_skipname in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv_dn_skipname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dn_skipname (); +char dn_skipname (void); int -main () +main (void) { return dn_skipname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv_dn_skipname=yes -else - ac_cv_lib_resolv_dn_skipname=no +else case e in #( + e) ac_cv_lib_resolv_dn_skipname=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_skipname" >&5 -$as_echo "$ac_cv_lib_resolv_dn_skipname" >&6; } -if test "x$ac_cv_lib_resolv_dn_skipname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_skipname" >&5 +printf "%s\n" "$ac_cv_lib_resolv_dn_skipname" >&6; } +if test "x$ac_cv_lib_resolv_dn_skipname" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lresolv" >&5 -$as_echo_n "checking for __dn_skipname in -lresolv... " >&6; } -if ${ac_cv_lib_resolv___dn_skipname+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lresolv" >&5 +printf %s "checking for __dn_skipname in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv___dn_skipname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dn_skipname (); +char __dn_skipname (void); int -main () +main (void) { return __dn_skipname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv___dn_skipname=yes -else - ac_cv_lib_resolv___dn_skipname=no +else case e in #( + e) ac_cv_lib_resolv___dn_skipname=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_skipname" >&5 -$as_echo "$ac_cv_lib_resolv___dn_skipname" >&6; } -if test "x$ac_cv_lib_resolv___dn_skipname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_skipname" >&5 +printf "%s\n" "$ac_cv_lib_resolv___dn_skipname" >&6; } +if test "x$ac_cv_lib_resolv___dn_skipname" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lresolv" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -76745,10 +81593,10 @@ -$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h +printf "%s\n" "#define HAVE_DN_SKIPNAME 1" >>confdefs.h -$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h ac_cv_func_dn_skipname=yes else @@ -76757,118 +81605,140 @@ unset ac_cv_lib_bind_dn_skipname unset ac_cv_lib_bind___dn_skipname unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lbind" >&5 -$as_echo_n "checking for dn_skipname in -lbind... " >&6; } -if ${ac_cv_lib_bind_dn_skipname+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lbind" >&5 +printf %s "checking for dn_skipname in -lbind... " >&6; } +if test ${ac_cv_lib_bind_dn_skipname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dn_skipname (); +char dn_skipname (void); int -main () +main (void) { return dn_skipname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind_dn_skipname=yes -else - ac_cv_lib_bind_dn_skipname=no +else case e in #( + e) ac_cv_lib_bind_dn_skipname=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_skipname" >&5 -$as_echo "$ac_cv_lib_bind_dn_skipname" >&6; } -if test "x$ac_cv_lib_bind_dn_skipname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_skipname" >&5 +printf "%s\n" "$ac_cv_lib_bind_dn_skipname" >&6; } +if test "x$ac_cv_lib_bind_dn_skipname" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lbind" >&5 -$as_echo_n "checking for __dn_skipname in -lbind... " >&6; } -if ${ac_cv_lib_bind___dn_skipname+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lbind" >&5 +printf %s "checking for __dn_skipname in -lbind... " >&6; } +if test ${ac_cv_lib_bind___dn_skipname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dn_skipname (); +char __dn_skipname (void); int -main () +main (void) { return __dn_skipname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind___dn_skipname=yes -else - ac_cv_lib_bind___dn_skipname=no +else case e in #( + e) ac_cv_lib_bind___dn_skipname=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_skipname" >&5 -$as_echo "$ac_cv_lib_bind___dn_skipname" >&6; } -if test "x$ac_cv_lib_bind___dn_skipname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_skipname" >&5 +printf "%s\n" "$ac_cv_lib_bind___dn_skipname" >&6; } +if test "x$ac_cv_lib_bind___dn_skipname" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lbind" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -76886,10 +81756,10 @@ -$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h +printf "%s\n" "#define HAVE_DN_SKIPNAME 1" >>confdefs.h -$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBBIND 1" >>confdefs.h ac_cv_func_dn_skipname=yes else @@ -76898,118 +81768,140 @@ unset ac_cv_lib_socket_dn_skipname unset ac_cv_lib_socket___dn_skipname unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lsocket" >&5 -$as_echo_n "checking for dn_skipname in -lsocket... " >&6; } -if ${ac_cv_lib_socket_dn_skipname+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lsocket" >&5 +printf %s "checking for dn_skipname in -lsocket... " >&6; } +if test ${ac_cv_lib_socket_dn_skipname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dn_skipname (); +char dn_skipname (void); int -main () +main (void) { return dn_skipname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket_dn_skipname=yes -else - ac_cv_lib_socket_dn_skipname=no +else case e in #( + e) ac_cv_lib_socket_dn_skipname=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_skipname" >&5 -$as_echo "$ac_cv_lib_socket_dn_skipname" >&6; } -if test "x$ac_cv_lib_socket_dn_skipname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_skipname" >&5 +printf "%s\n" "$ac_cv_lib_socket_dn_skipname" >&6; } +if test "x$ac_cv_lib_socket_dn_skipname" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lsocket" >&5 -$as_echo_n "checking for __dn_skipname in -lsocket... " >&6; } -if ${ac_cv_lib_socket___dn_skipname+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lsocket" >&5 +printf %s "checking for __dn_skipname in -lsocket... " >&6; } +if test ${ac_cv_lib_socket___dn_skipname+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __dn_skipname (); +char __dn_skipname (void); int -main () +main (void) { return __dn_skipname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket___dn_skipname=yes -else - ac_cv_lib_socket___dn_skipname=no +else case e in #( + e) ac_cv_lib_socket___dn_skipname=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_skipname" >&5 -$as_echo "$ac_cv_lib_socket___dn_skipname" >&6; } -if test "x$ac_cv_lib_socket___dn_skipname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_skipname" >&5 +printf "%s\n" "$ac_cv_lib_socket___dn_skipname" >&6; } +if test "x$ac_cv_lib_socket___dn_skipname" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lsocket" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -77027,10 +81919,10 @@ -$as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h +printf "%s\n" "#define HAVE_DN_SKIPNAME 1" >>confdefs.h -$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h ac_cv_func_dn_skipname=yes else @@ -77057,23 +81949,27 @@ unset found ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" -if test "x$ac_cv_func_res_search" = xyes; then : +if test "x$ac_cv_func_res_search" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__res_search" "ac_cv_func___res_search" -if test "x$ac_cv_func___res_search" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__res_search" "ac_cv_func___res_search" +if test "x$ac_cv_func___res_search" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_SEARCH 1" >>confdefs.h ac_cv_func_res_search=yes ;; @@ -77083,118 +81979,140 @@ unset ac_cv_lib_resolv_res_search unset ac_cv_lib_resolv___res_search unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 -$as_echo_n "checking for res_search in -lresolv... " >&6; } -if ${ac_cv_lib_resolv_res_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 +printf %s "checking for res_search in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv_res_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char res_search (); +char res_search (void); int -main () +main (void) { return res_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv_res_search=yes -else - ac_cv_lib_resolv_res_search=no +else case e in #( + e) ac_cv_lib_resolv_res_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 -$as_echo "$ac_cv_lib_resolv_res_search" >&6; } -if test "x$ac_cv_lib_resolv_res_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 +printf "%s\n" "$ac_cv_lib_resolv_res_search" >&6; } +if test "x$ac_cv_lib_resolv_res_search" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lresolv" >&5 -$as_echo_n "checking for __res_search in -lresolv... " >&6; } -if ${ac_cv_lib_resolv___res_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lresolv" >&5 +printf %s "checking for __res_search in -lresolv... " >&6; } +if test ${ac_cv_lib_resolv___res_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __res_search (); +char __res_search (void); int -main () +main (void) { return __res_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_resolv___res_search=yes -else - ac_cv_lib_resolv___res_search=no +else case e in #( + e) ac_cv_lib_resolv___res_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_search" >&5 -$as_echo "$ac_cv_lib_resolv___res_search" >&6; } -if test "x$ac_cv_lib_resolv___res_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_search" >&5 +printf "%s\n" "$ac_cv_lib_resolv___res_search" >&6; } +if test "x$ac_cv_lib_resolv___res_search" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lresolv" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -77212,10 +82130,10 @@ -$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_SEARCH 1" >>confdefs.h -$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h ac_cv_func_res_search=yes else @@ -77224,118 +82142,140 @@ unset ac_cv_lib_bind_res_search unset ac_cv_lib_bind___res_search unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lbind" >&5 -$as_echo_n "checking for res_search in -lbind... " >&6; } -if ${ac_cv_lib_bind_res_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_search in -lbind" >&5 +printf %s "checking for res_search in -lbind... " >&6; } +if test ${ac_cv_lib_bind_res_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char res_search (); +char res_search (void); int -main () +main (void) { return res_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind_res_search=yes -else - ac_cv_lib_bind_res_search=no +else case e in #( + e) ac_cv_lib_bind_res_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_search" >&5 -$as_echo "$ac_cv_lib_bind_res_search" >&6; } -if test "x$ac_cv_lib_bind_res_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_search" >&5 +printf "%s\n" "$ac_cv_lib_bind_res_search" >&6; } +if test "x$ac_cv_lib_bind_res_search" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lbind" >&5 -$as_echo_n "checking for __res_search in -lbind... " >&6; } -if ${ac_cv_lib_bind___res_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lbind" >&5 +printf %s "checking for __res_search in -lbind... " >&6; } +if test ${ac_cv_lib_bind___res_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lbind $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __res_search (); +char __res_search (void); int -main () +main (void) { return __res_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bind___res_search=yes -else - ac_cv_lib_bind___res_search=no +else case e in #( + e) ac_cv_lib_bind___res_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_search" >&5 -$as_echo "$ac_cv_lib_bind___res_search" >&6; } -if test "x$ac_cv_lib_bind___res_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_search" >&5 +printf "%s\n" "$ac_cv_lib_bind___res_search" >&6; } +if test "x$ac_cv_lib_bind___res_search" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lbind" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -77353,10 +82293,10 @@ -$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_SEARCH 1" >>confdefs.h -$as_echo "#define HAVE_LIBBIND 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBBIND 1" >>confdefs.h ac_cv_func_res_search=yes else @@ -77365,118 +82305,140 @@ unset ac_cv_lib_socket_res_search unset ac_cv_lib_socket___res_search unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lsocket" >&5 -$as_echo_n "checking for res_search in -lsocket... " >&6; } -if ${ac_cv_lib_socket_res_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_search in -lsocket" >&5 +printf %s "checking for res_search in -lsocket... " >&6; } +if test ${ac_cv_lib_socket_res_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char res_search (); +char res_search (void); int -main () +main (void) { return res_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket_res_search=yes -else - ac_cv_lib_socket_res_search=no +else case e in #( + e) ac_cv_lib_socket_res_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_search" >&5 -$as_echo "$ac_cv_lib_socket_res_search" >&6; } -if test "x$ac_cv_lib_socket_res_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_search" >&5 +printf "%s\n" "$ac_cv_lib_socket_res_search" >&6; } +if test "x$ac_cv_lib_socket_res_search" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lsocket" >&5 -$as_echo_n "checking for __res_search in -lsocket... " >&6; } -if ${ac_cv_lib_socket___res_search+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lsocket" >&5 +printf %s "checking for __res_search in -lsocket... " >&6; } +if test ${ac_cv_lib_socket___res_search+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __res_search (); +char __res_search (void); int -main () +main (void) { return __res_search (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket___res_search=yes -else - ac_cv_lib_socket___res_search=no +else case e in #( + e) ac_cv_lib_socket___res_search=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_search" >&5 -$as_echo "$ac_cv_lib_socket___res_search" >&6; } -if test "x$ac_cv_lib_socket___res_search" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_search" >&5 +printf "%s\n" "$ac_cv_lib_socket___res_search" >&6; } +if test "x$ac_cv_lib_socket___res_search" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lsocket" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -77494,10 +82456,10 @@ -$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h +printf "%s\n" "#define HAVE_RES_SEARCH 1" >>confdefs.h -$as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h ac_cv_func_res_search=yes else @@ -77517,19 +82479,20 @@ esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime() declaration fails" >&5 -$as_echo_n "checking whether strptime() declaration fails... " >&6; } -if ${ac_cv_strptime_decl_fails+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime() declaration fails" >&5 +printf %s "checking whether strptime() declaration fails... " >&6; } +if test ${ac_cv_strptime_decl_fails+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { #ifndef HAVE_STRPTIME @@ -77543,69 +82506,68 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_strptime_decl_fails=no -else - +else case e in #( + e) ac_cv_strptime_decl_fails=yes - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strptime_decl_fails" >&5 -$as_echo "$ac_cv_strptime_decl_fails" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strptime_decl_fails" >&5 +printf "%s\n" "$ac_cv_strptime_decl_fails" >&6; } if test "$ac_cv_strptime_decl_fails" = "yes"; then -$as_echo "#define HAVE_STRPTIME_DECL_FAILS 1" >>confdefs.h +printf "%s\n" "#define HAVE_STRPTIME_DECL_FAILS 1" >>confdefs.h fi -ac_fn_c_check_decl "$LINENO" "arc4random_buf" "ac_cv_have_decl_arc4random_buf" "$ac_includes_default" -if test "x$ac_cv_have_decl_arc4random_buf" = xyes; then : +ac_fn_check_decl "$LINENO" "arc4random_buf" "ac_cv_have_decl_arc4random_buf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_arc4random_buf" = xyes +then : ac_have_decl=1 -else - ac_have_decl=0 +else case e in #( + e) ac_have_decl=0 ;; +esac fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ARC4RANDOM_BUF $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_ARC4RANDOM_BUF $ac_have_decl" >>confdefs.h -for ac_header in CommonCrypto/CommonRandom.h -do : - ac_fn_c_check_header_compile "$LINENO" "CommonCrypto/CommonRandom.h" "ac_cv_header_CommonCrypto_CommonRandom_h" " +ac_fn_c_check_header_compile "$LINENO" "CommonCrypto/CommonRandom.h" "ac_cv_header_CommonCrypto_CommonRandom_h" " #include #include #include " -if test "x$ac_cv_header_CommonCrypto_CommonRandom_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_COMMONCRYPTO_COMMONRANDOM_H 1 -_ACEOF +if test "x$ac_cv_header_CommonCrypto_CommonRandom_h" = xyes +then : + printf "%s\n" "#define HAVE_COMMONCRYPTO_COMMONRANDOM_H 1" >>confdefs.h fi -done - php_with_password_argon2=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Argon2 support" >&5 -$as_echo_n "checking for Argon2 support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Argon2 support" >&5 +printf %s "checking for Argon2 support... " >&6; } # Check whether --with-password-argon2 was given. -if test "${with_password_argon2+set}" = set; then : +if test ${with_password_argon2+y} +then : withval=$with_password_argon2; PHP_PASSWORD_ARGON2=$withval -else - +else case e in #( + e) PHP_PASSWORD_ARGON2=no test "$PHP_ENABLE_ALL" && PHP_PASSWORD_ARGON2=$PHP_ENABLE_ALL - + ;; +esac fi @@ -77631,8 +82593,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -77640,17 +82602,17 @@ if test "$PHP_PASSWORD_ARGON2" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libargon2" >&5 -$as_echo_n "checking for libargon2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libargon2" >&5 +printf %s "checking for libargon2... " >&6; } if test -n "$ARGON2_CFLAGS"; then pkg_cv_ARGON2_CFLAGS="$ARGON2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5 ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ARGON2_CFLAGS=`$PKG_CONFIG --cflags "libargon2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -77664,10 +82626,10 @@ pkg_cv_ARGON2_LIBS="$ARGON2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5 ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ARGON2_LIBS=`$PKG_CONFIG --libs "libargon2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -77681,8 +82643,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -77708,10 +82670,10 @@ and ARGON2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -77721,12 +82683,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ARGON2_CFLAGS=$pkg_cv_ARGON2_CFLAGS ARGON2_LIBS=$pkg_cv_ARGON2_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -77852,30 +82814,25 @@ -$as_echo "#define HAVE_ARGON2LIB 1" >>confdefs.h +printf "%s\n" "#define HAVE_ARGON2LIB 1" >>confdefs.h fi -for ac_header in net/if.h -do : - ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " +ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " #ifdef HAVE_SYS_SOCKET_H #include #endif #include " -if test "x$ac_cv_header_net_if_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_NET_IF_H 1 -_ACEOF +if test "x$ac_cv_header_net_if_h" = xyes +then : + printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable getifaddrs" >&5 -$as_echo_n "checking for usable getifaddrs... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usable getifaddrs" >&5 +printf %s "checking for usable getifaddrs... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -77883,7 +82840,7 @@ #include int -main () +main (void) { struct ifaddrs *interfaces; @@ -77895,22 +82852,24 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_have_getifaddrs=yes -else - ac_have_getifaddrs=no +else case e in #( + e) ac_have_getifaddrs=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$ac_have_getifaddrs" = "yes" ; then -$as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -78069,9 +83028,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_STANDARD 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_STANDARD 1" >>confdefs.h fi fi @@ -78252,16 +83209,18 @@ php_enable_sysvmsg=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V IPC support" >&5 -$as_echo_n "checking whether to enable System V IPC support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable System V IPC support" >&5 +printf %s "checking whether to enable System V IPC support... " >&6; } # Check whether --enable-sysvmsg was given. -if test "${enable_sysvmsg+set}" = set; then : +if test ${enable_sysvmsg+y} +then : enableval=$enable_sysvmsg; PHP_SYSVMSG=$enableval -else - +else case e in #( + e) PHP_SYSVMSG=no test "$PHP_ENABLE_ALL" && PHP_SYSVMSG=$PHP_ENABLE_ALL - + ;; +esac fi @@ -78287,25 +83246,26 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_SYSVMSG" != "no"; then - ac_fn_c_check_header_mongrel "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_msg_h" = xyes; then : - -else - as_fn_error $? "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5 + ac_fn_c_check_header_compile "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_msg_h" = xyes +then : +else case e in #( + e) as_fn_error $? "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5 + ;; +esac fi - -$as_echo "#define HAVE_SYSVMSG 1" >>confdefs.h +printf "%s\n" "#define HAVE_SYSVMSG 1" >>confdefs.h ext_builddir=ext/sysvmsg @@ -78441,9 +83401,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SYSVMSG 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SYSVMSG 1" >>confdefs.h fi fi @@ -78572,16 +83530,18 @@ php_enable_sysvsem=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V semaphore support" >&5 -$as_echo_n "checking whether to enable System V semaphore support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable System V semaphore support" >&5 +printf %s "checking whether to enable System V semaphore support... " >&6; } # Check whether --enable-sysvsem was given. -if test "${enable_sysvsem+set}" = set; then : +if test ${enable_sysvsem+y} +then : enableval=$enable_sysvsem; PHP_SYSVSEM=$enableval -else - +else case e in #( + e) PHP_SYSVSEM=no test "$PHP_ENABLE_ALL" && PHP_SYSVSEM=$PHP_ENABLE_ALL - + ;; +esac fi @@ -78607,8 +83567,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -78748,9 +83708,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SYSVSEM 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SYSVSEM 1" >>confdefs.h fi fi @@ -78872,14 +83830,15 @@ fi -$as_echo "#define HAVE_SYSVSEM 1" >>confdefs.h +printf "%s\n" "#define HAVE_SYSVSEM 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5 -$as_echo_n "checking for union semun... " >&6; } -if ${php_cv_semun+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5 +printf %s "checking for union semun... " >&6; } +if test ${php_cv_semun+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -78887,34 +83846,37 @@ #include int -main () +main (void) { union semun x; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : php_cv_semun=yes -else - +else case e in #( + e) php_cv_semun=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_semun" >&5 -$as_echo "$php_cv_semun" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_cv_semun" >&5 +printf "%s\n" "$php_cv_semun" >&6; } if test "$php_cv_semun" = "yes"; then -$as_echo "#define HAVE_SEMUN 1" >>confdefs.h +printf "%s\n" "#define HAVE_SEMUN 1" >>confdefs.h else -$as_echo "#define HAVE_SEMUN 0" >>confdefs.h +printf "%s\n" "#define HAVE_SEMUN 0" >>confdefs.h fi fi @@ -78925,16 +83887,18 @@ php_enable_sysvshm=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V shared memory support" >&5 -$as_echo_n "checking whether to enable System V shared memory support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable System V shared memory support" >&5 +printf %s "checking whether to enable System V shared memory support... " >&6; } # Check whether --enable-sysvshm was given. -if test "${enable_sysvshm+set}" = set; then : +if test ${enable_sysvshm+y} +then : enableval=$enable_sysvshm; PHP_SYSVSHM=$enableval -else - +else case e in #( + e) PHP_SYSVSHM=no test "$PHP_ENABLE_ALL" && PHP_SYSVSHM=$PHP_ENABLE_ALL - + ;; +esac fi @@ -78960,15 +83924,15 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } if test "$PHP_SYSVSHM" != "no"; then -$as_echo "#define HAVE_SYSVSHM 1" >>confdefs.h +printf "%s\n" "#define HAVE_SYSVSHM 1" >>confdefs.h ext_builddir=ext/sysvshm @@ -79104,9 +84068,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_SYSVSHM 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_SYSVSHM 1" >>confdefs.h fi fi @@ -79235,17 +84197,19 @@ php_with_tidy=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIDY support" >&5 -$as_echo_n "checking for TIDY support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIDY support" >&5 +printf %s "checking for TIDY support... " >&6; } # Check whether --with-tidy was given. -if test "${with_tidy+set}" = set; then : +if test ${with_tidy+y} +then : withval=$with_tidy; PHP_TIDY=$withval -else - +else case e in #( + e) PHP_TIDY=no test "$PHP_ENABLE_ALL" && PHP_TIDY=$PHP_ENABLE_ALL - + ;; +esac fi @@ -79271,8 +84235,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -79306,7 +84270,7 @@ else if test -f "$TIDY_INCDIR/tidybuffio.h"; then -$as_echo "#define HAVE_TIDYBUFFIO_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIDYBUFFIO_H 1" >>confdefs.h fi fi @@ -79314,11 +84278,11 @@ TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR if test "$TIDY_LIB_NAME" == 'tidyp'; then -$as_echo "#define HAVE_TIDYP_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIDYP_H 1" >>confdefs.h else -$as_echo "#define HAVE_TIDY_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIDY_H 1" >>confdefs.h fi @@ -79428,56 +84392,64 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$TIDY_LIB_NAME''_tidyOptGetDoc" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -l$TIDY_LIB_NAME" >&5 -$as_echo_n "checking for tidyOptGetDoc in -l$TIDY_LIB_NAME... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$TIDY_LIB_NAME""_tidyOptGetDoc" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -l$TIDY_LIB_NAME" >&5 +printf %s "checking for tidyOptGetDoc in -l$TIDY_LIB_NAME... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$TIDY_LIB_NAME $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char tidyOptGetDoc (); +char tidyOptGetDoc (void); int -main () +main (void) { return tidyOptGetDoc (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$TIDY_LIB_NAME_tidyOptGetDoc @@ -79587,64 +84559,74 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -ltidy5" >&5 -$as_echo_n "checking for tidyOptGetDoc in -ltidy5... " >&6; } -if ${ac_cv_lib_tidy5_tidyOptGetDoc+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -ltidy5" >&5 +printf %s "checking for tidyOptGetDoc in -ltidy5... " >&6; } +if test ${ac_cv_lib_tidy5_tidyOptGetDoc+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ltidy5 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char tidyOptGetDoc (); +char tidyOptGetDoc (void); int -main () +main (void) { return tidyOptGetDoc (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_tidy5_tidyOptGetDoc=yes -else - ac_cv_lib_tidy5_tidyOptGetDoc=no +else case e in #( + e) ac_cv_lib_tidy5_tidyOptGetDoc=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tidy5_tidyOptGetDoc" >&5 -$as_echo "$ac_cv_lib_tidy5_tidyOptGetDoc" >&6; } -if test "x$ac_cv_lib_tidy5_tidyOptGetDoc" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tidy5_tidyOptGetDoc" >&5 +printf "%s\n" "$ac_cv_lib_tidy5_tidyOptGetDoc" >&6; } +if test "x$ac_cv_lib_tidy5_tidyOptGetDoc" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared TIDY_LIB_NAME=tidy5 -$as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h - +printf "%s\n" "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_tidy5_tidyOptGetDoc - + ;; +esac fi - + ;; +esac fi @@ -79753,61 +84735,70 @@ esac done - as_ac_Lib=`$as_echo "ac_cv_lib_$TIDY_LIB_NAME''_tidyReleaseDate" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyReleaseDate in -l$TIDY_LIB_NAME" >&5 -$as_echo_n "checking for tidyReleaseDate in -l$TIDY_LIB_NAME... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$TIDY_LIB_NAME""_tidyReleaseDate" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tidyReleaseDate in -l$TIDY_LIB_NAME" >&5 +printf %s "checking for tidyReleaseDate in -l$TIDY_LIB_NAME... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-l$TIDY_LIB_NAME $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char tidyReleaseDate (); +char tidyReleaseDate (void); int -main () +main (void) { return tidyReleaseDate (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else - eval "$as_ac_Lib=no" +else case e in #( + e) eval "$as_ac_Lib=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_TIDYRELEASEDATE 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIDYRELEASEDATE 1" >>confdefs.h -else - +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_$TIDY_LIB_NAME_tidyReleaseDate - + ;; +esac fi @@ -80075,9 +85066,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_TIDY 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_TIDY 1" >>confdefs.h fi fi @@ -80202,7 +85191,7 @@ PHP_VAR_SUBST="$PHP_VAR_SUBST TIDY_SHARED_LIBADD" -$as_echo "#define HAVE_TIDY 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIDY 1" >>confdefs.h fi @@ -80212,16 +85201,18 @@ php_enable_tokenizer=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenizer support" >&5 -$as_echo_n "checking whether to enable tokenizer support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenizer support" >&5 +printf %s "checking whether to enable tokenizer support... " >&6; } # Check whether --enable-tokenizer was given. -if test "${enable_tokenizer+set}" = set; then : +if test ${enable_tokenizer+y} +then : enableval=$enable_tokenizer; PHP_TOKENIZER=$enableval -else - +else case e in #( + e) PHP_TOKENIZER=yes test "$PHP_ENABLE_ALL" && PHP_TOKENIZER=$PHP_ENABLE_ALL - + ;; +esac fi @@ -80247,8 +85238,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -80388,9 +85379,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_TOKENIZER 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_TOKENIZER 1" >>confdefs.h fi fi @@ -80525,16 +85514,18 @@ php_enable_xml=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XML support" >&5 -$as_echo_n "checking whether to enable XML support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable XML support" >&5 +printf %s "checking whether to enable XML support... " >&6; } # Check whether --enable-xml was given. -if test "${enable_xml+set}" = set; then : +if test ${enable_xml+y} +then : enableval=$enable_xml; PHP_XML=$enableval -else - +else case e in #( + e) PHP_XML=yes test "$PHP_ENABLE_ALL" && PHP_XML=$PHP_ENABLE_ALL - + ;; +esac fi @@ -80560,8 +85551,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -80569,23 +85560,25 @@ php_with_expat=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with expat support" >&5 -$as_echo_n "checking whether to build with expat support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with expat support" >&5 +printf %s "checking whether to build with expat support... " >&6; } # Check whether --with-expat was given. -if test "${with_expat+set}" = set; then : +if test ${with_expat+y} +then : withval=$with_expat; PHP_EXPAT=$withval -else - +else case e in #( + e) PHP_EXPAT=no - + ;; +esac fi ext_output=$PHP_EXPAT -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -80601,17 +85594,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 -$as_echo_n "checking for libxml-2.0 >= 2.9.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 +printf %s "checking for libxml-2.0 >= 2.9.0... " >&6; } if test -n "$LIBXML_CFLAGS"; then pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -80625,10 +85618,10 @@ pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -80642,8 +85635,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -80669,10 +85662,10 @@ and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -80682,12 +85675,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS LIBXML_LIBS=$pkg_cv_LIBXML_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -80832,7 +85825,7 @@ -$as_echo "#define HAVE_LIBXML 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h @@ -80862,17 +85855,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat" >&5 -$as_echo_n "checking for expat... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for expat" >&5 +printf %s "checking for expat... " >&6; } if test -n "$EXPAT_CFLAGS"; then pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -80886,10 +85879,10 @@ pkg_cv_EXPAT_LIBS="$EXPAT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -80903,8 +85896,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -80930,10 +85923,10 @@ and EXPAT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -80943,12 +85936,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS EXPAT_LIBS=$pkg_cv_EXPAT_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -81093,7 +86086,7 @@ -$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBEXPAT 1" >>confdefs.h fi @@ -81232,9 +86225,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_XML 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_XML 1" >>confdefs.h fi fi @@ -81377,7 +86368,7 @@ -$as_echo "#define HAVE_XML 1" >>confdefs.h +printf "%s\n" "#define HAVE_XML 1" >>confdefs.h fi @@ -81387,16 +86378,18 @@ php_enable_xmlreader=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLReader support" >&5 -$as_echo_n "checking whether to enable XMLReader support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLReader support" >&5 +printf %s "checking whether to enable XMLReader support... " >&6; } # Check whether --enable-xmlreader was given. -if test "${enable_xmlreader+set}" = set; then : +if test ${enable_xmlreader+y} +then : enableval=$enable_xmlreader; PHP_XMLREADER=$enableval -else - +else case e in #( + e) PHP_XMLREADER=yes test "$PHP_ENABLE_ALL" && PHP_XMLREADER=$PHP_ENABLE_ALL - + ;; +esac fi @@ -81422,8 +86415,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -81437,17 +86430,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 -$as_echo_n "checking for libxml-2.0 >= 2.9.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 +printf %s "checking for libxml-2.0 >= 2.9.0... " >&6; } if test -n "$LIBXML_CFLAGS"; then pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -81461,10 +86454,10 @@ pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -81478,8 +86471,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -81505,10 +86498,10 @@ and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -81518,12 +86511,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS LIBXML_LIBS=$pkg_cv_LIBXML_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -81668,12 +86661,12 @@ -$as_echo "#define HAVE_LIBXML 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h -$as_echo "#define HAVE_XMLREADER 1" >>confdefs.h +printf "%s\n" "#define HAVE_XMLREADER 1" >>confdefs.h ext_builddir=ext/xmlreader @@ -81809,9 +86802,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_XMLREADER 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_XMLREADER 1" >>confdefs.h fi fi @@ -81964,16 +86955,18 @@ php_enable_xmlwriter=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLWriter support" >&5 -$as_echo_n "checking whether to enable XMLWriter support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLWriter support" >&5 +printf %s "checking whether to enable XMLWriter support... " >&6; } # Check whether --enable-xmlwriter was given. -if test "${enable_xmlwriter+set}" = set; then : +if test ${enable_xmlwriter+y} +then : enableval=$enable_xmlwriter; PHP_XMLWRITER=$enableval -else - +else case e in #( + e) PHP_XMLWRITER=yes test "$PHP_ENABLE_ALL" && PHP_XMLWRITER=$PHP_ENABLE_ALL - + ;; +esac fi @@ -81999,8 +86992,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -82014,17 +87007,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 -$as_echo_n "checking for libxml-2.0 >= 2.9.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.9.0" >&5 +printf %s "checking for libxml-2.0 >= 2.9.0... " >&6; } if test -n "$LIBXML_CFLAGS"; then pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -82038,10 +87031,10 @@ pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.9.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.9.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.9.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -82055,8 +87048,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -82082,10 +87075,10 @@ and LIBXML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -82095,12 +87088,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS LIBXML_LIBS=$pkg_cv_LIBXML_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -82245,12 +87238,12 @@ -$as_echo "#define HAVE_LIBXML 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h -$as_echo "#define HAVE_XMLWRITER 1" >>confdefs.h +printf "%s\n" "#define HAVE_XMLWRITER 1" >>confdefs.h ext_builddir=ext/xmlwriter @@ -82386,9 +87379,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_XMLWRITER 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_XMLWRITER 1" >>confdefs.h fi fi @@ -82522,17 +87513,19 @@ php_with_xsl=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XSL support" >&5 -$as_echo_n "checking whether to build with XSL support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with XSL support" >&5 +printf %s "checking whether to build with XSL support... " >&6; } # Check whether --with-xsl was given. -if test "${with_xsl+set}" = set; then : +if test ${with_xsl+y} +then : withval=$with_xsl; PHP_XSL=$withval -else - +else case e in #( + e) PHP_XSL=no test "$PHP_ENABLE_ALL" && PHP_XSL=$PHP_ENABLE_ALL - + ;; +esac fi @@ -82558,8 +87551,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -82576,17 +87569,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.0" >&5 -$as_echo_n "checking for libxslt >= 1.1.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.0" >&5 +printf %s "checking for libxslt >= 1.1.0... " >&6; } if test -n "$XSL_CFLAGS"; then pkg_cv_XSL_CFLAGS="$XSL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.1.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxslt >= 1.1.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XSL_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -82600,10 +87593,10 @@ pkg_cv_XSL_LIBS="$XSL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.1.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt >= 1.1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxslt >= 1.1.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XSL_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -82617,8 +87610,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -82644,10 +87637,10 @@ and XSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -82657,12 +87650,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else XSL_CFLAGS=$pkg_cv_XSL_CFLAGS XSL_LIBS=$pkg_cv_XSL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -82808,17 +87801,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexslt" >&5 -$as_echo_n "checking for libexslt... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libexslt" >&5 +printf %s "checking for libexslt... " >&6; } if test -n "$EXSLT_CFLAGS"; then pkg_cv_EXSLT_CFLAGS="$EXSLT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexslt\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexslt\""; } >&5 ($PKG_CONFIG --exists --print-errors "libexslt") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_EXSLT_CFLAGS=`$PKG_CONFIG --cflags "libexslt" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -82832,10 +87825,10 @@ pkg_cv_EXSLT_LIBS="$EXSLT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexslt\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexslt\""; } >&5 ($PKG_CONFIG --exists --print-errors "libexslt") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_EXSLT_LIBS=`$PKG_CONFIG --libs "libexslt" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -82849,8 +87842,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -82867,14 +87860,14 @@ elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } else EXSLT_CFLAGS=$pkg_cv_EXSLT_CFLAGS EXSLT_LIBS=$pkg_cv_EXSLT_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } for ac_i in $EXSLT_CFLAGS; do @@ -83016,13 +88009,13 @@ done -$as_echo "#define HAVE_XSL_EXSLT 1" >>confdefs.h +printf "%s\n" "#define HAVE_XSL_EXSLT 1" >>confdefs.h fi -$as_echo "#define HAVE_XSL 1" >>confdefs.h +printf "%s\n" "#define HAVE_XSL 1" >>confdefs.h ext_builddir=ext/xsl @@ -83158,9 +88151,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_XSL 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_XSL 1" >>confdefs.h fi fi @@ -83330,16 +88321,18 @@ php_enable_zend_test=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zend-test extension" >&5 -$as_echo_n "checking whether to enable zend-test extension... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable zend-test extension" >&5 +printf %s "checking whether to enable zend-test extension... " >&6; } # Check whether --enable-zend-test was given. -if test "${enable_zend_test+set}" = set; then : +if test ${enable_zend_test+y} +then : enableval=$enable_zend_test; PHP_ZEND_TEST=$enableval -else - +else case e in #( + e) PHP_ZEND_TEST=no test "$PHP_ENABLE_ALL" && PHP_ZEND_TEST=$PHP_ENABLE_ALL - + ;; +esac fi @@ -83365,8 +88358,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -83506,9 +88499,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_ZEND_TEST 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_ZEND_TEST 1" >>confdefs.h fi fi @@ -83637,17 +88628,19 @@ php_with_zip=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip archive read/write support" >&5 -$as_echo_n "checking for zip archive read/write support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zip archive read/write support" >&5 +printf %s "checking for zip archive read/write support... " >&6; } # Check whether --with-zip was given. -if test "${with_zip+set}" = set; then : +if test ${with_zip+y} +then : withval=$with_zip; PHP_ZIP=$withval -else - +else case e in #( + e) PHP_ZIP=no test "$PHP_ENABLE_ALL" && PHP_ZIP=$PHP_ENABLE_ALL - + ;; +esac fi @@ -83673,8 +88666,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -83682,17 +88675,17 @@ if test "$PHP_ZIP" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0" >&5 -$as_echo_n "checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0" >&5 +printf %s "checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... " >&6; } if test -n "$LIBZIP_CFLAGS"; then pkg_cv_LIBZIP_CFLAGS="$LIBZIP_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBZIP_CFLAGS=`$PKG_CONFIG --cflags "libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -83706,10 +88699,10 @@ pkg_cv_LIBZIP_LIBS="$LIBZIP_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBZIP_LIBS=`$PKG_CONFIG --libs "libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -83723,8 +88716,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -83750,10 +88743,10 @@ and LIBZIP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -83763,12 +88756,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else LIBZIP_CFLAGS=$pkg_cv_LIBZIP_CFLAGS LIBZIP_LIBS=$pkg_cv_LIBZIP_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -84019,62 +89012,71 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_file_set_mtime in -lzip" >&5 -$as_echo_n "checking for zip_file_set_mtime in -lzip... " >&6; } -if ${ac_cv_lib_zip_zip_file_set_mtime+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zip_file_set_mtime in -lzip" >&5 +printf %s "checking for zip_file_set_mtime in -lzip... " >&6; } +if test ${ac_cv_lib_zip_zip_file_set_mtime+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lzip $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char zip_file_set_mtime (); +char zip_file_set_mtime (void); int -main () +main (void) { return zip_file_set_mtime (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_zip_zip_file_set_mtime=yes -else - ac_cv_lib_zip_zip_file_set_mtime=no +else case e in #( + e) ac_cv_lib_zip_zip_file_set_mtime=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_file_set_mtime" >&5 -$as_echo "$ac_cv_lib_zip_zip_file_set_mtime" >&6; } -if test "x$ac_cv_lib_zip_zip_file_set_mtime" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_file_set_mtime" >&5 +printf "%s\n" "$ac_cv_lib_zip_zip_file_set_mtime" >&6; } +if test "x$ac_cv_lib_zip_zip_file_set_mtime" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_SET_MTIME 1" >>confdefs.h - +printf "%s\n" "#define HAVE_SET_MTIME 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_zip_zip_file_set_mtime - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libzip >= 1.0.0 needed for setting mtime" >&5 -$as_echo "$as_me: WARNING: Libzip >= 1.0.0 needed for setting mtime" >&2;} - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libzip >= 1.0.0 needed for setting mtime" >&5 +printf "%s\n" "$as_me: WARNING: Libzip >= 1.0.0 needed for setting mtime" >&2;} + ;; +esac fi @@ -84185,62 +89187,71 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_file_set_encryption in -lzip" >&5 -$as_echo_n "checking for zip_file_set_encryption in -lzip... " >&6; } -if ${ac_cv_lib_zip_zip_file_set_encryption+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zip_file_set_encryption in -lzip" >&5 +printf %s "checking for zip_file_set_encryption in -lzip... " >&6; } +if test ${ac_cv_lib_zip_zip_file_set_encryption+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lzip $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char zip_file_set_encryption (); +char zip_file_set_encryption (void); int -main () +main (void) { return zip_file_set_encryption (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_zip_zip_file_set_encryption=yes -else - ac_cv_lib_zip_zip_file_set_encryption=no +else case e in #( + e) ac_cv_lib_zip_zip_file_set_encryption=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_file_set_encryption" >&5 -$as_echo "$ac_cv_lib_zip_zip_file_set_encryption" >&6; } -if test "x$ac_cv_lib_zip_zip_file_set_encryption" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_file_set_encryption" >&5 +printf "%s\n" "$ac_cv_lib_zip_zip_file_set_encryption" >&6; } +if test "x$ac_cv_lib_zip_zip_file_set_encryption" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_ENCRYPTION 1" >>confdefs.h - +printf "%s\n" "#define HAVE_ENCRYPTION 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_zip_zip_file_set_encryption - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libzip >= 1.2.0 needed for encryption support" >&5 -$as_echo "$as_me: WARNING: Libzip >= 1.2.0 needed for encryption support" >&2;} - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libzip >= 1.2.0 needed for encryption support" >&5 +printf "%s\n" "$as_me: WARNING: Libzip >= 1.2.0 needed for encryption support" >&2;} + ;; +esac fi @@ -84351,60 +89362,69 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_libzip_version in -lzip" >&5 -$as_echo_n "checking for zip_libzip_version in -lzip... " >&6; } -if ${ac_cv_lib_zip_zip_libzip_version+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zip_libzip_version in -lzip" >&5 +printf %s "checking for zip_libzip_version in -lzip... " >&6; } +if test ${ac_cv_lib_zip_zip_libzip_version+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lzip $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char zip_libzip_version (); +char zip_libzip_version (void); int -main () +main (void) { return zip_libzip_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_zip_zip_libzip_version=yes -else - ac_cv_lib_zip_zip_libzip_version=no +else case e in #( + e) ac_cv_lib_zip_zip_libzip_version=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_libzip_version" >&5 -$as_echo "$ac_cv_lib_zip_zip_libzip_version" >&6; } -if test "x$ac_cv_lib_zip_zip_libzip_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_libzip_version" >&5 +printf "%s\n" "$ac_cv_lib_zip_zip_libzip_version" >&6; } +if test "x$ac_cv_lib_zip_zip_libzip_version" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_LIBZIP_VERSION 1" >>confdefs.h - +printf "%s\n" "#define HAVE_LIBZIP_VERSION 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_zip_zip_libzip_version - + ;; +esac fi @@ -84515,60 +89535,69 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_register_progress_callback_with_state in -lzip" >&5 -$as_echo_n "checking for zip_register_progress_callback_with_state in -lzip... " >&6; } -if ${ac_cv_lib_zip_zip_register_progress_callback_with_state+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zip_register_progress_callback_with_state in -lzip" >&5 +printf %s "checking for zip_register_progress_callback_with_state in -lzip... " >&6; } +if test ${ac_cv_lib_zip_zip_register_progress_callback_with_state+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lzip $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char zip_register_progress_callback_with_state (); +char zip_register_progress_callback_with_state (void); int -main () +main (void) { return zip_register_progress_callback_with_state (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_zip_zip_register_progress_callback_with_state=yes -else - ac_cv_lib_zip_zip_register_progress_callback_with_state=no +else case e in #( + e) ac_cv_lib_zip_zip_register_progress_callback_with_state=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_register_progress_callback_with_state" >&5 -$as_echo "$ac_cv_lib_zip_zip_register_progress_callback_with_state" >&6; } -if test "x$ac_cv_lib_zip_zip_register_progress_callback_with_state" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_register_progress_callback_with_state" >&5 +printf "%s\n" "$ac_cv_lib_zip_zip_register_progress_callback_with_state" >&6; } +if test "x$ac_cv_lib_zip_zip_register_progress_callback_with_state" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_PROGRESS_CALLBACK 1" >>confdefs.h - +printf "%s\n" "#define HAVE_PROGRESS_CALLBACK 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_zip_zip_register_progress_callback_with_state - + ;; +esac fi @@ -84679,60 +89708,69 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_register_cancel_callback_with_state in -lzip" >&5 -$as_echo_n "checking for zip_register_cancel_callback_with_state in -lzip... " >&6; } -if ${ac_cv_lib_zip_zip_register_cancel_callback_with_state+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zip_register_cancel_callback_with_state in -lzip" >&5 +printf %s "checking for zip_register_cancel_callback_with_state in -lzip... " >&6; } +if test ${ac_cv_lib_zip_zip_register_cancel_callback_with_state+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lzip $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char zip_register_cancel_callback_with_state (); +char zip_register_cancel_callback_with_state (void); int -main () +main (void) { return zip_register_cancel_callback_with_state (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_zip_zip_register_cancel_callback_with_state=yes -else - ac_cv_lib_zip_zip_register_cancel_callback_with_state=no +else case e in #( + e) ac_cv_lib_zip_zip_register_cancel_callback_with_state=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_register_cancel_callback_with_state" >&5 -$as_echo "$ac_cv_lib_zip_zip_register_cancel_callback_with_state" >&6; } -if test "x$ac_cv_lib_zip_zip_register_cancel_callback_with_state" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_register_cancel_callback_with_state" >&5 +printf "%s\n" "$ac_cv_lib_zip_zip_register_cancel_callback_with_state" >&6; } +if test "x$ac_cv_lib_zip_zip_register_cancel_callback_with_state" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_CANCEL_CALLBACK 1" >>confdefs.h - +printf "%s\n" "#define HAVE_CANCEL_CALLBACK 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_zip_zip_register_cancel_callback_with_state - + ;; +esac fi @@ -84843,65 +89881,74 @@ esac done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_compression_method_supported in -lzip" >&5 -$as_echo_n "checking for zip_compression_method_supported in -lzip... " >&6; } -if ${ac_cv_lib_zip_zip_compression_method_supported+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zip_compression_method_supported in -lzip" >&5 +printf %s "checking for zip_compression_method_supported in -lzip... " >&6; } +if test ${ac_cv_lib_zip_zip_compression_method_supported+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lzip $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char zip_compression_method_supported (); +char zip_compression_method_supported (void); int -main () +main (void) { return zip_compression_method_supported (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_zip_zip_compression_method_supported=yes -else - ac_cv_lib_zip_zip_compression_method_supported=no +else case e in #( + e) ac_cv_lib_zip_zip_compression_method_supported=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_compression_method_supported" >&5 -$as_echo "$ac_cv_lib_zip_zip_compression_method_supported" >&6; } -if test "x$ac_cv_lib_zip_zip_compression_method_supported" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_compression_method_supported" >&5 +printf "%s\n" "$ac_cv_lib_zip_zip_compression_method_supported" >&6; } +if test "x$ac_cv_lib_zip_zip_compression_method_supported" = xyes +then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared -$as_echo "#define HAVE_METHOD_SUPPORTED 1" >>confdefs.h - +printf "%s\n" "#define HAVE_METHOD_SUPPORTED 1" >>confdefs.h -else +else case e in #( + e) LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared unset ac_cv_lib_zip_zip_compression_method_supported - + ;; +esac fi -$as_echo "#define HAVE_ZIP 1" >>confdefs.h +printf "%s\n" "#define HAVE_ZIP 1" >>confdefs.h PHP_ZIP_SOURCES="php_zip.c zip_stream.c" @@ -85039,9 +90086,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_ZIP 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_ZIP 1" >>confdefs.h fi fi @@ -85181,16 +90226,18 @@ php_enable_mysqlnd=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mysqlnd" >&5 -$as_echo_n "checking whether to enable mysqlnd... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mysqlnd" >&5 +printf %s "checking whether to enable mysqlnd... " >&6; } # Check whether --enable-mysqlnd was given. -if test "${enable_mysqlnd+set}" = set; then : +if test ${enable_mysqlnd+y} +then : enableval=$enable_mysqlnd; PHP_MYSQLND=$enableval -else - +else case e in #( + e) PHP_MYSQLND=no test "$PHP_ENABLE_ALL" && PHP_MYSQLND=$PHP_ENABLE_ALL - + ;; +esac fi @@ -85216,8 +90263,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -85225,22 +90272,24 @@ php_enable_mysqlnd_compression_support=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable compressed protocol support in mysqlnd" >&5 -$as_echo_n "checking whether to disable compressed protocol support in mysqlnd... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable compressed protocol support in mysqlnd" >&5 +printf %s "checking whether to disable compressed protocol support in mysqlnd... " >&6; } # Check whether --enable-mysqlnd_compression_support was given. -if test "${enable_mysqlnd_compression_support+set}" = set; then : +if test ${enable_mysqlnd_compression_support+y} +then : enableval=$enable_mysqlnd_compression_support; PHP_MYSQLND_COMPRESSION_SUPPORT=$enableval -else - +else case e in #( + e) PHP_MYSQLND_COMPRESSION_SUPPORT=yes - + ;; +esac fi ext_output=$PHP_MYSQLND_COMPRESSION_SUPPORT -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -85257,17 +90306,17 @@ if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 -$as_echo_n "checking for zlib... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 +printf %s "checking for zlib... " >&6; } if test -n "$ZLIB_CFLAGS"; then pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -85281,10 +90330,10 @@ pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -85298,8 +90347,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -85325,10 +90374,10 @@ and ZLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -85338,12 +90387,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS ZLIB_LIBS=$pkg_cv_ZLIB_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -85486,12 +90535,12 @@ done -$as_echo "#define MYSQLND_COMPRESSION_ENABLED 1" >>confdefs.h +printf "%s\n" "#define MYSQLND_COMPRESSION_ENABLED 1" >>confdefs.h fi -$as_echo "#define MYSQLND_SSL_SUPPORTED 1" >>confdefs.h +printf "%s\n" "#define MYSQLND_SSL_SUPPORTED 1" >>confdefs.h test -z "$PHP_OPENSSL" && PHP_OPENSSL=no @@ -85502,17 +90551,17 @@ pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.2" >&5 -$as_echo_n "checking for openssl >= 1.0.2... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.0.2" >&5 +printf %s "checking for openssl >= 1.0.2... " >&6; } if test -n "$OPENSSL_CFLAGS"; then pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -85526,10 +90575,10 @@ pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -85543,8 +90592,8 @@ if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -85570,10 +90619,10 @@ and OPENSSL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -85583,12 +90632,12 @@ See the pkg-config man page for more details. To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } else OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } found_openssl=yes fi @@ -85733,7 +90782,7 @@ done -$as_echo "#define MYSQLND_HAVE_SSL 1" >>confdefs.h +printf "%s\n" "#define MYSQLND_HAVE_SSL 1" >>confdefs.h fi @@ -85875,9 +90924,7 @@ EOF -cat >>confdefs.h <<_ACEOF -#define COMPILE_DL_MYSQLND 1 -_ACEOF +printf "%s\n" "#define COMPILE_DL_MYSQLND 1" >>confdefs.h fi fi @@ -86036,76 +91083,84 @@ case $host_alias in i[3456]86-*-linux-* | x86_64-*-linux-*) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for -zcommon-page-size=2097152" >&5 -$as_echo_n "checking linker support for -zcommon-page-size=2097152... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for -zcommon-page-size=2097152" >&5 +printf %s "checking linker support for -zcommon-page-size=2097152... " >&6; } save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : ac_cv_common_page_size=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_common_page_size=yes -else - ac_cv_common_page_size=no +else case e in #( + e) ac_cv_common_page_size=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LDFLAGS=$save_LDFLAGS if test "$ac_cv_common_page_size" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152" else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for -zmax-page-size=2097152" >&5 -$as_echo_n "checking linker support for -zmax-page-size=2097152... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for -zmax-page-size=2097152" >&5 +printf %s "checking linker support for -zmax-page-size=2097152... " >&6; } save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,-zmax-page-size=2097152" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : ac_cv_max_page_size=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_max_page_size=yes -else - ac_cv_max_page_size=no +else case e in #( + e) ac_cv_max_page_size=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LDFLAGS=$save_LDFLAGS if test "$ac_cv_max_page_size" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM -Wl,-zmax-page-size=2097152" else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi ;; @@ -86148,16 +91203,17 @@ # Check whether --enable- was given. -if test "${enable_+set}" = set; then : +if test ${enable_+y} +then : enableval=$enable_; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring PEAR${T_ME}" >&5 -$as_echo "${T_MD}Configuring PEAR${T_ME}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring PEAR${T_ME}" >&5 +printf "%s\n" "${T_MD}Configuring PEAR${T_ME}" >&6; } if test -z "$with_pear" && test "$enable_pear" = "no"; then @@ -86171,17 +91227,19 @@ php_with_pear=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install PEAR" >&5 -$as_echo_n "checking whether to install PEAR... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install PEAR" >&5 +printf %s "checking whether to install PEAR... " >&6; } # Check whether --with-pear was given. -if test "${with_pear+set}" = set; then : +if test ${with_pear+y} +then : withval=$with_pear; PHP_PEAR=$withval -else - +else case e in #( + e) PHP_PEAR=no test "$PHP_ENABLE_ALL" && PHP_PEAR=$PHP_ENABLE_ALL - + ;; +esac fi @@ -86207,8 +91265,8 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 -$as_echo "$ext_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +printf "%s\n" "$ext_output" >&6; } @@ -86224,8 +91282,8 @@ as_fn_error $? "$pear_error_msg" "$LINENO" 5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-pear option is deprecated" >&5 -$as_echo "$as_me: WARNING: The --with-pear option is deprecated" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The --with-pear option is deprecated" >&5 +printf "%s\n" "$as_me: WARNING: The --with-pear option is deprecated" >&2;} install_pear="install-pear" PEAR_INSTALLDIR=$PHP_PEAR @@ -86247,25 +91305,28 @@ # Check whether --enable-fiber-asm was given. -if test "${enable_fiber_asm+set}" = set; then : +if test ${enable_fiber_asm+y} +then : enableval=$enable_fiber_asm; fiber_asm=$enableval -else - fiber_asm='yes' +else case e in #( + e) fiber_asm='yes' ;; +esac fi # Check whether --enable- was given. -if test "${enable_+set}" = set; then : +if test ${enable_+y} +then : enableval=$enable_; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Zend${T_ME}" >&5 -$as_echo "${T_MD}Configuring Zend${T_ME}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Zend${T_ME}" >&5 +printf "%s\n" "${T_MD}Configuring Zend${T_ME}" >&6; } case $host_cpu in #( @@ -86354,10 +91415,10 @@ fi if test "$fiber_asm" = 'yes'; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fiber switching context" >&5 -$as_echo_n "checking for fiber switching context... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fiber switching context" >&5 +printf %s "checking for fiber switching context... " >&6; } -$as_echo "#define ZEND_FIBER_ASM 1" >>confdefs.h +printf "%s\n" "#define ZEND_FIBER_ASM 1" >>confdefs.h @@ -86405,71 +91466,74 @@ done - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fiber_asm_file" >&5 -$as_echo "$fiber_asm_file" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fiber_asm_file" >&5 +printf "%s\n" "$fiber_asm_file" >&6; } else if test "$fiber_os" = 'mac'; then -$as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h +printf "%s\n" "#define _XOPEN_SOURCE 1" >>confdefs.h fi - ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default" -if test "x$ac_cv_header_ucontext_h" = xyes; then : - + ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default" +if test "x$ac_cv_header_ucontext_h" = xyes +then : -$as_echo "#define ZEND_FIBER_UCONTEXT 1" >>confdefs.h +printf "%s\n" "#define ZEND_FIBER_UCONTEXT 1" >>confdefs.h -else +else case e in #( + e) as_fn_error $? "fibers not available on this platform" "$LINENO" 5 - + ;; +esac fi - fi -for ac_header in cpuid.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default" -if test "x$ac_cv_header_cpuid_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_CPUID_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default" +if test "x$ac_cv_header_cpuid_h" = xyes +then : + printf "%s\n" "#define HAVE_CPUID_H 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid" +if test "x$ac_cv_func_getpid" = xyes +then : + printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h -for ac_func in getpid kill sigsetjmp -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +fi +ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill" +if test "x$ac_cv_func_kill" = xyes +then : + printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp" +if test "x$ac_cv_func_sigsetjmp" = xyes +then : + printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h fi -done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _FPU_SETCW" >&5 -$as_echo_n "checking for usable _FPU_SETCW... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usable _FPU_SETCW" >&5 +printf %s "checking for usable _FPU_SETCW... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { fpu_control_t fpu_oldcw, fpu_cw; @@ -86487,33 +91551,35 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cfp_have__fpu_setcw=yes -else - ac_cfp_have__fpu_setcw=no +else case e in #( + e) ac_cfp_have__fpu_setcw=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cfp_have__fpu_setcw" = "yes" ; then -$as_echo "#define HAVE__FPU_SETCW 1" >>confdefs.h +printf "%s\n" "#define HAVE__FPU_SETCW 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable fpsetprec" >&5 -$as_echo_n "checking for usable fpsetprec... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usable fpsetprec" >&5 +printf %s "checking for usable fpsetprec... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { fp_prec_t fpu_oldprec; @@ -86530,33 +91596,35 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cfp_have_fpsetprec=yes -else - ac_cfp_have_fpsetprec=no +else case e in #( + e) ac_cfp_have_fpsetprec=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cfp_have_fpsetprec" = "yes" ; then -$as_echo "#define HAVE_FPSETPREC 1" >>confdefs.h +printf "%s\n" "#define HAVE_FPSETPREC 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp" >&5 -$as_echo_n "checking for usable _controlfp... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp" >&5 +printf %s "checking for usable _controlfp... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { unsigned int fpu_oldcw; @@ -86573,33 +91641,35 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cfp_have__controlfp=yes -else - ac_cfp_have__controlfp=no +else case e in #( + e) ac_cfp_have__controlfp=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cfp_have__controlfp" = "yes" ; then -$as_echo "#define HAVE__CONTROLFP 1" >>confdefs.h +printf "%s\n" "#define HAVE__CONTROLFP 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp_s" >&5 -$as_echo_n "checking for usable _controlfp_s... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp_s" >&5 +printf %s "checking for usable _controlfp_s... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { unsigned int fpu_oldcw, fpu_cw; @@ -86617,33 +91687,35 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cfp_have__controlfp_s=yes -else - ac_cfp_have__controlfp_s=no +else case e in #( + e) ac_cfp_have__controlfp_s=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cfp_have__controlfp_s" = "yes" ; then -$as_echo "#define HAVE__CONTROLFP_S 1" >>confdefs.h +printf "%s\n" "#define HAVE__CONTROLFP_S 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FPU control word can be manipulated by inline assembler" >&5 -$as_echo_n "checking whether FPU control word can be manipulated by inline assembler... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether FPU control word can be manipulated by inline assembler" >&5 +printf %s "checking whether FPU control word can be manipulated by inline assembler... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* nothing */ int -main () +main (void) { unsigned int oldcw, cw; @@ -86663,47 +91735,44 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cfp_have_fpu_inline_asm_x86=yes -else - ac_cfp_have_fpu_inline_asm_x86=no +else case e in #( + e) ac_cfp_have_fpu_inline_asm_x86=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then -$as_echo "#define HAVE_FPU_INLINE_ASM_X86 1" >>confdefs.h +printf "%s\n" "#define HAVE_FPU_INLINE_ASM_X86 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -for ac_header in dlfcn.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" -if test "x$ac_cv_header_dlfcn_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" +if test "x$ac_cv_header_dlfcn_h" = xyes +then : + printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym() requires a leading underscore in symbol names" >&5 -$as_echo_n "checking whether dlsym() requires a leading underscore in symbol names... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dlsym() requires a leading underscore in symbol names" >&5 +printf %s "checking whether dlsym() requires a leading underscore in symbol names... " >&6; } if test "$cross_compiling" = yes; then : else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; x$lt_dlneed_uscore) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h +printf "%s\n" "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h ;; x$lt_dlunknown|x*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; esac else : # compilation failed - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -86800,19 +91869,19 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safety" >&5 -$as_echo_n "checking whether to enable thread-safety... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_ZTS" >&5 -$as_echo "$ZEND_ZTS" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend debugging" >&5 -$as_echo_n "checking whether to enable Zend debugging... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_DEBUG" >&5 -$as_echo "$ZEND_DEBUG" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safety" >&5 +printf %s "checking whether to enable thread-safety... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZEND_ZTS" >&5 +printf "%s\n" "$ZEND_ZTS" >&6; } + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend debugging" >&5 +printf %s "checking whether to enable Zend debugging... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZEND_DEBUG" >&5 +printf "%s\n" "$ZEND_DEBUG" >&6; } if test "$ZEND_DEBUG" = "yes"; then -$as_echo "#define ZEND_DEBUG 1" >>confdefs.h +printf "%s\n" "#define ZEND_DEBUG 1" >>confdefs.h echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g" if test "$CFLAGS" = "-g -O2"; then @@ -86820,254 +91889,296 @@ fi else -$as_echo "#define ZEND_DEBUG 0" >>confdefs.h +printf "%s\n" "#define ZEND_DEBUG 0" >>confdefs.h fi test -n "$GCC" && CFLAGS="-Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare $CFLAGS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-clobbered" >&5 -$as_echo_n "checking whether C compiler accepts -Wno-clobbered... " >&6; } -if ${ax_cv_check_cflags__Werror__Wno_clobbered+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-clobbered" >&5 +printf %s "checking whether C compiler accepts -Wno-clobbered... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wno_clobbered+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -Wno-clobbered" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__Wno_clobbered=yes -else - ax_cv_check_cflags__Werror__Wno_clobbered=no +else case e in #( + e) ax_cv_check_cflags__Werror__Wno_clobbered=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_clobbered" >&5 -$as_echo "$ax_cv_check_cflags__Werror__Wno_clobbered" >&6; } -if test "x$ax_cv_check_cflags__Werror__Wno_clobbered" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wno_clobbered" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wno_clobbered" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wno_clobbered" = xyes +then : CFLAGS="-Wno-clobbered $CFLAGS" -else - : +else case e in #( + e) : ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wimplicit-fallthrough=1" >&5 -$as_echo_n "checking whether C compiler accepts -Wimplicit-fallthrough=1... " >&6; } -if ${ax_cv_check_cflags__Werror__Wimplicit_fallthrough_1+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wimplicit-fallthrough=1" >&5 +printf %s "checking whether C compiler accepts -Wimplicit-fallthrough=1... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wimplicit_fallthrough_1+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -Wimplicit-fallthrough=1" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__Wimplicit_fallthrough_1=yes -else - ax_cv_check_cflags__Werror__Wimplicit_fallthrough_1=no +else case e in #( + e) ax_cv_check_cflags__Werror__Wimplicit_fallthrough_1=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wimplicit_fallthrough_1" >&5 -$as_echo "$ax_cv_check_cflags__Werror__Wimplicit_fallthrough_1" >&6; } -if test "x$ax_cv_check_cflags__Werror__Wimplicit_fallthrough_1" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wimplicit_fallthrough_1" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wimplicit_fallthrough_1" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wimplicit_fallthrough_1" = xyes +then : CFLAGS="$CFLAGS -Wimplicit-fallthrough=1" -else - : +else case e in #( + e) : ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-cond" >&5 -$as_echo_n "checking whether C compiler accepts -Wduplicated-cond... " >&6; } -if ${ax_cv_check_cflags__Werror__Wduplicated_cond+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-cond" >&5 +printf %s "checking whether C compiler accepts -Wduplicated-cond... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wduplicated_cond+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -Wduplicated-cond" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__Wduplicated_cond=yes -else - ax_cv_check_cflags__Werror__Wduplicated_cond=no +else case e in #( + e) ax_cv_check_cflags__Werror__Wduplicated_cond=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wduplicated_cond" >&5 -$as_echo "$ax_cv_check_cflags__Werror__Wduplicated_cond" >&6; } -if test "x$ax_cv_check_cflags__Werror__Wduplicated_cond" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wduplicated_cond" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wduplicated_cond" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wduplicated_cond" = xyes +then : CFLAGS="-Wduplicated-cond $CFLAGS" -else - : +else case e in #( + e) : ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wlogical-op" >&5 -$as_echo_n "checking whether C compiler accepts -Wlogical-op... " >&6; } -if ${ax_cv_check_cflags__Werror__Wlogical_op+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wlogical-op" >&5 +printf %s "checking whether C compiler accepts -Wlogical-op... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wlogical_op+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -Wlogical-op" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__Wlogical_op=yes -else - ax_cv_check_cflags__Werror__Wlogical_op=no +else case e in #( + e) ax_cv_check_cflags__Werror__Wlogical_op=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wlogical_op" >&5 -$as_echo "$ax_cv_check_cflags__Werror__Wlogical_op" >&6; } -if test "x$ax_cv_check_cflags__Werror__Wlogical_op" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wlogical_op" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wlogical_op" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wlogical_op" = xyes +then : CFLAGS="-Wlogical-op $CFLAGS" -else - : +else case e in #( + e) : ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5 -$as_echo_n "checking whether C compiler accepts -Wformat-truncation... " >&6; } -if ${ax_cv_check_cflags__Werror__Wformat_truncation+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5 +printf %s "checking whether C compiler accepts -Wformat-truncation... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wformat_truncation+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -Wformat-truncation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__Wformat_truncation=yes -else - ax_cv_check_cflags__Werror__Wformat_truncation=no +else case e in #( + e) ax_cv_check_cflags__Werror__Wformat_truncation=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wformat_truncation" >&5 -$as_echo "$ax_cv_check_cflags__Werror__Wformat_truncation" >&6; } -if test "x$ax_cv_check_cflags__Werror__Wformat_truncation" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wformat_truncation" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wformat_truncation" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wformat_truncation" = xyes +then : CFLAGS="-Wformat-truncation $CFLAGS" -else - : +else case e in #( + e) : ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5 -$as_echo_n "checking whether C compiler accepts -Wstrict-prototypes... " >&6; } -if ${ax_cv_check_cflags__Werror__Wstrict_prototypes+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5 +printf %s "checking whether C compiler accepts -Wstrict-prototypes... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wstrict_prototypes+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -Wstrict-prototypes" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__Wstrict_prototypes=yes -else - ax_cv_check_cflags__Werror__Wstrict_prototypes=no +else case e in #( + e) ax_cv_check_cflags__Werror__Wstrict_prototypes=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wstrict_prototypes" >&5 -$as_echo "$ax_cv_check_cflags__Werror__Wstrict_prototypes" >&6; } -if test "x$ax_cv_check_cflags__Werror__Wstrict_prototypes" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wstrict_prototypes" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wstrict_prototypes" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wstrict_prototypes" = xyes +then : CFLAGS="-Wstrict-prototypes $CFLAGS" -else - : +else case e in #( + e) : ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-common" >&5 -$as_echo_n "checking whether C compiler accepts -fno-common... " >&6; } -if ${ax_cv_check_cflags__Werror__fno_common+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-common" >&5 +printf %s "checking whether C compiler accepts -fno-common... " >&6; } +if test ${ax_cv_check_cflags__Werror__fno_common+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -Werror -fno-common" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags__Werror__fno_common=yes -else - ax_cv_check_cflags__Werror__fno_common=no +else case e in #( + e) ax_cv_check_cflags__Werror__fno_common=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fno_common" >&5 -$as_echo "$ax_cv_check_cflags__Werror__fno_common" >&6; } -if test "x$ax_cv_check_cflags__Werror__fno_common" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fno_common" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__fno_common" >&6; } +if test "x$ax_cv_check_cflags__Werror__fno_common" = xyes +then : CFLAGS="-fno-common $CFLAGS" -else - : +else case e in #( + e) : ;; +esac fi @@ -87075,37 +92186,40 @@ if test "$ZEND_ZTS" = "yes"; then -$as_echo "#define ZTS 1" >>confdefs.h +printf "%s\n" "#define ZTS 1" >>confdefs.h CFLAGS="$CFLAGS -DZTS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -$as_echo_n "checking for inline... " >&6; } -if ${ac_cv_c_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_c_inline=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +printf %s "checking for inline... " >&6; } +if test ${ac_cv_c_inline+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } +static $ac_kw foo_t static_foo (void) {return 0; } +$ac_kw foo_t foo (void) {return 0; } #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_inline=$ac_kw fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$ac_cv_c_inline" != no && break done - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 -$as_echo "$ac_cv_c_inline" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +printf "%s\n" "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; @@ -87123,36 +92237,37 @@ esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system is Darwin" >&5 -$as_echo_n "checking target system is Darwin... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system is Darwin" >&5 +printf %s "checking target system is Darwin... " >&6; } if echo "$target" | grep "darwin" > /dev/null; then -$as_echo "#define DARWIN 1" >>confdefs.h +printf "%s\n" "#define DARWIN 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MM alignment and log values" >&5 -$as_echo_n "checking for MM alignment and log values... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MM alignment and log values" >&5 +printf %s "checking for MM alignment and log values... " >&6; } -if test "$cross_compiling" = yes; then : +if test "$cross_compiling" = yes +then : -$as_echo "#define ZEND_MM_ALIGNMENT 8" >>confdefs.h +printf "%s\n" "#define ZEND_MM_ALIGNMENT 8" >>confdefs.h -$as_echo "#define ZEND_MM_ALIGNMENT_LOG2 3" >>confdefs.h +printf "%s\n" "#define ZEND_MM_ALIGNMENT_LOG2 3" >>confdefs.h -$as_echo "#define ZEND_MM_NEED_EIGHT_BYTE_REALIGNMENT 0" >>confdefs.h +printf "%s\n" "#define ZEND_MM_NEED_EIGHT_BYTE_REALIGNMENT 0" >>confdefs.h -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -87189,88 +92304,85 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1` LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2` LIBZEND_MM_NEED_EIGHT_BYTE_REALIGNMENT=`cat conftest.zend | cut -d ' ' -f 3` -cat >>confdefs.h <<_ACEOF -#define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN -_ACEOF +printf "%s\n" "#define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2 -_ACEOF +printf "%s\n" "#define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define ZEND_MM_NEED_EIGHT_BYTE_REALIGNMENT $LIBZEND_MM_NEED_EIGHT_BYTE_REALIGNMENT -_ACEOF +printf "%s\n" "#define ZEND_MM_NEED_EIGHT_BYTE_REALIGNMENT $LIBZEND_MM_NEED_EIGHT_BYTE_REALIGNMENT" >>confdefs.h fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 -$as_echo "done" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 +printf "%s\n" "done" >&6; } -for ac_func in mremap -do : - ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" -if test "x$ac_cv_func_mremap" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MREMAP 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" +if test "x$ac_cv_func_mremap" = xyes +then : + printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h fi -done # Check whether --enable-zend-signals was given. -if test "${enable_zend_signals+set}" = set; then : +if test ${enable_zend_signals+y} +then : enableval=$enable_zend_signals; ZEND_SIGNALS=$enableval -else - ZEND_SIGNALS=yes +else case e in #( + e) ZEND_SIGNALS=yes ;; +esac fi -for ac_func in sigaction + + for ac_func in sigaction do : ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" -if test "x$ac_cv_func_sigaction" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SIGACTION 1 -_ACEOF - -else +if test "x$ac_cv_func_sigaction" = xyes +then : + printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h +else case e in #( + e) ZEND_SIGNALS=no - + ;; +esac fi -done +done if test "$ZEND_SIGNALS" = "yes"; then -$as_echo "#define ZEND_SIGNALS 1" >>confdefs.h +printf "%s\n" "#define ZEND_SIGNALS 1" >>confdefs.h CFLAGS="$CFLAGS -DZEND_SIGNALS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zend signal handling" >&5 -$as_echo_n "checking whether to enable zend signal handling... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_SIGNALS" >&5 -$as_echo "$ZEND_SIGNALS" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable zend signal handling" >&5 +printf %s "checking whether to enable zend signal handling... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZEND_SIGNALS" >&5 +printf "%s\n" "$ZEND_SIGNALS" >&6; } # Check whether --enable-zend-max-execution-timers was given. -if test "${enable_zend_max_execution_timers+set}" = set; then : +if test ${enable_zend_max_execution_timers+y} +then : enableval=$enable_zend_max_execution_timers; ZEND_MAX_EXECUTION_TIMERS=$enableval -else - ZEND_MAX_EXECUTION_TIMERS='no' +else case e in #( + e) ZEND_MAX_EXECUTION_TIMERS='no' ;; +esac fi @@ -87287,23 +92399,27 @@ unset found ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create" -if test "x$ac_cv_func_timer_create" = xyes; then : +if test "x$ac_cv_func_timer_create" = xyes +then : found=yes -else - ac_fn_c_check_func "$LINENO" "__timer_create" "ac_cv_func___timer_create" -if test "x$ac_cv_func___timer_create" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "__timer_create" "ac_cv_func___timer_create" +if test "x$ac_cv_func___timer_create" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi case $found in yes) -$as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIMER_CREATE 1" >>confdefs.h ac_cv_func_timer_create=yes ;; @@ -87313,118 +92429,140 @@ unset ac_cv_lib_rt_timer_create unset ac_cv_lib_rt___timer_create unset found - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timer_create in -lrt" >&5 -$as_echo_n "checking for timer_create in -lrt... " >&6; } -if ${ac_cv_lib_rt_timer_create+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timer_create in -lrt" >&5 +printf %s "checking for timer_create in -lrt... " >&6; } +if test ${ac_cv_lib_rt_timer_create+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char timer_create (); +char timer_create (void); int -main () +main (void) { return timer_create (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt_timer_create=yes -else - ac_cv_lib_rt_timer_create=no +else case e in #( + e) ac_cv_lib_rt_timer_create=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_create" >&5 -$as_echo "$ac_cv_lib_rt_timer_create" >&6; } -if test "x$ac_cv_lib_rt_timer_create" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_create" >&5 +printf "%s\n" "$ac_cv_lib_rt_timer_create" >&6; } +if test "x$ac_cv_lib_rt_timer_create" = xyes +then : found=yes -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timer_create in -lrt" >&5 -$as_echo_n "checking for __timer_create in -lrt... " >&6; } -if ${ac_cv_lib_rt___timer_create+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __timer_create in -lrt" >&5 +printf %s "checking for __timer_create in -lrt... " >&6; } +if test ${ac_cv_lib_rt___timer_create+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char __timer_create (); +char __timer_create (void); int -main () +main (void) { return __timer_create (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt___timer_create=yes -else - ac_cv_lib_rt___timer_create=no +else case e in #( + e) ac_cv_lib_rt___timer_create=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___timer_create" >&5 -$as_echo "$ac_cv_lib_rt___timer_create" >&6; } -if test "x$ac_cv_lib_rt___timer_create" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___timer_create" >&5 +printf "%s\n" "$ac_cv_lib_rt___timer_create" >&6; } +if test "x$ac_cv_lib_rt___timer_create" = xyes +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi - + ;; +esac fi if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -lrt" - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : found=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : found=yes -else - found=no +else case e in #( + e) found=no ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi LIBS=$ac_libs @@ -87442,10 +92580,10 @@ -$as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIMER_CREATE 1" >>confdefs.h -$as_echo "#define HAVE_LIBRT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h ac_cv_func_timer_create=yes else @@ -87464,15 +92602,15 @@ if test "$ZEND_MAX_EXECUTION_TIMERS" = "yes"; then -$as_echo "#define ZEND_MAX_EXECUTION_TIMERS 1" >>confdefs.h +printf "%s\n" "#define ZEND_MAX_EXECUTION_TIMERS 1" >>confdefs.h CFLAGS="$CFLAGS -DZEND_MAX_EXECUTION_TIMERS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zend max execution timers" >&5 -$as_echo_n "checking whether to enable zend max execution timers... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_MAX_EXECUTION_TIMERS" >&5 -$as_echo "$ZEND_MAX_EXECUTION_TIMERS" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable zend max execution timers" >&5 +printf %s "checking whether to enable zend max execution timers... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZEND_MAX_EXECUTION_TIMERS" >&5 +printf "%s\n" "$ZEND_MAX_EXECUTION_TIMERS" >&6; } @@ -87489,26 +92627,28 @@ # Check whether --enable- was given. -if test "${enable_+set}" = set; then : +if test ${enable_+y} +then : enableval=$enable_; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring TSRM${T_ME}" >&5 -$as_echo "${T_MD}Configuring TSRM${T_ME}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring TSRM${T_ME}" >&5 +printf "%s\n" "${T_MD}Configuring TSRM${T_ME}" >&6; } if test "$PHP_THREAD_SAFETY" = "yes"; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 -$as_echo_n "checking for pthreads_cflags... " >&6; } -if ${ac_cv_pthreads_cflags+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 +printf %s "checking for pthreads_cflags... " >&6; } +if test ${ac_cv_pthreads_cflags+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_pthreads_cflags= if test "$pthreads_working" != "yes"; then for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do @@ -87533,17 +92673,19 @@ return pthread_create(&thd, NULL, thread_routine, &data); } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : pthreads_checked=yes -else - +else case e in #( + e) pthreads_checked=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS=$ac_save if test "$pthreads_checked" = "yes"; then @@ -87552,17 +92694,19 @@ fi done fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 -$as_echo "$ac_cv_pthreads_cflags" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 -$as_echo_n "checking for pthreads_lib... " >&6; } -if ${ac_cv_pthreads_lib+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5 +printf "%s\n" "$ac_cv_pthreads_cflags" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 +printf %s "checking for pthreads_lib... " >&6; } +if test ${ac_cv_pthreads_lib+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_cv_pthreads_lib= if test "$pthreads_working" != "yes"; then for lib in pthread pthreads c_r; do @@ -87587,17 +92731,19 @@ return pthread_create(&thd, NULL, thread_routine, &data); } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : pthreads_checked=yes -else - +else case e in #( + e) pthreads_checked=no - + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_save if test "$pthreads_checked" = "yes"; then @@ -87606,10 +92752,11 @@ fi done fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 -$as_echo "$ac_cv_pthreads_lib" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5 +printf "%s\n" "$ac_cv_pthreads_lib" >&6; } if test "x$ac_cv_pthreads_cflags" != "x" -o "x$ac_cv_pthreads_lib" != "x"; then pthreads_working="yes" @@ -87621,13 +92768,13 @@ fi -$as_echo "#define PTHREADS 1" >>confdefs.h +printf "%s\n" "#define PTHREADS 1" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX threads" >&5 -$as_echo_n "checking for POSIX threads... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for POSIX threads" >&5 +printf %s "checking for POSIX threads... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi @@ -87642,9 +92789,9 @@ test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. -# By default was `s,x,x', remove it if useless. +# By default was 's,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` +program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` test "$prefix" = "NONE" && prefix=/usr/local @@ -87785,41 +92932,29 @@ UNAME=`uname -a | xargs` PHP_UNAME=${PHP_UNAME:-$UNAME} -cat >>confdefs.h <<_ACEOF -#define PHP_UNAME "$PHP_UNAME" -_ACEOF +printf "%s\n" "#define PHP_UNAME \"$PHP_UNAME\"" >>confdefs.h PHP_OS=`uname | xargs` -cat >>confdefs.h <<_ACEOF -#define PHP_OS "$PHP_OS" -_ACEOF +printf "%s\n" "#define PHP_OS \"$PHP_OS\"" >>confdefs.h PHP_BUILD_SYSTEM=${PHP_BUILD_SYSTEM:-$PHP_UNAME} -cat >>confdefs.h <<_ACEOF -#define PHP_BUILD_SYSTEM "$PHP_BUILD_SYSTEM" -_ACEOF +printf "%s\n" "#define PHP_BUILD_SYSTEM \"$PHP_BUILD_SYSTEM\"" >>confdefs.h if test -n "${PHP_BUILD_PROVIDER}"; then -cat >>confdefs.h <<_ACEOF -#define PHP_BUILD_PROVIDER "$PHP_BUILD_PROVIDER" -_ACEOF +printf "%s\n" "#define PHP_BUILD_PROVIDER \"$PHP_BUILD_PROVIDER\"" >>confdefs.h fi if test -n "${PHP_BUILD_COMPILER}"; then -cat >>confdefs.h <<_ACEOF -#define PHP_BUILD_COMPILER "$PHP_BUILD_COMPILER" -_ACEOF +printf "%s\n" "#define PHP_BUILD_COMPILER \"$PHP_BUILD_COMPILER\"" >>confdefs.h fi if test -n "${PHP_BUILD_ARCH}"; then -cat >>confdefs.h <<_ACEOF -#define PHP_BUILD_ARCH "$PHP_BUILD_ARCH" -_ACEOF +printf "%s\n" "#define PHP_BUILD_ARCH \"$PHP_BUILD_ARCH\"" >>confdefs.h fi @@ -88100,172 +93235,197 @@ fi if test "$PHP_MEMORY_SANITIZER" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory -fsanitize-memory-track-origins" >&5 -$as_echo_n "checking whether C compiler accepts -fsanitize=memory -fsanitize-memory-track-origins... " >&6; } -if ${ax_cv_check_cflags___fsanitize_memory__fsanitize_memory_track_origins+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory -fsanitize-memory-track-origins" >&5 +printf %s "checking whether C compiler accepts -fsanitize=memory -fsanitize-memory-track-origins... " >&6; } +if test ${ax_cv_check_cflags___fsanitize_memory__fsanitize_memory_track_origins+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -fsanitize=memory -fsanitize-memory-track-origins" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags___fsanitize_memory__fsanitize_memory_track_origins=yes -else - ax_cv_check_cflags___fsanitize_memory__fsanitize_memory_track_origins=no +else case e in #( + e) ax_cv_check_cflags___fsanitize_memory__fsanitize_memory_track_origins=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory__fsanitize_memory_track_origins" >&5 -$as_echo "$ax_cv_check_cflags___fsanitize_memory__fsanitize_memory_track_origins" >&6; } -if test "x$ax_cv_check_cflags___fsanitize_memory__fsanitize_memory_track_origins" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory__fsanitize_memory_track_origins" >&5 +printf "%s\n" "$ax_cv_check_cflags___fsanitize_memory__fsanitize_memory_track_origins" >&6; } +if test "x$ax_cv_check_cflags___fsanitize_memory__fsanitize_memory_track_origins" = xyes +then : CFLAGS="$CFLAGS -fsanitize=memory -fsanitize-memory-track-origins" CXXFLAGS="$CXXFLAGS -fsanitize=memory -fsanitize-memory-track-origins" -else - as_fn_error $? "MemorySanitizer is not available" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "MemorySanitizer is not available" "$LINENO" 5 ;; +esac fi fi if test "$PHP_ADDRESS_SANITIZER" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=address" >&5 -$as_echo_n "checking whether C compiler accepts -fsanitize=address... " >&6; } -if ${ax_cv_check_cflags___fsanitize_address+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=address" >&5 +printf %s "checking whether C compiler accepts -fsanitize=address... " >&6; } +if test ${ax_cv_check_cflags___fsanitize_address+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -fsanitize=address" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags___fsanitize_address=yes -else - ax_cv_check_cflags___fsanitize_address=no +else case e in #( + e) ax_cv_check_cflags___fsanitize_address=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_address" >&5 -$as_echo "$ax_cv_check_cflags___fsanitize_address" >&6; } -if test "x$ax_cv_check_cflags___fsanitize_address" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_address" >&5 +printf "%s\n" "$ax_cv_check_cflags___fsanitize_address" >&6; } +if test "x$ax_cv_check_cflags___fsanitize_address" = xyes +then : CFLAGS="$CFLAGS -fsanitize=address -DZEND_TRACK_ARENA_ALLOC" CXXFLAGS="$CXXFLAGS -fsanitize=address -DZEND_TRACK_ARENA_ALLOC" -else - as_fn_error $? "AddressSanitizer is not available" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "AddressSanitizer is not available" "$LINENO" 5 ;; +esac fi fi if test "$PHP_UNDEFINED_SANITIZER" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=undefined" >&5 -$as_echo_n "checking whether C compiler accepts -fsanitize=undefined... " >&6; } -if ${ax_cv_check_cflags___fsanitize_undefined+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=undefined" >&5 +printf %s "checking whether C compiler accepts -fsanitize=undefined... " >&6; } +if test ${ax_cv_check_cflags___fsanitize_undefined+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -fsanitize=undefined" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags___fsanitize_undefined=yes -else - ax_cv_check_cflags___fsanitize_undefined=no +else case e in #( + e) ax_cv_check_cflags___fsanitize_undefined=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_undefined" >&5 -$as_echo "$ax_cv_check_cflags___fsanitize_undefined" >&6; } -if test "x$ax_cv_check_cflags___fsanitize_undefined" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_undefined" >&5 +printf "%s\n" "$ax_cv_check_cflags___fsanitize_undefined" >&6; } +if test "x$ax_cv_check_cflags___fsanitize_undefined" = xyes +then : CFLAGS="$CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined" CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-sanitize=object-size" >&5 -$as_echo_n "checking whether C compiler accepts -fno-sanitize=object-size... " >&6; } -if ${ax_cv_check_cflags___fno_sanitize_object_size+:} false; then : - $as_echo_n "(cached) " >&6 -else - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-sanitize=object-size" >&5 +printf %s "checking whether C compiler accepts -fno-sanitize=object-size... " >&6; } +if test ${ax_cv_check_cflags___fno_sanitize_object_size+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -fno-sanitize=object-size" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ax_cv_check_cflags___fno_sanitize_object_size=yes -else - ax_cv_check_cflags___fno_sanitize_object_size=no +else case e in #( + e) ax_cv_check_cflags___fno_sanitize_object_size=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS=$ax_check_save_flags +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_sanitize_object_size" >&5 -$as_echo "$ax_cv_check_cflags___fno_sanitize_object_size" >&6; } -if test "x$ax_cv_check_cflags___fno_sanitize_object_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_sanitize_object_size" >&5 +printf "%s\n" "$ax_cv_check_cflags___fno_sanitize_object_size" >&6; } +if test "x$ax_cv_check_cflags___fno_sanitize_object_size" = xyes +then : CFLAGS="$CFLAGS -fno-sanitize=object-size" CXXFLAGS="$CFLAGS -fno-sanitize=object-size" -else - : +else case e in #( + e) : ;; +esac fi OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fno-sanitize-recover=undefined" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add -fno-sanitize=function" >&5 -$as_echo_n "checking whether to add -fno-sanitize=function... " >&6; } -if ${php_cv_ubsan_no_function+:} false; then : - $as_echo_n "(cached) " >&6 -else - - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to add -fno-sanitize=function" >&5 +printf %s "checking whether to add -fno-sanitize=function... " >&6; } +if test ${php_cv_ubsan_no_function+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + if test "$cross_compiling" = yes +then : php_cv_ubsan_no_function=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ void foo(char *string) {} @@ -88275,26 +93435,31 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : php_cv_ubsan_no_function=no -else - php_cv_ubsan_no_function=yes +else case e in #( + e) php_cv_ubsan_no_function=yes ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_ubsan_no_function" >&5 -$as_echo "$php_cv_ubsan_no_function" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $php_cv_ubsan_no_function" >&5 +printf "%s\n" "$php_cv_ubsan_no_function" >&6; } CFLAGS="$OLD_CFLAGS" if test "$php_cv_ubsan_no_function" = yes; then CFLAGS="$CFLAGS -fno-sanitize=function" CXXFLAGS="$CFLAGS -fno-sanitize=function" fi -else - as_fn_error $? "UndefinedBehaviorSanitizer is not available" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "UndefinedBehaviorSanitizer is not available" "$LINENO" 5 ;; +esac fi fi @@ -88309,16 +93474,17 @@ # Check whether --enable- was given. -if test "${enable_+set}" = set; then : +if test ${enable_+y} +then : enableval=$enable_; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring libtool${T_ME}" >&5 -$as_echo "${T_MD}Configuring libtool${T_ME}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring libtool${T_ME}" >&5 +printf "%s\n" "${T_MD}Configuring libtool${T_ME}" >&6; } AR_FLAGS=cr @@ -88326,7 +93492,8 @@ # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then : +if test ${enable_shared+y} +then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; @@ -88344,13 +93511,15 @@ IFS="$lt_save_ifs" ;; esac -else - enable_shared=yes +else case e in #( + e) enable_shared=yes ;; +esac fi # Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : +if test ${enable_static+y} +then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; @@ -88368,13 +93537,15 @@ IFS="$lt_save_ifs" ;; esac -else - enable_static=yes +else case e in #( + e) enable_static=yes ;; +esac fi # Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then : +if test ${enable_fast_install+y} +then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; @@ -88392,17 +93563,19 @@ IFS="$lt_save_ifs" ;; esac -else - enable_fast_install=yes +else case e in #( + e) enable_fast_install=yes ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${lt_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Loop through the user's path and test for sed and gsed. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +printf %s "checking for a sed that does not truncate output... " >&6; } +if test ${lt_cv_path_SED+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -88447,26 +93620,29 @@ fi done done - + ;; +esac fi SED=$lt_cv_path_SED -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 -$as_echo "$SED" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +printf "%s\n" "$SED" >&6; } # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : +if test ${with_gnu_ld+y} +then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no +else case e in #( + e) with_gnu_ld=no ;; +esac fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw @@ -88495,16 +93671,17 @@ ;; esac elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "checking for GNU ld... " >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$LD"; then +if test ${lt_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" @@ -88527,24 +93704,26 @@ IFS="$lt_save_ifs" else lt_cv_path_LD="$LD" # Let the user override the test with a path. -fi +fi ;; +esac fi LD="$lt_cv_path_LD" if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +printf %s "checking if the linker ($LD) is GNU ld... " >&6; } +if test ${lt_cv_prog_gnu_ld+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 -$as_echo_n "checking for $LD option to reload object files... " >&6; } -if ${lt_cv_ld_reload_flag+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_reload_flag='-r' +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +printf %s "checking for $LD option to reload object files... " >&6; } +if test ${lt_cv_ld_reload_flag+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_ld_reload_flag='-r' ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 -$as_echo "$lt_cv_ld_reload_flag" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; @@ -88584,12 +93766,13 @@ ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 -$as_echo_n "checking for BSD-compatible nm... " >&6; } -if ${lt_cv_path_NM+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$NM"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 +printf %s "checking for BSD-compatible nm... " >&6; } +if test ${lt_cv_path_NM+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else @@ -88631,18 +93814,20 @@ IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi ;; +esac fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 -$as_echo "$lt_cv_path_NM" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +printf "%s\n" "$lt_cv_path_NM" >&6; } NM="$lt_cv_path_NM" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 -$as_echo_n "checking how to recognize dependent libraries... " >&6; } -if ${lt_cv_deplibs_check_method+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +printf %s "checking how to recognize dependent libraries... " >&6; } +if test ${lt_cv_deplibs_check_method+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support @@ -88821,10 +94006,11 @@ lt_cv_deplibs_check_method=pass_all ;; esac - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$lt_cv_deplibs_check_method" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown @@ -88854,7 +94040,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) @@ -88869,11 +94055,11 @@ ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 88872 "configure"' > conftest.$ac_ext + echo '#line 94058 "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in @@ -88911,7 +94097,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) @@ -88967,12 +94153,13 @@ # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; } -if ${lt_cv_cc_needs_belf+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_ext=c + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +printf %s "checking whether the C compiler needs -belf... " >&6; } +if test ${lt_cv_cc_needs_belf+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' @@ -88982,29 +94169,32 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_cc_needs_belf=yes -else - lt_cv_cc_needs_belf=no +else case e in #( + e) lt_cv_cc_needs_belf=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 -$as_echo "$lt_cv_cc_needs_belf" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" @@ -89016,7 +94206,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) @@ -89050,38 +94240,35 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +printf %s "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then - if ${ac_cv_prog_CXXCPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" + if test ${ac_cv_prog_CXXCPP+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # Double quotes because $CXX needs to be expanded + for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -89091,56 +94278,56 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi done ac_cv_prog_CXXCPP=$CXXCPP - + ;; +esac fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +printf "%s\n" "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -89150,26 +94337,30 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=cpp @@ -89183,12 +94374,13 @@ # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 -$as_echo_n "checking the maximum length of command line arguments... " >&6; } -if ${lt_cv_sys_max_cmd_len+:} false; then : - $as_echo_n "(cached) " >&6 -else - i=0 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +printf %s "checking the maximum length of command line arguments... " >&6; } +if test ${lt_cv_sys_max_cmd_len+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) i=0 teststring="ABCD" case $build_os in @@ -89291,15 +94483,16 @@ fi ;; esac - + ;; +esac fi if test -n $lt_cv_sys_max_cmd_len ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 +printf "%s\n" "none" >&6; } fi @@ -89307,12 +94500,13 @@ # Check for command to grab the raw symbol name followed by C symbol from nm. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } -if ${lt_cv_sys_global_symbol_pipe+:} false; then : - $as_echo_n "(cached) " >&6 -else - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +printf %s "checking command to parse $NM output from $compiler object... " >&6; } +if test ${lt_cv_sys_global_symbol_pipe+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] @@ -89415,14 +94609,14 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then @@ -89477,7 +94671,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi @@ -89505,26 +94699,28 @@ lt_cv_sys_global_symbol_pipe= fi done - + ;; +esac fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 -$as_echo "failed" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +printf "%s\n" "failed" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 -$as_echo_n "checking for objdir... " >&6; } -if ${lt_cv_objdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - rm -f .libs 2>/dev/null +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +printf %s "checking for objdir... " >&6; } +if test ${lt_cv_objdir+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs @@ -89532,10 +94728,11 @@ # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi -rmdir .libs 2>/dev/null +rmdir .libs 2>/dev/null ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 -$as_echo "$lt_cv_objdir" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +printf "%s\n" "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir @@ -89586,38 +94783,44 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AR"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AR+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="${ac_tool_prefix}ar" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +printf "%s\n" "$AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -89626,38 +94829,44 @@ ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_AR"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AR+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="ar" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +printf "%s\n" "$ac_ct_AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_AR" = x; then @@ -89665,8 +94874,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR @@ -89678,38 +94887,44 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$RANLIB"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_RANLIB+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +printf "%s\n" "$RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -89718,38 +94933,44 @@ ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_RANLIB"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_RANLIB+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +printf "%s\n" "$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then @@ -89757,8 +94978,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB @@ -89770,38 +94991,44 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$STRIP"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_STRIP+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +printf "%s\n" "$STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -89810,38 +95037,44 @@ ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_STRIP"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_STRIP+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +printf "%s\n" "$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then @@ -89849,8 +95082,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP @@ -89913,12 +95146,13 @@ case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MAGIC_CMD in + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +printf %s "checking for ${ac_tool_prefix}file... " >&6; } +if test ${lt_cv_path_MAGIC_CMD+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; @@ -89961,26 +95195,28 @@ IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; +esac ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +printf "%s\n" "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 -$as_echo_n "checking for file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MAGIC_CMD in + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +printf %s "checking for file... " >&6; } +if test ${lt_cv_path_MAGIC_CMD+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; @@ -90023,16 +95259,17 @@ IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; +esac ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +printf "%s\n" "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi else @@ -90050,38 +95287,44 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DSYMUTIL"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DSYMUTIL+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 -$as_echo "$DSYMUTIL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +printf "%s\n" "$DSYMUTIL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -90090,38 +95333,44 @@ ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DSYMUTIL"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 -$as_echo "$ac_ct_DSYMUTIL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then @@ -90129,8 +95378,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL @@ -90142,38 +95391,44 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$NMEDIT"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_NMEDIT+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 -$as_echo "$NMEDIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +printf "%s\n" "$NMEDIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -90182,38 +95437,44 @@ ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_NMEDIT"; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_NMEDIT+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 -$as_echo "$ac_ct_NMEDIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +printf "%s\n" "$ac_ct_NMEDIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then @@ -90221,8 +95482,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT @@ -90232,12 +95493,13 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 -$as_echo_n "checking for -single_module linker flag... " >&6; } -if ${lt_cv_apple_cc_single_mod+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_apple_cc_single_mod=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +printf %s "checking for -single_module linker flag... " >&6; } +if test ${lt_cv_apple_cc_single_mod+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE @@ -90251,22 +95513,24 @@ rm -rf libconftest.dylib* fi rm conftest.c - fi + fi ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } -if ${lt_cv_ld_exported_symbols_list+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_exported_symbols_list=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +printf %s "checking for -exported_symbols_list linker flag... " >&6; } +if test ${lt_cv_ld_exported_symbols_list+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat > conftest.$ac_ext <&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then lt_cv_ld_exported_symbols_list=yes rm -rf conftest* @@ -90286,10 +95550,11 @@ fi rm -f conftest* LDFLAGS="$save_LDFLAGS" - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } case $host_os in rhapsody* | darwin1.[0123]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; @@ -90330,7 +95595,8 @@ enable_win32_dll=no # Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then : +if test ${enable_libtool_lock+y} +then : enableval=$enable_libtool_lock; fi @@ -90338,10 +95604,12 @@ # Check whether --with-pic was given. -if test "${with_pic+set}" = set; then : +if test ${with_pic+y} +then : withval=$with_pic; pic_mode="$withval" -else - pic_mode=default +else case e in #( + e) pic_mode=default ;; +esac fi test -z "$pic_mode" && pic_mode=default @@ -90405,12 +95673,13 @@ lt_prog_compiler_no_builtin_flag=' -fno-builtin' -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if test ${lt_cv_prog_compiler_rtti_exceptions+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" @@ -90423,11 +95692,11 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"configure:90426: $lt_compile\"" >&5) + (eval echo "\"configure:95695: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "configure:90430: \$? = $ac_status" >&5 + echo "configure:95699: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -90438,10 +95707,11 @@ fi fi $rm conftest* - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" @@ -90455,8 +95725,8 @@ lt_prog_compiler_pic= lt_prog_compiler_static= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +printf %s "checking for $compiler option to produce PIC... " >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' @@ -90695,20 +95965,21 @@ esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 -$as_echo "$lt_prog_compiler_pic" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 +printf "%s\n" "$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if ${lt_cv_prog_compiler_pic_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic_works=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if test ${lt_cv_prog_compiler_pic_works+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" @@ -90721,11 +95992,11 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"configure:90724: $lt_compile\"" >&5) + (eval echo "\"configure:95995: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "configure:90728: \$? = $ac_status" >&5 + echo "configure:95999: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -90736,10 +96007,11 @@ fi fi $rm conftest* - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in @@ -90766,12 +96038,13 @@ # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_static_works=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test ${lt_cv_prog_compiler_static_works+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -90792,10 +96065,11 @@ fi $rm -r conftest* LDFLAGS="$save_LDFLAGS" - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 -$as_echo "$lt_cv_prog_compiler_static_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : @@ -90804,12 +96078,13 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_c_o=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_prog_compiler_c_o=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest @@ -90825,11 +96100,11 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"configure:90828: $lt_compile\"" >&5) + (eval echo "\"configure:96103: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "configure:90832: \$? = $ac_status" >&5 + echo "configure:96107: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -90849,36 +96124,37 @@ cd .. rmdir conftest $rm conftest* - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +printf "%s\n" "$hard_links" >&6; } if test "$hard_links" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= @@ -91289,7 +96565,7 @@ # Determine the default libpath from the value encoded in an empty executable. cat > conftest.$ac_ext <&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then lt_aix_libpath_sed=' @@ -91331,7 +96607,7 @@ # Determine the default libpath from the value encoded in an empty executable. cat > conftest.$ac_ext <&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then lt_aix_libpath_sed=' @@ -91805,8 +97081,8 @@ esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 -$as_echo "$ld_shlibs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +printf "%s\n" "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no # @@ -91826,15 +97102,15 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +printf %s "checking whether -lc should be explicitly linked in... " >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest @@ -91852,7 +97128,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then archive_cmds_need_lc=no @@ -91864,16 +97140,16 @@ cat conftest.err 1>&5 fi $rm conftest* - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 -$as_echo "$archive_cmds_need_lc" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 +printf "%s\n" "$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +printf %s "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= @@ -92481,21 +97757,25 @@ dynamic_linker=no ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +printf "%s\n" "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no -if ${lt_cv_sys_lib_search_path_spec+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" +if test ${lt_cv_sys_lib_search_path_spec+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" ;; +esac fi sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" +if test ${lt_cv_sys_lib_dlsearch_path_spec+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" ;; +esac fi sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" @@ -92505,8 +97785,8 @@ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var" || \ @@ -92530,8 +97810,8 @@ # directories. hardcode_action=unsupported fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 -$as_echo "$hardcode_action" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +printf "%s\n" "$hardcode_action" >&6; } if test "$hardcode_action" = relink; then # Fast installation is not supported @@ -92544,13 +97824,13 @@ striplib= old_striplib= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 -$as_echo_n "checking whether stripping libraries is possible... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +printf %s "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in @@ -92558,16 +97838,16 @@ if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; esac fi @@ -92599,233 +97879,281 @@ darwin*) # if libdl is installed we need to link against it - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dlopen (); +char dlopen (void); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else - ac_cv_lib_dl_dlopen=no +else case e in #( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - +else case e in #( + e) lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes - + ;; +esac fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" -if test "x$ac_cv_func_shl_load" = xyes; then : +if test "x$ac_cv_func_shl_load" = xyes +then : lt_cv_dlopen="shl_load" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } -if ${ac_cv_lib_dld_shl_load+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +printf %s "checking for shl_load in -ldld... " >&6; } +if test ${ac_cv_lib_dld_shl_load+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char shl_load (); +char shl_load (void); int -main () +main (void) { return shl_load (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dld_shl_load=yes -else - ac_cv_lib_dld_shl_load=no +else case e in #( + e) ac_cv_lib_dld_shl_load=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes +then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" -else - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : +else case e in #( + e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes +then : lt_cv_dlopen="dlopen" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dlopen (); +char dlopen (void); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else - ac_cv_lib_dl_dlopen=no +else case e in #( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 -$as_echo_n "checking for dlopen in -lsvld... " >&6; } -if ${ac_cv_lib_svld_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +printf %s "checking for dlopen in -lsvld... " >&6; } +if test ${ac_cv_lib_svld_dlopen+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dlopen (); +char dlopen (void); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_svld_dlopen=yes -else - ac_cv_lib_svld_dlopen=no +else case e in #( + e) ac_cv_lib_svld_dlopen=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 -$as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes +then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 -$as_echo_n "checking for dld_link in -ldld... " >&6; } -if ${ac_cv_lib_dld_dld_link+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +printf %s "checking for dld_link in -ldld... " >&6; } +if test ${ac_cv_lib_dld_dld_link+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif -char dld_link (); +char dld_link (void); int -main () +main (void) { return dld_link (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dld_dld_link=yes -else - ac_cv_lib_dld_dld_link=no +else case e in #( + e) ac_cv_lib_dld_dld_link=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 -$as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes +then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi ;; @@ -92848,18 +98176,19 @@ save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 -$as_echo_n "checking whether a program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +printf %s "checking whether a program can dlopen itself... " >&6; } +if test ${lt_cv_dlopen_self+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -92938,25 +98267,27 @@ fi rm -fr conftest* - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 -$as_echo "$lt_cv_dlopen_self" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +printf "%s\n" "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self_static+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +printf %s "checking whether a statically linked program can dlopen itself... " >&6; } +if test ${lt_cv_dlopen_self_static+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -93035,10 +98366,11 @@ fi rm -fr conftest* - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$lt_cv_dlopen_self_static" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" @@ -93060,13 +98392,13 @@ # Report which library types will actually be built -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +printf %s "checking if libtool supports shared libraries... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +printf "%s\n" "$can_build_shared" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +printf %s "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and @@ -93086,15 +98418,15 @@ fi ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +printf "%s\n" "$enable_shared" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -$as_echo "$enable_static" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +printf "%s\n" "$enable_static" >&6; } # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh @@ -93187,9 +98519,9 @@ cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: creating $ofile" >&5 -$as_echo " +printf "%s\n" " creating $ofile" >&6; } cat <<__EOF__ >> "$cfgfile" @@ -93595,25 +98927,26 @@ # Check whether --with-tags was given. -if test "${with_tags+set}" = set; then : +if test ${with_tags+y} +then : withval=$with_tags; tagnames="$withval" fi if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file '$ofile' does not exist" >&5 -$as_echo "$as_me: WARNING: output file '$ofile' does not exist" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: output file '$ofile' does not exist" >&5 +printf "%s\n" "$as_me: WARNING: output file '$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file '$ofile' does not look like a libtool script" >&5 -$as_echo "$as_me: WARNING: output file '$ofile' does not look like a libtool script" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: output file '$ofile' does not look like a libtool script" >&5 +printf "%s\n" "$as_me: WARNING: output file '$ofile' does not look like a libtool script" >&2;} else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using 'LTCC=$LTCC', extracted from '$ofile'" >&5 -$as_echo "$as_me: WARNING: using 'LTCC=$LTCC', extracted from '$ofile'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using 'LTCC=$LTCC', extracted from '$ofile'" >&5 +printf "%s\n" "$as_me: WARNING: using 'LTCC=$LTCC', extracted from '$ofile'" >&2;} fi fi if test -z "$LTCFLAGS"; then @@ -93769,17 +99102,19 @@ # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : +if test ${with_gnu_ld+y} +then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no +else case e in #( + e) with_gnu_ld=no ;; +esac fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw @@ -93808,16 +99143,17 @@ ;; esac elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "checking for GNU ld... " >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$LD"; then +if test ${lt_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" @@ -93840,24 +99176,26 @@ IFS="$lt_save_ifs" else lt_cv_path_LD="$LD" # Let the user override the test with a path. -fi +fi ;; +esac fi LD="$lt_cv_path_LD" if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +printf %s "checking if the linker ($LD) is GNU ld... " >&6; } +if test ${lt_cv_prog_gnu_ld+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld @@ -93918,8 +99257,8 @@ fi # PORTME: fill in a description of your system's C++ link characteristics -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) @@ -94017,7 +99356,7 @@ # Determine the default libpath from the value encoded in an empty executable. cat > conftest.$ac_ext <&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then lt_aix_libpath_sed=' @@ -94060,7 +99399,7 @@ # Determine the default libpath from the value encoded in an empty executable. cat > conftest.$ac_ext <&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then lt_aix_libpath_sed=' @@ -94816,8 +100155,8 @@ ld_shlibs_CXX=no ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +printf "%s\n" "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" @@ -94840,7 +100179,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. @@ -94996,8 +100335,8 @@ lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +printf %s "checking for $compiler option to produce PIC... " >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then @@ -95286,20 +100625,21 @@ esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 -$as_echo "$lt_prog_compiler_pic_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 +printf "%s\n" "$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } -if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic_works_CXX=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if test ${lt_cv_prog_compiler_pic_works_CXX+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" @@ -95312,11 +100652,11 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"configure:95315: $lt_compile\"" >&5) + (eval echo "\"configure:100655: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "configure:95319: \$? = $ac_status" >&5 + echo "configure:100659: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -95327,10 +100667,11 @@ fi fi $rm conftest* - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in @@ -95357,12 +100698,13 @@ # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_static_works_CXX=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test ${lt_cv_prog_compiler_static_works_CXX+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -95383,10 +100725,11 @@ fi $rm -r conftest* LDFLAGS="$save_LDFLAGS" - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then : @@ -95395,12 +100738,13 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_c_o_CXX=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o_CXX+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_prog_compiler_c_o_CXX=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest @@ -95416,11 +100760,11 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"configure:95419: $lt_compile\"" >&5) + (eval echo "\"configure:100763: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "configure:95423: \$? = $ac_status" >&5 + echo "configure:100767: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -95440,36 +100784,37 @@ cd .. rmdir conftest $rm conftest* - + ;; +esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +printf "%s\n" "$hard_links" >&6; } if test "$hard_links" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in @@ -95494,8 +100839,8 @@ esac exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +printf "%s\n" "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no # @@ -95515,15 +100860,15 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +printf %s "checking whether -lc should be explicitly linked in... " >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest @@ -95541,7 +100886,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then archive_cmds_need_lc_CXX=no @@ -95553,16 +100898,16 @@ cat conftest.err 1>&5 fi $rm conftest* - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 -$as_echo "$archive_cmds_need_lc_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 +printf "%s\n" "$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +printf %s "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= @@ -96118,21 +101463,25 @@ dynamic_linker=no ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +printf "%s\n" "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no -if ${lt_cv_sys_lib_search_path_spec+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" +if test ${lt_cv_sys_lib_search_path_spec+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" ;; +esac fi sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" +if test ${lt_cv_sys_lib_dlsearch_path_spec+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" ;; +esac fi sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" @@ -96142,8 +101491,8 @@ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var_CXX" || \ @@ -96167,8 +101516,8 @@ # directories. hardcode_action_CXX=unsupported fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 -$as_echo "$hardcode_action_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +printf "%s\n" "$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink; then # Fast installation is not supported @@ -96680,10 +102029,10 @@ CC=$old_CC - { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 -$as_echo "" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Generating files${T_ME}" >&5 -$as_echo "${T_MD}Generating files${T_ME}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 +printf "%s\n" "" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Generating files${T_ME}" >&5 +printf "%s\n" "${T_MD}Generating files${T_ME}" >&6; } CXXFLAGS_CLEAN=$CXXFLAGS @@ -97174,7 +102523,7 @@ -$as_echo "#define HAVE_BUILD_DEFS_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_BUILD_DEFS_H 1" >>confdefs.h $php_shtool mkdir -p pear @@ -97203,8 +102552,8 @@ # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the +# 'ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF @@ -97220,8 +102569,8 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -97234,14 +102583,14 @@ (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote + # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) - # `set' quotes correctly as required by POSIX, so do not add quotes. + # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | @@ -97251,15 +102600,15 @@ /^ac_cv_env_/b end t clear :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else @@ -97273,8 +102622,8 @@ fi fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -97291,7 +102640,7 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" @@ -97303,8 +102652,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: patching main/php_config.h.in" >&5 -$as_echo "$as_me: patching main/php_config.h.in" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: patching main/php_config.h.in" >&5 +printf "%s\n" "$as_me: patching main/php_config.h.in" >&6;} $SED -e 's/^#undef PACKAGE_[^ ]*/\/\* & \*\//g' < $srcdir/main/php_config.h.in \ > $srcdir/main/php_config.h.in.tmp && mv $srcdir/main/php_config.h.in.tmp $srcdir/main/php_config.h.in @@ -97314,8 +102663,8 @@ ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL @@ -97338,63 +102687,65 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -97403,13 +102754,6 @@ fi -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( @@ -97418,43 +102762,27 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] @@ -97467,9 +102795,9 @@ as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error @@ -97500,22 +102828,25 @@ { eval $1=; unset $1;} } as_unset=as_fn_unset + # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -97523,16 +102854,18 @@ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -97559,7 +102892,7 @@ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -97581,6 +102914,10 @@ as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -97594,6 +102931,12 @@ ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -97605,9 +102948,9 @@ if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -97635,7 +102978,7 @@ as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -97644,7 +102987,7 @@ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -97688,10 +103031,12 @@ as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -97706,8 +103051,8 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by PHP $as_me 8.2.30, which was -generated by GNU Autoconf 2.69. Invocation command line was +This file was extended by PHP $as_me 8.2.31, which was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -97739,7 +103084,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -97770,14 +103115,16 @@ PHP home page: ." _ACEOF +ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` +ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -PHP config.status 8.2.30 -configured by $0, generated by GNU Autoconf 2.69, +PHP config.status 8.2.31 +configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -97814,15 +103161,15 @@ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; + printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; + printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" @@ -97830,23 +103177,23 @@ --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; + as_fn_error $? "ambiguous option: '$1' +Try '$0 --help' for more information.";; --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; + printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -97867,7 +103214,7 @@ if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" @@ -97881,7 +103228,7 @@ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - $as_echo "$ac_log" + printf "%s\n" "$ac_log" } >&5 _ACEOF @@ -97955,7 +103302,7 @@ "$ALL_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $ALL_OUTPUT_FILES" ;; "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -97965,9 +103312,9 @@ # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers + test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree @@ -97975,7 +103322,7 @@ # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -97999,7 +103346,7 @@ # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -98157,13 +103504,13 @@ # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. +# This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF -# Transform confdefs.h into an awk script `defines.awk', embedded as +# Transform confdefs.h into an awk script 'defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. @@ -98273,7 +103620,7 @@ esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -98295,33 +103642,33 @@ -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | + ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac @@ -98338,7 +103685,7 @@ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | +printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -98362,9 +103709,9 @@ case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -98417,8 +103764,8 @@ case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' @@ -98431,7 +103778,7 @@ esac _ACEOF -# Neutralize VPATH when `$srcdir' = `.'. +# Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -98460,9 +103807,9 @@ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -98478,27 +103825,27 @@ # if test x"$ac_file" != x-; then { - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -$as_echo "$as_me: $ac_file is unchanged" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} + :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +printf "%s\n" "$as_me: executing $ac_file commands" >&6;} ;; esac @@ -98554,7 +103901,8 @@ $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi + diff -Nru php8.2-8.2.30/configure.ac php8.2-8.2.31/configure.ac --- php8.2-8.2.30/configure.ac 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/configure.ac 2026-05-05 13:59:08.000000000 +0000 @@ -17,7 +17,7 @@ dnl ---------------------------------------------------------------------------- AC_PREREQ([2.68]) -AC_INIT([PHP],[8.2.30],[https://github.com/php/php-src/issues],[php],[https://www.php.net]) +AC_INIT([PHP],[8.2.31],[https://github.com/php/php-src/issues],[php],[https://www.php.net]) AC_CONFIG_SRCDIR([main/php_version.h]) AC_CONFIG_AUX_DIR([build]) AC_PRESERVE_HELP_ORDER diff -Nru php8.2-8.2.30/debian/changelog php8.2-8.2.31/debian/changelog --- php8.2-8.2.30/debian/changelog 2026-02-28 07:07:34.000000000 +0000 +++ php8.2-8.2.31/debian/changelog 2026-05-08 07:20:38.000000000 +0000 @@ -1,3 +1,19 @@ +php8.2 (8.2.31-1~deb12u1) bookworm-security; urgency=high + + * New upstream version 8.2.31 + + [CVE-2026-6735]: XSS within status endpoint + + [CVE-2026-7259]: Null pointer dereference in php_mb_check_encoding() + via mb_ereg_search_init() + + [CVE-2025-14179]: SQL injection via NUL bytes in quoted strings + + [CVE-2026-6722]: Stale SOAP_GLOBAL(ref_map) pointer with Apache Map + + [CVE-2026-7261]: Use-after-free after header parsing failure with + SOAP_PERSISTENCE_SESSION + + [CVE-2026-7262]: Broken Apache map value NULL check + + [CVE-2026-7568]: Signed integer overflow of char array offset + + [CVE-2026-7258]: Consistently pass unsigned char to ctype.h functions + + -- Ondřej Surý Fri, 08 May 2026 09:20:38 +0200 + php8.2 (8.2.30-1~deb12u1) bookworm-security; urgency=high * New upstream version 8.2.30 diff -Nru php8.2-8.2.30/ext/bcmath/libbcmath/src/add.c php8.2-8.2.31/ext/bcmath/libbcmath/src/add.c --- php8.2-8.2.30/ext/bcmath/libbcmath/src/add.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/bcmath/libbcmath/src/add.c 2026-05-05 13:59:08.000000000 +0000 @@ -42,10 +42,7 @@ N1 is added to N2 and the result placed into RESULT. SCALE_MIN is the minimum scale for the result. */ -void -bc_add (n1, n2, result, scale_min) - bc_num n1, n2, *result; - int scale_min; +void bc_add(bc_num n1, bc_num n2, bc_num *result, int scale_min) { bc_num sum = NULL; int cmp_res; diff -Nru php8.2-8.2.30/ext/bcmath/libbcmath/src/compare.c php8.2-8.2.31/ext/bcmath/libbcmath/src/compare.c --- php8.2-8.2.30/ext/bcmath/libbcmath/src/compare.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/bcmath/libbcmath/src/compare.c 2026-05-05 13:59:08.000000000 +0000 @@ -42,11 +42,7 @@ than N2 and +1 if N1 is greater than N2. If USE_SIGN is false, just compare the magnitudes. */ - int -_bc_do_compare (n1, n2, use_sign, ignore_last) - bc_num n1, n2; - int use_sign; - int ignore_last; +int _bc_do_compare(bc_num n1, bc_num n2, int use_sign, int ignore_last) { char *n1ptr, *n2ptr; int count; @@ -151,9 +147,7 @@ /* This is the "user callable" routine to compare numbers N1 and N2. */ -int -bc_compare (n1, n2) - bc_num n1, n2; +int bc_compare(bc_num n1, bc_num n2) { return _bc_do_compare (n1, n2, TRUE, FALSE); } diff -Nru php8.2-8.2.30/ext/bcmath/libbcmath/src/doaddsub.c php8.2-8.2.31/ext/bcmath/libbcmath/src/doaddsub.c --- php8.2-8.2.30/ext/bcmath/libbcmath/src/doaddsub.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/bcmath/libbcmath/src/doaddsub.c 2026-05-05 13:59:08.000000000 +0000 @@ -42,10 +42,7 @@ returned. The signs of N1 and N2 are ignored. SCALE_MIN is to set the minimum scale of the result. */ - bc_num -_bc_do_add (n1, n2, scale_min) - bc_num n1, n2; - int scale_min; +bc_num _bc_do_add(bc_num n1, bc_num n2, int scale_min) { bc_num sum; int sum_scale, sum_digits; @@ -134,10 +131,7 @@ assumed to be larger than N2. SCALE_MIN is the minimum scale of the result. */ - bc_num -_bc_do_sub (n1, n2, scale_min) - bc_num n1, n2; - int scale_min; +bc_num _bc_do_sub(bc_num n1, bc_num n2, int scale_min) { bc_num diff; int diff_scale, diff_len; diff -Nru php8.2-8.2.30/ext/bcmath/libbcmath/src/init.c php8.2-8.2.31/ext/bcmath/libbcmath/src/init.c --- php8.2-8.2.30/ext/bcmath/libbcmath/src/init.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/bcmath/libbcmath/src/init.c 2026-05-05 13:59:08.000000000 +0000 @@ -39,9 +39,7 @@ /* new_num allocates a number and sets fields to known values. */ -bc_num -_bc_new_num_ex (length, scale, persistent) - int length, scale, persistent; +bc_num _bc_new_num_ex(int length, int scale, int persistent) { bc_num temp; /* PHP Change: malloc() -> pemalloc(), removed free_list code */ @@ -61,10 +59,7 @@ /* "Frees" a bc_num NUM. Actually decreases reference count and only frees the storage if reference count is zero. */ -void -_bc_free_num_ex (num, persistent) - bc_num *num; - int persistent; +void _bc_free_num_ex(bc_num *num, int persistent) { if (*num == NULL) return; (*num)->n_refs--; diff -Nru php8.2-8.2.30/ext/bcmath/libbcmath/src/int2num.c php8.2-8.2.31/ext/bcmath/libbcmath/src/int2num.c --- php8.2-8.2.30/ext/bcmath/libbcmath/src/int2num.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/bcmath/libbcmath/src/int2num.c 2026-05-05 13:59:08.000000000 +0000 @@ -40,10 +40,7 @@ /* Convert an integer VAL to a bc number NUM. */ -void -bc_int2num (num, val) - bc_num *num; - int val; +void bc_int2num(bc_num *num, int val) { char buffer[30]; char *bptr, *vptr; diff -Nru php8.2-8.2.30/ext/bcmath/libbcmath/src/nearzero.c php8.2-8.2.31/ext/bcmath/libbcmath/src/nearzero.c --- php8.2-8.2.30/ext/bcmath/libbcmath/src/nearzero.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/bcmath/libbcmath/src/nearzero.c 2026-05-05 13:59:08.000000000 +0000 @@ -41,10 +41,7 @@ Specifically, all but the last digit is 0 and the last digit is 1. Last digit is defined by scale. */ -char -bc_is_near_zero (num, scale) - bc_num num; - int scale; +char bc_is_near_zero(bc_num num, int scale) { int count; char *nptr; diff -Nru php8.2-8.2.30/ext/bcmath/libbcmath/src/neg.c php8.2-8.2.31/ext/bcmath/libbcmath/src/neg.c --- php8.2-8.2.30/ext/bcmath/libbcmath/src/neg.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/bcmath/libbcmath/src/neg.c 2026-05-05 13:59:08.000000000 +0000 @@ -39,9 +39,7 @@ /* In some places we need to check if the number is negative. */ -char -bc_is_neg (num) - bc_num num; +char bc_is_neg(bc_num num) { return num->n_sign == MINUS; } diff -Nru php8.2-8.2.30/ext/bcmath/libbcmath/src/num2long.c php8.2-8.2.31/ext/bcmath/libbcmath/src/num2long.c --- php8.2-8.2.30/ext/bcmath/libbcmath/src/num2long.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/bcmath/libbcmath/src/num2long.c 2026-05-05 13:59:08.000000000 +0000 @@ -42,9 +42,7 @@ a long, this function returns a zero. This can be detected by checking the NUM for zero after having a zero returned. */ -long -bc_num2long (num) - bc_num num; +long bc_num2long(bc_num num) { long val; char *nptr; diff -Nru php8.2-8.2.30/ext/bcmath/libbcmath/src/num2str.c php8.2-8.2.31/ext/bcmath/libbcmath/src/num2str.c --- php8.2-8.2.30/ext/bcmath/libbcmath/src/num2str.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/bcmath/libbcmath/src/num2str.c 2026-05-05 13:59:08.000000000 +0000 @@ -39,10 +39,7 @@ /* Convert a numbers to a string. Base 10 only.*/ -zend_string -*bc_num2str_ex (num, scale) - bc_num num; - int scale; +zend_string *bc_num2str_ex(bc_num num, int scale) { zend_string *str; char *sptr; diff -Nru php8.2-8.2.30/ext/bcmath/libbcmath/src/rmzero.c php8.2-8.2.31/ext/bcmath/libbcmath/src/rmzero.c --- php8.2-8.2.30/ext/bcmath/libbcmath/src/rmzero.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/bcmath/libbcmath/src/rmzero.c 2026-05-05 13:59:08.000000000 +0000 @@ -41,9 +41,7 @@ _bc_rm_leading_zeros just moves the data "value" pointer to the correct place and adjusts the length. */ - void -_bc_rm_leading_zeros (num) - bc_num num; +void _bc_rm_leading_zeros(bc_num num) { /* We can move n_value to point to the first non zero digit! */ while (*num->n_value == 0 && num->n_len > 1) { diff -Nru php8.2-8.2.30/ext/bcmath/libbcmath/src/sub.c php8.2-8.2.31/ext/bcmath/libbcmath/src/sub.c --- php8.2-8.2.30/ext/bcmath/libbcmath/src/sub.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/bcmath/libbcmath/src/sub.c 2026-05-05 13:59:08.000000000 +0000 @@ -42,10 +42,7 @@ N2 is subtracted from N1 and the result placed in RESULT. SCALE_MIN is the minimum scale for the result. */ -void -bc_sub (n1, n2, result, scale_min) - bc_num n1, n2, *result; - int scale_min; +void bc_sub(bc_num n1, bc_num n2, bc_num *result, int scale_min) { bc_num diff = NULL; int cmp_res; diff -Nru php8.2-8.2.30/ext/com_dotnet/com_extension.c php8.2-8.2.31/ext/com_dotnet/com_extension.c --- php8.2-8.2.30/ext/com_dotnet/com_extension.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/com_dotnet/com_extension.c 2026-05-05 13:59:08.000000000 +0000 @@ -119,11 +119,11 @@ } /* Remove leading/training white spaces on search_string */ - while (isspace(*typelib_name)) {/* Ends on '\0' in worst case */ + while (isspace((unsigned char)*typelib_name)) {/* Ends on '\0' in worst case */ typelib_name ++; } ptr = typelib_name + strlen(typelib_name) - 1; - while ((ptr != typelib_name) && isspace(*ptr)) { + while ((ptr != typelib_name) && isspace((unsigned char)*ptr)) { *ptr = '\0'; ptr--; } diff -Nru php8.2-8.2.30/ext/curl/config.w32 php8.2-8.2.31/ext/curl/config.w32 --- php8.2-8.2.30/ext/curl/config.w32 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/curl/config.w32 2026-05-05 13:59:08.000000000 +0000 @@ -24,7 +24,10 @@ (ver_num <= parseInt("0x073b00") || ver_num > parseInt("0x073b00") && CHECK_LIB("normaliz.lib", "curl", PHP_CURL) && CHECK_LIB("libssh2.lib", "curl", PHP_CURL) && - CHECK_LIB("nghttp2.lib", "curl", PHP_CURL)) + CHECK_LIB("nghttp2.lib", "curl", PHP_CURL) && + CHECK_LIB("brotlidec.lib", "curl", PHP_CURL) && + CHECK_LIB("brotlicommon.lib", "curl", PHP_CURL) && + CHECK_LIB("libzstd.lib", "curl", PHP_CURL)) ) { EXTENSION("curl", "interface.c multi.c share.c curl_file.c"); AC_DEFINE('HAVE_CURL', 1, 'Have cURL library'); diff -Nru php8.2-8.2.30/ext/curl/tests/bug71523.phpt php8.2-8.2.31/ext/curl/tests/bug71523.phpt --- php8.2-8.2.30/ext/curl/tests/bug71523.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/curl/tests/bug71523.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -4,6 +4,7 @@ curl --SKIPIF-- No HTTPS_PROXY => Yes MULTI_SSL => %s -BROTLI => %s +BROTLI => Yes ALTSVC => Yes HTTP3 => No UNICODE => No -ZSTD => No +ZSTD => Yes HSTS => Yes GSASL => No Protocols => dict, file, ftp, ftps, gopher, %r(gophers, )?%rhttp, https, imap, imaps, ldap, ldaps, %r(mqtt, )?%rpop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp%r(, ws)?(, wss)?%r diff -Nru php8.2-8.2.30/ext/date/lib/parse_date.c php8.2-8.2.31/ext/date/lib/parse_date.c --- php8.2-8.2.30/ext/date/lib/parse_date.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/date/lib/parse_date.c 2026-05-05 13:59:08.000000000 +0000 @@ -511,7 +511,7 @@ static void timelib_skip_day_suffix(const char **ptr) { - if (isspace(**ptr)) { + if (isspace((unsigned char)**ptr)) { return; } if (!timelib_strncasecmp(*ptr, "nd", 2) || !timelib_strncasecmp(*ptr, "rd", 2) ||!timelib_strncasecmp(*ptr, "st", 2) || !timelib_strncasecmp(*ptr, "th", 2)) { @@ -852,7 +852,7 @@ *tz_not_found = 1; - while (isdigit(**ptr) || **ptr == ':') { + while (isdigit((unsigned char)**ptr) || **ptr == ':') { ++*ptr; } end = *ptr; @@ -917,7 +917,7 @@ } ++*ptr; - while (isdigit(**ptr)) { + while (isdigit((unsigned char)**ptr)) { ++*ptr; } @@ -24860,10 +24860,10 @@ in.errors->error_messages = NULL; if (len > 0) { - while (isspace(*s) && s < e) { + while (isspace((unsigned char)*s) && s < e) { s++; } - while (isspace(*e) && e > s) { + while (isspace((unsigned char)*e) && e > s) { e--; } } diff -Nru php8.2-8.2.30/ext/date/lib/parse_date.re php8.2-8.2.31/ext/date/lib/parse_date.re --- php8.2-8.2.30/ext/date/lib/parse_date.re 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/date/lib/parse_date.re 2026-05-05 13:59:08.000000000 +0000 @@ -509,7 +509,7 @@ static void timelib_skip_day_suffix(const char **ptr) { - if (isspace(**ptr)) { + if (isspace((unsigned char)**ptr)) { return; } if (!timelib_strncasecmp(*ptr, "nd", 2) || !timelib_strncasecmp(*ptr, "rd", 2) ||!timelib_strncasecmp(*ptr, "st", 2) || !timelib_strncasecmp(*ptr, "th", 2)) { @@ -850,7 +850,7 @@ *tz_not_found = 1; - while (isdigit(**ptr) || **ptr == ':') { + while (isdigit((unsigned char)**ptr) || **ptr == ':') { ++*ptr; } end = *ptr; @@ -915,7 +915,7 @@ } ++*ptr; - while (isdigit(**ptr)) { + while (isdigit((unsigned char)**ptr)) { ++*ptr; } @@ -2010,10 +2010,10 @@ in.errors->error_messages = NULL; if (len > 0) { - while (isspace(*s) && s < e) { + while (isspace((unsigned char)*s) && s < e) { s++; } - while (isspace(*e) && e > s) { + while (isspace((unsigned char)*e) && e > s) { e--; } } diff -Nru php8.2-8.2.30/ext/date/lib/parse_iso_intervals.c php8.2-8.2.31/ext/date/lib/parse_iso_intervals.c --- php8.2-8.2.30/ext/date/lib/parse_iso_intervals.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/date/lib/parse_iso_intervals.c 2026-05-05 13:59:08.000000000 +0000 @@ -985,10 +985,10 @@ in.errors->error_messages = NULL; if (len > 0) { - while (isspace(*s) && s < e) { + while (isspace((unsigned char)*s) && s < e) { s++; } - while (isspace(*e) && e > s) { + while (isspace((unsigned char)*e) && e > s) { e--; } } diff -Nru php8.2-8.2.30/ext/date/lib/parse_iso_intervals.re php8.2-8.2.31/ext/date/lib/parse_iso_intervals.re --- php8.2-8.2.30/ext/date/lib/parse_iso_intervals.re 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/date/lib/parse_iso_intervals.re 2026-05-05 13:59:08.000000000 +0000 @@ -343,10 +343,10 @@ in.errors->error_messages = NULL; if (len > 0) { - while (isspace(*s) && s < e) { + while (isspace((unsigned char)*s) && s < e) { s++; } - while (isspace(*e) && e > s) { + while (isspace((unsigned char)*e) && e > s) { e--; } } diff -Nru php8.2-8.2.30/ext/date/lib/timelib.c php8.2-8.2.31/ext/date/lib/timelib.c --- php8.2-8.2.30/ext/date/lib/timelib.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/date/lib/timelib.c 2026-05-05 13:59:08.000000000 +0000 @@ -126,7 +126,7 @@ TIMELIB_TIME_FREE(tm->tz_abbr); tm->tz_abbr = timelib_strdup(tz_abbr); for (i = 0; i < tz_abbr_len; i++) { - tm->tz_abbr[i] = toupper(tz_abbr[i]); + tm->tz_abbr[i] = toupper((unsigned char)tz_abbr[i]); } } diff -Nru php8.2-8.2.30/ext/filter/logical_filters.c php8.2-8.2.31/ext/filter/logical_filters.c --- php8.2-8.2.30/ext/filter/logical_filters.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/filter/logical_filters.c 2026-05-05 13:59:08.000000000 +0000 @@ -528,21 +528,21 @@ } /* First char must be alphanumeric */ - if(*s == '.' || (hostname && !isalnum((int)*(unsigned char *)s))) { + if(*s == '.' || (hostname && !isalnum((unsigned char)*s))) { return 0; } while (s < e) { if (*s == '.') { /* The first and the last character of a label must be alphanumeric */ - if (*(s + 1) == '.' || (hostname && (!isalnum((int)*(unsigned char *)(s - 1)) || !isalnum((int)*(unsigned char *)(s + 1))))) { + if (*(s + 1) == '.' || (hostname && (!isalnum((unsigned char)s[-1]) || !isalnum((unsigned char)s[1])))) { return 0; } /* Reset label length counter */ i = 1; } else { - if (i > 63 || (hostname && (*s != '-' || *(s + 1) == '\0') && !isalnum((int)*(unsigned char *)s))) { + if (i > 63 || (hostname && (*s != '-' || *(s + 1) == '\0') && !isalnum((unsigned char)*s))) { return 0; } @@ -569,9 +569,9 @@ const char *valid = "-._~!$&'()*+,;=:"; const char *p = ZSTR_VAL(str); while (p - ZSTR_VAL(str) < ZSTR_LEN(str)) { - if (isalpha(*p) || isdigit(*p) || strchr(valid, *p)) { + if (isalpha((unsigned char)*p) || isdigit((unsigned char)*p) || strchr(valid, *p)) { p++; - } else if (*p == '%' && p - ZSTR_VAL(str) <= ZSTR_LEN(str) - 3 && isdigit(*(p+1)) && isxdigit(*(p+2))) { + } else if (*p == '%' && p - ZSTR_VAL(str) <= ZSTR_LEN(str) - 3 && isdigit((unsigned char)p[1]) && isxdigit((unsigned char)p[2])) { p += 3; } else { return 0; diff -Nru php8.2-8.2.30/ext/ftp/ftp.c php8.2-8.2.31/ext/ftp/ftp.c --- php8.2-8.2.30/ext/ftp/ftp.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/ftp/ftp.c 2026-05-05 13:59:08.000000000 +0000 @@ -523,7 +523,7 @@ array_init(return_value); while (ftp_readline(ftp)) { add_next_index_string(return_value, ftp->inbuf); - if (isdigit(ftp->inbuf[0]) && isdigit(ftp->inbuf[1]) && isdigit(ftp->inbuf[2]) && ftp->inbuf[3] == ' ') { + if (isdigit((unsigned char)ftp->inbuf[0]) && isdigit((unsigned char)ftp->inbuf[1]) && isdigit((unsigned char)ftp->inbuf[2]) && ftp->inbuf[3] == ' ') { return; } } @@ -865,7 +865,7 @@ return 0; } /* parse out the IP and port */ - for (ptr = ftp->inbuf; *ptr && !isdigit(*ptr); ptr++); + for (ptr = ftp->inbuf; *ptr && !isdigit((unsigned char)*ptr); ptr++); n = sscanf(ptr, "%lu,%lu,%lu,%lu,%lu,%lu", &b[0], &b[1], &b[2], &b[3], &b[4], &b[5]); if (n != 6) { return 0; @@ -1168,7 +1168,7 @@ return -1; } /* parse out the timestamp */ - for (ptr = ftp->inbuf; *ptr && !isdigit(*ptr); ptr++); + for (ptr = ftp->inbuf; *ptr && !isdigit((unsigned char)*ptr); ptr++); n = sscanf(ptr, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec); if (n != 6) { return -1; @@ -1366,13 +1366,13 @@ } /* Break out when the end-tag is found */ - if (isdigit(ftp->inbuf[0]) && isdigit(ftp->inbuf[1]) && isdigit(ftp->inbuf[2]) && ftp->inbuf[3] == ' ') { + if (isdigit((unsigned char)ftp->inbuf[0]) && isdigit((unsigned char)ftp->inbuf[1]) && isdigit((unsigned char)ftp->inbuf[2]) && ftp->inbuf[3] == ' ') { break; } } /* translate the tag */ - if (!isdigit(ftp->inbuf[0]) || !isdigit(ftp->inbuf[1]) || !isdigit(ftp->inbuf[2])) { + if (!isdigit((unsigned char)ftp->inbuf[0]) || !isdigit((unsigned char)ftp->inbuf[1]) || !isdigit((unsigned char)ftp->inbuf[2])) { return 0; } diff -Nru php8.2-8.2.30/ext/gd/libgd/gd_xbm.c php8.2-8.2.31/ext/gd/libgd/gd_xbm.c --- php8.2-8.2.30/ext/gd/libgd/gd_xbm.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/gd/libgd/gd_xbm.c 2026-05-05 13:59:08.000000000 +0000 @@ -191,7 +191,7 @@ } else { for (i=0; i --INI-- diff -Nru php8.2-8.2.30/ext/gd/tests/gh16322.phpt php8.2-8.2.31/ext/gd/tests/gh16322.phpt --- php8.2-8.2.30/ext/gd/tests/gh16322.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/gd/tests/gh16322.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -2,8 +2,6 @@ GH-16322 (imageaffine overflow/underflow on affine matrix) --EXTENSIONS-- gd ---INI-- -memory_limit=-1 --FILE-- = 0x7f) /* validate a modified-base64 character */ -#define B64CHAR(c) (isalnum(c) || (c) == '+' || (c) == ',') +#define B64CHAR(c) (isalnum((unsigned char)(c)) || (c) == '+' || (c) == ',') /* map the low 64 bits of `n' to the modified-base64 characters */ #define B64(n) ("ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ diff -Nru php8.2-8.2.30/ext/intl/locale/locale_methods.c php8.2-8.2.31/ext/intl/locale/locale_methods.c --- php8.2-8.2.30/ext/intl/locale/locale_methods.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/intl/locale/locale_methods.c 2026-05-05 13:59:08.000000000 +0000 @@ -1229,7 +1229,7 @@ if( *str == '-' ){ *retstr = '_'; } else { - *retstr = tolower(*str); + *retstr = tolower((unsigned char)*str); } str++; retstr++; diff -Nru php8.2-8.2.30/ext/json/json_parser.tab.c php8.2-8.2.31/ext/json/json_parser.tab.c --- php8.2-8.2.30/ext/json/json_parser.tab.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/json/json_parser.tab.c 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 3.7.5. */ +/* A Bison parser, made by GNU Bison 3.8.2. */ /* Bison implementation for Yacc-like parsers in C @@ -16,7 +16,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -46,10 +46,10 @@ USER NAME SPACE" below. */ /* Identify Bison output, and Bison version. */ -#define YYBISON 30705 +#define YYBISON 30802 /* Bison version string. */ -#define YYBISON_VERSION "3.7.5" +#define YYBISON_VERSION "3.8.2" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -338,12 +338,18 @@ # define YY_USE(E) /* empty */ #endif -#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ +#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__ +# if __GNUC__ * 100 + __GNUC_MINOR__ < 407 +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") +# else +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") +# endif # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ _Pragma ("GCC diagnostic pop") #else @@ -558,7 +564,7 @@ }; #if PHP_JSON_YYDEBUG - /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ +/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { 0, 79, 79, 90, 89, 107, 108, 116, 124, 128, @@ -595,16 +601,6 @@ } #endif -#ifdef YYPRINT -/* YYTOKNUM[NUM] -- (External) token number corresponding to the - (internal) symbol number NUM (which must be that of a token). */ -static const yytype_int16 yytoknum[] = -{ - 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, - 265, 266, 123, 125, 93, 58, 44, 91 -}; -#endif - #define YYPACT_NINF (-16) #define yypact_value_is_default(Yyn) \ @@ -615,8 +611,8 @@ #define yytable_value_is_error(Yyn) \ 0 - /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + STATE-NUM. */ static const yytype_int8 yypact[] = { -1, -16, -16, -16, -16, -16, -16, -16, -16, -16, @@ -625,9 +621,9 @@ -1, -16, -16, -16, -1, 10, -16, -16, -1, -16 }; - /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. - Performed when YYTABLE does not specify something else to do. Zero - means the default is an error. */ +/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. + Performed when YYTABLE does not specify something else to do. Zero + means the default is an error. */ static const yytype_int8 yydefact[] = { 0, 27, 28, 29, 25, 26, 23, 24, 3, 11, @@ -636,23 +632,23 @@ 0, 14, 13, 12, 0, 0, 9, 18, 0, 10 }; - /* YYPGOTO[NTERM-NUM]. */ +/* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, -3, -15 }; - /* YYDEFGOTO[NTERM-NUM]. */ +/* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { 0, 10, 11, 14, 28, 20, 21, 12, 15, 33, 23, 24, 22, 13 }; - /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If - positive, shift that token. If negative, reduce the rule whose - number is the opposite. If YYTABLE_NINF, syntax error. */ +/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If + positive, shift that token. If negative, reduce the rule whose + number is the opposite. If YYTABLE_NINF, syntax error. */ static const yytype_int8 yytable[] = { 25, 17, 1, 2, 3, 4, 5, 6, 7, 18, @@ -667,8 +663,8 @@ -1, 16, 15, 38, 16, 15, 29 }; - /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing - symbol of state STATE-NUM. */ +/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of + state STATE-NUM. */ static const yytype_int8 yystos[] = { 0, 3, 4, 5, 6, 7, 8, 9, 12, 17, @@ -677,7 +673,7 @@ 15, 13, 14, 27, 16, 30, 31, 31, 15, 31 }; - /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */ static const yytype_int8 yyr1[] = { 0, 18, 19, 21, 20, 22, 22, 23, 23, 24, @@ -685,7 +681,7 @@ 30, 31, 31, 31, 31, 31, 31, 31, 31, 31 }; - /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ +/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */ static const yytype_int8 yyr2[] = { 0, 2, 2, 0, 4, 1, 1, 0, 1, 3, @@ -702,6 +698,7 @@ #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab +#define YYNOMEM goto yyexhaustedlab #define YYRECOVERING() (!!yyerrstatus) @@ -742,10 +739,7 @@ YYFPRINTF Args; \ } while (0) -/* This macro is provided for backward compatibility. */ -# ifndef YY_LOCATION_PRINT -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -# endif + # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ @@ -773,10 +767,6 @@ YY_USE (parser); if (!yyvaluep) return; -# ifdef YYPRINT - if (yykind < YYNTOKENS) - YYPRINT (yyo, yytoknum[yykind], *yyvaluep); -# endif YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN YY_USE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END @@ -1036,6 +1026,7 @@ YYDPRINTF ((stderr, "Starting parse\n")); yychar = PHP_JSON_YYEMPTY; /* Cause a token to be read. */ + goto yysetstate; @@ -1061,7 +1052,7 @@ if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE - goto yyexhaustedlab; + YYNOMEM; #else { /* Get the current used size of the three stacks, in elements. */ @@ -1089,7 +1080,7 @@ # else /* defined YYSTACK_RELOCATE */ /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) - goto yyexhaustedlab; + YYNOMEM; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; @@ -1100,7 +1091,7 @@ YY_CAST (union yyalloc *, YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); if (! yyptr) - goto yyexhaustedlab; + YYNOMEM; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE @@ -1122,6 +1113,7 @@ } #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ + if (yystate == YYFINAL) YYACCEPT; @@ -1428,6 +1420,7 @@ label yyerrorlab therefore never appears in user code. */ if (0) YYERROR; + ++yynerrs; /* Do not reclaim the symbols of the rule whose action triggered this YYERROR. */ @@ -1488,7 +1481,7 @@ `-------------------------------------*/ yyacceptlab: yyresult = 0; - goto yyreturn; + goto yyreturnlab; /*-----------------------------------. @@ -1496,24 +1489,22 @@ `-----------------------------------*/ yyabortlab: yyresult = 1; - goto yyreturn; + goto yyreturnlab; -#if !defined yyoverflow -/*-------------------------------------------------. -| yyexhaustedlab -- memory exhaustion comes here. | -`-------------------------------------------------*/ +/*-----------------------------------------------------------. +| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. | +`-----------------------------------------------------------*/ yyexhaustedlab: yyerror (parser, YY_("memory exhausted")); yyresult = 2; - goto yyreturn; -#endif + goto yyreturnlab; -/*-------------------------------------------------------. -| yyreturn -- parsing is finished, clean up and return. | -`-------------------------------------------------------*/ -yyreturn: +/*----------------------------------------------------------. +| yyreturnlab -- parsing is finished, clean up and return. | +`----------------------------------------------------------*/ +yyreturnlab: if (yychar != PHP_JSON_YYEMPTY) { /* Make sure we have latest lookahead translation. See comments at diff -Nru php8.2-8.2.30/ext/json/json_parser.tab.h php8.2-8.2.31/ext/json/json_parser.tab.h --- php8.2-8.2.30/ext/json/json_parser.tab.h 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/json/json_parser.tab.h 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 3.7.5. */ +/* A Bison parser, made by GNU Bison 3.8.2. */ /* Bison interface for Yacc-like parsers in C @@ -16,7 +16,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -91,6 +91,8 @@ + int php_json_yyparse (php_json_parser *parser); + #endif /* !YY_PHP_JSON_YY_EXT_JSON_JSON_PARSER_TAB_H_INCLUDED */ diff -Nru php8.2-8.2.30/ext/json/json_scanner.c php8.2-8.2.31/ext/json/json_scanner.c --- php8.2-8.2.30/ext/json/json_scanner.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/json/json_scanner.c 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* Generated by re2c 2.0.3 */ +/* Generated by re2c 4.0 */ /* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | @@ -111,144 +111,137 @@ { YYCTYPE yych; unsigned int yyaccept = 0; + static const unsigned char yybm_JS[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 64, 0, 0, 0, 64, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 64, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0 + }; if (YYGETCONDITION() < 2) { - if (YYGETCONDITION() < 1) { - goto yyc_JS; - } else { - goto yyc_STR_P1; - } + if (YYGETCONDITION() < 1) goto yyc_JS; + else goto yyc_STR_P1; } else { - if (YYGETCONDITION() < 3) { - goto yyc_STR_P2_BIN; - } else { - goto yyc_STR_P2_UTF; - } + if (YYGETCONDITION() < 3) goto yyc_STR_P2_BIN; + else goto yyc_STR_P2_UTF; } /* *********************************** */ yyc_JS: - { - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 64, 0, 0, 0, 64, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 64, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - }; - yych = *YYCURSOR; - if (yych <= ']') { - if (yych <= '"') { - if (yych <= '\f') { - if (yych <= 0x08) { - if (yych >= 0x01) goto yy4; - } else { - if (yych <= '\t') goto yy6; - if (yych <= '\n') goto yy9; - goto yy4; - } + yych = *YYCURSOR; + if (yych <= ']') { + if (yych <= '"') { + if (yych <= '\f') { + if (yych <= 0x08) { + if (yych >= 0x01) goto yy1; + } else { + if (yych <= '\t') goto yy2; + if (yych <= '\n') goto yy5; + goto yy1; + } + } else { + if (yych <= 0x1F) { + if (yych <= '\r') goto yy6; + goto yy1; + } else { + if (yych <= ' ') goto yy2; + if (yych <= '!') goto yy7; + goto yy9; + } + } + } else { + if (yych <= '0') { + if (yych <= ',') { + if (yych <= '+') goto yy7; + goto yy10; + } else { + if (yych <= '-') goto yy11; + if (yych <= '/') goto yy7; + goto yy12; + } + } else { + if (yych <= 'Z') { + if (yych <= '9') goto yy14; + if (yych <= ':') goto yy15; + goto yy7; + } else { + if (yych <= '[') goto yy16; + if (yych <= '\\') goto yy7; + goto yy17; + } + } + } + } else { + if (yych <= '}') { + if (yych <= 's') { + if (yych <= 'f') { + if (yych <= 'e') goto yy7; + goto yy18; } else { - if (yych <= 0x1F) { - if (yych <= '\r') goto yy10; - goto yy4; - } else { - if (yych <= ' ') goto yy6; - if (yych <= '!') goto yy11; - goto yy13; - } + if (yych == 'n') goto yy19; + goto yy7; } } else { - if (yych <= '0') { - if (yych <= ',') { - if (yych <= '+') goto yy11; - goto yy15; - } else { - if (yych <= '-') goto yy17; - if (yych <= '/') goto yy11; - goto yy18; - } + if (yych <= 'z') { + if (yych <= 't') goto yy20; + goto yy7; } else { - if (yych <= 'Z') { - if (yych <= '9') goto yy20; - if (yych <= ':') goto yy22; - goto yy11; - } else { - if (yych <= '[') goto yy24; - if (yych <= '\\') goto yy11; - goto yy26; - } + if (yych <= '{') goto yy21; + if (yych <= '|') goto yy7; + goto yy22; } } } else { - if (yych <= '}') { - if (yych <= 's') { - if (yych <= 'f') { - if (yych <= 'e') goto yy11; - goto yy28; - } else { - if (yych == 'n') goto yy29; - goto yy11; - } + if (yych <= 0xEC) { + if (yych <= 0xC1) { + if (yych <= 0x7F) goto yy7; + goto yy23; } else { - if (yych <= 'z') { - if (yych <= 't') goto yy30; - goto yy11; - } else { - if (yych <= '{') goto yy31; - if (yych <= '|') goto yy11; - goto yy33; - } + if (yych <= 0xDF) goto yy25; + if (yych <= 0xE0) goto yy26; + goto yy27; } } else { - if (yych <= 0xEC) { - if (yych <= 0xC1) { - if (yych <= 0x7F) goto yy11; - goto yy35; - } else { - if (yych <= 0xDF) goto yy37; - if (yych <= 0xE0) goto yy38; - goto yy39; - } + if (yych <= 0xF0) { + if (yych <= 0xED) goto yy28; + if (yych <= 0xEF) goto yy27; + goto yy29; } else { - if (yych <= 0xF0) { - if (yych <= 0xED) goto yy40; - if (yych <= 0xEF) goto yy39; - goto yy41; - } else { - if (yych <= 0xF3) goto yy42; - if (yych <= 0xF4) goto yy43; - goto yy35; - } + if (yych <= 0xF3) goto yy30; + if (yych <= 0xF4) goto yy31; + goto yy23; } } } - ++YYCURSOR; - { + } + ++YYCURSOR; + { if (s->limit < s->cursor) { return PHP_JSON_T_EOI; } else { @@ -256,63 +249,61 @@ return PHP_JSON_T_ERROR; } } -yy4: - ++YYCURSOR; - { +yy1: + ++YYCURSOR; + { s->errcode = PHP_JSON_ERROR_CTRL_CHAR; return PHP_JSON_T_ERROR; } +yy2: + yych = *++YYCURSOR; +yy3: + if (yybm_JS[0+yych] & 64) goto yy2; +yy4: + { goto std; } +yy5: + ++YYCURSOR; + goto yy4; yy6: - yych = *++YYCURSOR; + yych = *++YYCURSOR; + if (yych == '\n') goto yy5; + goto yy3; yy7: - if (yybm[0+yych] & 64) { - goto yy6; - } + ++YYCURSOR; yy8: - { goto std; } -yy9: - ++YYCURSOR; - goto yy8; -yy10: - yych = *++YYCURSOR; - if (yych == '\n') goto yy9; - goto yy7; -yy11: - ++YYCURSOR; -yy12: - { + { s->errcode = PHP_JSON_ERROR_SYNTAX; return PHP_JSON_T_ERROR; } -yy13: - ++YYCURSOR; - { +yy9: + ++YYCURSOR; + { s->str_start = s->cursor; s->str_esc = 0; s->utf8_invalid = 0; s->utf8_invalid_count = 0; PHP_JSON_CONDITION_SET_AND_GOTO(STR_P1); } -yy15: - ++YYCURSOR; - { return ','; } -yy17: - yych = *++YYCURSOR; - if (yych <= '/') goto yy12; - if (yych <= '0') goto yy18; - if (yych <= '9') goto yy20; - goto yy12; -yy18: - yyaccept = 0; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'D') { - if (yych == '.') goto yy44; - } else { - if (yych <= 'E') goto yy46; - if (yych == 'e') goto yy46; - } -yy19: - { +yy10: + ++YYCURSOR; + { return ','; } +yy11: + yych = *++YYCURSOR; + if (yych <= '/') goto yy8; + if (yych <= '0') goto yy12; + if (yych <= '9') goto yy14; + goto yy8; +yy12: + yyaccept = 0; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'D') { + if (yych == '.') goto yy32; + } else { + if (yych <= 'E') goto yy34; + if (yych == 'e') goto yy34; + } +yy13: + { bool bigint = 0, negative = s->token[0] == '-'; size_t digits = (size_t) (s->cursor - s->token - negative); if (digits >= PHP_JSON_INT_MAX_LENGTH) { @@ -336,245 +327,236 @@ return PHP_JSON_T_DOUBLE; } } +yy14: + yyaccept = 0; + yych = *(YYMARKER = ++YYCURSOR); + if (yybm_JS[0+yych] & 128) goto yy14; + if (yych <= 'D') { + if (yych == '.') goto yy32; + goto yy13; + } else { + if (yych <= 'E') goto yy34; + if (yych == 'e') goto yy34; + goto yy13; + } +yy15: + ++YYCURSOR; + { return ':'; } +yy16: + ++YYCURSOR; + { return '['; } +yy17: + ++YYCURSOR; + { return ']'; } +yy18: + yyaccept = 1; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'a') goto yy35; + goto yy8; +yy19: + yyaccept = 1; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'u') goto yy36; + goto yy8; yy20: - yyaccept = 0; - yych = *(YYMARKER = ++YYCURSOR); - if (yybm[0+yych] & 128) { - goto yy20; - } - if (yych <= 'D') { - if (yych == '.') goto yy44; - goto yy19; - } else { - if (yych <= 'E') goto yy46; - if (yych == 'e') goto yy46; - goto yy19; - } + yyaccept = 1; + yych = *(YYMARKER = ++YYCURSOR); + if (yych == 'r') goto yy37; + goto yy8; +yy21: + ++YYCURSOR; + { return '{'; } yy22: - ++YYCURSOR; - { return ':'; } + ++YYCURSOR; + { return '}'; } +yy23: + ++YYCURSOR; yy24: - ++YYCURSOR; - { return '['; } + { + s->errcode = PHP_JSON_ERROR_UTF8; + return PHP_JSON_T_ERROR; + } +yy25: + yych = *++YYCURSOR; + if (yych <= 0x7F) goto yy24; + if (yych <= 0xBF) goto yy7; + goto yy24; yy26: - ++YYCURSOR; - { return ']'; } + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 0x9F) goto yy24; + if (yych <= 0xBF) goto yy38; + goto yy24; +yy27: + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 0x7F) goto yy24; + if (yych <= 0xBF) goto yy38; + goto yy24; yy28: - yyaccept = 1; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'a') goto yy47; - goto yy12; + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 0x7F) goto yy24; + if (yych <= 0x9F) goto yy38; + goto yy24; yy29: - yyaccept = 1; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'u') goto yy48; - goto yy12; + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 0x8F) goto yy24; + if (yych <= 0xBF) goto yy39; + goto yy24; yy30: - yyaccept = 1; - yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'r') goto yy49; - goto yy12; + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 0x7F) goto yy24; + if (yych <= 0xBF) goto yy39; + goto yy24; yy31: - ++YYCURSOR; - { return '{'; } + yyaccept = 2; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 0x7F) goto yy24; + if (yych <= 0x8F) goto yy39; + goto yy24; +yy32: + yych = *++YYCURSOR; + if (yych <= '/') goto yy33; + if (yych <= '9') goto yy40; yy33: - ++YYCURSOR; - { return '}'; } + YYCURSOR = YYMARKER; + if (yyaccept <= 1) { + if (yyaccept == 0) goto yy13; + else goto yy8; + } else { + if (yyaccept == 2) goto yy24; + else goto yy41; + } +yy34: + yych = *++YYCURSOR; + if (yych <= ',') { + if (yych == '+') goto yy42; + goto yy33; + } else { + if (yych <= '-') goto yy42; + if (yych <= '/') goto yy33; + if (yych <= '9') goto yy43; + goto yy33; + } yy35: - ++YYCURSOR; + yych = *++YYCURSOR; + if (yych == 'l') goto yy44; + goto yy33; yy36: - { - s->errcode = PHP_JSON_ERROR_UTF8; - return PHP_JSON_T_ERROR; - } + yych = *++YYCURSOR; + if (yych == 'l') goto yy45; + goto yy33; yy37: - yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy36; - if (yych <= 0xBF) goto yy11; - goto yy36; + yych = *++YYCURSOR; + if (yych == 'u') goto yy46; + goto yy33; yy38: - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x9F) goto yy36; - if (yych <= 0xBF) goto yy50; - goto yy36; + yych = *++YYCURSOR; + if (yych <= 0x7F) goto yy33; + if (yych <= 0xBF) goto yy7; + goto yy33; yy39: - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy36; - if (yych <= 0xBF) goto yy50; - goto yy36; + yych = *++YYCURSOR; + if (yych <= 0x7F) goto yy33; + if (yych <= 0xBF) goto yy38; + goto yy33; yy40: - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy36; - if (yych <= 0x9F) goto yy50; - goto yy36; + yyaccept = 3; + yych = *(YYMARKER = ++YYCURSOR); + if (yych <= 'D') { + if (yych <= '/') goto yy41; + if (yych <= '9') goto yy40; + } else { + if (yych <= 'E') goto yy34; + if (yych == 'e') goto yy34; + } yy41: - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x8F) goto yy36; - if (yych <= 0xBF) goto yy51; - goto yy36; + { + ZVAL_DOUBLE(&s->value, zend_strtod((char *) s->token, NULL)); + return PHP_JSON_T_DOUBLE; + } yy42: - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy36; - if (yych <= 0xBF) goto yy51; - goto yy36; + yych = *++YYCURSOR; + if (yych <= '/') goto yy33; + if (yych >= ':') goto yy33; yy43: - yyaccept = 2; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy36; - if (yych <= 0x8F) goto yy51; - goto yy36; + yych = *++YYCURSOR; + if (yych <= '/') goto yy41; + if (yych <= '9') goto yy43; + goto yy41; yy44: - yych = *++YYCURSOR; - if (yych <= '/') goto yy45; - if (yych <= '9') goto yy52; + yych = *++YYCURSOR; + if (yych == 's') goto yy47; + goto yy33; yy45: - YYCURSOR = YYMARKER; - if (yyaccept <= 1) { - if (yyaccept == 0) { - goto yy19; - } else { - goto yy12; - } - } else { - if (yyaccept == 2) { - goto yy36; - } else { - goto yy54; - } - } + yych = *++YYCURSOR; + if (yych == 'l') goto yy48; + goto yy33; yy46: - yych = *++YYCURSOR; - if (yych <= ',') { - if (yych == '+') goto yy55; - goto yy45; - } else { - if (yych <= '-') goto yy55; - if (yych <= '/') goto yy45; - if (yych <= '9') goto yy56; - goto yy45; - } + yych = *++YYCURSOR; + if (yych == 'e') goto yy49; + goto yy33; yy47: - yych = *++YYCURSOR; - if (yych == 'l') goto yy58; - goto yy45; + yych = *++YYCURSOR; + if (yych == 'e') goto yy50; + goto yy33; yy48: - yych = *++YYCURSOR; - if (yych == 'l') goto yy59; - goto yy45; -yy49: - yych = *++YYCURSOR; - if (yych == 'u') goto yy60; - goto yy45; -yy50: - yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy45; - if (yych <= 0xBF) goto yy11; - goto yy45; -yy51: - yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy45; - if (yych <= 0xBF) goto yy50; - goto yy45; -yy52: - yyaccept = 3; - yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 'D') { - if (yych <= '/') goto yy54; - if (yych <= '9') goto yy52; - } else { - if (yych <= 'E') goto yy46; - if (yych == 'e') goto yy46; - } -yy54: - { - ZVAL_DOUBLE(&s->value, zend_strtod((char *) s->token, NULL)); - return PHP_JSON_T_DOUBLE; - } -yy55: - yych = *++YYCURSOR; - if (yych <= '/') goto yy45; - if (yych >= ':') goto yy45; -yy56: - yych = *++YYCURSOR; - if (yych <= '/') goto yy54; - if (yych <= '9') goto yy56; - goto yy54; -yy58: - yych = *++YYCURSOR; - if (yych == 's') goto yy61; - goto yy45; -yy59: - yych = *++YYCURSOR; - if (yych == 'l') goto yy62; - goto yy45; -yy60: - yych = *++YYCURSOR; - if (yych == 'e') goto yy64; - goto yy45; -yy61: - yych = *++YYCURSOR; - if (yych == 'e') goto yy66; - goto yy45; -yy62: - ++YYCURSOR; - { + ++YYCURSOR; + { ZVAL_NULL(&s->value); return PHP_JSON_T_NUL; } -yy64: - ++YYCURSOR; - { +yy49: + ++YYCURSOR; + { ZVAL_TRUE(&s->value); return PHP_JSON_T_TRUE; } -yy66: - ++YYCURSOR; - { +yy50: + ++YYCURSOR; + { ZVAL_FALSE(&s->value); return PHP_JSON_T_FALSE; } - } /* *********************************** */ yyc_STR_P1: yych = *YYCURSOR; if (yych <= 0xDF) { if (yych <= '[') { - if (yych <= 0x1F) goto yy70; - if (yych == '"') goto yy74; - goto yy72; - } else { - if (yych <= '\\') goto yy76; - if (yych <= 0x7F) goto yy72; - if (yych <= 0xC1) goto yy78; - goto yy80; + if (yych <= 0x1F) goto yy52; + if (yych == '"') goto yy54; + goto yy53; + } else { + if (yych <= '\\') goto yy55; + if (yych <= 0x7F) goto yy53; + if (yych <= 0xC1) goto yy57; + goto yy59; } } else { if (yych <= 0xEF) { - if (yych <= 0xE0) goto yy81; - if (yych == 0xED) goto yy83; - goto yy82; - } else { - if (yych <= 0xF0) goto yy84; - if (yych <= 0xF3) goto yy85; - if (yych <= 0xF4) goto yy86; - goto yy78; + if (yych <= 0xE0) goto yy60; + if (yych == 0xED) goto yy62; + goto yy61; + } else { + if (yych <= 0xF0) goto yy63; + if (yych <= 0xF3) goto yy64; + if (yych <= 0xF4) goto yy65; + goto yy57; } } -yy70: +yy52: ++YYCURSOR; { s->errcode = PHP_JSON_ERROR_CTRL_CHAR; return PHP_JSON_T_ERROR; } -yy72: +yy53: ++YYCURSOR; { PHP_JSON_CONDITION_GOTO(STR_P1); } -yy74: +yy54: ++YYCURSOR; { zend_string *str; @@ -597,41 +579,41 @@ return PHP_JSON_T_STRING; } } -yy76: +yy55: yyaccept = 0; yych = *(YYMARKER = ++YYCURSOR); if (yych <= 'e') { if (yych <= '/') { - if (yych == '"') goto yy87; - if (yych >= '/') goto yy87; + if (yych == '"') goto yy66; + if (yych >= '/') goto yy66; } else { if (yych <= '\\') { - if (yych >= '\\') goto yy87; + if (yych >= '\\') goto yy66; } else { - if (yych == 'b') goto yy87; + if (yych == 'b') goto yy66; } } } else { if (yych <= 'q') { - if (yych <= 'f') goto yy87; - if (yych == 'n') goto yy87; + if (yych <= 'f') goto yy66; + if (yych == 'n') goto yy66; } else { if (yych <= 's') { - if (yych <= 'r') goto yy87; + if (yych <= 'r') goto yy66; } else { - if (yych <= 't') goto yy87; - if (yych <= 'u') goto yy89; + if (yych <= 't') goto yy66; + if (yych <= 'u') goto yy67; } } } -yy77: +yy56: { s->errcode = PHP_JSON_ERROR_SYNTAX; return PHP_JSON_T_ERROR; } -yy78: +yy57: ++YYCURSOR; -yy79: +yy58: { if (s->options & (PHP_JSON_INVALID_UTF8_IGNORE | PHP_JSON_INVALID_UTF8_SUBSTITUTE)) { if (s->options & PHP_JSON_INVALID_UTF8_SUBSTITUTE) { @@ -649,329 +631,326 @@ s->errcode = PHP_JSON_ERROR_UTF8; return PHP_JSON_T_ERROR; } -yy80: +yy59: yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy79; - if (yych <= 0xBF) goto yy72; - goto yy79; -yy81: + if (yych <= 0x7F) goto yy58; + if (yych <= 0xBF) goto yy53; + goto yy58; +yy60: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x9F) goto yy79; - if (yych <= 0xBF) goto yy91; - goto yy79; -yy82: + if (yych <= 0x9F) goto yy58; + if (yych <= 0xBF) goto yy69; + goto yy58; +yy61: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy79; - if (yych <= 0xBF) goto yy91; - goto yy79; -yy83: + if (yych <= 0x7F) goto yy58; + if (yych <= 0xBF) goto yy69; + goto yy58; +yy62: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy79; - if (yych <= 0x9F) goto yy91; - goto yy79; -yy84: + if (yych <= 0x7F) goto yy58; + if (yych <= 0x9F) goto yy69; + goto yy58; +yy63: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x8F) goto yy79; - if (yych <= 0xBF) goto yy92; - goto yy79; -yy85: + if (yych <= 0x8F) goto yy58; + if (yych <= 0xBF) goto yy70; + goto yy58; +yy64: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy79; - if (yych <= 0xBF) goto yy92; - goto yy79; -yy86: + if (yych <= 0x7F) goto yy58; + if (yych <= 0xBF) goto yy70; + goto yy58; +yy65: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy79; - if (yych <= 0x8F) goto yy92; - goto yy79; -yy87: + if (yych <= 0x7F) goto yy58; + if (yych <= 0x8F) goto yy70; + goto yy58; +yy66: ++YYCURSOR; { s->str_esc++; PHP_JSON_CONDITION_GOTO(STR_P1); } -yy89: +yy67: yych = *++YYCURSOR; if (yych <= 'D') { if (yych <= '9') { - if (yych <= '/') goto yy90; - if (yych <= '0') goto yy93; - goto yy94; - } else { - if (yych <= '@') goto yy90; - if (yych <= 'C') goto yy94; - goto yy95; + if (yych <= '/') goto yy68; + if (yych <= '0') goto yy71; + goto yy72; + } else { + if (yych <= '@') goto yy68; + if (yych <= 'C') goto yy72; + goto yy73; } } else { if (yych <= 'c') { - if (yych <= 'F') goto yy94; - if (yych >= 'a') goto yy94; + if (yych <= 'F') goto yy72; + if (yych >= 'a') goto yy72; } else { - if (yych <= 'd') goto yy95; - if (yych <= 'f') goto yy94; + if (yych <= 'd') goto yy73; + if (yych <= 'f') goto yy72; } } -yy90: +yy68: YYCURSOR = YYMARKER; if (yyaccept <= 1) { - if (yyaccept == 0) { - goto yy77; - } else { - goto yy79; - } + if (yyaccept == 0) goto yy56; + else goto yy58; } else { - goto yy113; + goto yy88; } -yy91: +yy69: yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy90; - if (yych <= 0xBF) goto yy72; - goto yy90; -yy92: + if (yych <= 0x7F) goto yy68; + if (yych <= 0xBF) goto yy53; + goto yy68; +yy70: yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy90; - if (yych <= 0xBF) goto yy91; - goto yy90; -yy93: + if (yych <= 0x7F) goto yy68; + if (yych <= 0xBF) goto yy69; + goto yy68; +yy71: yych = *++YYCURSOR; if (yych <= '9') { - if (yych <= '/') goto yy90; - if (yych <= '0') goto yy96; - if (yych <= '7') goto yy97; - goto yy98; + if (yych <= '/') goto yy68; + if (yych <= '0') goto yy74; + if (yych <= '7') goto yy75; + goto yy76; } else { if (yych <= 'F') { - if (yych <= '@') goto yy90; - goto yy98; + if (yych <= '@') goto yy68; + goto yy76; } else { - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy98; - goto yy90; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy76; + goto yy68; } } -yy94: +yy72: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych <= '9') goto yy98; - goto yy90; - } else { - if (yych <= 'F') goto yy98; - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy98; - goto yy90; + if (yych <= '/') goto yy68; + if (yych <= '9') goto yy76; + goto yy68; + } else { + if (yych <= 'F') goto yy76; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy76; + goto yy68; } -yy95: +yy73: yych = *++YYCURSOR; if (yych <= 'B') { if (yych <= '7') { - if (yych <= '/') goto yy90; - goto yy98; + if (yych <= '/') goto yy68; + goto yy76; } else { - if (yych <= '9') goto yy99; - if (yych <= '@') goto yy90; - goto yy99; + if (yych <= '9') goto yy77; + if (yych <= '@') goto yy68; + goto yy77; } } else { if (yych <= '`') { - if (yych <= 'F') goto yy100; - goto yy90; + if (yych <= 'F') goto yy78; + goto yy68; } else { - if (yych <= 'b') goto yy99; - if (yych <= 'f') goto yy100; - goto yy90; + if (yych <= 'b') goto yy77; + if (yych <= 'f') goto yy78; + goto yy68; } } -yy96: - yych = *++YYCURSOR; - if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych <= '7') goto yy101; - if (yych <= '9') goto yy102; - goto yy90; - } else { - if (yych <= 'F') goto yy102; - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy102; - goto yy90; - } -yy97: +yy74: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych <= '9') goto yy102; - goto yy90; - } else { - if (yych <= 'F') goto yy102; - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy102; - goto yy90; + if (yych <= '/') goto yy68; + if (yych <= '7') goto yy79; + if (yych <= '9') goto yy80; + goto yy68; + } else { + if (yych <= 'F') goto yy80; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy80; + goto yy68; + } +yy75: + yych = *++YYCURSOR; + if (yych <= '@') { + if (yych <= '/') goto yy68; + if (yych <= '9') goto yy80; + goto yy68; + } else { + if (yych <= 'F') goto yy80; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy80; + goto yy68; } -yy98: +yy76: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych <= '9') goto yy103; - goto yy90; - } else { - if (yych <= 'F') goto yy103; - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy103; - goto yy90; + if (yych <= '/') goto yy68; + if (yych <= '9') goto yy81; + goto yy68; + } else { + if (yych <= 'F') goto yy81; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy81; + goto yy68; } -yy99: +yy77: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych <= '9') goto yy104; - goto yy90; - } else { - if (yych <= 'F') goto yy104; - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy104; - goto yy90; + if (yych <= '/') goto yy68; + if (yych <= '9') goto yy82; + goto yy68; + } else { + if (yych <= 'F') goto yy82; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy82; + goto yy68; } -yy100: +yy78: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych <= '9') goto yy105; - goto yy90; - } else { - if (yych <= 'F') goto yy105; - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy105; - goto yy90; + if (yych <= '/') goto yy68; + if (yych <= '9') goto yy83; + goto yy68; + } else { + if (yych <= 'F') goto yy83; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy83; + goto yy68; } -yy101: +yy79: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych <= '9') goto yy106; - goto yy90; - } else { - if (yych <= 'F') goto yy106; - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy106; - goto yy90; + if (yych <= '/') goto yy68; + if (yych <= '9') goto yy84; + goto yy68; + } else { + if (yych <= 'F') goto yy84; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy84; + goto yy68; } -yy102: +yy80: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych <= '9') goto yy108; - goto yy90; - } else { - if (yych <= 'F') goto yy108; - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy108; - goto yy90; + if (yych <= '/') goto yy68; + if (yych <= '9') goto yy85; + goto yy68; + } else { + if (yych <= 'F') goto yy85; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy85; + goto yy68; } -yy103: +yy81: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych <= '9') goto yy110; - goto yy90; - } else { - if (yych <= 'F') goto yy110; - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy110; - goto yy90; + if (yych <= '/') goto yy68; + if (yych <= '9') goto yy86; + goto yy68; + } else { + if (yych <= 'F') goto yy86; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy86; + goto yy68; } -yy104: +yy82: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych <= '9') goto yy112; - goto yy90; - } else { - if (yych <= 'F') goto yy112; - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy112; - goto yy90; + if (yych <= '/') goto yy68; + if (yych <= '9') goto yy87; + goto yy68; + } else { + if (yych <= 'F') goto yy87; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy87; + goto yy68; } -yy105: +yy83: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych <= '9') goto yy114; - goto yy90; - } else { - if (yych <= 'F') goto yy114; - if (yych <= '`') goto yy90; - if (yych <= 'f') goto yy114; - goto yy90; + if (yych <= '/') goto yy68; + if (yych <= '9') goto yy89; + goto yy68; + } else { + if (yych <= 'F') goto yy89; + if (yych <= '`') goto yy68; + if (yych <= 'f') goto yy89; + goto yy68; } -yy106: +yy84: ++YYCURSOR; { s->str_esc += 5; PHP_JSON_CONDITION_GOTO(STR_P1); } -yy108: +yy85: ++YYCURSOR; { s->str_esc += 4; PHP_JSON_CONDITION_GOTO(STR_P1); } -yy110: +yy86: ++YYCURSOR; { s->str_esc += 3; PHP_JSON_CONDITION_GOTO(STR_P1); } -yy112: +yy87: yyaccept = 2; yych = *(YYMARKER = ++YYCURSOR); - if (yych == '\\') goto yy115; -yy113: + if (yych == '\\') goto yy90; +yy88: { s->errcode = PHP_JSON_ERROR_UTF16; return PHP_JSON_T_ERROR; } -yy114: +yy89: ++YYCURSOR; - goto yy113; -yy115: + goto yy88; +yy90: yych = *++YYCURSOR; - if (yych != 'u') goto yy90; + if (yych != 'u') goto yy68; yych = *++YYCURSOR; - if (yych == 'D') goto yy117; - if (yych != 'd') goto yy90; -yy117: + if (yych == 'D') goto yy91; + if (yych != 'd') goto yy68; +yy91: yych = *++YYCURSOR; - if (yych <= 'B') goto yy90; - if (yych <= 'F') goto yy118; - if (yych <= 'b') goto yy90; - if (yych >= 'g') goto yy90; -yy118: + if (yych <= 'B') goto yy68; + if (yych <= 'F') goto yy92; + if (yych <= 'b') goto yy68; + if (yych >= 'g') goto yy68; +yy92: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych >= ':') goto yy90; + if (yych <= '/') goto yy68; + if (yych >= ':') goto yy68; } else { - if (yych <= 'F') goto yy119; - if (yych <= '`') goto yy90; - if (yych >= 'g') goto yy90; + if (yych <= 'F') goto yy93; + if (yych <= '`') goto yy68; + if (yych >= 'g') goto yy68; } -yy119: +yy93: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy90; - if (yych >= ':') goto yy90; + if (yych <= '/') goto yy68; + if (yych >= ':') goto yy68; } else { - if (yych <= 'F') goto yy120; - if (yych <= '`') goto yy90; - if (yych >= 'g') goto yy90; + if (yych <= 'F') goto yy94; + if (yych <= '`') goto yy68; + if (yych >= 'g') goto yy68; } -yy120: +yy94: ++YYCURSOR; { s->str_esc += 8; @@ -982,40 +961,40 @@ yych = *YYCURSOR; if (yych <= 0xDF) { if (yych <= '[') { - if (yych == '"') goto yy126; + if (yych == '"') goto yy97; } else { - if (yych <= '\\') goto yy128; - if (yych <= 0x7F) goto yy124; - if (yych <= 0xC1) goto yy130; - goto yy132; + if (yych <= '\\') goto yy98; + if (yych <= 0x7F) goto yy96; + if (yych <= 0xC1) goto yy100; + goto yy102; } } else { if (yych <= 0xEF) { - if (yych <= 0xE0) goto yy133; - if (yych == 0xED) goto yy135; - goto yy134; - } else { - if (yych <= 0xF0) goto yy136; - if (yych <= 0xF3) goto yy137; - if (yych <= 0xF4) goto yy138; - goto yy130; + if (yych <= 0xE0) goto yy103; + if (yych == 0xED) goto yy105; + goto yy104; + } else { + if (yych <= 0xF0) goto yy106; + if (yych <= 0xF3) goto yy107; + if (yych <= 0xF4) goto yy108; + goto yy100; } } -yy124: +yy96: ++YYCURSOR; { PHP_JSON_CONDITION_GOTO(STR_P2_BIN); } -yy126: +yy97: ++YYCURSOR; YYSETCONDITION(yycJS); { PHP_JSON_SCANNER_COPY_ESC(); return PHP_JSON_T_STRING; } -yy128: +yy98: yyaccept = 0; yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'u') goto yy139; -yy129: + if (yych == 'u') goto yy109; +yy99: { char esc; PHP_JSON_SCANNER_COPY_ESC(); @@ -1048,9 +1027,9 @@ s->str_start = s->cursor; PHP_JSON_CONDITION_GOTO_STR_P2(); } -yy130: +yy100: ++YYCURSOR; -yy131: +yy101: { if (s->utf8_invalid) { PHP_JSON_SCANNER_COPY_ESC(); @@ -1063,225 +1042,222 @@ } PHP_JSON_CONDITION_GOTO(STR_P2_BIN); } -yy132: +yy102: yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy131; - if (yych <= 0xBF) goto yy124; - goto yy131; -yy133: + if (yych <= 0x7F) goto yy101; + if (yych <= 0xBF) goto yy96; + goto yy101; +yy103: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x9F) goto yy131; - if (yych <= 0xBF) goto yy141; - goto yy131; -yy134: + if (yych <= 0x9F) goto yy101; + if (yych <= 0xBF) goto yy111; + goto yy101; +yy104: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy131; - if (yych <= 0xBF) goto yy141; - goto yy131; -yy135: + if (yych <= 0x7F) goto yy101; + if (yych <= 0xBF) goto yy111; + goto yy101; +yy105: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy131; - if (yych <= 0x9F) goto yy141; - goto yy131; -yy136: + if (yych <= 0x7F) goto yy101; + if (yych <= 0x9F) goto yy111; + goto yy101; +yy106: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x8F) goto yy131; - if (yych <= 0xBF) goto yy142; - goto yy131; -yy137: + if (yych <= 0x8F) goto yy101; + if (yych <= 0xBF) goto yy112; + goto yy101; +yy107: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy131; - if (yych <= 0xBF) goto yy142; - goto yy131; -yy138: + if (yych <= 0x7F) goto yy101; + if (yych <= 0xBF) goto yy112; + goto yy101; +yy108: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy131; - if (yych <= 0x8F) goto yy142; - goto yy131; -yy139: + if (yych <= 0x7F) goto yy101; + if (yych <= 0x8F) goto yy112; + goto yy101; +yy109: yych = *++YYCURSOR; if (yych <= 'D') { if (yych <= '9') { - if (yych <= '/') goto yy140; - if (yych <= '0') goto yy143; - goto yy144; - } else { - if (yych <= '@') goto yy140; - if (yych <= 'C') goto yy144; - goto yy145; + if (yych <= '/') goto yy110; + if (yych <= '0') goto yy113; + goto yy114; + } else { + if (yych <= '@') goto yy110; + if (yych <= 'C') goto yy114; + goto yy115; } } else { if (yych <= 'c') { - if (yych <= 'F') goto yy144; - if (yych >= 'a') goto yy144; + if (yych <= 'F') goto yy114; + if (yych >= 'a') goto yy114; } else { - if (yych <= 'd') goto yy145; - if (yych <= 'f') goto yy144; + if (yych <= 'd') goto yy115; + if (yych <= 'f') goto yy114; } } -yy140: +yy110: YYCURSOR = YYMARKER; - if (yyaccept == 0) { - goto yy129; - } else { - goto yy131; - } -yy141: - yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy140; - if (yych <= 0xBF) goto yy124; - goto yy140; -yy142: + if (yyaccept == 0) goto yy99; + else goto yy101; +yy111: + yych = *++YYCURSOR; + if (yych <= 0x7F) goto yy110; + if (yych <= 0xBF) goto yy96; + goto yy110; +yy112: yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy140; - if (yych <= 0xBF) goto yy141; - goto yy140; -yy143: + if (yych <= 0x7F) goto yy110; + if (yych <= 0xBF) goto yy111; + goto yy110; +yy113: yych = *++YYCURSOR; if (yych <= '9') { - if (yych <= '/') goto yy140; - if (yych <= '0') goto yy146; - if (yych <= '7') goto yy147; - goto yy148; + if (yych <= '/') goto yy110; + if (yych <= '0') goto yy116; + if (yych <= '7') goto yy117; + goto yy118; } else { if (yych <= 'F') { - if (yych <= '@') goto yy140; - goto yy148; + if (yych <= '@') goto yy110; + goto yy118; } else { - if (yych <= '`') goto yy140; - if (yych <= 'f') goto yy148; - goto yy140; + if (yych <= '`') goto yy110; + if (yych <= 'f') goto yy118; + goto yy110; } } -yy144: +yy114: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych <= '9') goto yy148; - goto yy140; - } else { - if (yych <= 'F') goto yy148; - if (yych <= '`') goto yy140; - if (yych <= 'f') goto yy148; - goto yy140; + if (yych <= '/') goto yy110; + if (yych <= '9') goto yy118; + goto yy110; + } else { + if (yych <= 'F') goto yy118; + if (yych <= '`') goto yy110; + if (yych <= 'f') goto yy118; + goto yy110; } -yy145: +yy115: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych <= '7') goto yy148; - if (yych <= '9') goto yy149; - goto yy140; - } else { - if (yych <= 'B') goto yy149; - if (yych <= '`') goto yy140; - if (yych <= 'b') goto yy149; - goto yy140; + if (yych <= '/') goto yy110; + if (yych <= '7') goto yy118; + if (yych <= '9') goto yy119; + goto yy110; + } else { + if (yych <= 'B') goto yy119; + if (yych <= '`') goto yy110; + if (yych <= 'b') goto yy119; + goto yy110; + } +yy116: + yych = *++YYCURSOR; + if (yych <= '@') { + if (yych <= '/') goto yy110; + if (yych <= '7') goto yy120; + if (yych <= '9') goto yy121; + goto yy110; + } else { + if (yych <= 'F') goto yy121; + if (yych <= '`') goto yy110; + if (yych <= 'f') goto yy121; + goto yy110; } -yy146: +yy117: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych <= '7') goto yy150; - if (yych <= '9') goto yy151; - goto yy140; - } else { - if (yych <= 'F') goto yy151; - if (yych <= '`') goto yy140; - if (yych <= 'f') goto yy151; - goto yy140; + if (yych <= '/') goto yy110; + if (yych <= '9') goto yy121; + goto yy110; + } else { + if (yych <= 'F') goto yy121; + if (yych <= '`') goto yy110; + if (yych <= 'f') goto yy121; + goto yy110; } -yy147: - yych = *++YYCURSOR; - if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych <= '9') goto yy151; - goto yy140; - } else { - if (yych <= 'F') goto yy151; - if (yych <= '`') goto yy140; - if (yych <= 'f') goto yy151; - goto yy140; - } -yy148: +yy118: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych <= '9') goto yy152; - goto yy140; - } else { - if (yych <= 'F') goto yy152; - if (yych <= '`') goto yy140; - if (yych <= 'f') goto yy152; - goto yy140; + if (yych <= '/') goto yy110; + if (yych <= '9') goto yy122; + goto yy110; + } else { + if (yych <= 'F') goto yy122; + if (yych <= '`') goto yy110; + if (yych <= 'f') goto yy122; + goto yy110; } -yy149: +yy119: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych <= '9') goto yy153; - goto yy140; - } else { - if (yych <= 'F') goto yy153; - if (yych <= '`') goto yy140; - if (yych <= 'f') goto yy153; - goto yy140; + if (yych <= '/') goto yy110; + if (yych <= '9') goto yy123; + goto yy110; + } else { + if (yych <= 'F') goto yy123; + if (yych <= '`') goto yy110; + if (yych <= 'f') goto yy123; + goto yy110; } -yy150: +yy120: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych <= '9') goto yy154; - goto yy140; - } else { - if (yych <= 'F') goto yy154; - if (yych <= '`') goto yy140; - if (yych <= 'f') goto yy154; - goto yy140; + if (yych <= '/') goto yy110; + if (yych <= '9') goto yy124; + goto yy110; + } else { + if (yych <= 'F') goto yy124; + if (yych <= '`') goto yy110; + if (yych <= 'f') goto yy124; + goto yy110; } -yy151: +yy121: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych <= '9') goto yy156; - goto yy140; + if (yych <= '/') goto yy110; + if (yych <= '9') goto yy125; + goto yy110; } else { - if (yych <= 'F') goto yy156; - if (yych <= '`') goto yy140; - if (yych <= 'f') goto yy156; - goto yy140; + if (yych <= 'F') goto yy125; + if (yych <= '`') goto yy110; + if (yych <= 'f') goto yy125; + goto yy110; } -yy152: +yy122: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych <= '9') goto yy158; - goto yy140; - } else { - if (yych <= 'F') goto yy158; - if (yych <= '`') goto yy140; - if (yych <= 'f') goto yy158; - goto yy140; + if (yych <= '/') goto yy110; + if (yych <= '9') goto yy126; + goto yy110; + } else { + if (yych <= 'F') goto yy126; + if (yych <= '`') goto yy110; + if (yych <= 'f') goto yy126; + goto yy110; } -yy153: +yy123: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych <= '9') goto yy160; - goto yy140; - } else { - if (yych <= 'F') goto yy160; - if (yych <= '`') goto yy140; - if (yych <= 'f') goto yy160; - goto yy140; + if (yych <= '/') goto yy110; + if (yych <= '9') goto yy127; + goto yy110; + } else { + if (yych <= 'F') goto yy127; + if (yych <= '`') goto yy110; + if (yych <= 'f') goto yy127; + goto yy110; } -yy154: +yy124: ++YYCURSOR; { int utf16 = php_json_ucs2_to_int(s, 2); @@ -1290,7 +1266,7 @@ s->str_start = s->cursor; PHP_JSON_CONDITION_GOTO_STR_P2(); } -yy156: +yy125: ++YYCURSOR; { int utf16 = php_json_ucs2_to_int(s, 3); @@ -1300,7 +1276,7 @@ s->str_start = s->cursor; PHP_JSON_CONDITION_GOTO_STR_P2(); } -yy158: +yy126: ++YYCURSOR; { int utf16 = php_json_ucs2_to_int(s, 4); @@ -1311,41 +1287,41 @@ s->str_start = s->cursor; PHP_JSON_CONDITION_GOTO_STR_P2(); } -yy160: +yy127: yych = *++YYCURSOR; - if (yych != '\\') goto yy140; + if (yych != '\\') goto yy110; yych = *++YYCURSOR; - if (yych != 'u') goto yy140; + if (yych != 'u') goto yy110; yych = *++YYCURSOR; - if (yych == 'D') goto yy163; - if (yych != 'd') goto yy140; -yy163: + if (yych == 'D') goto yy128; + if (yych != 'd') goto yy110; +yy128: yych = *++YYCURSOR; - if (yych <= 'B') goto yy140; - if (yych <= 'F') goto yy164; - if (yych <= 'b') goto yy140; - if (yych >= 'g') goto yy140; -yy164: + if (yych <= 'B') goto yy110; + if (yych <= 'F') goto yy129; + if (yych <= 'b') goto yy110; + if (yych >= 'g') goto yy110; +yy129: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych >= ':') goto yy140; + if (yych <= '/') goto yy110; + if (yych >= ':') goto yy110; } else { - if (yych <= 'F') goto yy165; - if (yych <= '`') goto yy140; - if (yych >= 'g') goto yy140; + if (yych <= 'F') goto yy130; + if (yych <= '`') goto yy110; + if (yych >= 'g') goto yy110; } -yy165: +yy130: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy140; - if (yych >= ':') goto yy140; + if (yych <= '/') goto yy110; + if (yych >= ':') goto yy110; } else { - if (yych <= 'F') goto yy166; - if (yych <= '`') goto yy140; - if (yych >= 'g') goto yy140; + if (yych <= 'F') goto yy131; + if (yych <= '`') goto yy110; + if (yych >= 'g') goto yy110; } -yy166: +yy131: ++YYCURSOR; { int utf32, utf16_hi, utf16_lo; @@ -1363,21 +1339,21 @@ /* *********************************** */ yyc_STR_P2_UTF: yych = *YYCURSOR; - if (yych == '"') goto yy172; - if (yych == '\\') goto yy174; + if (yych == '"') goto yy133; + if (yych == '\\') goto yy134; ++YYCURSOR; { PHP_JSON_CONDITION_GOTO(STR_P2_UTF); } -yy172: +yy133: ++YYCURSOR; YYSETCONDITION(yycJS); { PHP_JSON_SCANNER_COPY_ESC(); return PHP_JSON_T_STRING; } -yy174: +yy134: yych = *(YYMARKER = ++YYCURSOR); - if (yych == 'u') goto yy176; -yy175: + if (yych == 'u') goto yy136; +yy135: { char esc; PHP_JSON_SCANNER_COPY_ESC(); @@ -1410,170 +1386,170 @@ s->str_start = s->cursor; PHP_JSON_CONDITION_GOTO_STR_P2(); } -yy176: +yy136: yych = *++YYCURSOR; if (yych <= 'D') { if (yych <= '9') { - if (yych <= '/') goto yy177; - if (yych <= '0') goto yy178; - goto yy179; - } else { - if (yych <= '@') goto yy177; - if (yych <= 'C') goto yy179; - goto yy180; + if (yych <= '/') goto yy137; + if (yych <= '0') goto yy138; + goto yy139; + } else { + if (yych <= '@') goto yy137; + if (yych <= 'C') goto yy139; + goto yy140; } } else { if (yych <= 'c') { - if (yych <= 'F') goto yy179; - if (yych >= 'a') goto yy179; + if (yych <= 'F') goto yy139; + if (yych >= 'a') goto yy139; } else { - if (yych <= 'd') goto yy180; - if (yych <= 'f') goto yy179; + if (yych <= 'd') goto yy140; + if (yych <= 'f') goto yy139; } } -yy177: +yy137: YYCURSOR = YYMARKER; - goto yy175; -yy178: + goto yy135; +yy138: yych = *++YYCURSOR; if (yych <= '9') { - if (yych <= '/') goto yy177; - if (yych <= '0') goto yy181; - if (yych <= '7') goto yy182; - goto yy183; + if (yych <= '/') goto yy137; + if (yych <= '0') goto yy141; + if (yych <= '7') goto yy142; + goto yy143; } else { if (yych <= 'F') { - if (yych <= '@') goto yy177; - goto yy183; + if (yych <= '@') goto yy137; + goto yy143; } else { - if (yych <= '`') goto yy177; - if (yych <= 'f') goto yy183; - goto yy177; + if (yych <= '`') goto yy137; + if (yych <= 'f') goto yy143; + goto yy137; } } -yy179: +yy139: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych <= '9') goto yy183; - goto yy177; - } else { - if (yych <= 'F') goto yy183; - if (yych <= '`') goto yy177; - if (yych <= 'f') goto yy183; - goto yy177; + if (yych <= '/') goto yy137; + if (yych <= '9') goto yy143; + goto yy137; + } else { + if (yych <= 'F') goto yy143; + if (yych <= '`') goto yy137; + if (yych <= 'f') goto yy143; + goto yy137; } -yy180: +yy140: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych <= '7') goto yy183; - if (yych <= '9') goto yy184; - goto yy177; - } else { - if (yych <= 'B') goto yy184; - if (yych <= '`') goto yy177; - if (yych <= 'b') goto yy184; - goto yy177; + if (yych <= '/') goto yy137; + if (yych <= '7') goto yy143; + if (yych <= '9') goto yy144; + goto yy137; + } else { + if (yych <= 'B') goto yy144; + if (yych <= '`') goto yy137; + if (yych <= 'b') goto yy144; + goto yy137; } -yy181: +yy141: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych <= '7') goto yy185; - if (yych <= '9') goto yy186; - goto yy177; - } else { - if (yych <= 'F') goto yy186; - if (yych <= '`') goto yy177; - if (yych <= 'f') goto yy186; - goto yy177; + if (yych <= '/') goto yy137; + if (yych <= '7') goto yy145; + if (yych <= '9') goto yy146; + goto yy137; + } else { + if (yych <= 'F') goto yy146; + if (yych <= '`') goto yy137; + if (yych <= 'f') goto yy146; + goto yy137; } -yy182: +yy142: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych <= '9') goto yy186; - goto yy177; - } else { - if (yych <= 'F') goto yy186; - if (yych <= '`') goto yy177; - if (yych <= 'f') goto yy186; - goto yy177; + if (yych <= '/') goto yy137; + if (yych <= '9') goto yy146; + goto yy137; + } else { + if (yych <= 'F') goto yy146; + if (yych <= '`') goto yy137; + if (yych <= 'f') goto yy146; + goto yy137; } -yy183: +yy143: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych <= '9') goto yy187; - goto yy177; - } else { - if (yych <= 'F') goto yy187; - if (yych <= '`') goto yy177; - if (yych <= 'f') goto yy187; - goto yy177; + if (yych <= '/') goto yy137; + if (yych <= '9') goto yy147; + goto yy137; + } else { + if (yych <= 'F') goto yy147; + if (yych <= '`') goto yy137; + if (yych <= 'f') goto yy147; + goto yy137; } -yy184: +yy144: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych <= '9') goto yy188; - goto yy177; + if (yych <= '/') goto yy137; + if (yych <= '9') goto yy148; + goto yy137; } else { - if (yych <= 'F') goto yy188; - if (yych <= '`') goto yy177; - if (yych <= 'f') goto yy188; - goto yy177; + if (yych <= 'F') goto yy148; + if (yych <= '`') goto yy137; + if (yych <= 'f') goto yy148; + goto yy137; } -yy185: +yy145: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych <= '9') goto yy189; - goto yy177; + if (yych <= '/') goto yy137; + if (yych <= '9') goto yy149; + goto yy137; } else { - if (yych <= 'F') goto yy189; - if (yych <= '`') goto yy177; - if (yych <= 'f') goto yy189; - goto yy177; + if (yych <= 'F') goto yy149; + if (yych <= '`') goto yy137; + if (yych <= 'f') goto yy149; + goto yy137; } -yy186: +yy146: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych <= '9') goto yy191; - goto yy177; - } else { - if (yych <= 'F') goto yy191; - if (yych <= '`') goto yy177; - if (yych <= 'f') goto yy191; - goto yy177; + if (yych <= '/') goto yy137; + if (yych <= '9') goto yy150; + goto yy137; + } else { + if (yych <= 'F') goto yy150; + if (yych <= '`') goto yy137; + if (yych <= 'f') goto yy150; + goto yy137; } -yy187: +yy147: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych <= '9') goto yy193; - goto yy177; + if (yych <= '/') goto yy137; + if (yych <= '9') goto yy151; + goto yy137; } else { - if (yych <= 'F') goto yy193; - if (yych <= '`') goto yy177; - if (yych <= 'f') goto yy193; - goto yy177; + if (yych <= 'F') goto yy151; + if (yych <= '`') goto yy137; + if (yych <= 'f') goto yy151; + goto yy137; } -yy188: +yy148: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych <= '9') goto yy195; - goto yy177; + if (yych <= '/') goto yy137; + if (yych <= '9') goto yy152; + goto yy137; } else { - if (yych <= 'F') goto yy195; - if (yych <= '`') goto yy177; - if (yych <= 'f') goto yy195; - goto yy177; + if (yych <= 'F') goto yy152; + if (yych <= '`') goto yy137; + if (yych <= 'f') goto yy152; + goto yy137; } -yy189: +yy149: ++YYCURSOR; { int utf16 = php_json_ucs2_to_int(s, 2); @@ -1582,7 +1558,7 @@ s->str_start = s->cursor; PHP_JSON_CONDITION_GOTO_STR_P2(); } -yy191: +yy150: ++YYCURSOR; { int utf16 = php_json_ucs2_to_int(s, 3); @@ -1592,7 +1568,7 @@ s->str_start = s->cursor; PHP_JSON_CONDITION_GOTO_STR_P2(); } -yy193: +yy151: ++YYCURSOR; { int utf16 = php_json_ucs2_to_int(s, 4); @@ -1603,41 +1579,41 @@ s->str_start = s->cursor; PHP_JSON_CONDITION_GOTO_STR_P2(); } -yy195: +yy152: yych = *++YYCURSOR; - if (yych != '\\') goto yy177; + if (yych != '\\') goto yy137; yych = *++YYCURSOR; - if (yych != 'u') goto yy177; + if (yych != 'u') goto yy137; yych = *++YYCURSOR; - if (yych == 'D') goto yy198; - if (yych != 'd') goto yy177; -yy198: + if (yych == 'D') goto yy153; + if (yych != 'd') goto yy137; +yy153: yych = *++YYCURSOR; - if (yych <= 'B') goto yy177; - if (yych <= 'F') goto yy199; - if (yych <= 'b') goto yy177; - if (yych >= 'g') goto yy177; -yy199: + if (yych <= 'B') goto yy137; + if (yych <= 'F') goto yy154; + if (yych <= 'b') goto yy137; + if (yych >= 'g') goto yy137; +yy154: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych >= ':') goto yy177; + if (yych <= '/') goto yy137; + if (yych >= ':') goto yy137; } else { - if (yych <= 'F') goto yy200; - if (yych <= '`') goto yy177; - if (yych >= 'g') goto yy177; + if (yych <= 'F') goto yy155; + if (yych <= '`') goto yy137; + if (yych >= 'g') goto yy137; } -yy200: +yy155: yych = *++YYCURSOR; if (yych <= '@') { - if (yych <= '/') goto yy177; - if (yych >= ':') goto yy177; + if (yych <= '/') goto yy137; + if (yych >= ':') goto yy137; } else { - if (yych <= 'F') goto yy201; - if (yych <= '`') goto yy177; - if (yych >= 'g') goto yy177; + if (yych <= 'F') goto yy156; + if (yych <= '`') goto yy137; + if (yych >= 'g') goto yy137; } -yy201: +yy156: ++YYCURSOR; { int utf32, utf16_hi, utf16_lo; diff -Nru php8.2-8.2.30/ext/json/php_json_scanner_defs.h php8.2-8.2.31/ext/json/php_json_scanner_defs.h --- php8.2-8.2.30/ext/json/php_json_scanner_defs.h 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/json/php_json_scanner_defs.h 2026-05-05 13:59:08.000000000 +0000 @@ -1,8 +1,8 @@ -/* Generated by re2c 2.0.3 */ +/* Generated by re2c 4.0 */ enum YYCONDTYPE { yycJS, yycSTR_P1, yycSTR_P2_BIN, - yycSTR_P2_UTF, + yycSTR_P2_UTF }; diff -Nru php8.2-8.2.30/ext/ldap/tests/GHSA-g665-fm4p-vhff-1.phpt php8.2-8.2.31/ext/ldap/tests/GHSA-g665-fm4p-vhff-1.phpt --- php8.2-8.2.30/ext/ldap/tests/GHSA-g665-fm4p-vhff-1.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/ldap/tests/GHSA-g665-fm4p-vhff-1.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -6,6 +6,7 @@ memory_limit=-1 --SKIPIF-- diff -Nru php8.2-8.2.30/ext/ldap/tests/GHSA-g665-fm4p-vhff-2.phpt php8.2-8.2.31/ext/ldap/tests/GHSA-g665-fm4p-vhff-2.phpt --- php8.2-8.2.30/ext/ldap/tests/GHSA-g665-fm4p-vhff-2.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/ldap/tests/GHSA-g665-fm4p-vhff-2.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -6,6 +6,7 @@ memory_limit=-1 --SKIPIF-- diff -Nru php8.2-8.2.30/ext/mbstring/mbstring.c php8.2-8.2.31/ext/mbstring/mbstring.c --- php8.2-8.2.30/ext/mbstring/mbstring.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/mbstring/mbstring.c 2026-05-05 13:59:08.000000000 +0000 @@ -642,7 +642,7 @@ static char *php_mb_rfc1867_getword_conf(const zend_encoding *encoding, char *str) /* {{{ */ { - while (*str && isspace(*(unsigned char *)str)) { + while (*str && isspace((unsigned char)*str)) { ++str; } @@ -658,7 +658,7 @@ } else { char *strend = str; - while (*strend && !isspace(*(unsigned char *)strend)) { + while (*strend && !isspace((unsigned char)*strend)) { ++strend; } return php_mb_rfc1867_substring_conf(encoding, str, strend - str, 0); diff -Nru php8.2-8.2.30/ext/mbstring/php_mbregex.c php8.2-8.2.31/ext/mbstring/php_mbregex.c --- php8.2-8.2.30/ext/mbstring/php_mbregex.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/mbstring/php_mbregex.c 2026-05-05 13:59:08.000000000 +0000 @@ -409,8 +409,13 @@ if (mbctype == ONIG_ENCODING_UNDEF) { return FAILURE; } + const mbfl_encoding *mbfl_enc = mbfl_name2encoding(encname); + if (mbfl_enc == NULL) { + /* Encoding supported by Oniguruma but not by mbfl */ + return FAILURE; + } MBREX(current_mbctype) = mbctype; - MBREX(current_mbctype_mbfl_encoding) = mbfl_name2encoding(encname); + MBREX(current_mbctype_mbfl_encoding) = mbfl_enc; return SUCCESS; } /* }}} */ @@ -779,7 +784,7 @@ continue; } if (name_end[0] == delim) break; - if (maybe_num && !isdigit(name_end[0])) maybe_num = 0; + if (maybe_num && !isdigit((unsigned char)name_end[0])) maybe_num = 0; name_end++; } p = name_end + 1; diff -Nru php8.2-8.2.30/ext/openssl/openssl.c php8.2-8.2.31/ext/openssl/openssl.c --- php8.2-8.2.30/ext/openssl/openssl.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/openssl.c 2026-05-05 13:59:08.000000000 +0000 @@ -469,9 +469,9 @@ errors = OPENSSL_G(errors); do { - errors->top = (errors->top + 1) % ERR_NUM_ERRORS; + errors->top = (errors->top + 1) % PHP_OPENSSL_ERR_BUFFER_SIZE; if (errors->top == errors->bottom) { - errors->bottom = (errors->bottom + 1) % ERR_NUM_ERRORS; + errors->bottom = (errors->bottom + 1) % PHP_OPENSSL_ERR_BUFFER_SIZE; } errors->buffer[errors->top] = error_code; } while ((error_code = ERR_get_error())); @@ -685,7 +685,7 @@ static void php_openssl_add_assoc_asn1_string(zval * val, char * key, ASN1_STRING * str) /* {{{ */ { - add_assoc_stringl(val, key, (char *)str->data, str->length); + add_assoc_stringl(val, key, (const char *)ASN1_STRING_get0_data(str), ASN1_STRING_length(str)); } /* }}} */ @@ -718,12 +718,12 @@ } if (timestr_len < 13 && timestr_len != 11) { - php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data); + php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", ASN1_STRING_get0_data(timestr)); return (time_t)-1; } if (ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME && timestr_len < 15) { - php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data); + php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", ASN1_STRING_get0_data(timestr)); return (time_t)-1; } @@ -1982,8 +1982,8 @@ } extension_data = X509_EXTENSION_get_data(extension); - p = extension_data->data; - length = extension_data->length; + p = ASN1_STRING_get0_data(extension_data); + length = ASN1_STRING_length(extension_data); if (method->it) { names = (GENERAL_NAMES*) (ASN1_item_d2i(NULL, &p, length, ASN1_ITEM_ptr(method->it))); @@ -6709,7 +6709,7 @@ RETURN_FALSE; } - OPENSSL_G(errors)->bottom = (OPENSSL_G(errors)->bottom + 1) % ERR_NUM_ERRORS; + OPENSSL_G(errors)->bottom = (OPENSSL_G(errors)->bottom + 1) % PHP_OPENSSL_ERR_BUFFER_SIZE; val = OPENSSL_G(errors)->buffer[OPENSSL_G(errors)->bottom]; if (val) { diff -Nru php8.2-8.2.30/ext/openssl/php_openssl.h php8.2-8.2.31/ext/openssl/php_openssl.h --- php8.2-8.2.30/ext/openssl/php_openssl.h 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/php_openssl.h 2026-05-05 13:59:08.000000000 +0000 @@ -44,6 +44,8 @@ #endif #endif +#define PHP_OPENSSL_ERR_BUFFER_SIZE 16 + #define OPENSSL_RAW_DATA 1 #define OPENSSL_ZERO_PADDING 2 #define OPENSSL_DONT_ZERO_PAD_KEY 4 @@ -73,7 +75,7 @@ #endif struct php_openssl_errors { - int buffer[ERR_NUM_ERRORS]; + int buffer[PHP_OPENSSL_ERR_BUFFER_SIZE]; int top; int bottom; }; diff -Nru php8.2-8.2.30/ext/openssl/tests/gh9310.phpt php8.2-8.2.31/ext/openssl/tests/gh9310.phpt --- php8.2-8.2.30/ext/openssl/tests/gh9310.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/gh9310.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -23,7 +23,21 @@ copy($certFile, $baseDirCertFile); copy($pkFile, $baseDirPkFile); -copy(__DIR__ . '/sni_server_uk_cert.pem', $baseDir . '/sni_server_uk_cert.pem'); + +$sniCaFile = __DIR__ . '/gh9310_sni_ca.pem.tmp'; +$sniCsFile = __DIR__ . '/gh9310_sni_cs.pem.tmp'; +$sniUkCertFile = __DIR__ . '/gh9310_sni_uk_cert.pem.tmp'; +$sniUkKeyFile = __DIR__ . '/gh9310_sni_uk_key.pem.tmp'; +$sniUsCertFile = __DIR__ . '/gh9310_sni_us_cert.pem.tmp'; +$sniUsKeyFile = __DIR__ . '/gh9310_sni_us_key.pem.tmp'; +$baseDirSniUkCertFile = $baseDir . '/sni_uk_cert.pem'; + +$certificateGenerator->saveCaCert($sniCaFile); +$certificateGenerator->saveNewCertAsFileWithKey('cs.php.net', $sniCsFile); +$certificateGenerator->saveNewCertAndKey('uk.php.net', $sniUkCertFile, $sniUkKeyFile); +$certificateGenerator->saveNewCertAndKey('us.php.net', $sniUsCertFile, $sniUsKeyFile); + +copy($sniUkCertFile, $baseDirSniUkCertFile); $serverCodeTemplate = <<<'CODE' @@ -60,7 +74,7 @@ $flags = STREAM_SERVER_BIND|STREAM_SERVER_LISTEN; $ctx = stream_context_create(['ssl' => [ 'SNI_server_certs' => [ - "cs.php.net" => __DIR__ . "/sni_server_cs.pem", + "cs.php.net" => '%s', ] ]]); @@ -69,6 +83,7 @@ stream_socket_accept($server); CODE; +$sniServerCodeV1 = sprintf($sniServerCodeV1, $sniCsFile); $sniServerCodeV2 = <<<'CODE' ini_set('log_errors', 'On'); @@ -77,8 +92,8 @@ $ctx = stream_context_create(['ssl' => [ 'SNI_server_certs' => [ "uk.php.net" => [ - 'local_cert' => __DIR__ . '/gh9310/sni_server_uk_cert.pem', - 'local_pk' => __DIR__ . '/sni_server_uk_key.pem', + 'local_cert' => '%s', + 'local_pk' => '%s', ] ] ]]); @@ -88,6 +103,7 @@ stream_socket_accept($server); CODE; +$sniServerCodeV2 = sprintf($sniServerCodeV2, $baseDirSniUkCertFile, $sniUkKeyFile); $sniServerCodeV3 = <<<'CODE' ini_set('log_errors', 'On'); @@ -96,8 +112,8 @@ $ctx = stream_context_create(['ssl' => [ 'SNI_server_certs' => [ "us.php.net" => [ - 'local_cert' => __DIR__ . '/sni_server_us_cert.pem', - 'local_pk' => __DIR__ . '/sni_server_us_key.pem', + 'local_cert' => '%s', + 'local_pk' => '%s', ] ] ]]); @@ -107,14 +123,15 @@ stream_socket_accept($server); CODE; +$sniServerCodeV3 = sprintf($sniServerCodeV3, $sniUsCertFile, $sniUsKeyFile); $sniClientCodeTemplate = <<<'CODE' $flags = STREAM_CLIENT_CONNECT; $ctxArr = [ - 'cafile' => __DIR__ . '/sni_server_ca.pem', + 'cafile' => '%s', + 'peer_name' => '%s', ]; - $ctxArr['peer_name'] = '%s'; $ctx = stream_context_create(['ssl' => $ctxArr]); @stream_socket_client("tls://{{ ADDR }}", $errno, $errstr, 1, $flags, $ctx); CODE; @@ -131,13 +148,13 @@ $serverCode = sprintf($serverCodeTemplate, $baseDirCertFile, $pkFile); ServerClientTestCase::getInstance()->run($clientCode, $serverCode); -$sniClientCode = sprintf($sniClientCodeTemplate, 'cs.php.net'); +$sniClientCode = sprintf($sniClientCodeTemplate, $sniCaFile, 'cs.php.net'); ServerClientTestCase::getInstance()->run($sniClientCode, $sniServerCodeV1); -$sniClientCode = sprintf($sniClientCodeTemplate, 'uk.php.net'); +$sniClientCode = sprintf($sniClientCodeTemplate, $sniCaFile, 'uk.php.net'); ServerClientTestCase::getInstance()->run($sniClientCode, $sniServerCodeV2); -$sniClientCode = sprintf($sniClientCodeTemplate, 'us.php.net'); +$sniClientCode = sprintf($sniClientCodeTemplate, $sniCaFile, 'us.php.net'); ServerClientTestCase::getInstance()->run($sniClientCode, $sniServerCodeV3); ?> @@ -149,7 +166,13 @@ @unlink(__DIR__ . '/gh9310.key'); @unlink($baseDir . '/cert.crt'); @unlink($baseDir . '/private.key'); -@unlink($baseDir . '/sni_server_uk_cert.pem'); +@unlink($baseDir . '/sni_uk_cert.pem'); +@unlink(__DIR__ . '/gh9310_sni_ca.pem.tmp'); +@unlink(__DIR__ . '/gh9310_sni_cs.pem.tmp'); +@unlink(__DIR__ . '/gh9310_sni_uk_cert.pem.tmp'); +@unlink(__DIR__ . '/gh9310_sni_uk_key.pem.tmp'); +@unlink(__DIR__ . '/gh9310_sni_us_cert.pem.tmp'); +@unlink(__DIR__ . '/gh9310_sni_us_key.pem.tmp'); @rmdir($baseDir); ?> --EXPECTF-- @@ -169,15 +192,15 @@ PHP Warning: stream_socket_accept(): Unable to get real path of private key file `%sgh9310.key' in %s PHP Warning: stream_socket_accept(): Failed to enable crypto in %s PHP Warning: stream_socket_accept(): Accept failed: %s -PHP Warning: stream_socket_accept(): open_basedir restriction in effect. File(%ssni_server_cs.pem) is not within the allowed path(s): (%sgh9310) in %s -PHP Warning: stream_socket_accept(): Failed setting local cert chain file `%ssni_server_cs.pem'; file not found in %s +PHP Warning: stream_socket_accept(): open_basedir restriction in effect. File(%sgh9310_sni_cs.pem.tmp) is not within the allowed path(s): (%sgh9310) in %s +PHP Warning: stream_socket_accept(): Failed setting local cert chain file `%sgh9310_sni_cs.pem.tmp'; file not found in %s PHP Warning: stream_socket_accept(): Failed to enable crypto in %s PHP Warning: stream_socket_accept(): Accept failed: %s -PHP Warning: stream_socket_accept(): open_basedir restriction in effect. File(%ssni_server_uk_key.pem) is not within the allowed path(s): (%sgh9310) in %s -PHP Warning: stream_socket_accept(): Failed setting local private key file `%ssni_server_uk_key.pem'; could not open file in %s +PHP Warning: stream_socket_accept(): open_basedir restriction in effect. File(%sgh9310_sni_uk_key.pem.tmp) is not within the allowed path(s): (%sgh9310) in %s +PHP Warning: stream_socket_accept(): Failed setting local private key file `%sgh9310_sni_uk_key.pem.tmp'; could not open file in %s PHP Warning: stream_socket_accept(): Failed to enable crypto in %s PHP Warning: stream_socket_accept(): Accept failed: %s -PHP Warning: stream_socket_accept(): open_basedir restriction in effect. File(%ssni_server_us_cert.pem) is not within the allowed path(s): (%sgh9310) in %s -PHP Warning: stream_socket_accept(): Failed setting local cert chain file `%ssni_server_us_cert.pem'; could not open file in %s +PHP Warning: stream_socket_accept(): open_basedir restriction in effect. File(%sgh9310_sni_us_cert.pem.tmp) is not within the allowed path(s): (%sgh9310) in %s +PHP Warning: stream_socket_accept(): Failed setting local cert chain file `%sgh9310_sni_us_cert.pem.tmp'; could not open file in %s PHP Warning: stream_socket_accept(): Failed to enable crypto in %s PHP Warning: stream_socket_accept(): Accept failed: %s diff -Nru php8.2-8.2.30/ext/openssl/tests/openssl_x509_checkpurpose_basic.phpt php8.2-8.2.31/ext/openssl/tests/openssl_x509_checkpurpose_basic.phpt --- php8.2-8.2.30/ext/openssl/tests/openssl_x509_checkpurpose_basic.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/openssl_x509_checkpurpose_basic.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -17,7 +17,7 @@ $bert = "file://" . __DIR__ . "/bug41033.pem"; $sert = "file://" . __DIR__ . "/san-cert.pem"; $cpca = __DIR__ . "/san-cert.pem"; -$utfl = __DIR__ . "/sni_server_uk.pem"; +$utfl = __DIR__ . "/sni_server.pem"; $rcrt = openssl_x509_read($cert); /* int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose); */ diff -Nru php8.2-8.2.30/ext/openssl/tests/openssl_x509_export_to_file_leak.phpt php8.2-8.2.31/ext/openssl/tests/openssl_x509_export_to_file_leak.phpt --- php8.2-8.2.30/ext/openssl/tests/openssl_x509_export_to_file_leak.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/openssl_x509_export_to_file_leak.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -5,7 +5,7 @@ --FILE-- diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server.pem php8.2-8.2.31/ext/openssl/tests/sni_server.pem --- php8.2-8.2.30/ext/openssl/tests/sni_server.pem 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server.pem 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,57 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEArMpFePSNUHNHCiUWfsSPQxHaQTpDfogEISIMuGq5JhEuHWyl +HRe51JWZGi39a/PY9rAClfg/qqPnuxwFDoovhQsq9Kd0JnsXW11CMSqiBimf8vyg +GE/V2DIOiex7Ab8+5zEL7cCrNyXfDk+DuoT7Np3jaSE/u31OMUAzFz4/EL7Zqzlk +IMkHB/GSwLIJB8VbHt4Hunf28bLreTcjO/5QpNkSFtJ1PvbWRv3WheR5ykQQWGKF +9VgwYwS0Lu7YktLF2RGFZhIypUK8jazJiwsBRQ0faSCpAXTSPYh12GDegwAiKqGk +L+fayUdWGnnpYTVOysYL8mCoi9Ar0BPgtHEVvwIDAQABAoIBAGpg7XyWMxpAno/k +XYEWSo0kRJa75CnWW5R6fhJbwjlpglajONQ8czAqGeRARDFeI0lc+3qRJ8FKv7Q2 +f/Z/pNnoEj4liiDWz350X/gdIztgDRVv6rCNFj7QMps/eEuPDo8PZySs5bxCGJ2a +3qLKlE7/za4/xhkMAEPaHppEvFb15dpomqP2Fjqei9afp8tD+xJv9BGtkFIy9acw +94AWQi974kgW7ZzfEf8RqHM0ExKiESCc26knbcBu0tQ892YHggMccUMk/UrVgR5d +vuGOBurlYGLBstSDSKCCe6la4N/FX3FiC3WhVNescnuTZPXcX3zebh7roGjgrTdd +6UJYBIECgYEA09XYihdwW66G9Y09OatzlzBh1Rvzjv2Vl5NmWHHb6vh38H4PcOof +S1pT0JvRzpt8uEs4i+Eda5PyQyp4iGtD+DQ07Dxh2jiixsE3PRFRG2wg2QCgDHnS +6vgV1VOqA/A4on4nhxLZXxhX4YvHaJYlm1bZ+amG+j5XiI/NtHJm9k8CgYEA0NB9 +bAoaZnc06+T8rMaO45boX5SvYsCZbtY3VRl75SrbMal0IKfnXHELVHuei12LmlMs +LuFgG8jGO3+ncxUqMytoGvrmk/cM9tCNbDKVHtFbqz0qt9lkDAwLsBougKnVsNDW +Aae/tz/wYXJct86unfLh0xtvkx5Iz1we4cS1fZECgYA8YR+vfK7R8xUUuIVTAsOX +vHqmO6lYgH87DRCG9S0x9FB7g/LyxEjXOY/aTg+nTDpobUhY1nmESE8tRdXFTI27 +GWZcT3m0sZ/z9u6/wUfVAST7tWnpJHAx+TR/8bDsHnSGHF836O98Y3vpFeZosSNW ++5J1zxRiD5LzocmIPXOLkQKBgEgHApxXx898YwbTj8zRGMysay89DFpV8RboUWHL +To83/y/cMbBp+kZKwAu+MGwGMndjJSRunUY4NRik6c+qh0nrORfFX+++Efy4529g +60scEDC7Apc0J2x4Yze1cED1VD6PaqJbiKffKD2UwyKr6lOVSgwVtKDcm2Tbc9OQ +lMHhAoGBAIPwYVxzWM6I6pr8x2TucpBZZReLytz7uzybMNvbKCrwlETbNNXubnfp +nPuPKzpeRI0y26pIIAbijzFW0MXq+kIu3H7we8TaImsJ1AaQCTYeoLWBVcr6RISk +3d4i7iT35aWCuhPVve0FNIv/u3jrqX2H2C2MXMiLOsw1GFxPvpi4 +-----END RSA PRIVATE KEY----- +-----BEGIN CERTIFICATE----- +MIIFIjCCAwqgAwIBAgICEAMwDQYJKoZIhvcNAQELBQAwVTELMAkGA1UEBhMCR0Ix +EDAOBgNVBAgMB0VuZ2xhbmQxEDAOBgNVBAoMB1BIUC5uZXQxEDAOBgNVBAsMB29w +ZW5zc2wxEDAOBgNVBAMMB3BocC5uZXQwHhcNMTgwMTE0MTgzNjMyWhcNMjYwNDAy +MTgzNjMyWjBGMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UE +CgwHUEhQLm5ldDETMBEGA1UEAwwKdWsucGhwLm5ldDCCASIwDQYJKoZIhvcNAQEB +BQADggEPADCCAQoCggEBAKzKRXj0jVBzRwolFn7Ej0MR2kE6Q36IBCEiDLhquSYR +Lh1spR0XudSVmRot/Wvz2PawApX4P6qj57scBQ6KL4ULKvSndCZ7F1tdQjEqogYp +n/L8oBhP1dgyDonsewG/PucxC+3Aqzcl3w5Pg7qE+zad42khP7t9TjFAMxc+PxC+ +2as5ZCDJBwfxksCyCQfFWx7eB7p39vGy63k3Izv+UKTZEhbSdT721kb91oXkecpE +EFhihfVYMGMEtC7u2JLSxdkRhWYSMqVCvI2syYsLAUUNH2kgqQF00j2Iddhg3oMA +IiqhpC/n2slHVhp56WE1TsrGC/JgqIvQK9AT4LRxFb8CAwEAAaOCAQkwggEFMAkG +A1UdEwQCMAAwEQYJYIZIAYb4QgEBBAQDAgZAMDMGCWCGSAGG+EIBDQQmFiRPcGVu +U1NMIEdlbmVyYXRlZCBTZXJ2ZXIgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFJK58uJe +Lv8WDOR8TTLUcSxO1zCyMGwGA1UdIwRlMGOAFOPK44Eacedv7HbR2Igcbew+4kUa +oUekRTBDMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UECgwH +UEhQLm5ldDEQMA4GA1UEAwwHcGhwLm5ldIICEAAwDgYDVR0PAQH/BAQDAgWgMBMG +A1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4ICAQDHayU795hFnQNj +fuYV21sEmkSjgtp6X4rV9JfoCp8U2gieL4mizoCPx9Q8HYaAf98hPYTofGUaCSd+ +Xlzd8lhLt9GCU+BsCxGtJocrjOQDhyhkioN8iirQRTtJpRVC6a4RCBGpenOD7Z7C +Z32uGXohzFuigP/J8/SXBdHrlpNSa03iEkkisPR46mbGj06lFVOFHJDNKA3CnQwM +3VfqvZt0ksZi/gAOol8dtrAd3k5JBfJ2BtqsPbycEGAhsGrTK/MeqiFcO8QZiXpN +qf0wZzOMFZJ4HqTiHs4TMMQaDK8c4qfR0l1OE224ijcB5NlqMjGAZabMfHgNZcl7 +fYPX+POsOMaqubv98uoC0PCK8NCTyfB4V/el72EEoVfwKYOxm3eYXBEE2ZNyIci6 +YKYhNa9e2k+cFueYMztV06HTGgkcHcSJATP+3ISTRx3tj1BPmc4O4WAMEMx1E0gg +PaVrBVAylGzt8kaMaOQMBImpsALSfutq6+KtQiu0OTGS3yVUGamV4AyRjuwF1/ZA +kZbjmNEGsf9d2rzS89ckds24QUx0zrfJ56p7lRvyVK/pML7iadv8dUH3fKDDDerD +oocLjOjNxFGN9Woz+kfidA8Siu0zsfQ6CLPlaQrVAVQH4iMuCZraqMc3TqAiUKRj +iHKp6FFrRZmY8W8HEKHv98uGofn+3g== +-----END CERTIFICATE----- diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server.phpt php8.2-8.2.31/ext/openssl/tests/sni_server.phpt --- php8.2-8.2.30/ext/openssl/tests/sni_server.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -8,13 +8,25 @@ ?> --FILE-- saveCaCert($caFile); +$certificateGenerator->saveNewCertAsFileWithKey('cs.php.net', $csFile); +$certificateGenerator->saveNewCertAsFileWithKey('uk.php.net', $ukFile); +$certificateGenerator->saveNewCertAsFileWithKey('us.php.net', $usFile); + $serverCode = <<<'CODE' $flags = STREAM_SERVER_BIND|STREAM_SERVER_LISTEN; $ctx = stream_context_create(['ssl' => [ 'SNI_server_certs' => [ - "cs.php.net" => __DIR__ . "/sni_server_cs.pem", - "uk.php.net" => __DIR__ . "/sni_server_uk.pem", - "us.php.net" => __DIR__ . "/sni_server_us.pem" + "cs.php.net" => '%s', + "uk.php.net" => '%s', + "us.php.net" => '%s', ] ]]); @@ -25,11 +37,12 @@ @stream_socket_accept($server, 3); } CODE; +$serverCode = sprintf($serverCode, $csFile, $ukFile, $usFile); $clientCode = <<<'CODE' $flags = STREAM_CLIENT_CONNECT; $ctxArr = [ - 'cafile' => __DIR__ . '/sni_server_ca.pem', + 'cafile' => '%s', 'capture_peer_cert' => true ]; @@ -51,10 +64,18 @@ $cert = stream_context_get_options($ctx)['ssl']['peer_certificate']; var_dump(openssl_x509_parse($cert)['subject']['CN']); CODE; +$clientCode = sprintf($clientCode, $caFile); include 'ServerClientTestCase.inc'; ServerClientTestCase::getInstance()->run($clientCode, $serverCode); ?> +--CLEAN-- + --EXPECTF-- string(%d) "cs.php.net" string(%d) "uk.php.net" diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server_ca.pem php8.2-8.2.31/ext/openssl/tests/sni_server_ca.pem --- php8.2-8.2.30/ext/openssl/tests/sni_server_ca.pem 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server_ca.pem 1970-01-01 00:00:00.000000000 +0000 @@ -1,63 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIFejCCA2KgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwQzELMAkGA1UEBhMCR0Ix -EDAOBgNVBAgMB0VuZ2xhbmQxEDAOBgNVBAoMB1BIUC5uZXQxEDAOBgNVBAMMB3Bo -cC5uZXQwHhcNMTcxMTIyMTQyODIzWhcNMjcxMTIwMTQyODIzWjBVMQswCQYDVQQG -EwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UECgwHUEhQLm5ldDEQMA4GA1UE -CwwHb3BlbnNzbDEQMA4GA1UEAwwHcGhwLm5ldDCCAiIwDQYJKoZIhvcNAQEBBQAD -ggIPADCCAgoCggIBAMeENPus84HfIaypUVybbn5ZZyu1gXSYZAnDYYHhOlHu5kFh -26ohnHnoheapXVRbUtDZgUW5BztA+vDhKkM5G3U4p+YsqcSA/IkF2JQBkJH1jrxs -XMDtXIA4/MzYAVtyySqoMsrbkSCDzvI8imsbZI9O1x02VgaqoaQ9JZvglt1nhTIY -YpTbTKGCzMmrnFGHITeBsVose1ACFIAtqKqvUaA6TxcCtVcrENY3T3N/vEmoHHBg -O7j9+UvYN/WRPNcv0aIOlro83O9xQuJdRCygPmcv/jkqWRKm2Pu0lEkvbMCvOJr/ -Fz/kQg/6EVmIMsR/dgOMIjWjmpeTx24UJaNHUdNCeUbxIyTIyl9ISLWLM0Ipoq3L -95ygH6FSESAOpc8rVE2A5YZCtKlwvogMx3C/tMH1gWwMlfxn0CopP4Jx6lngw3yn -IpP0hnuCauQikBkyhsGu4J0Lbx5BsyDWQLwjiq4s8EcEy0vTdAvhDMRUGvpnjWaa -zBDVVrzHaRFvp6ueh35xf+dYieGL5UTICyrrQX9wwSafHV90a87y6XU+RwA25Dmc -V/kTn8/xkFv/4CbZp+0yArKpwXjqBMsQFbkFjT+Ky9MN+nedoFUMl7slgjpBs6RI -T08Hoa7/kMZGtLCiGcRXlwiIhB00gDz2avUvFTxwik9ssjDqBJGzNbBvZGb/AgMB -AAGjZjBkMB0GA1UdDgQWBBTjyuOBGnHnb+x20diIHG3sPuJFGjAfBgNVHSMEGDAW -gBQ0s99BNsV4Dszph6PArogA8HP4TDASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1Ud -DwEB/wQEAwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAFrQMmCoSe8uJbJLqPGMPW4ZE -0U81WWboc9FrSfezBYkTKuCjMTjQFv8oLp4pnuWZw22mHrOiz9izjNnXcR/rdVbG -Cip/JSHlTzHd3gnxSSd2diXvVrSb4zuLyN6WIficlsj3QdIP4Cdfv1pdHBTsRPbW -vuHpwYqqjxPBjqvoVZyZRyRM1pqpxLCvxOt4S3z4uZXyIH2UI7yWxI6MvdHBZg5m -TwiVi1gEQuRnYRy4sK9qJlBo5jERvzDr46W1e9Yz5sNMPfwWb64Hkkys3GqJt5am -OKxvgF3lvIK90vBjenGDfYEENP+0qdmdpHQkxGM2cl9iPqW8iyRGBVjdbzTIeRgB -u+CEbffSKWCpbm1Zcszv3FHMlsU4Px2pUTdLwEMgBQUPW/ngBMdRgVZE01GI7D1k -AM3hO347eehQTWoyuHgsnB2uaANEeR/XFBGDFmbs5ggAzxxRsH1FxoHXrv3iDIPW -9lKnSow+OZGcPKgaY5Nsregt4jO+pQqhzxlMa2QMfrMoGkEvrKNcDqeEI6KQa1SI -Zbq7sjf2w+VL0oQcse+gtg4q771dKy9V/XcfnPbiBAXfQqGj/v0LmZRn3ZRrkgzl -CaZocqVRJZbqu7/iu/p9pDRMR03vhBWPn7iM8VqzkhKjAlD0rolnQqvOAXyPpd/O -qYuYP+6Ymt/rUWXGVh0= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFbDCCA1SgAwIBAgIJAJcrLHeFQrGEMA0GCSqGSIb3DQEBCwUAMEMxCzAJBgNV -BAYTAkdCMRAwDgYDVQQIDAdFbmdsYW5kMRAwDgYDVQQKDAdQSFAubmV0MRAwDgYD -VQQDDAdwaHAubmV0MB4XDTE3MTExNTE5MTEwMVoXDTM4MDUyOTE5MTEwMVowQzEL -MAkGA1UEBhMCR0IxEDAOBgNVBAgMB0VuZ2xhbmQxEDAOBgNVBAoMB1BIUC5uZXQx -EDAOBgNVBAMMB3BocC5uZXQwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC -AQC4bIXbh+e+OCbLum2FYB8i6ZnOShp1teWNEE/8A4ot20wkPxLeXFSU1Egn+3BG -fxHKrWxV/FOiL7bims/SfwptFkgNZkwE52HVk49zgQevG38smsnIGuBMXMKebLPT -wlsIWRqCmZqEmh1wNcC9+qwoHoYjvJvMYfFvofiSc7qkTFsjoBVe+ho90vjYMznr -Bs9DlD88iXO0kKN0Bsu2igz68JWkUsoNeD6UKSir16SmQZxdFPCM0O0gxmOyz4NZ -w8pJ5XGDJyS82fVp13tYCOBFhK0QBvvzaz/gN6De5arefm6cer9TX0HE+VvGhx4T -2lqydFLfAVKTTNoZHOQk2mFVUm7dlMzLvsgNKdEZH6wAa12eBImCea+CyJNkbGLC -nrN6a93iGqTft75sbDyvzRk/BdnxadkAPlOxgK1qGrOgeS0+7chPMh24MRoKj5bU -lYGdcp7Y9qIW1hZXFfgPJO0yMOug/7J14jybp+YhymBIBTZYi1zbGqGNXdLPyp77 -9KTfyJE9KkbGegBvwqJmZTW8QoUDllopDjr1zaIqHWJqfAK7vGivu0iLVJHBRbRs -w9c48RCjfIh7AkvFKsdIDt9SMdZOdm9D8SXosYPM1zMFQsFFRPh/nKyl9QnhWbwd -Vs1tIFDrb10Z2sn0pF/V0F0gubR5rvYs+3h/dLciLVFobQIDAQABo2MwYTAdBgNV -HQ4EFgQUNLPfQTbFeA7M6YejwK6IAPBz+EwwHwYDVR0jBBgwFoAUNLPfQTbFeA7M -6YejwK6IAPBz+EwwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwDQYJ -KoZIhvcNAQELBQADggIBAIkctDRCNcNVs2qP/O3zZsVZ1cqlqYNjcHIVHqNZRvVb -bPtInZ/i/6BbwA5QM/giKpl2aMwetUnezjHVD+7/m24Mfs1FWyPD3joCMIANj7hR -MNbmX1LQBMt/bD3E5trq9S9rZ++/ny4gn/z2jH3x+lzDMBDiam/wXbvSmyIUPUX6 -V8FFpkTBNERpurUvX1NEFLuiilWKrI7/u1qS11PGBcX3pNQNfhKNMtuFz74hAE7C -RE8756CGu2bZzydYCarUXSNTXqNm5ly2J0UN6Al4myFwj/6XnLnDhXDAI8CaqDMD -MwmxUzJvzuphNS085ZIntrSgPJESGozevEsf9bGD8GyoBQN/cSqOJCFfnJqxtKHb -wNa2F78SXYsiWkRb5EzoyCeon+0tygG6gLBouVY8ouCerExkH9qzRLLzFInxmCm2 -ill7c8Xmml4H2BxJE33dz/Qh7PM3eF2A2VriioLDj4+HOiWq/1BjdW6/Xiwx5iP2 -nC6Cex+lBt6HkP9WIiJbGxVeamF5jxNWWvLoUkrjFhpukjb5BPR9zFt7mAty9J/T -iQt26yylP4ucmL9KB6lv4ISW4Ri8mhMcYh6nF3tIYWZMCSQKqkyvymhKdLMZa20A -IME2oxnfZcmsfMpM6BYsN4XDfGBeYctqqt2AFRNLkI4wFkFFdPTMcTi1q0iRH2Xk ------END CERTIFICATE----- diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server_cs.pem php8.2-8.2.31/ext/openssl/tests/sni_server_cs.pem --- php8.2-8.2.30/ext/openssl/tests/sni_server_cs.pem 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server_cs.pem 1970-01-01 00:00:00.000000000 +0000 @@ -1,57 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpQIBAAKCAQEAvy5NhzktzEdsHTbGB6vqYANms5rn1zXFmTJrGlWCwoIsNmTf -ahvZkrC1cCXTZ7fbPB8XQbpAtz2ZSU7OcwBW9B8okYUPo9zi/ptwcrgsQsN0hrcD -8MBRUccevwime5fLvg8E9RJ/68y9y3BnRcVWYO2sAK9juTfidNjETU3Bb05oXv8D -SD/6onXQu4uXDgsQ3cRXeld9UB0xazmQXyyiIqXc/cpTAnaEVYzn28aj7NlUbzNq -511UXMXY44x9EcXWpPVZ7heNcJNzY5DCNzmtXKrt9yiMpWQcPXEzsESVxAMqib9u -TFOlvVX17LIPxBG656PjTD9J1h6kBbMCUxzs7wIDAQABAoIBAQC85lBeY0X4ST3v -I7bJz7kWQ2YP4uhfAdeLhoDDFWjNLffniwYhfwEc6xNri0R2f/jUT9gX7qORKwEx -qPdeNCC2t67LElGg1FlJv2Z9Q7MgCKYzkdQH5s6y4e9kTHTLO/JpiceZKz1QTQ3f -XOH9032E6nIAf0wmr6xHTgOwajrN8VI5BuPEMVmEwIw3AtYeqVuPCNKyGR4HUVkC -2bAydnGngbRJRnNzmKcWJancxpHDGBSFqPyuXMFC7Jgo3ZmyCbGp99vuXVk/sW9x -5aj94M9nRE0guk05ivH2/JZao2uLYkIgjFWlhNxKdWgWRk8DEuN4djC8mKS9YH1q -crYRToMhAoGBAOspUTtKP54mpZmyhxuDqj02JaJRzNTskPHsiF1UhtXuw7uT+ryV -ekUFLNXoFmn9mbx1WVaUvGH4qjilvQOxz7u++lz0ApqJEfyM3jc/cC40Y5zcuGSu -Etbg+SyDoytlgMCIydJyrS7NNALSo5p5oG6XY2f8yd/DCAmo8LzypaHRAoGBANAf -R1SlBMc/bOsi6GrJxcBVSCFMiKYiO5woL5aUKa9yM+UQuQ/6xbQ7Q+sOlt0FH3xo -AJ2L60qTdjyXVtjOdtXs5ZC4l+C6AfnCx6yLr+fNc4SOYXEfqS4LZylgwKd9KyVB -asspIW9Idbgebmi6vPyt9LDkIp0h1VuFGjkvQJK/AoGBAI4pbS0dprXyARyYW6sb -fpgAmuG099IkrT9DUfCx/81myTclr2fAKal+BmvOIXaz0/OlMXvw8K19iVIzh7+r -B70lJ+93p/dKM/BsLI5TsHqOO0YB/QsIXOVAHgJ2FfdPJnW+e9vYba+kZ/Po6PSi -4ITaykJ8BIJcQgis89QWEGFxAoGBAJhQO+jzuDKF9ZWEf6ofrw0anOZZ16wWY5/e -PS2rk3JmVxpuibHrKqPDt+ogTELHDAsFJmYmz3VNxHuFmrajK49Wh4/JuMVr/CQo -6+8YcA1qa/94IFIlBLDBAafjujsZvOjQHnM+z8xcsGKmStF00Pjv6qNG4xoyd646 -FD4DmfOLAoGAWXehpopZKXE9gRAni881ucK6WqxPPBoofbozi09D0MmfarIVaSkv -jNVVHBfLWd7IEXTjiipPBeUqq6Jc3pscN1Vp4rrl8jTmVTdazEv0LuzpdUFqmNo2 -M+xw17uz9D9Q32/aW1Lar0PdIaL/wGEDEyzEBFwrGppcENLilPz8gzU= ------END RSA PRIVATE KEY----- ------BEGIN CERTIFICATE----- -MIIFIjCCAwqgAwIBAgICEAIwDQYJKoZIhvcNAQELBQAwVTELMAkGA1UEBhMCR0Ix -EDAOBgNVBAgMB0VuZ2xhbmQxEDAOBgNVBAoMB1BIUC5uZXQxEDAOBgNVBAsMB29w -ZW5zc2wxEDAOBgNVBAMMB3BocC5uZXQwHhcNMTgwMTE0MTgzNjEyWhcNMjYwNDAy -MTgzNjEyWjBGMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UE -CgwHUEhQLm5ldDETMBEGA1UEAwwKY3MucGhwLm5ldDCCASIwDQYJKoZIhvcNAQEB -BQADggEPADCCAQoCggEBAL8uTYc5LcxHbB02xger6mADZrOa59c1xZkyaxpVgsKC -LDZk32ob2ZKwtXAl02e32zwfF0G6QLc9mUlOznMAVvQfKJGFD6Pc4v6bcHK4LELD -dIa3A/DAUVHHHr8IpnuXy74PBPUSf+vMvctwZ0XFVmDtrACvY7k34nTYxE1NwW9O -aF7/A0g/+qJ10LuLlw4LEN3EV3pXfVAdMWs5kF8soiKl3P3KUwJ2hFWM59vGo+zZ -VG8zauddVFzF2OOMfRHF1qT1We4XjXCTc2OQwjc5rVyq7fcojKVkHD1xM7BElcQD -Kom/bkxTpb1V9eyyD8QRuuej40w/SdYepAWzAlMc7O8CAwEAAaOCAQkwggEFMAkG -A1UdEwQCMAAwEQYJYIZIAYb4QgEBBAQDAgZAMDMGCWCGSAGG+EIBDQQmFiRPcGVu -U1NMIEdlbmVyYXRlZCBTZXJ2ZXIgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFHPfd8dK -Lz1R0Ck4WV1B9AWXd5DSMGwGA1UdIwRlMGOAFOPK44Eacedv7HbR2Igcbew+4kUa -oUekRTBDMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UECgwH -UEhQLm5ldDEQMA4GA1UEAwwHcGhwLm5ldIICEAAwDgYDVR0PAQH/BAQDAgWgMBMG -A1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4ICAQB6WSIHEyDXLZxH -hZjqSNQOA7Wc9Z2FCAiD29xYkGTL8WuPVGGP1mu4B92ytj+PMWwqSReDa7eTGLE7 -O7ozw9l+c+gNmHFNikSsGjlV2E8CToQOFMny+jAQYMSXf8UbTp9xDfgG02t/71hv -SLWqdeHMLcR0xi0nBQH0vDOkwUbuWYqFa3jejHieGhykHM6CkIk6lqnyOEO+ooIF -ZsLprrg1ss/mXCPI6niP0hze55ERKdxI7Rk8sZ4pVkf2SUWqZrUS0aJ+Ymmwi6Xd -2V7izq5N30PkJS8MtqII4FAjRBIkwPh0sy8PmW/DzkYU+lYQnDfYLKDFKcj8xJK/ -o8oZUBsQltrSj0KlM9QuqxCTCBCy1nXZ9WHOhq+jdLiTc1Oi60uEHcUMrLK8aYc4 -HqIvZS6C2iwMI0d1OP3VxmAbMQ9yqRi+FbLYavJ3H40jrU9SYqdxa0BrTaz8MJNE -6AEwgQDPChczSghvHME+Fs4mtGCY3TesbNZKVahQRjaFIhMZIZ4RP4CRc0bJOBG+ -8Me4+KHNsD2ki5b03wAN6C1P2QrMzI+gH9fXLZYp761ciDAsX6YIzrhHHYLxYpJH -BkQKKs8dCQWE5IzgVrdlvC3Z1/l9om66wHqqx7nKnPfYs/Sfnwe9MpCD6xJrXiTm -WS7NM6fbQpO9APNr7o0ZOjbbWFzlNw== ------END CERTIFICATE----- diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server_cs_cert.pem php8.2-8.2.31/ext/openssl/tests/sni_server_cs_cert.pem --- php8.2-8.2.30/ext/openssl/tests/sni_server_cs_cert.pem 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server_cs_cert.pem 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIFIjCCAwqgAwIBAgICEAIwDQYJKoZIhvcNAQELBQAwVTELMAkGA1UEBhMCR0Ix -EDAOBgNVBAgMB0VuZ2xhbmQxEDAOBgNVBAoMB1BIUC5uZXQxEDAOBgNVBAsMB29w -ZW5zc2wxEDAOBgNVBAMMB3BocC5uZXQwHhcNMTgwMTE0MTgzNjEyWhcNMjYwNDAy -MTgzNjEyWjBGMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UE -CgwHUEhQLm5ldDETMBEGA1UEAwwKY3MucGhwLm5ldDCCASIwDQYJKoZIhvcNAQEB -BQADggEPADCCAQoCggEBAL8uTYc5LcxHbB02xger6mADZrOa59c1xZkyaxpVgsKC -LDZk32ob2ZKwtXAl02e32zwfF0G6QLc9mUlOznMAVvQfKJGFD6Pc4v6bcHK4LELD -dIa3A/DAUVHHHr8IpnuXy74PBPUSf+vMvctwZ0XFVmDtrACvY7k34nTYxE1NwW9O -aF7/A0g/+qJ10LuLlw4LEN3EV3pXfVAdMWs5kF8soiKl3P3KUwJ2hFWM59vGo+zZ -VG8zauddVFzF2OOMfRHF1qT1We4XjXCTc2OQwjc5rVyq7fcojKVkHD1xM7BElcQD -Kom/bkxTpb1V9eyyD8QRuuej40w/SdYepAWzAlMc7O8CAwEAAaOCAQkwggEFMAkG -A1UdEwQCMAAwEQYJYIZIAYb4QgEBBAQDAgZAMDMGCWCGSAGG+EIBDQQmFiRPcGVu -U1NMIEdlbmVyYXRlZCBTZXJ2ZXIgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFHPfd8dK -Lz1R0Ck4WV1B9AWXd5DSMGwGA1UdIwRlMGOAFOPK44Eacedv7HbR2Igcbew+4kUa -oUekRTBDMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UECgwH -UEhQLm5ldDEQMA4GA1UEAwwHcGhwLm5ldIICEAAwDgYDVR0PAQH/BAQDAgWgMBMG -A1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4ICAQB6WSIHEyDXLZxH -hZjqSNQOA7Wc9Z2FCAiD29xYkGTL8WuPVGGP1mu4B92ytj+PMWwqSReDa7eTGLE7 -O7ozw9l+c+gNmHFNikSsGjlV2E8CToQOFMny+jAQYMSXf8UbTp9xDfgG02t/71hv -SLWqdeHMLcR0xi0nBQH0vDOkwUbuWYqFa3jejHieGhykHM6CkIk6lqnyOEO+ooIF -ZsLprrg1ss/mXCPI6niP0hze55ERKdxI7Rk8sZ4pVkf2SUWqZrUS0aJ+Ymmwi6Xd -2V7izq5N30PkJS8MtqII4FAjRBIkwPh0sy8PmW/DzkYU+lYQnDfYLKDFKcj8xJK/ -o8oZUBsQltrSj0KlM9QuqxCTCBCy1nXZ9WHOhq+jdLiTc1Oi60uEHcUMrLK8aYc4 -HqIvZS6C2iwMI0d1OP3VxmAbMQ9yqRi+FbLYavJ3H40jrU9SYqdxa0BrTaz8MJNE -6AEwgQDPChczSghvHME+Fs4mtGCY3TesbNZKVahQRjaFIhMZIZ4RP4CRc0bJOBG+ -8Me4+KHNsD2ki5b03wAN6C1P2QrMzI+gH9fXLZYp761ciDAsX6YIzrhHHYLxYpJH -BkQKKs8dCQWE5IzgVrdlvC3Z1/l9om66wHqqx7nKnPfYs/Sfnwe9MpCD6xJrXiTm -WS7NM6fbQpO9APNr7o0ZOjbbWFzlNw== ------END CERTIFICATE----- diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server_cs_key.pem php8.2-8.2.31/ext/openssl/tests/sni_server_cs_key.pem --- php8.2-8.2.30/ext/openssl/tests/sni_server_cs_key.pem 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server_cs_key.pem 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpQIBAAKCAQEAvy5NhzktzEdsHTbGB6vqYANms5rn1zXFmTJrGlWCwoIsNmTf -ahvZkrC1cCXTZ7fbPB8XQbpAtz2ZSU7OcwBW9B8okYUPo9zi/ptwcrgsQsN0hrcD -8MBRUccevwime5fLvg8E9RJ/68y9y3BnRcVWYO2sAK9juTfidNjETU3Bb05oXv8D -SD/6onXQu4uXDgsQ3cRXeld9UB0xazmQXyyiIqXc/cpTAnaEVYzn28aj7NlUbzNq -511UXMXY44x9EcXWpPVZ7heNcJNzY5DCNzmtXKrt9yiMpWQcPXEzsESVxAMqib9u -TFOlvVX17LIPxBG656PjTD9J1h6kBbMCUxzs7wIDAQABAoIBAQC85lBeY0X4ST3v -I7bJz7kWQ2YP4uhfAdeLhoDDFWjNLffniwYhfwEc6xNri0R2f/jUT9gX7qORKwEx -qPdeNCC2t67LElGg1FlJv2Z9Q7MgCKYzkdQH5s6y4e9kTHTLO/JpiceZKz1QTQ3f -XOH9032E6nIAf0wmr6xHTgOwajrN8VI5BuPEMVmEwIw3AtYeqVuPCNKyGR4HUVkC -2bAydnGngbRJRnNzmKcWJancxpHDGBSFqPyuXMFC7Jgo3ZmyCbGp99vuXVk/sW9x -5aj94M9nRE0guk05ivH2/JZao2uLYkIgjFWlhNxKdWgWRk8DEuN4djC8mKS9YH1q -crYRToMhAoGBAOspUTtKP54mpZmyhxuDqj02JaJRzNTskPHsiF1UhtXuw7uT+ryV -ekUFLNXoFmn9mbx1WVaUvGH4qjilvQOxz7u++lz0ApqJEfyM3jc/cC40Y5zcuGSu -Etbg+SyDoytlgMCIydJyrS7NNALSo5p5oG6XY2f8yd/DCAmo8LzypaHRAoGBANAf -R1SlBMc/bOsi6GrJxcBVSCFMiKYiO5woL5aUKa9yM+UQuQ/6xbQ7Q+sOlt0FH3xo -AJ2L60qTdjyXVtjOdtXs5ZC4l+C6AfnCx6yLr+fNc4SOYXEfqS4LZylgwKd9KyVB -asspIW9Idbgebmi6vPyt9LDkIp0h1VuFGjkvQJK/AoGBAI4pbS0dprXyARyYW6sb -fpgAmuG099IkrT9DUfCx/81myTclr2fAKal+BmvOIXaz0/OlMXvw8K19iVIzh7+r -B70lJ+93p/dKM/BsLI5TsHqOO0YB/QsIXOVAHgJ2FfdPJnW+e9vYba+kZ/Po6PSi -4ITaykJ8BIJcQgis89QWEGFxAoGBAJhQO+jzuDKF9ZWEf6ofrw0anOZZ16wWY5/e -PS2rk3JmVxpuibHrKqPDt+ogTELHDAsFJmYmz3VNxHuFmrajK49Wh4/JuMVr/CQo -6+8YcA1qa/94IFIlBLDBAafjujsZvOjQHnM+z8xcsGKmStF00Pjv6qNG4xoyd646 -FD4DmfOLAoGAWXehpopZKXE9gRAni881ucK6WqxPPBoofbozi09D0MmfarIVaSkv -jNVVHBfLWd7IEXTjiipPBeUqq6Jc3pscN1Vp4rrl8jTmVTdazEv0LuzpdUFqmNo2 -M+xw17uz9D9Q32/aW1Lar0PdIaL/wGEDEyzEBFwrGppcENLilPz8gzU= ------END RSA PRIVATE KEY----- diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server_key_cert.phpt php8.2-8.2.31/ext/openssl/tests/sni_server_key_cert.phpt --- php8.2-8.2.30/ext/openssl/tests/sni_server_key_cert.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server_key_cert.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -8,21 +8,36 @@ ?> --FILE-- saveCaCert($caFile); +$certificateGenerator->saveNewCertAndKey('cs.php.net', $csCertFile, $csKeyFile); +$certificateGenerator->saveNewCertAndKey('uk.php.net', $ukCertFile, $ukKeyFile); +$certificateGenerator->saveNewCertAndKey('us.php.net', $usCertFile, $usKeyFile); + $serverCode = <<<'CODE' $flags = STREAM_SERVER_BIND|STREAM_SERVER_LISTEN; $ctx = stream_context_create(['ssl' => [ 'SNI_server_certs' => [ "cs.php.net" => [ - 'local_cert' => __DIR__ . "/sni_server_cs_cert.pem", - 'local_pk' => __DIR__ . "/sni_server_cs_key.pem" + 'local_cert' => '%s', + 'local_pk' => '%s', ], "uk.php.net" => [ - 'local_cert' => __DIR__ . "/sni_server_uk_cert.pem", - 'local_pk' => __DIR__ . "/sni_server_uk_key.pem" + 'local_cert' => '%s', + 'local_pk' => '%s', ], "us.php.net" => [ - 'local_cert' => __DIR__ . "/sni_server_us_cert.pem", - 'local_pk' => __DIR__ . "/sni_server_us_key.pem" + 'local_cert' => '%s', + 'local_pk' => '%s', ], ] ]]); @@ -34,11 +49,16 @@ @stream_socket_accept($server, 3); } CODE; +$serverCode = sprintf($serverCode, + $csCertFile, $csKeyFile, + $ukCertFile, $ukKeyFile, + $usCertFile, $usKeyFile +); $clientCode = <<<'CODE' $flags = STREAM_CLIENT_CONNECT; $ctxArr = [ - 'cafile' => __DIR__ . '/sni_server_ca.pem', + 'cafile' => '%s', 'capture_peer_cert' => true ]; @@ -60,10 +80,21 @@ $cert = stream_context_get_options($ctx)['ssl']['peer_certificate']; var_dump(openssl_x509_parse($cert)['subject']['CN']); CODE; +$clientCode = sprintf($clientCode, $caFile); include 'ServerClientTestCase.inc'; ServerClientTestCase::getInstance()->run($clientCode, $serverCode); ?> +--CLEAN-- + --EXPECTF-- string(%d) "cs.php.net" string(%d) "uk.php.net" diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server_uk.pem php8.2-8.2.31/ext/openssl/tests/sni_server_uk.pem --- php8.2-8.2.30/ext/openssl/tests/sni_server_uk.pem 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server_uk.pem 1970-01-01 00:00:00.000000000 +0000 @@ -1,57 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEowIBAAKCAQEArMpFePSNUHNHCiUWfsSPQxHaQTpDfogEISIMuGq5JhEuHWyl -HRe51JWZGi39a/PY9rAClfg/qqPnuxwFDoovhQsq9Kd0JnsXW11CMSqiBimf8vyg -GE/V2DIOiex7Ab8+5zEL7cCrNyXfDk+DuoT7Np3jaSE/u31OMUAzFz4/EL7Zqzlk -IMkHB/GSwLIJB8VbHt4Hunf28bLreTcjO/5QpNkSFtJ1PvbWRv3WheR5ykQQWGKF -9VgwYwS0Lu7YktLF2RGFZhIypUK8jazJiwsBRQ0faSCpAXTSPYh12GDegwAiKqGk -L+fayUdWGnnpYTVOysYL8mCoi9Ar0BPgtHEVvwIDAQABAoIBAGpg7XyWMxpAno/k -XYEWSo0kRJa75CnWW5R6fhJbwjlpglajONQ8czAqGeRARDFeI0lc+3qRJ8FKv7Q2 -f/Z/pNnoEj4liiDWz350X/gdIztgDRVv6rCNFj7QMps/eEuPDo8PZySs5bxCGJ2a -3qLKlE7/za4/xhkMAEPaHppEvFb15dpomqP2Fjqei9afp8tD+xJv9BGtkFIy9acw -94AWQi974kgW7ZzfEf8RqHM0ExKiESCc26knbcBu0tQ892YHggMccUMk/UrVgR5d -vuGOBurlYGLBstSDSKCCe6la4N/FX3FiC3WhVNescnuTZPXcX3zebh7roGjgrTdd -6UJYBIECgYEA09XYihdwW66G9Y09OatzlzBh1Rvzjv2Vl5NmWHHb6vh38H4PcOof -S1pT0JvRzpt8uEs4i+Eda5PyQyp4iGtD+DQ07Dxh2jiixsE3PRFRG2wg2QCgDHnS -6vgV1VOqA/A4on4nhxLZXxhX4YvHaJYlm1bZ+amG+j5XiI/NtHJm9k8CgYEA0NB9 -bAoaZnc06+T8rMaO45boX5SvYsCZbtY3VRl75SrbMal0IKfnXHELVHuei12LmlMs -LuFgG8jGO3+ncxUqMytoGvrmk/cM9tCNbDKVHtFbqz0qt9lkDAwLsBougKnVsNDW -Aae/tz/wYXJct86unfLh0xtvkx5Iz1we4cS1fZECgYA8YR+vfK7R8xUUuIVTAsOX -vHqmO6lYgH87DRCG9S0x9FB7g/LyxEjXOY/aTg+nTDpobUhY1nmESE8tRdXFTI27 -GWZcT3m0sZ/z9u6/wUfVAST7tWnpJHAx+TR/8bDsHnSGHF836O98Y3vpFeZosSNW -+5J1zxRiD5LzocmIPXOLkQKBgEgHApxXx898YwbTj8zRGMysay89DFpV8RboUWHL -To83/y/cMbBp+kZKwAu+MGwGMndjJSRunUY4NRik6c+qh0nrORfFX+++Efy4529g -60scEDC7Apc0J2x4Yze1cED1VD6PaqJbiKffKD2UwyKr6lOVSgwVtKDcm2Tbc9OQ -lMHhAoGBAIPwYVxzWM6I6pr8x2TucpBZZReLytz7uzybMNvbKCrwlETbNNXubnfp -nPuPKzpeRI0y26pIIAbijzFW0MXq+kIu3H7we8TaImsJ1AaQCTYeoLWBVcr6RISk -3d4i7iT35aWCuhPVve0FNIv/u3jrqX2H2C2MXMiLOsw1GFxPvpi4 ------END RSA PRIVATE KEY----- ------BEGIN CERTIFICATE----- -MIIFIjCCAwqgAwIBAgICEAMwDQYJKoZIhvcNAQELBQAwVTELMAkGA1UEBhMCR0Ix -EDAOBgNVBAgMB0VuZ2xhbmQxEDAOBgNVBAoMB1BIUC5uZXQxEDAOBgNVBAsMB29w -ZW5zc2wxEDAOBgNVBAMMB3BocC5uZXQwHhcNMTgwMTE0MTgzNjMyWhcNMjYwNDAy -MTgzNjMyWjBGMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UE -CgwHUEhQLm5ldDETMBEGA1UEAwwKdWsucGhwLm5ldDCCASIwDQYJKoZIhvcNAQEB -BQADggEPADCCAQoCggEBAKzKRXj0jVBzRwolFn7Ej0MR2kE6Q36IBCEiDLhquSYR -Lh1spR0XudSVmRot/Wvz2PawApX4P6qj57scBQ6KL4ULKvSndCZ7F1tdQjEqogYp -n/L8oBhP1dgyDonsewG/PucxC+3Aqzcl3w5Pg7qE+zad42khP7t9TjFAMxc+PxC+ -2as5ZCDJBwfxksCyCQfFWx7eB7p39vGy63k3Izv+UKTZEhbSdT721kb91oXkecpE -EFhihfVYMGMEtC7u2JLSxdkRhWYSMqVCvI2syYsLAUUNH2kgqQF00j2Iddhg3oMA -IiqhpC/n2slHVhp56WE1TsrGC/JgqIvQK9AT4LRxFb8CAwEAAaOCAQkwggEFMAkG -A1UdEwQCMAAwEQYJYIZIAYb4QgEBBAQDAgZAMDMGCWCGSAGG+EIBDQQmFiRPcGVu -U1NMIEdlbmVyYXRlZCBTZXJ2ZXIgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFJK58uJe -Lv8WDOR8TTLUcSxO1zCyMGwGA1UdIwRlMGOAFOPK44Eacedv7HbR2Igcbew+4kUa -oUekRTBDMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UECgwH -UEhQLm5ldDEQMA4GA1UEAwwHcGhwLm5ldIICEAAwDgYDVR0PAQH/BAQDAgWgMBMG -A1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4ICAQDHayU795hFnQNj -fuYV21sEmkSjgtp6X4rV9JfoCp8U2gieL4mizoCPx9Q8HYaAf98hPYTofGUaCSd+ -Xlzd8lhLt9GCU+BsCxGtJocrjOQDhyhkioN8iirQRTtJpRVC6a4RCBGpenOD7Z7C -Z32uGXohzFuigP/J8/SXBdHrlpNSa03iEkkisPR46mbGj06lFVOFHJDNKA3CnQwM -3VfqvZt0ksZi/gAOol8dtrAd3k5JBfJ2BtqsPbycEGAhsGrTK/MeqiFcO8QZiXpN -qf0wZzOMFZJ4HqTiHs4TMMQaDK8c4qfR0l1OE224ijcB5NlqMjGAZabMfHgNZcl7 -fYPX+POsOMaqubv98uoC0PCK8NCTyfB4V/el72EEoVfwKYOxm3eYXBEE2ZNyIci6 -YKYhNa9e2k+cFueYMztV06HTGgkcHcSJATP+3ISTRx3tj1BPmc4O4WAMEMx1E0gg -PaVrBVAylGzt8kaMaOQMBImpsALSfutq6+KtQiu0OTGS3yVUGamV4AyRjuwF1/ZA -kZbjmNEGsf9d2rzS89ckds24QUx0zrfJ56p7lRvyVK/pML7iadv8dUH3fKDDDerD -oocLjOjNxFGN9Woz+kfidA8Siu0zsfQ6CLPlaQrVAVQH4iMuCZraqMc3TqAiUKRj -iHKp6FFrRZmY8W8HEKHv98uGofn+3g== ------END CERTIFICATE----- diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server_uk_cert.pem php8.2-8.2.31/ext/openssl/tests/sni_server_uk_cert.pem --- php8.2-8.2.30/ext/openssl/tests/sni_server_uk_cert.pem 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server_uk_cert.pem 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIFIjCCAwqgAwIBAgICEAMwDQYJKoZIhvcNAQELBQAwVTELMAkGA1UEBhMCR0Ix -EDAOBgNVBAgMB0VuZ2xhbmQxEDAOBgNVBAoMB1BIUC5uZXQxEDAOBgNVBAsMB29w -ZW5zc2wxEDAOBgNVBAMMB3BocC5uZXQwHhcNMTgwMTE0MTgzNjMyWhcNMjYwNDAy -MTgzNjMyWjBGMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UE -CgwHUEhQLm5ldDETMBEGA1UEAwwKdWsucGhwLm5ldDCCASIwDQYJKoZIhvcNAQEB -BQADggEPADCCAQoCggEBAKzKRXj0jVBzRwolFn7Ej0MR2kE6Q36IBCEiDLhquSYR -Lh1spR0XudSVmRot/Wvz2PawApX4P6qj57scBQ6KL4ULKvSndCZ7F1tdQjEqogYp -n/L8oBhP1dgyDonsewG/PucxC+3Aqzcl3w5Pg7qE+zad42khP7t9TjFAMxc+PxC+ -2as5ZCDJBwfxksCyCQfFWx7eB7p39vGy63k3Izv+UKTZEhbSdT721kb91oXkecpE -EFhihfVYMGMEtC7u2JLSxdkRhWYSMqVCvI2syYsLAUUNH2kgqQF00j2Iddhg3oMA -IiqhpC/n2slHVhp56WE1TsrGC/JgqIvQK9AT4LRxFb8CAwEAAaOCAQkwggEFMAkG -A1UdEwQCMAAwEQYJYIZIAYb4QgEBBAQDAgZAMDMGCWCGSAGG+EIBDQQmFiRPcGVu -U1NMIEdlbmVyYXRlZCBTZXJ2ZXIgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFJK58uJe -Lv8WDOR8TTLUcSxO1zCyMGwGA1UdIwRlMGOAFOPK44Eacedv7HbR2Igcbew+4kUa -oUekRTBDMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UECgwH -UEhQLm5ldDEQMA4GA1UEAwwHcGhwLm5ldIICEAAwDgYDVR0PAQH/BAQDAgWgMBMG -A1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4ICAQDHayU795hFnQNj -fuYV21sEmkSjgtp6X4rV9JfoCp8U2gieL4mizoCPx9Q8HYaAf98hPYTofGUaCSd+ -Xlzd8lhLt9GCU+BsCxGtJocrjOQDhyhkioN8iirQRTtJpRVC6a4RCBGpenOD7Z7C -Z32uGXohzFuigP/J8/SXBdHrlpNSa03iEkkisPR46mbGj06lFVOFHJDNKA3CnQwM -3VfqvZt0ksZi/gAOol8dtrAd3k5JBfJ2BtqsPbycEGAhsGrTK/MeqiFcO8QZiXpN -qf0wZzOMFZJ4HqTiHs4TMMQaDK8c4qfR0l1OE224ijcB5NlqMjGAZabMfHgNZcl7 -fYPX+POsOMaqubv98uoC0PCK8NCTyfB4V/el72EEoVfwKYOxm3eYXBEE2ZNyIci6 -YKYhNa9e2k+cFueYMztV06HTGgkcHcSJATP+3ISTRx3tj1BPmc4O4WAMEMx1E0gg -PaVrBVAylGzt8kaMaOQMBImpsALSfutq6+KtQiu0OTGS3yVUGamV4AyRjuwF1/ZA -kZbjmNEGsf9d2rzS89ckds24QUx0zrfJ56p7lRvyVK/pML7iadv8dUH3fKDDDerD -oocLjOjNxFGN9Woz+kfidA8Siu0zsfQ6CLPlaQrVAVQH4iMuCZraqMc3TqAiUKRj -iHKp6FFrRZmY8W8HEKHv98uGofn+3g== ------END CERTIFICATE----- diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server_uk_key.pem php8.2-8.2.31/ext/openssl/tests/sni_server_uk_key.pem --- php8.2-8.2.30/ext/openssl/tests/sni_server_uk_key.pem 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server_uk_key.pem 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEowIBAAKCAQEArMpFePSNUHNHCiUWfsSPQxHaQTpDfogEISIMuGq5JhEuHWyl -HRe51JWZGi39a/PY9rAClfg/qqPnuxwFDoovhQsq9Kd0JnsXW11CMSqiBimf8vyg -GE/V2DIOiex7Ab8+5zEL7cCrNyXfDk+DuoT7Np3jaSE/u31OMUAzFz4/EL7Zqzlk -IMkHB/GSwLIJB8VbHt4Hunf28bLreTcjO/5QpNkSFtJ1PvbWRv3WheR5ykQQWGKF -9VgwYwS0Lu7YktLF2RGFZhIypUK8jazJiwsBRQ0faSCpAXTSPYh12GDegwAiKqGk -L+fayUdWGnnpYTVOysYL8mCoi9Ar0BPgtHEVvwIDAQABAoIBAGpg7XyWMxpAno/k -XYEWSo0kRJa75CnWW5R6fhJbwjlpglajONQ8czAqGeRARDFeI0lc+3qRJ8FKv7Q2 -f/Z/pNnoEj4liiDWz350X/gdIztgDRVv6rCNFj7QMps/eEuPDo8PZySs5bxCGJ2a -3qLKlE7/za4/xhkMAEPaHppEvFb15dpomqP2Fjqei9afp8tD+xJv9BGtkFIy9acw -94AWQi974kgW7ZzfEf8RqHM0ExKiESCc26knbcBu0tQ892YHggMccUMk/UrVgR5d -vuGOBurlYGLBstSDSKCCe6la4N/FX3FiC3WhVNescnuTZPXcX3zebh7roGjgrTdd -6UJYBIECgYEA09XYihdwW66G9Y09OatzlzBh1Rvzjv2Vl5NmWHHb6vh38H4PcOof -S1pT0JvRzpt8uEs4i+Eda5PyQyp4iGtD+DQ07Dxh2jiixsE3PRFRG2wg2QCgDHnS -6vgV1VOqA/A4on4nhxLZXxhX4YvHaJYlm1bZ+amG+j5XiI/NtHJm9k8CgYEA0NB9 -bAoaZnc06+T8rMaO45boX5SvYsCZbtY3VRl75SrbMal0IKfnXHELVHuei12LmlMs -LuFgG8jGO3+ncxUqMytoGvrmk/cM9tCNbDKVHtFbqz0qt9lkDAwLsBougKnVsNDW -Aae/tz/wYXJct86unfLh0xtvkx5Iz1we4cS1fZECgYA8YR+vfK7R8xUUuIVTAsOX -vHqmO6lYgH87DRCG9S0x9FB7g/LyxEjXOY/aTg+nTDpobUhY1nmESE8tRdXFTI27 -GWZcT3m0sZ/z9u6/wUfVAST7tWnpJHAx+TR/8bDsHnSGHF836O98Y3vpFeZosSNW -+5J1zxRiD5LzocmIPXOLkQKBgEgHApxXx898YwbTj8zRGMysay89DFpV8RboUWHL -To83/y/cMbBp+kZKwAu+MGwGMndjJSRunUY4NRik6c+qh0nrORfFX+++Efy4529g -60scEDC7Apc0J2x4Yze1cED1VD6PaqJbiKffKD2UwyKr6lOVSgwVtKDcm2Tbc9OQ -lMHhAoGBAIPwYVxzWM6I6pr8x2TucpBZZReLytz7uzybMNvbKCrwlETbNNXubnfp -nPuPKzpeRI0y26pIIAbijzFW0MXq+kIu3H7we8TaImsJ1AaQCTYeoLWBVcr6RISk -3d4i7iT35aWCuhPVve0FNIv/u3jrqX2H2C2MXMiLOsw1GFxPvpi4 ------END RSA PRIVATE KEY----- diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server_us.pem php8.2-8.2.31/ext/openssl/tests/sni_server_us.pem --- php8.2-8.2.30/ext/openssl/tests/sni_server_us.pem 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server_us.pem 1970-01-01 00:00:00.000000000 +0000 @@ -1,57 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpQIBAAKCAQEA1QkC3tiNYDY+ZxMmPbagYUbMpzuXo9mVBvYh86bYZaeB7bts -QCBK+6VD4D2LjR3RszpzmOzhJXjm8j0t+GeRS3OMIM75/BKAnixXicRSIb8zdIPz -JP992vvMq8p46/XftAfBhAMOaCqcD85zpyX4PhfC9733nOyN4yqx58O4UhVTKih6 -W9/ldp3uwSYAW+HyoINnHls/bFO8vv60K5VIhkxK30LHnC5PvByGfuHOgrscEThs -jW0ESqO0+9l88KhGdmLgzvbBlGxNziCMfn0LcFH6p2ITc3foD4LSzGEFtJ92OZi3 -buCOfbFsN7vWHTsEi89fRcCnWGtMwLUx0TCluQIDAQABAoIBAQCnsUQ1Lrl6trhA -Yu6DPbLZX+XQ7jPbonaQ2Ea5iOhmfIjmHdaEU+cyV1EqvseO+Z4MO0KraiuAV79T -h50cIEpa3kW7vbFCHz5nQ/hUVdlg/yT93rASu5rSOctOnz64Xv8Ms948kDtS+9eF -Cbo4JMdX+VRbt4mmWP8HhqAsFACPexEoWxJcIxwFcI24GTGzySjemNjQzbmcVhzM -a4k6n8DolCL1cRS54C5Aaf5g4+IFDgyydcgZXp1lnX3MnqivSNkejnPnY55NcmrH -X3ZWPlAi9GHOJE33uy8bGWnip7Tn4iTt6tJvjz/yP82TGACDg1B8XsKrqsuQLsoU -cNBVGcQBAoGBAPteCgNmuNOpo4SRA1UVRw1WgnE8YtnNA6vYyVcTLSpqabq33UaD -03L9CQsbHtj88U+E8OH24Iqj3U9x7QJfH8DVmWuBrlwez80JsKGnLdViHydjKcAz -H2Cbv+SiWeaWXkFCkN4Jf7k3q0Ew4SG2LOq5PVUy/NB4bilbJD2ExKpZAoGBANj2 -Hpwo35IQ4XfSSsGaCdn+8ajMcNUMMGZ6YkZqmVO4kogqobyrPL/2KE9ol/hlacw6 -U/6Digox5/wqruYfqyM8lqGOq2/0Xf7c4XfiOTS9Na4JN3OGzlyqPvcn2zdqhYFY -iHPu2RqpA+LhCHW9Zs8C1Bp/KAEPdRP6OabqVaphAoGACLrHVj7nBFLL3vq6RuYq -RYhPl2cld7LrAbjRpTiBRQvVCCsCgERrv36SJdSXSanfJ4fSZcaRHb97HBs0w/RR -wfypC1bBm2lmhhRkEfkgWlzCADgtZwNff5dpHqOUw7FNLK8HIO7rhJ8uT2FHMEiH -Xs94FdFjfknwaXdE1u4ZdmECgYEAgxfbkQHFbO2UPqErGGXp0/WOsS6ucpyF1jXW -kbOxZ3vb1jjkNyrEbzzeSHTrdmRYk9UekWeLjfNvt9dWjKfP8V+XqJCbF+9wqCFw -fs6LQEmfWMQq5DwtDqKznwVPGOHdPzVuZZaJSemb9oeAZBwINccAv+3bDyD23hZQ -pYFsN6ECgYEA33QYDNG/spki4D8rlxyxZ+1MdB/efnrGBhO8FsJpG5+AtmYhWgD9 -sl29+3aiRkmDznoy36z+hoeZePILEAKMcbHyXOymixOHPuaZJ95hbvq6sqd6WMAe -w5tHnxlfEuu11zatolk6WiAmTmG3sZpN5Tqloq0Ye4dvlhVKNV3Bn3E= ------END RSA PRIVATE KEY----- ------BEGIN CERTIFICATE----- -MIIFIjCCAwqgAwIBAgICEAQwDQYJKoZIhvcNAQELBQAwVTELMAkGA1UEBhMCR0Ix -EDAOBgNVBAgMB0VuZ2xhbmQxEDAOBgNVBAoMB1BIUC5uZXQxEDAOBgNVBAsMB29w -ZW5zc2wxEDAOBgNVBAMMB3BocC5uZXQwHhcNMTgwMTE0MTgzNjQ0WhcNMjYwNDAy -MTgzNjQ0WjBGMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UE -CgwHUEhQLm5ldDETMBEGA1UEAwwKdXMucGhwLm5ldDCCASIwDQYJKoZIhvcNAQEB -BQADggEPADCCAQoCggEBANUJAt7YjWA2PmcTJj22oGFGzKc7l6PZlQb2IfOm2GWn -ge27bEAgSvulQ+A9i40d0bM6c5js4SV45vI9LfhnkUtzjCDO+fwSgJ4sV4nEUiG/ -M3SD8yT/fdr7zKvKeOv137QHwYQDDmgqnA/Oc6cl+D4Xwve995zsjeMqsefDuFIV -Uyooelvf5Xad7sEmAFvh8qCDZx5bP2xTvL7+tCuVSIZMSt9Cx5wuT7wchn7hzoK7 -HBE4bI1tBEqjtPvZfPCoRnZi4M72wZRsTc4gjH59C3BR+qdiE3N36A+C0sxhBbSf -djmYt27gjn2xbDe71h07BIvPX0XAp1hrTMC1MdEwpbkCAwEAAaOCAQkwggEFMAkG -A1UdEwQCMAAwEQYJYIZIAYb4QgEBBAQDAgZAMDMGCWCGSAGG+EIBDQQmFiRPcGVu -U1NMIEdlbmVyYXRlZCBTZXJ2ZXIgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFOXnUeNs -grKQb+EvG36DXjjDDmsFMGwGA1UdIwRlMGOAFOPK44Eacedv7HbR2Igcbew+4kUa -oUekRTBDMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UECgwH -UEhQLm5ldDEQMA4GA1UEAwwHcGhwLm5ldIICEAAwDgYDVR0PAQH/BAQDAgWgMBMG -A1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4ICAQBDLwuLbx75ACSU -5cF2L/D17JEnhlna62MgKNdpNLJSpaofK2Lk2BqsmnQf5JdkrXWMUN/DsmXZc9pq -25XmprfABUP9Cx18KPVqLQ43Z9o+R9xI1Ospt5mrpxGp6l2BHSs/4G69nuPFpcIJ -iabnLYdUk2Z+64lPe4EMBrZH+pj4xn3JA59BACJYNYn0nLaw45DIAyzyLJ0vVSwc -0JtjsztXQov4UqdWXxLRFfe2nEGoK8ZkTJ8ELcCYu6sNSBjw9Ech78uXN1BQOBTK -lhAgN3FKqOp3hqf0umqf35gDvmWwLB/eptUYZ96gBYT0tbPA0P+YsW+iZmamxXma -Odgg8iRcPxKl9bVPt57NLaDy/RQhOxTGXQs1Q2jp7UhzqoZDClwVSDxd6DEppAFA -OZAY+Rsrm7VoCwVQ/1KbcJHmJ/79tArvaWJk3KHLGMpdZq4KwrC3hM8/QxYtyX/6 -cfnXvShBYCdfTGgNlj3t/mNAgp1ZB3s9ClGqRBR/P0Db+ryv5DuxYM6nzEB3Od0y -kT5tHbXDQY+1HCExjOMi7Al0cmC2r3+oxDA4UjGv+npgcfeoxQhXmm/SQRiPdKlb -vT0D594sLoB23jqA9bMehpxEyI7eGjfFUmXwMeu0tJhipvpJI3ogJoM+SCFTyLkc -12cPiz/sR/ALhvhUJXTeUH8wxPjzbA== ------END CERTIFICATE----- diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server_us_cert.pem php8.2-8.2.31/ext/openssl/tests/sni_server_us_cert.pem --- php8.2-8.2.30/ext/openssl/tests/sni_server_us_cert.pem 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server_us_cert.pem 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIFIjCCAwqgAwIBAgICEAQwDQYJKoZIhvcNAQELBQAwVTELMAkGA1UEBhMCR0Ix -EDAOBgNVBAgMB0VuZ2xhbmQxEDAOBgNVBAoMB1BIUC5uZXQxEDAOBgNVBAsMB29w -ZW5zc2wxEDAOBgNVBAMMB3BocC5uZXQwHhcNMTgwMTE0MTgzNjQ0WhcNMjYwNDAy -MTgzNjQ0WjBGMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UE -CgwHUEhQLm5ldDETMBEGA1UEAwwKdXMucGhwLm5ldDCCASIwDQYJKoZIhvcNAQEB -BQADggEPADCCAQoCggEBANUJAt7YjWA2PmcTJj22oGFGzKc7l6PZlQb2IfOm2GWn -ge27bEAgSvulQ+A9i40d0bM6c5js4SV45vI9LfhnkUtzjCDO+fwSgJ4sV4nEUiG/ -M3SD8yT/fdr7zKvKeOv137QHwYQDDmgqnA/Oc6cl+D4Xwve995zsjeMqsefDuFIV -Uyooelvf5Xad7sEmAFvh8qCDZx5bP2xTvL7+tCuVSIZMSt9Cx5wuT7wchn7hzoK7 -HBE4bI1tBEqjtPvZfPCoRnZi4M72wZRsTc4gjH59C3BR+qdiE3N36A+C0sxhBbSf -djmYt27gjn2xbDe71h07BIvPX0XAp1hrTMC1MdEwpbkCAwEAAaOCAQkwggEFMAkG -A1UdEwQCMAAwEQYJYIZIAYb4QgEBBAQDAgZAMDMGCWCGSAGG+EIBDQQmFiRPcGVu -U1NMIEdlbmVyYXRlZCBTZXJ2ZXIgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFOXnUeNs -grKQb+EvG36DXjjDDmsFMGwGA1UdIwRlMGOAFOPK44Eacedv7HbR2Igcbew+4kUa -oUekRTBDMQswCQYDVQQGEwJHQjEQMA4GA1UECAwHRW5nbGFuZDEQMA4GA1UECgwH -UEhQLm5ldDEQMA4GA1UEAwwHcGhwLm5ldIICEAAwDgYDVR0PAQH/BAQDAgWgMBMG -A1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4ICAQBDLwuLbx75ACSU -5cF2L/D17JEnhlna62MgKNdpNLJSpaofK2Lk2BqsmnQf5JdkrXWMUN/DsmXZc9pq -25XmprfABUP9Cx18KPVqLQ43Z9o+R9xI1Ospt5mrpxGp6l2BHSs/4G69nuPFpcIJ -iabnLYdUk2Z+64lPe4EMBrZH+pj4xn3JA59BACJYNYn0nLaw45DIAyzyLJ0vVSwc -0JtjsztXQov4UqdWXxLRFfe2nEGoK8ZkTJ8ELcCYu6sNSBjw9Ech78uXN1BQOBTK -lhAgN3FKqOp3hqf0umqf35gDvmWwLB/eptUYZ96gBYT0tbPA0P+YsW+iZmamxXma -Odgg8iRcPxKl9bVPt57NLaDy/RQhOxTGXQs1Q2jp7UhzqoZDClwVSDxd6DEppAFA -OZAY+Rsrm7VoCwVQ/1KbcJHmJ/79tArvaWJk3KHLGMpdZq4KwrC3hM8/QxYtyX/6 -cfnXvShBYCdfTGgNlj3t/mNAgp1ZB3s9ClGqRBR/P0Db+ryv5DuxYM6nzEB3Od0y -kT5tHbXDQY+1HCExjOMi7Al0cmC2r3+oxDA4UjGv+npgcfeoxQhXmm/SQRiPdKlb -vT0D594sLoB23jqA9bMehpxEyI7eGjfFUmXwMeu0tJhipvpJI3ogJoM+SCFTyLkc -12cPiz/sR/ALhvhUJXTeUH8wxPjzbA== ------END CERTIFICATE----- diff -Nru php8.2-8.2.30/ext/openssl/tests/sni_server_us_key.pem php8.2-8.2.31/ext/openssl/tests/sni_server_us_key.pem --- php8.2-8.2.30/ext/openssl/tests/sni_server_us_key.pem 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/tests/sni_server_us_key.pem 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpQIBAAKCAQEA1QkC3tiNYDY+ZxMmPbagYUbMpzuXo9mVBvYh86bYZaeB7bts -QCBK+6VD4D2LjR3RszpzmOzhJXjm8j0t+GeRS3OMIM75/BKAnixXicRSIb8zdIPz -JP992vvMq8p46/XftAfBhAMOaCqcD85zpyX4PhfC9733nOyN4yqx58O4UhVTKih6 -W9/ldp3uwSYAW+HyoINnHls/bFO8vv60K5VIhkxK30LHnC5PvByGfuHOgrscEThs -jW0ESqO0+9l88KhGdmLgzvbBlGxNziCMfn0LcFH6p2ITc3foD4LSzGEFtJ92OZi3 -buCOfbFsN7vWHTsEi89fRcCnWGtMwLUx0TCluQIDAQABAoIBAQCnsUQ1Lrl6trhA -Yu6DPbLZX+XQ7jPbonaQ2Ea5iOhmfIjmHdaEU+cyV1EqvseO+Z4MO0KraiuAV79T -h50cIEpa3kW7vbFCHz5nQ/hUVdlg/yT93rASu5rSOctOnz64Xv8Ms948kDtS+9eF -Cbo4JMdX+VRbt4mmWP8HhqAsFACPexEoWxJcIxwFcI24GTGzySjemNjQzbmcVhzM -a4k6n8DolCL1cRS54C5Aaf5g4+IFDgyydcgZXp1lnX3MnqivSNkejnPnY55NcmrH -X3ZWPlAi9GHOJE33uy8bGWnip7Tn4iTt6tJvjz/yP82TGACDg1B8XsKrqsuQLsoU -cNBVGcQBAoGBAPteCgNmuNOpo4SRA1UVRw1WgnE8YtnNA6vYyVcTLSpqabq33UaD -03L9CQsbHtj88U+E8OH24Iqj3U9x7QJfH8DVmWuBrlwez80JsKGnLdViHydjKcAz -H2Cbv+SiWeaWXkFCkN4Jf7k3q0Ew4SG2LOq5PVUy/NB4bilbJD2ExKpZAoGBANj2 -Hpwo35IQ4XfSSsGaCdn+8ajMcNUMMGZ6YkZqmVO4kogqobyrPL/2KE9ol/hlacw6 -U/6Digox5/wqruYfqyM8lqGOq2/0Xf7c4XfiOTS9Na4JN3OGzlyqPvcn2zdqhYFY -iHPu2RqpA+LhCHW9Zs8C1Bp/KAEPdRP6OabqVaphAoGACLrHVj7nBFLL3vq6RuYq -RYhPl2cld7LrAbjRpTiBRQvVCCsCgERrv36SJdSXSanfJ4fSZcaRHb97HBs0w/RR -wfypC1bBm2lmhhRkEfkgWlzCADgtZwNff5dpHqOUw7FNLK8HIO7rhJ8uT2FHMEiH -Xs94FdFjfknwaXdE1u4ZdmECgYEAgxfbkQHFbO2UPqErGGXp0/WOsS6ucpyF1jXW -kbOxZ3vb1jjkNyrEbzzeSHTrdmRYk9UekWeLjfNvt9dWjKfP8V+XqJCbF+9wqCFw -fs6LQEmfWMQq5DwtDqKznwVPGOHdPzVuZZaJSemb9oeAZBwINccAv+3bDyD23hZQ -pYFsN6ECgYEA33QYDNG/spki4D8rlxyxZ+1MdB/efnrGBhO8FsJpG5+AtmYhWgD9 -sl29+3aiRkmDznoy36z+hoeZePILEAKMcbHyXOymixOHPuaZJ95hbvq6sqd6WMAe -w5tHnxlfEuu11zatolk6WiAmTmG3sZpN5Tqloq0Ye4dvlhVKNV3Bn3E= ------END RSA PRIVATE KEY----- diff -Nru php8.2-8.2.30/ext/openssl/xp_ssl.c php8.2-8.2.31/ext/openssl/xp_ssl.c --- php8.2-8.2.30/ext/openssl/xp_ssl.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/openssl/xp_ssl.c 2026-05-05 13:59:08.000000000 +0000 @@ -497,12 +497,12 @@ } OPENSSL_free(cert_name); } else if (san->type == GEN_IPADD) { - if (san->d.iPAddress->length == 4) { + if (ASN1_STRING_length(san->d.iPAddress) == 4) { sprintf(ipbuffer, "%d.%d.%d.%d", - san->d.iPAddress->data[0], - san->d.iPAddress->data[1], - san->d.iPAddress->data[2], - san->d.iPAddress->data[3] + ASN1_STRING_get0_data(san->d.iPAddress)[0], + ASN1_STRING_get0_data(san->d.iPAddress)[1], + ASN1_STRING_get0_data(san->d.iPAddress)[2], + ASN1_STRING_get0_data(san->d.iPAddress)[3] ); if (strcasecmp(subject_name, (const char*)ipbuffer) == 0) { sk_GENERAL_NAME_pop_free(alt_names, GENERAL_NAME_free); @@ -511,9 +511,9 @@ } } #ifdef HAVE_IPV6_SAN - else if (san->d.ip->length == 16 && subject_name_is_ipv6) { + else if (ASN1_STRING_length(san->d.ip) == 16 && subject_name_is_ipv6) { ipbuffer[0] = 0; - EXPAND_IPV6_ADDRESS(ipbuffer, san->d.iPAddress->data); + EXPAND_IPV6_ADDRESS(ipbuffer, ASN1_STRING_get0_data(san->d.iPAddress)); if (strcasecmp((const char*)subject_name_ipv6_expanded, (const char*)ipbuffer) == 0) { sk_GENERAL_NAME_pop_free(alt_names, GENERAL_NAME_free); diff -Nru php8.2-8.2.30/ext/pcre/php_pcre.c php8.2-8.2.31/ext/pcre/php_pcre.c --- php8.2-8.2.30/ext/pcre/php_pcre.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/pcre/php_pcre.c 2026-05-05 13:59:08.000000000 +0000 @@ -634,7 +634,7 @@ /* Parse through the leading whitespace, and display a warning if we get to the end without encountering a delimiter. */ - while (isspace((int)*(unsigned char *)p)) p++; + while (isspace((unsigned char)*p)) p++; if (p >= end_p) { if (key != regex) { zend_string_release_ex(key, 0); @@ -647,7 +647,7 @@ /* Get the delimiter and display a warning if it is alphanumeric or a backslash. */ delimiter = *p++; - if (isalnum((int)*(unsigned char *)&delimiter) || delimiter == '\\' || delimiter == '\0') { + if (isalnum((unsigned char)delimiter) || delimiter == '\\' || delimiter == '\0') { if (key != regex) { zend_string_release_ex(key, 0); } diff -Nru php8.2-8.2.30/ext/pdo/pdo.c php8.2-8.2.31/ext/pdo/pdo.c --- php8.2-8.2.30/ext/pdo/pdo.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/pdo/pdo.c 2026-05-05 13:59:08.000000000 +0000 @@ -229,7 +229,7 @@ } } - while (i < data_source_len && isspace(data_source[i])) { + while (i < data_source_len && isspace((unsigned char)data_source[i])) { i++; } diff -Nru php8.2-8.2.30/ext/pdo/pdo_sql_parser.c php8.2-8.2.31/ext/pdo/pdo_sql_parser.c --- php8.2-8.2.30/ext/pdo/pdo_sql_parser.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/pdo/pdo_sql_parser.c 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* Generated by re2c 2.0.3 */ +/* Generated by re2c 4.0 */ /* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | @@ -53,303 +53,303 @@ if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2); yych = *YYCURSOR; switch (yych) { - case 0x00: goto yy2; - case '"': goto yy6; - case '\'': goto yy8; - case '(': - case ')': - case '*': - case '+': - case ',': - case '.': goto yy9; - case '-': goto yy10; - case '/': goto yy11; - case ':': goto yy12; - case '?': goto yy13; - default: goto yy3; + case 0x00: goto yy1; + case '"': goto yy4; + case '\'': goto yy6; + case '(': + case ')': + case '*': + case '+': + case ',': + case '.': goto yy7; + case '-': goto yy8; + case '/': goto yy9; + case ':': goto yy10; + case '?': goto yy11; + default: goto yy2; } -yy2: +yy1: YYCURSOR = YYMARKER; - goto yy7; -yy3: + goto yy5; +yy2: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; switch (yych) { - case 0x00: - case '"': - case '\'': - case '(': - case ')': - case '*': - case '+': - case ',': - case '-': - case '.': - case '/': - case ':': - case '?': goto yy5; - default: goto yy3; + case 0x00: + case '"': + case '\'': + case '(': + case ')': + case '*': + case '+': + case ',': + case '-': + case '.': + case '/': + case ':': + case '?': goto yy3; + default: goto yy2; } -yy5: +yy3: { RET(PDO_PARSER_TEXT); } -yy6: +yy4: yych = *(YYMARKER = ++YYCURSOR); - if (yych >= 0x01) goto yy16; -yy7: + if (yych >= 0x01) goto yy14; +yy5: { SKIP_ONE(PDO_PARSER_TEXT); } -yy8: +yy6: yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x00) goto yy7; - goto yy21; -yy9: + if (yych <= 0x00) goto yy5; + goto yy18; +yy7: ++YYCURSOR; - goto yy7; -yy10: + goto yy5; +yy8: yych = *++YYCURSOR; switch (yych) { - case '-': goto yy25; - default: goto yy7; + case '-': goto yy21; + default: goto yy5; } -yy11: +yy9: yych = *++YYCURSOR; switch (yych) { - case '*': goto yy28; - default: goto yy7; + case '*': goto yy23; + default: goto yy5; } -yy12: +yy10: yych = *++YYCURSOR; switch (yych) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'A': - case 'B': - case 'C': - case 'D': - case 'E': - case 'F': - case 'G': - case 'H': - case 'I': - case 'J': - case 'K': - case 'L': - case 'M': - case 'N': - case 'O': - case 'P': - case 'Q': - case 'R': - case 'S': - case 'T': - case 'U': - case 'V': - case 'W': - case 'X': - case 'Y': - case 'Z': - case '_': - case 'a': - case 'b': - case 'c': - case 'd': - case 'e': - case 'f': - case 'g': - case 'h': - case 'i': - case 'j': - case 'k': - case 'l': - case 'm': - case 'n': - case 'o': - case 'p': - case 'q': - case 'r': - case 's': - case 't': - case 'u': - case 'v': - case 'w': - case 'x': - case 'y': - case 'z': goto yy30; - case ':': goto yy33; - default: goto yy7; + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + case 'A': + case 'B': + case 'C': + case 'D': + case 'E': + case 'F': + case 'G': + case 'H': + case 'I': + case 'J': + case 'K': + case 'L': + case 'M': + case 'N': + case 'O': + case 'P': + case 'Q': + case 'R': + case 'S': + case 'T': + case 'U': + case 'V': + case 'W': + case 'X': + case 'Y': + case 'Z': + case '_': + case 'a': + case 'b': + case 'c': + case 'd': + case 'e': + case 'f': + case 'g': + case 'h': + case 'i': + case 'j': + case 'k': + case 'l': + case 'm': + case 'n': + case 'o': + case 'p': + case 'q': + case 'r': + case 's': + case 't': + case 'u': + case 'v': + case 'w': + case 'x': + case 'y': + case 'z': goto yy24; + case ':': goto yy26; + default: goto yy5; } -yy13: +yy11: yych = *++YYCURSOR; switch (yych) { - case '?': goto yy36; - default: goto yy14; + case '?': goto yy28; + default: goto yy12; } -yy14: +yy12: { RET(PDO_PARSER_BIND_POS); } -yy15: +yy13: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; -yy16: +yy14: switch (yych) { - case 0x00: goto yy2; - case '"': goto yy17; - case '\\': goto yy19; - default: goto yy15; + case 0x00: goto yy1; + case '"': goto yy15; + case '\\': goto yy16; + default: goto yy13; } -yy17: +yy15: ++YYCURSOR; { RET(PDO_PARSER_TEXT); } -yy19: +yy16: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yych <= 0x00) goto yy2; - goto yy15; -yy20: + if (yych <= 0x00) goto yy1; + goto yy13; +yy17: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; -yy21: +yy18: switch (yych) { - case 0x00: goto yy2; - case '\'': goto yy22; - case '\\': goto yy24; - default: goto yy20; + case 0x00: goto yy1; + case '\'': goto yy19; + case '\\': goto yy20; + default: goto yy17; } -yy22: +yy19: ++YYCURSOR; { RET(PDO_PARSER_TEXT); } -yy24: +yy20: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yych <= 0x00) goto yy2; - goto yy20; -yy25: + if (yych <= 0x00) goto yy1; + goto yy17; +yy21: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; switch (yych) { - case '\n': - case '\r': goto yy27; - default: goto yy25; + case '\n': + case '\r': goto yy22; + default: goto yy21; } -yy27: +yy22: { RET(PDO_PARSER_TEXT); } -yy28: +yy23: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; switch (yych) { - case '*': goto yy38; - default: goto yy28; + case '*': goto yy29; + default: goto yy23; } -yy30: +yy24: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; switch (yych) { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case 'A': - case 'B': - case 'C': - case 'D': - case 'E': - case 'F': - case 'G': - case 'H': - case 'I': - case 'J': - case 'K': - case 'L': - case 'M': - case 'N': - case 'O': - case 'P': - case 'Q': - case 'R': - case 'S': - case 'T': - case 'U': - case 'V': - case 'W': - case 'X': - case 'Y': - case 'Z': - case '_': - case 'a': - case 'b': - case 'c': - case 'd': - case 'e': - case 'f': - case 'g': - case 'h': - case 'i': - case 'j': - case 'k': - case 'l': - case 'm': - case 'n': - case 'o': - case 'p': - case 'q': - case 'r': - case 's': - case 't': - case 'u': - case 'v': - case 'w': - case 'x': - case 'y': - case 'z': goto yy30; - default: goto yy32; + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + case 'A': + case 'B': + case 'C': + case 'D': + case 'E': + case 'F': + case 'G': + case 'H': + case 'I': + case 'J': + case 'K': + case 'L': + case 'M': + case 'N': + case 'O': + case 'P': + case 'Q': + case 'R': + case 'S': + case 'T': + case 'U': + case 'V': + case 'W': + case 'X': + case 'Y': + case 'Z': + case '_': + case 'a': + case 'b': + case 'c': + case 'd': + case 'e': + case 'f': + case 'g': + case 'h': + case 'i': + case 'j': + case 'k': + case 'l': + case 'm': + case 'n': + case 'o': + case 'p': + case 'q': + case 'r': + case 's': + case 't': + case 'u': + case 'v': + case 'w': + case 'x': + case 'y': + case 'z': goto yy24; + default: goto yy25; } -yy32: +yy25: { RET(PDO_PARSER_BIND); } -yy33: +yy26: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; switch (yych) { - case ':': goto yy33; - default: goto yy35; + case ':': goto yy26; + default: goto yy27; } -yy35: +yy27: { RET(PDO_PARSER_TEXT); } -yy36: +yy28: ++YYCURSOR; { RET(PDO_PARSER_ESCAPED_QUESTION); } -yy38: +yy29: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; switch (yych) { - case '*': goto yy38; - case '/': goto yy40; - default: goto yy28; + case '*': goto yy29; + case '/': goto yy30; + default: goto yy23; } -yy40: +yy30: ++YYCURSOR; - goto yy27; + goto yy22; } } @@ -392,7 +392,7 @@ if (t == PDO_PARSER_BIND) { ptrdiff_t len = s.cur - s.tok; - if ((ZSTR_VAL(inquery) < (s.cur - len)) && isalnum(*(s.cur - len - 1))) { + if ((ZSTR_VAL(inquery) < (s.cur - len)) && isalnum((unsigned char)s.cur[-len - 1])) { continue; } query_type |= PDO_PLACEHOLDER_NAMED; diff -Nru php8.2-8.2.30/ext/pdo/pdo_sql_parser.re php8.2-8.2.31/ext/pdo/pdo_sql_parser.re --- php8.2-8.2.30/ext/pdo/pdo_sql_parser.re 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/pdo/pdo_sql_parser.re 2026-05-05 13:59:08.000000000 +0000 @@ -105,7 +105,7 @@ if (t == PDO_PARSER_BIND) { ptrdiff_t len = s.cur - s.tok; - if ((ZSTR_VAL(inquery) < (s.cur - len)) && isalnum(*(s.cur - len - 1))) { + if ((ZSTR_VAL(inquery) < (s.cur - len)) && isalnum((unsigned char)s.cur[-len - 1])) { continue; } query_type |= PDO_PLACEHOLDER_NAMED; diff -Nru php8.2-8.2.30/ext/pdo/pdo_stmt.c php8.2-8.2.31/ext/pdo/pdo_stmt.c --- php8.2-8.2.30/ext/pdo/pdo_stmt.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/pdo/pdo_stmt.c 2026-05-05 13:59:08.000000000 +0000 @@ -148,7 +148,7 @@ stmt->columns[col].name = zend_string_separate(orig_name, 0); char *s = ZSTR_VAL(stmt->columns[col].name); while (*s != '\0') { - *s = toupper(*s); + *s = toupper((unsigned char)*s); s++; } break; diff -Nru php8.2-8.2.30/ext/pdo_dblib/tests/GHSA-5hqh-c84r-qjcv.phpt php8.2-8.2.31/ext/pdo_dblib/tests/GHSA-5hqh-c84r-qjcv.phpt --- php8.2-8.2.30/ext/pdo_dblib/tests/GHSA-5hqh-c84r-qjcv.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/pdo_dblib/tests/GHSA-5hqh-c84r-qjcv.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -4,6 +4,7 @@ pdo_dblib --SKIPIF-- 252) { return 0; } - strncpy(ident, i, l); + memcpy(ident, i, l); ident[l] = '\0'; if (!strcasecmp(ident, "EXECUTE")) { @@ -349,7 +349,7 @@ if (l > 252) { return 0; } - strncpy(ident2, i2, l); + memcpy(ident2, i2, l); ident2[l] = '\0'; execBlock = !strcasecmp(ident2, "BLOCK"); passAsIs = 0; @@ -365,11 +365,15 @@ if (passAsIs) { - strcpy(sql_out, ZSTR_VAL(sql)); + memcpy(sql_out, ZSTR_VAL(sql), ZSTR_LEN(sql)); + sql_out[ZSTR_LEN(sql)] = '\0'; + *sql_out_len = ZSTR_LEN(sql); return 1; } - strncat(sql_out, start, p - start); + char *sql_out_p = sql_out; + memcpy(sql_out_p, start, p - start); + sql_out_p += p - start; while (p < end) { @@ -377,10 +381,12 @@ tok = getToken(&p, end); switch (tok) { - case ttParamMark: - tok = getToken(&p, end); + case ttParamMark: { + const char* p_peek = p; + tok = getToken(&p_peek, end); if (tok == ttIdent /*|| tok == ttString*/) { + p = p_peek; ++pindex; l = p - start; /* check the length of the identifier */ @@ -389,7 +395,7 @@ if (l > 253) { return 0; } - strncpy(pname, start, l); + memcpy(pname, start, l); pname[l] = '\0'; if (named_params) { @@ -398,7 +404,7 @@ zend_hash_str_update(named_params, pname, l, &tmp); } - strcat(sql_out, "?"); + *sql_out_p++ = '?'; } else { @@ -408,10 +414,11 @@ return 0; } ++pindex; - strncat(sql_out, start, p - start); + memcpy(sql_out_p, start, p - start); + sql_out_p += p - start; } break; - + } case ttIdent: if (execBlock) { @@ -423,11 +430,14 @@ if (l > 252) { return 0; } - strncpy(ident, start, l); + memcpy(ident, start, l); ident[l] = '\0'; if (!strcasecmp(ident, "AS")) { - strncat(sql_out, start, end - start); + memcpy(sql_out_p, start, end - start); + sql_out_p += end - start; + *sql_out_p = '\0'; + *sql_out_len = sql_out_p - sql_out; return 1; } } @@ -438,7 +448,8 @@ case ttComment: case ttString: case ttOther: - strncat(sql_out, start, p - start); + memcpy(sql_out_p, start, p - start); + sql_out_p += p - start; break; case ttBrokenComment: @@ -456,6 +467,8 @@ break; } } + *sql_out_p = '\0'; + *sql_out_len = sql_out_p - sql_out; return 1; } @@ -665,7 +678,7 @@ static zend_string* firebird_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquoted, enum pdo_param_type paramtype) { size_t qcount = 0; - char const *co, *l, *r; + char const *co, *l; char *c; size_t quotedlen; zend_string *quoted_str; @@ -674,9 +687,15 @@ return zend_string_init("''", 2, 0); } + const char * const end = ZSTR_VAL(unquoted) + ZSTR_LEN(unquoted); + /* Firebird only requires single quotes to be doubled if string lengths are used */ /* count the number of ' characters */ - for (co = ZSTR_VAL(unquoted); (co = strchr(co,'\'')); qcount++, co++); + for (co = ZSTR_VAL(unquoted); co < end; co++) { + if (*co == '\'') { + qcount++; + } + } if (UNEXPECTED(ZSTR_LEN(unquoted) + 2 > ZSTR_MAX_LEN - qcount)) { return NULL; @@ -688,15 +707,14 @@ *c++ = '\''; /* foreach (chunk that ends in a quote) */ - for (l = ZSTR_VAL(unquoted); (r = strchr(l,'\'')); l = r+1) { - strncpy(c, l, r-l+1); - c += (r-l+1); - /* add the second quote */ - *c++ = '\''; + for (l = ZSTR_VAL(unquoted); l < end; l++) { + *c++ = *l; + if (*l == '\'') { + /* add the second quote */ + *c++ = '\''; + } } - /* copy the remainder */ - strncpy(c, l, quotedlen-(c-ZSTR_VAL(quoted_str))-1); ZSTR_VAL(quoted_str)[quotedlen-1] = '\''; ZSTR_VAL(quoted_str)[quotedlen] = '\0'; @@ -789,6 +807,7 @@ { pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; char *new_sql; + size_t new_sql_len; /* Firebird allows SQL statements up to 64k, so bail if it doesn't fit */ if (ZSTR_LEN(sql) > 65536) { @@ -816,14 +835,14 @@ we need to replace :foo by ?, and store the name we just replaced */ new_sql = emalloc(ZSTR_LEN(sql)+1); new_sql[0] = '\0'; - if (!preprocess(sql, new_sql, named_params)) { + if (!preprocess(sql, new_sql, &new_sql_len, named_params)) { strcpy(dbh->error_code, "07000"); efree(new_sql); return 0; } /* prepare the statement */ - if (isc_dsql_prepare(H->isc_status, &H->tr, s, 0, new_sql, H->sql_dialect, out_sqlda)) { + if (isc_dsql_prepare(H->isc_status, &H->tr, s, new_sql_len, new_sql, H->sql_dialect, out_sqlda)) { RECORD_ERROR(dbh); efree(new_sql); return 0; diff -Nru php8.2-8.2.30/ext/pdo_firebird/tests/ghsa-w476-322c-wpvm.phpt php8.2-8.2.31/ext/pdo_firebird/tests/ghsa-w476-322c-wpvm.phpt --- php8.2-8.2.30/ext/pdo_firebird/tests/ghsa-w476-322c-wpvm.phpt 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/ext/pdo_firebird/tests/ghsa-w476-322c-wpvm.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,44 @@ +--TEST-- +GHSA-w476-322c-wpvm: SQL injection in pdo_firebird via NUL bytes in quoted strings +--EXTENSIONS-- +pdo_firebird +--SKIPIF-- + +--XLEAK-- +A bug in firebird causes a memory leak when calling `isc_attach_database()`. +See https://github.com/FirebirdSQL/firebird/issues/7849 +--FILE-- +exec('CREATE TABLE ghsa_w476_322c_wpvm (name VARCHAR(255))'); + +$param = $dbh->quote("\0"); +$param2 = $dbh->quote('or 1=1--'); +var_export($param); +echo("\n"); + +echo "prepare: "; +$stmt = $dbh->prepare("SELECT * FROM ghsa_w476_322c_wpvm WHERE name = {$param} AND name = {$param2}"); +$stmt->execute(); +echo json_encode($stmt->fetchAll(PDO::FETCH_ASSOC)) . "\n"; + +echo "query: "; +$stmt = $dbh->query("SELECT * FROM ghsa_w476_322c_wpvm WHERE name = {$param} AND name = {$param2}"); +echo json_encode($stmt->fetchAll(PDO::FETCH_ASSOC)) . "\n"; + +echo "exec: "; +$affectedRows = $dbh->exec("UPDATE ghsa_w476_322c_wpvm SET name = 'updated' WHERE name = {$param} AND name = {$param2}"); +echo $affectedRows . "\n"; +?> +--CLEAN-- +exec("DROP TABLE ghsa_w476_322c_wpvm"); +?> +--EXPECT-- +'\'' . "\0" . '\'' +prepare: [] +query: [] +exec: 0 diff -Nru php8.2-8.2.30/ext/pdo_sqlite/tests/bug81740.phpt php8.2-8.2.31/ext/pdo_sqlite/tests/bug81740.phpt --- php8.2-8.2.30/ext/pdo_sqlite/tests/bug81740.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/pdo_sqlite/tests/bug81740.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -5,6 +5,7 @@ pdo_sqlite --SKIPIF-- diff -Nru php8.2-8.2.30/ext/phar/phar_path_check.c php8.2-8.2.31/ext/phar/phar_path_check.c --- php8.2-8.2.30/ext/phar/phar_path_check.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/phar/phar_path_check.c 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* Generated by re2c 2.0.3 */ +/* Generated by re2c 4.0 */ /* +----------------------------------------------------------------------+ | phar php single-file executable PHP extension | @@ -48,42 +48,42 @@ if (yych <= '[') { if (yych <= ')') { if (yych <= '\f') { - if (yych >= 0x01) goto yy4; + if (yych >= 0x01) goto yy1; } else { - if (yych <= '\r') goto yy6; - if (yych <= 0x19) goto yy4; - goto yy7; + if (yych <= '\r') goto yy3; + if (yych <= 0x19) goto yy1; + goto yy4; } } else { if (yych <= '/') { - if (yych <= '*') goto yy9; - if (yych <= '.') goto yy7; - goto yy11; - } else { - if (yych == '?') goto yy12; + if (yych <= '*') goto yy6; + if (yych <= '.') goto yy4; goto yy7; + } else { + if (yych == '?') goto yy8; + goto yy4; } } } else { if (yych <= 0xEC) { if (yych <= 0xC1) { - if (yych <= '\\') goto yy14; - if (yych <= 0x7F) goto yy7; - goto yy4; + if (yych <= '\\') goto yy9; + if (yych <= 0x7F) goto yy4; + goto yy1; } else { - if (yych <= 0xDF) goto yy16; - if (yych <= 0xE0) goto yy17; - goto yy18; + if (yych <= 0xDF) goto yy10; + if (yych <= 0xE0) goto yy11; + goto yy12; } } else { if (yych <= 0xF0) { - if (yych <= 0xED) goto yy19; - if (yych <= 0xEF) goto yy18; - goto yy20; + if (yych <= 0xED) goto yy13; + if (yych <= 0xEF) goto yy12; + goto yy14; } else { - if (yych <= 0xF3) goto yy21; - if (yych <= 0xF4) goto yy22; - goto yy4; + if (yych <= 0xF3) goto yy15; + if (yych <= 0xF4) goto yy16; + goto yy1; } } } @@ -101,37 +101,37 @@ *error = NULL; return pcr_is_ok; } -yy4: +yy1: ++YYCURSOR; -yy5: +yy2: { *error ="illegal character"; return pcr_err_illegal_char; } -yy6: +yy3: yych = *++YYCURSOR; - if (yych == '\n') goto yy4; - goto yy5; -yy7: + if (yych == '\n') goto yy1; + goto yy2; +yy4: ++YYCURSOR; -yy8: +yy5: { goto loop; } -yy9: +yy6: ++YYCURSOR; { *error = "star"; return pcr_err_star; } -yy11: +yy7: yyaccept = 0; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= '-') goto yy8; - if (yych <= '.') goto yy23; - if (yych <= '/') goto yy25; - goto yy8; -yy12: + if (yych <= '-') goto yy5; + if (yych <= '.') goto yy17; + if (yych <= '/') goto yy19; + goto yy5; +yy8: ++YYCURSOR; { if (**s == '/') { @@ -141,93 +141,90 @@ *error = NULL; return pcr_use_query; } -yy14: +yy9: ++YYCURSOR; { *error = "back-slash"; return pcr_err_back_slash; } -yy16: +yy10: yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy5; - if (yych <= 0xBF) goto yy7; - goto yy5; -yy17: + if (yych <= 0x7F) goto yy2; + if (yych <= 0xBF) goto yy4; + goto yy2; +yy11: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x9F) goto yy5; - if (yych <= 0xBF) goto yy27; - goto yy5; -yy18: + if (yych <= 0x9F) goto yy2; + if (yych <= 0xBF) goto yy20; + goto yy2; +yy12: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy5; - if (yych <= 0xBF) goto yy27; - goto yy5; -yy19: + if (yych <= 0x7F) goto yy2; + if (yych <= 0xBF) goto yy20; + goto yy2; +yy13: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy5; - if (yych <= 0x9F) goto yy27; - goto yy5; -yy20: + if (yych <= 0x7F) goto yy2; + if (yych <= 0x9F) goto yy20; + goto yy2; +yy14: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x8F) goto yy5; - if (yych <= 0xBF) goto yy28; - goto yy5; -yy21: + if (yych <= 0x8F) goto yy2; + if (yych <= 0xBF) goto yy21; + goto yy2; +yy15: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy5; - if (yych <= 0xBF) goto yy28; - goto yy5; -yy22: + if (yych <= 0x7F) goto yy2; + if (yych <= 0xBF) goto yy21; + goto yy2; +yy16: yyaccept = 1; yych = *(YYMARKER = ++YYCURSOR); - if (yych <= 0x7F) goto yy5; - if (yych <= 0x8F) goto yy28; - goto yy5; -yy23: + if (yych <= 0x7F) goto yy2; + if (yych <= 0x8F) goto yy21; + goto yy2; +yy17: yych = *++YYCURSOR; - if (yych <= 0x00) goto yy29; - if (yych <= '-') goto yy24; - if (yych <= '.') goto yy31; - if (yych <= '/') goto yy29; -yy24: + if (yych <= 0x00) goto yy22; + if (yych <= '-') goto yy18; + if (yych <= '.') goto yy23; + if (yych <= '/') goto yy22; +yy18: YYCURSOR = YYMARKER; - if (yyaccept == 0) { - goto yy8; - } else { - goto yy5; - } -yy25: + if (yyaccept == 0) goto yy5; + else goto yy2; +yy19: ++YYCURSOR; { *error = "double slash"; return pcr_err_double_slash; } -yy27: +yy20: + yych = *++YYCURSOR; + if (yych <= 0x7F) goto yy18; + if (yych <= 0xBF) goto yy4; + goto yy18; +yy21: yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy24; - if (yych <= 0xBF) goto yy7; - goto yy24; -yy28: - yych = *++YYCURSOR; - if (yych <= 0x7F) goto yy24; - if (yych <= 0xBF) goto yy27; - goto yy24; -yy29: + if (yych <= 0x7F) goto yy18; + if (yych <= 0xBF) goto yy20; + goto yy18; +yy22: ++YYCURSOR; { *error = "current directory reference"; return pcr_err_curr_dir; } -yy31: +yy23: yych = *++YYCURSOR; - if (yych <= 0x00) goto yy32; - if (yych != '/') goto yy24; -yy32: + if (yych <= 0x00) goto yy24; + if (yych != '/') goto yy18; +yy24: ++YYCURSOR; { *error = "upper directory reference"; diff -Nru php8.2-8.2.30/ext/phar/tests/phar_extract2.phpt php8.2-8.2.31/ext/phar/tests/phar_extract2.phpt --- php8.2-8.2.30/ext/phar/tests/phar_extract2.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/phar/tests/phar_extract2.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -46,8 +46,6 @@ @rmdir($dir . 'one/level'); @rmdir($dir . 'one'); @rmdir($dir); -$dir = __DIR__ . '/extract1/'; -@rmdir($dir); ?> --EXPECTF-- %sextract2%cfile1.txt diff -Nru php8.2-8.2.30/ext/soap/php_encoding.c php8.2-8.2.31/ext/soap/php_encoding.c --- php8.2-8.2.30/ext/soap/php_encoding.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/soap/php_encoding.c 2026-05-05 13:59:08.000000000 +0000 @@ -365,6 +365,7 @@ static void soap_add_xml_ref(zval *data, xmlNodePtr node) { if (SOAP_GLOBAL(ref_map)) { + Z_TRY_ADDREF_P(data); zend_hash_index_update(SOAP_GLOBAL(ref_map), (zend_ulong)node, data); } } @@ -2721,7 +2722,7 @@ } xmlValue = get_node(item->children, "value"); - if (!xmlKey) { + if (!xmlValue) { soap_error0(E_ERROR, "Encoding: Can't decode apache map, missing value"); } @@ -3448,7 +3449,7 @@ } else { SOAP_GLOBAL(ref_map) = emalloc(sizeof(HashTable)); } - zend_hash_init(SOAP_GLOBAL(ref_map), 0, NULL, NULL, 0); + zend_hash_init(SOAP_GLOBAL(ref_map), 0, NULL, ZVAL_PTR_DTOR, 0); } void encode_finish() diff -Nru php8.2-8.2.30/ext/soap/soap.c php8.2-8.2.31/ext/soap/soap.c --- php8.2-8.2.30/ext/soap/soap.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/soap/soap.c 2026-05-05 13:59:08.000000000 +0000 @@ -1438,12 +1438,20 @@ instanceof_function(Z_OBJCE(h->retval), soap_fault_class_entry)) { php_output_discard(); soap_server_fault_ex(function, &h->retval, h); - if (service->type == SOAP_CLASS && soap_obj) {zval_ptr_dtor(soap_obj);} + if (service->type == SOAP_CLASS && soap_obj) { + if (service->soap_class.persistence != SOAP_PERSISTENCE_SESSION) { + zval_ptr_dtor(soap_obj); + } + } goto fail; } else if (EG(exception)) { php_output_discard(); _soap_server_exception(service, function, ZEND_THIS); - if (service->type == SOAP_CLASS && soap_obj) {zval_ptr_dtor(soap_obj);} + if (service->type == SOAP_CLASS && soap_obj) { + if (service->soap_class.persistence != SOAP_PERSISTENCE_SESSION) { + zval_ptr_dtor(soap_obj); + } + } goto fail; } } else if (h->mustUnderstand) { diff -Nru php8.2-8.2.30/ext/soap/tests/GHSA-85c2-q967-79q5.phpt php8.2-8.2.31/ext/soap/tests/GHSA-85c2-q967-79q5.phpt --- php8.2-8.2.30/ext/soap/tests/GHSA-85c2-q967-79q5.phpt 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/ext/soap/tests/GHSA-85c2-q967-79q5.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,61 @@ +--TEST-- +GHSA-85c2-q967-79q5: Stale SOAP_GLOBAL(ref_map) pointer with Apache Map +--CREDITS-- +brettgervasoni +--EXTENSIONS-- +soap +--FILE-- + + + + + + + + foo + bar + + + foo + baz + + + + + + +XML; + +$s = new SoapServer(null, ['uri' => 'urn:a']); +$s->setClass(Handler::class); +$s->handle($envelope); +var_dump($result); + +?> +--EXPECTF-- + + +array(2) { + [0]=> + array(1) { + ["foo"]=> + string(3) "baz" + } + [1]=> + object(stdClass)#%d (1) { + ["object"]=> + string(3) "bar" + } +} diff -Nru php8.2-8.2.30/ext/soap/tests/GHSA-hmxp-6pc4-f3vv.phpt php8.2-8.2.31/ext/soap/tests/GHSA-hmxp-6pc4-f3vv.phpt --- php8.2-8.2.30/ext/soap/tests/GHSA-hmxp-6pc4-f3vv.phpt 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/ext/soap/tests/GHSA-hmxp-6pc4-f3vv.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,39 @@ +--TEST-- +GHSA-hmxp-6pc4-f3vv: Null pointer dereference on missing Apache map value +--CREDITS-- +Ilia Alshanetsky (iliaal) +--EXTENSIONS-- +soap +--FILE-- + + + + + + + hello + + + + +XML; + +$server = new SoapServer(null, [ + 'uri' => 'urn:test', + 'typemap' => [['type_name' => 'anything']], +]); +$server->addFunction('test'); +function test($m) { return null; } +$server->handle($request); + +?> +--EXPECT-- + +SOAP-ENV:ServerSOAP-ERROR: Encoding: Can't decode apache map, missing value diff -Nru php8.2-8.2.30/ext/soap/tests/GHSA-m33r-qmcv-p97q.phpt php8.2-8.2.31/ext/soap/tests/GHSA-m33r-qmcv-p97q.phpt --- php8.2-8.2.30/ext/soap/tests/GHSA-m33r-qmcv-p97q.phpt 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/ext/soap/tests/GHSA-m33r-qmcv-p97q.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,58 @@ +--TEST-- +GHSA-m33r-qmcv-p97q: Use-after-free after header parsing failure with SOAP_PERSISTENCE_SESSION +--CREDITS-- +Ilia Alshanetsky (iliaal) +--EXTENSIONS-- +soap +session +--FILE-- + 'urn:a']); +$srv->setClass(Handler::class); +$srv->setPersistence(SOAP_PERSISTENCE_SESSION); + +$srv->handle(<< + + + + + + + + +XML); + +$srv->handle(<< + + + + + + + + +XML); + +?> +--EXPECT-- + +SOAP-ENV:Serverdenied + +SOAP-ENV:Serverdenied diff -Nru php8.2-8.2.30/ext/soap/tests/soap_qname_crash.phpt php8.2-8.2.31/ext/soap/tests/soap_qname_crash.phpt --- php8.2-8.2.30/ext/soap/tests/soap_qname_crash.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/soap/tests/soap_qname_crash.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -4,6 +4,7 @@ soap --SKIPIF-- --INI-- diff -Nru php8.2-8.2.30/ext/standard/dl.c php8.2-8.2.31/ext/standard/dl.c --- php8.2-8.2.30/ext/standard/dl.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/dl.c 2026-05-05 13:59:08.000000000 +0000 @@ -93,7 +93,7 @@ size_t i = strlen(err); (*errp)=estrdup(err); php_win32_error_msg_free(err); - while (i > 0 && isspace((*errp)[i-1])) { (*errp)[i-1] = '\0'; i--; } + while (i > 0 && isspace((unsigned char)(*errp)[i-1])) { (*errp)[i-1] = '\0'; i--; } } else { (*errp) = estrdup(""); } diff -Nru php8.2-8.2.30/ext/standard/exec.c php8.2-8.2.31/ext/standard/exec.c --- php8.2-8.2.30/ext/standard/exec.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/exec.c 2026-05-05 13:59:08.000000000 +0000 @@ -83,7 +83,7 @@ static size_t strip_trailing_whitespace(char *buf, size_t bufl) { size_t l = bufl; - while (l-- > 0 && isspace(((unsigned char *)buf)[l])); + while (l-- > 0 && isspace((unsigned char)buf[l])); if (l != (bufl - 1)) { bufl = l + 1; buf[bufl] = '\0'; diff -Nru php8.2-8.2.30/ext/standard/file.c php8.2-8.2.31/ext/standard/file.c --- php8.2-8.2.30/ext/standard/file.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/file.c 2026-05-05 13:59:08.000000000 +0000 @@ -1968,7 +1968,7 @@ inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0); if (inc_len == 1) { char *tmp = bptr; - while ((*tmp != delimiter) && isspace((int)*(unsigned char *)tmp)) { + while ((*tmp != delimiter) && isspace((unsigned char)*tmp)) { tmp++; } if (*tmp == enclosure && tmp < limit) { diff -Nru php8.2-8.2.30/ext/standard/filters.c php8.2-8.2.31/ext/standard/filters.c --- php8.2-8.2.30/ext/standard/filters.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/filters.c 2026-05-05 13:59:08.000000000 +0000 @@ -958,7 +958,7 @@ goto out; } - if (!isxdigit((int) *ps)) { + if (!isxdigit(*ps)) { err = PHP_CONV_ERR_INVALID_SEQ; goto out; } diff -Nru php8.2-8.2.30/ext/standard/formatted_print.c php8.2-8.2.31/ext/standard/formatted_print.c --- php8.2-8.2.30/ext/standard/formatted_print.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/formatted_print.c 2026-05-05 13:59:08.000000000 +0000 @@ -378,7 +378,7 @@ int php_sprintf_get_argnum(char **format, size_t *format_len) { char *temppos = *format; - while (isdigit((int) *temppos)) temppos++; + while (isdigit((unsigned char)*temppos)) temppos++; if (*temppos != '$') { return ARG_NUM_NEXT; } @@ -466,7 +466,7 @@ PRINTF_DEBUG(("sprintf: first looking at '%c', inpos=%d\n", *format, format - Z_STRVAL_P(z_format))); - if (isalpha((int)*format)) { + if (isalpha((unsigned char)*format)) { width = precision = 0; argnum = ARG_NUM_NEXT; } else { @@ -535,7 +535,7 @@ } width = Z_LVAL_P(tmp); adjusting |= ADJ_WIDTH; - } else if (isdigit((int)*format)) { + } else if (isdigit((unsigned char)*format)) { PRINTF_DEBUG(("sprintf: getting width\n")); if ((width = php_sprintf_getnumber(&format, &format_len)) < 0) { zend_value_error("Width must be greater than zero and less than %d", INT_MAX); @@ -580,7 +580,7 @@ precision = Z_LVAL_P(tmp); adjusting |= ADJ_PRECISION; expprec = 1; - } else if (isdigit((int)*format)) { + } else if (isdigit((unsigned char)*format)) { if ((precision = php_sprintf_getnumber(&format, &format_len)) < 0) { zend_value_error("Precision must be greater than zero and less than %d", INT_MAX); goto fail; diff -Nru php8.2-8.2.30/ext/standard/ftp_fopen_wrapper.c php8.2-8.2.31/ext/standard/ftp_fopen_wrapper.c --- php8.2-8.2.30/ext/standard/ftp_fopen_wrapper.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/ftp_fopen_wrapper.c 2026-05-05 13:59:08.000000000 +0000 @@ -78,8 +78,8 @@ { buffer[0] = '\0'; /* in case read fails to read anything */ while (php_stream_gets(stream, buffer, buffer_size-1) && - !(isdigit((int) buffer[0]) && isdigit((int) buffer[1]) && - isdigit((int) buffer[2]) && buffer[3] == ' ')); + !(isdigit((unsigned char)buffer[0]) && isdigit((unsigned char)buffer[1]) && + isdigit((unsigned char)buffer[2]) && buffer[3] == ' ')); return strtol(buffer, NULL, 10); } /* }}} */ @@ -228,7 +228,7 @@ #define PHP_FTP_CNTRL_CHK(val, val_len, err_msg) { \ unsigned char *s = (unsigned char *) val, *e = (unsigned char *) s + val_len; \ while (s < e) { \ - if (iscntrl(*s)) { \ + if (iscntrl((unsigned char)*s)) { \ php_stream_wrapper_log_error(wrapper, options, err_msg, val); \ goto connect_errexit; \ } \ @@ -339,14 +339,14 @@ /* parse pasv command (129, 80, 95, 25, 13, 221) */ tpath = tmp_line; /* skip over the "227 Some message " part */ - for (tpath += 4; *tpath && !isdigit((int) *tpath); tpath++); + for (tpath += 4; *tpath && !isdigit((unsigned char)*tpath); tpath++); if (!*tpath) { return 0; } /* skip over the host ip, to get the port */ hoststart = tpath; for (i = 0; i < 4; i++) { - for (; isdigit((int) *tpath); tpath++); + for (; isdigit((unsigned char)*tpath); tpath++); if (*tpath != ',') { return 0; } @@ -826,7 +826,7 @@ struct tm tm, tmbuf, *gmt; time_t stamp; - while ((size_t)(p - tmp_line) < sizeof(tmp_line) && !isdigit(*p)) { + while ((size_t)(p - tmp_line) < sizeof(tmp_line) && !isdigit((unsigned char)*p)) { p++; } diff -Nru php8.2-8.2.30/ext/standard/html.c php8.2-8.2.31/ext/standard/html.c --- php8.2-8.2.30/ext/standard/html.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/html.c 2026-05-05 13:59:08.000000000 +0000 @@ -682,8 +682,8 @@ /* strtol allows whitespace and other stuff in the beginning * we're not interested */ - if ((hexadecimal && !isxdigit(**buf)) || - (!hexadecimal && !isdigit(**buf))) { + if ((hexadecimal && !isxdigit((unsigned char)**buf)) || + (!hexadecimal && !isdigit((unsigned char)**buf))) { return FAILURE; } diff -Nru php8.2-8.2.30/ext/standard/math.c php8.2-8.2.31/ext/standard/math.c --- php8.2-8.2.30/ext/standard/math.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/math.c 2026-05-05 13:59:08.000000000 +0000 @@ -727,9 +727,9 @@ e = s + ZSTR_LEN(str); /* Skip leading whitespace */ - while (s < e && isspace(*s)) s++; + while (s < e && isspace((unsigned char)*s)) s++; /* Skip trailing whitespace */ - while (s < e && isspace(*(e-1))) e--; + while (s < e && isspace((unsigned char)e[-1])) e--; if (e - s >= 2) { if (base == 16 && s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) s += 2; @@ -1031,7 +1031,7 @@ tmpbuf = strpprintf(0, "%.*F", dec, d); if (tmpbuf == NULL) { return NULL; - } else if (!isdigit((int)ZSTR_VAL(tmpbuf)[0])) { + } else if (!isdigit((unsigned char)ZSTR_VAL(tmpbuf)[0])) { return tmpbuf; } diff -Nru php8.2-8.2.30/ext/standard/metaphone.c php8.2-8.2.31/ext/standard/metaphone.c --- php8.2-8.2.30/ext/standard/metaphone.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/metaphone.c 2026-05-05 13:59:08.000000000 +0000 @@ -78,7 +78,7 @@ }; -#define ENCODE(c) (isalpha(c) ? _codes[((toupper(c)) - 'A')] : 0) +#define ENCODE(c) (isalpha((unsigned char)(c)) ? _codes[((toupper((unsigned char)(c))) - 'A')] : 0) #define isvowel(c) (ENCODE(c) & 1) /* AEIOU */ @@ -102,25 +102,25 @@ * accesssing the array directly... */ /* Look at the next letter in the word */ -#define Next_Letter (toupper(word[w_idx+1])) +#define Next_Letter (toupper((unsigned char)word[w_idx+1])) /* Look at the current letter in the word */ -#define Curr_Letter (toupper(word[w_idx])) +#define Curr_Letter (toupper((unsigned char)word[w_idx])) /* Go N letters back. */ -#define Look_Back_Letter(n) (w_idx >= n ? toupper(word[w_idx-n]) : '\0') +#define Look_Back_Letter(n) (w_idx >= n ? toupper((unsigned char)word[w_idx-n]) : '\0') /* Previous letter. I dunno, should this return null on failure? */ #define Prev_Letter (Look_Back_Letter(1)) /* Look two letters down. It makes sure you don't walk off the string. */ -#define After_Next_Letter (Next_Letter != '\0' ? toupper(word[w_idx+2]) \ +#define After_Next_Letter (Next_Letter != '\0' ? toupper((unsigned char)word[w_idx+2]) \ : '\0') -#define Look_Ahead_Letter(n) (toupper(Lookahead((char *) word+w_idx, n))) +#define Look_Ahead_Letter(n) (toupper((unsigned char)Lookahead((char *) word+w_idx, n))) /* Allows us to safely look ahead an arbitrary # of letters */ /* I probably could have just used strlen... */ -static char Lookahead(char *word, int how_far) +static char Lookahead(char *word, size_t how_far) { char letter_ahead = '\0'; /* null by default */ - int idx; + size_t idx; for (idx = 0; word[idx] != '\0' && idx < how_far; idx++); /* Edge forward in the string... */ @@ -156,12 +156,12 @@ #define Phone_Len (p_idx) /* Note is a letter is a 'break' in the word */ -#define Isbreak(c) (!isalpha(c)) +#define Isbreak(c) (!isalpha((unsigned char)(c))) /* {{{ metaphone */ static void metaphone(unsigned char *word, size_t word_len, zend_long max_phonemes, zend_string **phoned_word, int traditional) { - int w_idx = 0; /* point in the phonization we're at. */ + size_t w_idx = 0; /* point in the phonization we're at. */ size_t p_idx = 0; /* end of the phoned phrase */ size_t max_buffer_len = 0; /* maximum length of the destination buffer */ ZEND_ASSERT(word != NULL); @@ -179,7 +179,7 @@ /*-- The first phoneme has to be processed specially. --*/ /* Find our first letter */ - for (; !isalpha(Curr_Letter); w_idx++) { + for (; !isalpha((unsigned char)Curr_Letter); w_idx++) { /* On the off chance we were given nothing but crap... */ if (Curr_Letter == '\0') { End_Phoned_Word(); @@ -263,7 +263,7 @@ */ /* Ignore non-alphas */ - if (!isalpha(Curr_Letter)) + if (!isalpha((unsigned char)Curr_Letter)) continue; /* Drop duplicates, except CC */ diff -Nru php8.2-8.2.30/ext/standard/quot_print.c php8.2-8.2.31/ext/standard/quot_print.c --- php8.2-8.2.30/ext/standard/quot_print.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/quot_print.c 2026-05-05 13:59:08.000000000 +0000 @@ -216,11 +216,11 @@ switch (str_in[i]) { case '=': if (str_in[i + 1] && str_in[i + 2] && - isxdigit((int) str_in[i + 1]) && - isxdigit((int) str_in[i + 2])) + isxdigit((unsigned char)str_in[i + 1]) && + isxdigit((unsigned char)str_in[i + 2])) { - ZSTR_VAL(str_out)[j++] = (php_hex2int((int) str_in[i + 1]) << 4) - + php_hex2int((int) str_in[i + 2]); + ZSTR_VAL(str_out)[j++] = (php_hex2int((unsigned char)str_in[i + 1]) << 4) + + php_hex2int((unsigned char)str_in[i + 2]); i += 3; } else /* check for soft line break according to RFC 2045*/ { k = 1; diff -Nru php8.2-8.2.30/ext/standard/scanf.c php8.2-8.2.31/ext/standard/scanf.c --- php8.2-8.2.30/ext/standard/scanf.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/scanf.c 2026-05-05 13:59:08.000000000 +0000 @@ -345,7 +345,7 @@ goto xpgCheckDone; } - if ( isdigit( (int)*ch ) ) { + if ( isdigit( (unsigned char)*ch ) ) { /* * Check for an XPG3-style %n$ specification. Note: there * must not be a mixture of XPG3 specs and non-XPG3 specs @@ -656,9 +656,9 @@ /* * If we see whitespace in the format, skip whitespace in the string. */ - if ( isspace( (int)*ch ) ) { + if ( isspace( (unsigned char)*ch ) ) { sch = *string; - while ( isspace( (int)sch ) ) { + while ( isspace( (unsigned char)sch ) ) { if (*string == '\0') { goto done; } @@ -809,7 +809,7 @@ if (!(flags & SCAN_NOSKIP)) { while (*string != '\0') { sch = *string; - if (! isspace((int)sch) ) { + if (! isspace((unsigned char)sch) ) { break; } string++; @@ -835,7 +835,7 @@ end = string; while (*end != '\0') { sch = *end; - if ( isspace( (int)sch ) ) { + if ( isspace( (unsigned char)sch ) ) { break; } end++; diff -Nru php8.2-8.2.30/ext/standard/soundex.c php8.2-8.2.31/ext/standard/soundex.c --- php8.2-8.2.30/ext/standard/soundex.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/soundex.c 2026-05-05 13:59:08.000000000 +0000 @@ -67,7 +67,7 @@ /* BUG: should also map here accented letters used in non */ /* English words or names (also found in English text!): */ /* esstsett, thorn, n-tilde, c-cedilla, s-caron, ... */ - code = toupper((int)(unsigned char)str[i]); + code = toupper((unsigned char)str[i]); if (code >= 'A' && code <= 'Z') { if (_small == 0) { /* remember first valid char */ diff -Nru php8.2-8.2.30/ext/standard/string.c php8.2-8.2.31/ext/standard/string.c --- php8.2-8.2.30/ext/standard/string.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/string.c 2026-05-05 13:59:08.000000000 +0000 @@ -3537,9 +3537,9 @@ case 'f': *target++='\f'; nlen--; break; case '\\': *target++='\\'; nlen--; break; case 'x': - if (source+1 < end && isxdigit((int)(*(source+1)))) { + if (source+1 < end && isxdigit((unsigned char)source[1])) { numtmp[0] = *++source; - if (source+1 < end && isxdigit((int)(*(source+1)))) { + if (source+1 < end && isxdigit((unsigned char)source[1])) { numtmp[1] = *++source; numtmp[2] = '\0'; nlen-=3; @@ -4396,7 +4396,7 @@ do { if (block_type == _HEB_BLOCK_TYPE_HEB) { - while ((isheb((int)*(tmp+1)) || _isblank((int)*(tmp+1)) || ispunct((int)*(tmp+1)) || (int)*(tmp+1)=='\n' ) && block_end block_start) { + while ((_isblank((int)*tmp) || ispunct((unsigned char)*tmp)) && *tmp!='/' && *tmp!='-' && block_end > block_start) { tmp--; block_end--; } @@ -4827,7 +4827,7 @@ done =1; break; default: - if (!isspace((int)c)) { + if (!isspace((unsigned char)c)) { if (state == 0) { state=1; } @@ -4917,7 +4917,7 @@ if (in_q) { break; } - if (isspace(*(p + 1)) && !allow_tag_spaces) { + if (isspace((unsigned char)p[1]) && !allow_tag_spaces) { *(rp++) = c; break; } @@ -4964,7 +4964,7 @@ if (in_q) { break; } - if (isspace(*(p + 1)) && !allow_tag_spaces) { + if (isspace((unsigned char)p[1]) && !allow_tag_spaces) { goto reg_char_1; } depth++; diff -Nru php8.2-8.2.30/ext/standard/strnatcmp.c php8.2-8.2.31/ext/standard/strnatcmp.c --- php8.2-8.2.30/ext/standard/strnatcmp.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/strnatcmp.c 2026-05-05 13:59:08.000000000 +0000 @@ -40,12 +40,12 @@ both numbers to know that they have the same magnitude, so we remember it in BIAS. */ for(;; (*a)++, (*b)++) { - if ((*a == aend || !isdigit((int)(unsigned char)**a)) && - (*b == bend || !isdigit((int)(unsigned char)**b))) + if ((*a == aend || !isdigit((unsigned char)**a)) && + (*b == bend || !isdigit((unsigned char)**b))) return bias; - else if (*a == aend || !isdigit((int)(unsigned char)**a)) + else if (*a == aend || !isdigit((unsigned char)**a)) return -1; - else if (*b == bend || !isdigit((int)(unsigned char)**b)) + else if (*b == bend || !isdigit((unsigned char)**b)) return +1; else if (**a < **b) { if (!bias) @@ -67,12 +67,12 @@ /* Compare two left-aligned numbers: the first to have a different value wins. */ for(;; (*a)++, (*b)++) { - if ((*a == aend || !isdigit((int)(unsigned char)**a)) && - (*b == bend || !isdigit((int)(unsigned char)**b))) + if ((*a == aend || !isdigit((unsigned char)**a)) && + (*b == bend || !isdigit((unsigned char)**b))) return 0; - else if (*a == aend || !isdigit((int)(unsigned char)**a)) + else if (*a == aend || !isdigit((unsigned char)**a)) return -1; - else if (*b == bend || !isdigit((int)(unsigned char)**b)) + else if (*b == bend || !isdigit((unsigned char)**b)) return +1; else if (**a < **b) return -1; @@ -103,27 +103,27 @@ ca = *ap; cb = *bp; /* skip over leading zeros */ - while (ca == '0' && (ap+1 < aend) && isdigit((int)(unsigned char)*(ap+1))) { + while (ca == '0' && (ap+1 < aend) && isdigit((unsigned char)ap[1])) { ca = *++ap; } - while (cb == '0' && (bp+1 < bend) && isdigit((int)(unsigned char)*(bp+1))) { + while (cb == '0' && (bp+1 < bend) && isdigit((unsigned char)bp[1])) { cb = *++bp; } while (1) { /* Skip consecutive whitespace */ - while (isspace((int)(unsigned char)ca)) { + while (isspace(ca)) { ca = *++ap; } - while (isspace((int)(unsigned char)cb)) { + while (isspace(cb)) { cb = *++bp; } /* process run of digits */ - if (isdigit((int)(unsigned char)ca) && isdigit((int)(unsigned char)cb)) { + if (isdigit(ca) && isdigit(cb)) { fractional = (ca == '0' || cb == '0'); if (fractional) @@ -147,8 +147,8 @@ } if (is_case_insensitive) { - ca = toupper((int)(unsigned char)ca); - cb = toupper((int)(unsigned char)cb); + ca = toupper(ca); + cb = toupper(cb); } if (ca < cb) diff -Nru php8.2-8.2.30/ext/standard/tests/GHSA-96wq-48vp-hh57.phpt php8.2-8.2.31/ext/standard/tests/GHSA-96wq-48vp-hh57.phpt --- php8.2-8.2.30/ext/standard/tests/GHSA-96wq-48vp-hh57.phpt 1970-01-01 00:00:00.000000000 +0000 +++ php8.2-8.2.31/ext/standard/tests/GHSA-96wq-48vp-hh57.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -0,0 +1,22 @@ +--TEST-- +GHSA-96wq-48vp-hh57: signed integer overflow of char array offset +--CREDITS-- +012git012 +--INI-- +memory_limit=3G +--SKIPIF-- + +--FILE-- + +===DONE=== +--EXPECT-- +===DONE=== diff -Nru php8.2-8.2.30/ext/standard/tests/file/bug52820.phpt php8.2-8.2.31/ext/standard/tests/file/bug52820.phpt --- php8.2-8.2.30/ext/standard/tests/file/bug52820.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/tests/file/bug52820.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -45,22 +45,18 @@ --EXPECTREGEX-- temp stream \(close after\): About to rewind! -(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/ -\* [Cc]losing connection( #?-?\d+)? +(\* processing: file:\/\/\/i_dont_exist\/\n)?\* (Couldn't|Could not) open file \/i_dont_exist\/(\n\* [Cc]losing connection( #?-?\d+)?)? memory stream \(close after\): About to rewind! -(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/ -\* [Cc]losing connection( #?-?\d+)? +(\* processing: file:\/\/\/i_dont_exist\/\n)?\* (Couldn't|Could not) open file \/i_dont_exist\/(\n\* [Cc]losing connection( #?-?\d+)?)? temp stream \(leak\): About to rewind! -(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/ -\* [Cc]losing connection( #?-?\d+)? +(\* processing: file:\/\/\/i_dont_exist\/\n)?\* (Couldn't|Could not) open file \/i_dont_exist\/(\n\* [Cc]losing connection( #?-?\d+)?)? memory stream \(leak\): About to rewind! -(\* processing: file:\/\/\/i_dont_exist\/\n)?\* Couldn't open file \/i_dont_exist\/ -\* [Cc]losing connection( #?-?\d+)? +(\* processing: file:\/\/\/i_dont_exist\/\n)?\* (Couldn't|Could not) open file \/i_dont_exist\/(\n\* [Cc]losing connection( #?-?\d+)?)? Done\. diff -Nru php8.2-8.2.30/ext/standard/tests/file/bug69442.phpt php8.2-8.2.31/ext/standard/tests/file/bug69442.phpt --- php8.2-8.2.30/ext/standard/tests/file/bug69442.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/tests/file/bug69442.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -1,5 +1,6 @@ --TEST-- proc_open with PTY closes incorrect file descriptor +--FLAKY-- --SKIPIF-- --INI-- diff -Nru php8.2-8.2.30/ext/standard/type.c php8.2-8.2.31/ext/standard/type.c --- php8.2-8.2.30/ext/standard/type.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/type.c 2026-05-05 13:59:08.000000000 +0000 @@ -161,7 +161,7 @@ char *strval = Z_STRVAL_P(num); size_t strlen = Z_STRLEN_P(num); - while (isspace(*strval) && strlen) { + while (isspace((unsigned char)*strval) && strlen) { strval++; strlen--; } diff -Nru php8.2-8.2.30/ext/standard/url.c php8.2-8.2.31/ext/standard/url.c --- php8.2-8.2.30/ext/standard/url.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/url.c 2026-05-05 13:59:08.000000000 +0000 @@ -117,7 +117,7 @@ p = s; while (p < e) { /* scheme = 1*[ lowalpha | digit | "+" | "-" | "." ] */ - if (!isalpha(*p) && !isdigit(*p) && *p != '+' && *p != '.' && *p != '-') { + if (!isalpha((unsigned char)*p) && !isdigit((unsigned char)*p) && *p != '+' && *p != '.' && *p != '-') { if (e + 1 < ue && e < binary_strcspn(s, ue, "?#")) { goto parse_port; } else if (s + 1 < ue && *s == '/' && *(s + 1) == '/') { /* relative-scheme URL */ @@ -146,7 +146,7 @@ * correctly parse things like a.com:80 */ p = e + 1; - while (p < ue && isdigit(*p)) { + while (p < ue && isdigit((unsigned char)*p)) { p++; } @@ -186,7 +186,7 @@ p = e + 1; pp = p; - while (pp < ue && pp - p < 6 && isdigit(*pp)) { + while (pp < ue && pp - p < 6 && isdigit((unsigned char)*pp)) { pp++; } @@ -429,12 +429,12 @@ int value; int c; - c = ((unsigned char *)s)[0]; + c = (unsigned char)s[0]; if (isupper(c)) c = tolower(c); value = (c >= '0' && c <= '9' ? c - '0' : c - 'a' + 10) * 16; - c = ((unsigned char *)s)[1]; + c = (unsigned char)s[1]; if (isupper(c)) c = tolower(c); value += c >= '0' && c <= '9' ? c - '0' : c - 'a' + 10; @@ -601,8 +601,8 @@ if (*data == '+') { *dest = ' '; } - else if (*data == '%' && len >= 2 && isxdigit((int) *(data + 1)) - && isxdigit((int) *(data + 2))) { + else if (*data == '%' && len >= 2 && isxdigit((unsigned char)data[1]) + && isxdigit((unsigned char)data[2])) { *dest = (char) php_htoi(data + 1); data += 2; len -= 2; @@ -660,8 +660,8 @@ char *data = str; while (len--) { - if (*data == '%' && len >= 2 && isxdigit((int) *(data + 1)) - && isxdigit((int) *(data + 2))) { + if (*data == '%' && len >= 2 && isxdigit((unsigned char)data[1]) + && isxdigit((unsigned char)data[2])) { *dest = (char) php_htoi(data + 1); data += 2; len -= 2; @@ -722,7 +722,7 @@ c = *p; *p = '\0'; s = p + 1; - while (isspace((int)*(unsigned char *)s)) { + while (isspace((unsigned char)*s)) { s++; } diff -Nru php8.2-8.2.30/ext/standard/url_scanner_ex.c php8.2-8.2.31/ext/standard/url_scanner_ex.c --- php8.2-8.2.30/ext/standard/url_scanner_ex.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/url_scanner_ex.c 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* Generated by re2c 2.0.3 */ +/* Generated by re2c 4.0 */ /* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | @@ -86,7 +86,7 @@ *val++ = '\0'; for (q = key; *q; q++) { - *q = tolower(*q); + *q = tolower((unsigned char)*q); } keylen = q - key; str = zend_string_init(key, keylen, 1); @@ -135,7 +135,7 @@ char *q; for (q = key; *q; q++) { - *q = tolower(*q); + *q = tolower((unsigned char)*q); } keylen = q - key; if (keylen > 0) { @@ -451,7 +451,7 @@ } smart_str_appendl(&ctx->tag, start, YYCURSOR - start); for (i = 0; i < ZSTR_LEN(ctx->tag.s); i++) - ZSTR_VAL(ctx->tag.s)[i] = tolower((int)(unsigned char)ZSTR_VAL(ctx->tag.s)[i]); + ZSTR_VAL(ctx->tag.s)[i] = tolower((unsigned char)ZSTR_VAL(ctx->tag.s)[i]); /* intentionally using str_find here, in case the hash value is set, but the string val is changed later */ if ((ctx->lookup_data = zend_hash_str_find_ptr(ctx->tags, ZSTR_VAL(ctx->tag.s), ZSTR_LEN(ctx->tag.s))) != NULL) { ok = 1; @@ -518,55 +518,51 @@ { YYCTYPE yych; - static const unsigned char yybm[] = { - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 0, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, + static const unsigned char yybm[256] = { + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 0, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128 }; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy2; - } - goto yy5; -yy2: + if (yybm[0+yych] & 128) goto yy1; + goto yy2; +yy1: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy2; - } + if (yybm[0+yych] & 128) goto yy1; { passthru(STD_ARGS); goto state_plain; } -yy5: +yy2: ++YYCURSOR; { passthru(STD_ARGS); STATE = STATE_TAG; goto state_tag; } } @@ -577,54 +573,50 @@ { YYCTYPE yych; - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 128, 0, 0, 0, 0, 0, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 0, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, + static const unsigned char yybm[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 128, 0, 0, 0, 0, 0, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 0, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0 }; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy11; - } + if (yybm[0+yych] & 128) goto yy4; ++YYCURSOR; { passthru(STD_ARGS); goto state_plain_begin; } -yy11: +yy4: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy11; - } + if (yybm[0+yych] & 128) goto yy4; { handle_tag(STD_ARGS); /* Sets STATE */; passthru(STD_ARGS); if (STATE == STATE_PLAIN) goto state_plain; else goto state_next_arg; } } @@ -637,75 +629,71 @@ { YYCTYPE yych; - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 128, 128, 128, 0, 128, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 128, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, + static const unsigned char yybm[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 128, 128, 128, 0, 128, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 128, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0 }; if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2); yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy18; - } + if (yybm[0+yych] & 128) goto yy8; if (yych <= '>') { - if (yych == '/') goto yy21; - if (yych >= '>') goto yy22; + if (yych == '/') goto yy9; + if (yych >= '>') goto yy10; } else { if (yych <= 'Z') { - if (yych >= 'A') goto yy24; + if (yych >= 'A') goto yy11; } else { - if (yych <= '`') goto yy16; - if (yych <= 'z') goto yy24; + if (yych <= '`') goto yy6; + if (yych <= 'z') goto yy11; } } -yy16: +yy6: ++YYCURSOR; -yy17: +yy7: { passthru(STD_ARGS); goto state_plain_begin; } -yy18: +yy8: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy18; - } + if (yybm[0+yych] & 128) goto yy8; { passthru(STD_ARGS); goto state_next_arg; } -yy21: +yy9: yych = *++YYCURSOR; - if (yych != '>') goto yy17; -yy22: + if (yych != '>') goto yy7; +yy10: ++YYCURSOR; { passthru(STD_ARGS); handle_form(STD_ARGS); goto state_plain_begin; } -yy24: +yy11: ++YYCURSOR; { --YYCURSOR; STATE = STATE_ARG; goto state_arg; } } @@ -716,56 +704,54 @@ { YYCTYPE yych; - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 128, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 0, - 0, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, + static const unsigned char yybm[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 128, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 0, + 0, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 128, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0 }; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yych <= '@') goto yy28; - if (yych <= 'Z') goto yy30; - if (yych <= '`') goto yy28; - if (yych <= 'z') goto yy30; -yy28: + if (yych <= '@') goto yy13; + if (yych <= 'Z') goto yy14; + if (yych <= '`') goto yy13; + if (yych <= 'z') goto yy14; +yy13: ++YYCURSOR; { passthru(STD_ARGS); STATE = STATE_NEXT_ARG; goto state_next_arg; } -yy30: +yy14: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy30; - } + if (yybm[0+yych] & 128) goto yy14; { passthru(STD_ARGS); handle_arg(STD_ARGS); STATE = STATE_BEFORE_VAL; goto state_before_val; } } @@ -775,67 +761,65 @@ { YYCTYPE yych; - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 128, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, + static const unsigned char yybm[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 128, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0 }; if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2); yych = *YYCURSOR; - if (yych == ' ') goto yy37; - if (yych == '=') goto yy38; + if (yych == ' ') goto yy17; + if (yych == '=') goto yy18; ++YYCURSOR; -yy36: +yy16: { --YYCURSOR; goto state_next_arg_begin; } -yy37: +yy17: yych = *(YYMARKER = ++YYCURSOR); - if (yych == ' ') goto yy41; - if (yych != '=') goto yy36; -yy38: + if (yych == ' ') goto yy19; + if (yych != '=') goto yy16; +yy18: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy38; - } + if (yybm[0+yych] & 128) goto yy18; { passthru(STD_ARGS); STATE = STATE_VAL; goto state_val; } -yy41: +yy19: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yych == ' ') goto yy41; - if (yych == '=') goto yy38; + if (yych == ' ') goto yy19; + if (yych == '=') goto yy18; YYCURSOR = YYMARKER; - goto yy36; + goto yy16; } @@ -845,93 +829,85 @@ { YYCTYPE yych; - static const unsigned char yybm[] = { - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 192, 192, 224, 224, 192, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 192, 224, 128, 224, 224, 224, 224, 64, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 0, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, - 224, 224, 224, 224, 224, 224, 224, 224, + static const unsigned char yybm[256] = { + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 192, 192, 224, 224, 192, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 192, 224, 128, 224, 224, 224, 224, 64, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 0, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224, + 224, 224, 224, 224, 224, 224, 224, 224 }; if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2); yych = *YYCURSOR; - if (yybm[0+yych] & 32) { - goto yy46; - } - if (yych <= ' ') goto yy49; - if (yych <= '"') goto yy51; - if (yych <= '\'') goto yy52; - goto yy49; -yy46: + if (yybm[0+yych] & 32) goto yy21; + if (yych <= ' ') goto yy22; + if (yych <= '"') goto yy24; + if (yych <= '\'') goto yy25; + goto yy22; +yy21: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yybm[0+yych] & 32) { - goto yy46; - } + if (yybm[0+yych] & 32) goto yy21; { handle_val(STD_ARGS, 0, ' '); goto state_next_arg_begin; } -yy49: +yy22: ++YYCURSOR; -yy50: +yy23: { passthru(STD_ARGS); goto state_next_arg_begin; } -yy51: +yy24: yych = *(YYMARKER = ++YYCURSOR); - if (yych == '>') goto yy50; - goto yy54; -yy52: + if (yych == '>') goto yy23; + goto yy27; +yy25: yych = *(YYMARKER = ++YYCURSOR); - if (yych == '>') goto yy50; - goto yy59; -yy53: + if (yych == '>') goto yy23; + goto yy31; +yy26: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; -yy54: - if (yybm[0+yych] & 64) { - goto yy53; - } - if (yych <= '"') goto yy56; -yy55: +yy27: + if (yybm[0+yych] & 64) goto yy26; + if (yych <= '"') goto yy29; +yy28: YYCURSOR = YYMARKER; - goto yy50; -yy56: + goto yy23; +yy29: ++YYCURSOR; { handle_val(STD_ARGS, 1, '"'); goto state_next_arg_begin; } -yy58: +yy30: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; -yy59: - if (yybm[0+yych] & 128) { - goto yy58; - } - if (yych >= '(') goto yy55; +yy31: + if (yybm[0+yych] & 128) goto yy30; + if (yych >= '(') goto yy28; ++YYCURSOR; { handle_val(STD_ARGS, 1, '\''); goto state_next_arg_begin; } } diff -Nru php8.2-8.2.30/ext/standard/url_scanner_ex.re php8.2-8.2.31/ext/standard/url_scanner_ex.re --- php8.2-8.2.30/ext/standard/url_scanner_ex.re 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/url_scanner_ex.re 2026-05-05 13:59:08.000000000 +0000 @@ -85,7 +85,7 @@ *val++ = '\0'; for (q = key; *q; q++) { - *q = tolower(*q); + *q = tolower((unsigned char)*q); } keylen = q - key; str = zend_string_init(key, keylen, 1); @@ -134,7 +134,7 @@ char *q; for (q = key; *q; q++) { - *q = tolower(*q); + *q = tolower((unsigned char)*q); } keylen = q - key; if (keylen > 0) { @@ -456,7 +456,7 @@ } smart_str_appendl(&ctx->tag, start, YYCURSOR - start); for (i = 0; i < ZSTR_LEN(ctx->tag.s); i++) - ZSTR_VAL(ctx->tag.s)[i] = tolower((int)(unsigned char)ZSTR_VAL(ctx->tag.s)[i]); + ZSTR_VAL(ctx->tag.s)[i] = tolower((unsigned char)ZSTR_VAL(ctx->tag.s)[i]); /* intentionally using str_find here, in case the hash value is set, but the string val is changed later */ if ((ctx->lookup_data = zend_hash_str_find_ptr(ctx->tags, ZSTR_VAL(ctx->tag.s), ZSTR_LEN(ctx->tag.s))) != NULL) { ok = 1; diff -Nru php8.2-8.2.30/ext/standard/var_unserializer.c php8.2-8.2.31/ext/standard/var_unserializer.c --- php8.2-8.2.30/ext/standard/var_unserializer.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/var_unserializer.c 2026-05-05 13:59:08.000000000 +0000 @@ -1,4 +1,4 @@ -/* Generated by re2c 2.0.3 */ +/* Generated by re2c 4.0 */ /* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | @@ -892,334 +892,330 @@ { YYCTYPE yych; - static const unsigned char yybm[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, + static const unsigned char yybm[256] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 128, 128, 128, 128, 128, 128, 128, 128, + 128, 128, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0 }; if ((YYLIMIT - YYCURSOR) < 7) YYFILL(7); yych = *YYCURSOR; switch (yych) { - case 'C': - case 'O': goto yy4; - case 'E': goto yy5; - case 'N': goto yy6; - case 'R': goto yy7; - case 'S': goto yy8; - case 'a': goto yy9; - case 'b': goto yy10; - case 'd': goto yy11; - case 'i': goto yy12; - case 'r': goto yy13; - case 's': goto yy14; - case '}': goto yy15; - default: goto yy2; + case 'C': + case 'O': goto yy3; + case 'E': goto yy4; + case 'N': goto yy5; + case 'R': goto yy6; + case 'S': goto yy7; + case 'a': goto yy8; + case 'b': goto yy9; + case 'd': goto yy10; + case 'i': goto yy11; + case 'r': goto yy12; + case 's': goto yy13; + case '}': goto yy14; + default: goto yy1; } -yy2: +yy1: ++YYCURSOR; -yy3: +yy2: { return 0; } +yy3: + yych = *(YYMARKER = ++YYCURSOR); + if (yych == ':') goto yy15; + goto yy2; yy4: yych = *(YYMARKER = ++YYCURSOR); if (yych == ':') goto yy17; - goto yy3; + goto yy2; yy5: + yych = *++YYCURSOR; + if (yych == ';') goto yy18; + goto yy2; +yy6: yych = *(YYMARKER = ++YYCURSOR); if (yych == ':') goto yy19; - goto yy3; -yy6: - yych = *++YYCURSOR; - if (yych == ';') goto yy20; - goto yy3; + goto yy2; yy7: yych = *(YYMARKER = ++YYCURSOR); - if (yych == ':') goto yy22; - goto yy3; + if (yych == ':') goto yy20; + goto yy2; yy8: yych = *(YYMARKER = ++YYCURSOR); - if (yych == ':') goto yy23; - goto yy3; + if (yych == ':') goto yy21; + goto yy2; yy9: yych = *(YYMARKER = ++YYCURSOR); - if (yych == ':') goto yy24; - goto yy3; + if (yych == ':') goto yy22; + goto yy2; yy10: yych = *(YYMARKER = ++YYCURSOR); - if (yych == ':') goto yy25; - goto yy3; + if (yych == ':') goto yy23; + goto yy2; yy11: yych = *(YYMARKER = ++YYCURSOR); - if (yych == ':') goto yy26; - goto yy3; + if (yych == ':') goto yy24; + goto yy2; yy12: yych = *(YYMARKER = ++YYCURSOR); - if (yych == ':') goto yy27; - goto yy3; + if (yych == ':') goto yy25; + goto yy2; yy13: yych = *(YYMARKER = ++YYCURSOR); - if (yych == ':') goto yy28; - goto yy3; + if (yych == ':') goto yy26; + goto yy2; yy14: - yych = *(YYMARKER = ++YYCURSOR); - if (yych == ':') goto yy29; - goto yy3; -yy15: ++YYCURSOR; { /* this is the case where we have less data than planned */ php_error_docref(NULL, E_NOTICE, "Unexpected end of serialized data"); return 0; /* not sure if it should be 0 or 1 here? */ } -yy17: +yy15: yych = *++YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy30; - } -yy18: + if (yybm[0+yych] & 128) goto yy27; +yy16: YYCURSOR = YYMARKER; - goto yy3; -yy19: + goto yy2; +yy17: yych = *++YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy32; - goto yy18; -yy20: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy28; + goto yy16; +yy18: ++YYCURSOR; { *p = YYCURSOR; ZVAL_NULL(rval); return 1; } -yy22: - yych = *++YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy34; - goto yy18; -yy23: +yy19: yych = *++YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy36; - goto yy18; -yy24: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy29; + goto yy16; +yy20: yych = *++YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy38; - goto yy18; -yy25: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy30; + goto yy16; +yy21: + yych = *++YYCURSOR; + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy31; + goto yy16; +yy22: yych = *++YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '0') goto yy40; - if (yych <= '1') goto yy41; - goto yy18; -yy26: + if (yych <= '/') goto yy16; + if (yych <= '0') goto yy32; + if (yych <= '1') goto yy33; + goto yy16; +yy23: yych = *++YYCURSOR; if (yych <= '/') { if (yych <= ',') { - if (yych == '+') goto yy42; - goto yy18; + if (yych == '+') goto yy34; + goto yy16; } else { - if (yych <= '-') goto yy43; - if (yych <= '.') goto yy44; - goto yy18; + if (yych <= '-') goto yy35; + if (yych <= '.') goto yy36; + goto yy16; } } else { if (yych <= 'I') { - if (yych <= '9') goto yy45; - if (yych <= 'H') goto yy18; - goto yy47; + if (yych <= '9') goto yy37; + if (yych <= 'H') goto yy16; + goto yy38; } else { - if (yych == 'N') goto yy48; - goto yy18; + if (yych == 'N') goto yy39; + goto yy16; } } -yy27: +yy24: yych = *++YYCURSOR; if (yych <= ',') { - if (yych == '+') goto yy49; - goto yy18; + if (yych == '+') goto yy40; + goto yy16; } else { - if (yych <= '-') goto yy49; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy50; - goto yy18; + if (yych <= '-') goto yy40; + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy41; + goto yy16; } -yy28: +yy25: yych = *++YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy52; - goto yy18; -yy29: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy42; + goto yy16; +yy26: yych = *++YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy54; - goto yy18; -yy30: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy43; + goto yy16; +yy27: ++YYCURSOR; if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2); yych = *YYCURSOR; - if (yybm[0+yych] & 128) { - goto yy30; - } - if (yych <= '/') goto yy18; - if (yych <= ':') goto yy56; - goto yy18; -yy32: + if (yybm[0+yych] & 128) goto yy27; + if (yych <= '/') goto yy16; + if (yych <= ':') goto yy44; + goto yy16; +yy28: ++YYCURSOR; if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2); yych = *YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy32; - if (yych <= ':') goto yy57; - goto yy18; -yy34: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy28; + if (yych <= ':') goto yy45; + goto yy16; +yy29: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy34; - if (yych == ';') goto yy58; - goto yy18; -yy36: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy29; + if (yych == ';') goto yy46; + goto yy16; +yy30: ++YYCURSOR; if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2); yych = *YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy36; - if (yych <= ':') goto yy60; - goto yy18; -yy38: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy30; + if (yych <= ':') goto yy47; + goto yy16; +yy31: ++YYCURSOR; if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2); yych = *YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy38; - if (yych <= ':') goto yy61; - goto yy18; -yy40: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy31; + if (yych <= ':') goto yy48; + goto yy16; +yy32: yych = *++YYCURSOR; - if (yych == ';') goto yy62; - goto yy18; -yy41: + if (yych == ';') goto yy49; + goto yy16; +yy33: yych = *++YYCURSOR; - if (yych == ';') goto yy64; - goto yy18; -yy42: + if (yych == ';') goto yy50; + goto yy16; +yy34: yych = *++YYCURSOR; - if (yych == '.') goto yy44; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy45; - goto yy18; -yy43: + if (yych == '.') goto yy36; + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy37; + goto yy16; +yy35: yych = *++YYCURSOR; if (yych <= '/') { - if (yych != '.') goto yy18; + if (yych != '.') goto yy16; } else { - if (yych <= '9') goto yy45; - if (yych == 'I') goto yy47; - goto yy18; + if (yych <= '9') goto yy37; + if (yych == 'I') goto yy38; + goto yy16; } -yy44: +yy36: yych = *++YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy66; - goto yy18; -yy45: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy51; + goto yy16; +yy37: ++YYCURSOR; if ((YYLIMIT - YYCURSOR) < 3) YYFILL(3); yych = *YYCURSOR; if (yych <= ':') { if (yych <= '.') { - if (yych <= '-') goto yy18; - goto yy66; + if (yych <= '-') goto yy16; + goto yy51; } else { - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy45; - goto yy18; + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy37; + goto yy16; } } else { if (yych <= 'E') { - if (yych <= ';') goto yy68; - if (yych <= 'D') goto yy18; - goto yy70; + if (yych <= ';') goto yy52; + if (yych <= 'D') goto yy16; + goto yy53; } else { - if (yych == 'e') goto yy70; - goto yy18; + if (yych == 'e') goto yy53; + goto yy16; } } -yy47: +yy38: yych = *++YYCURSOR; - if (yych == 'N') goto yy71; - goto yy18; -yy48: + if (yych == 'N') goto yy54; + goto yy16; +yy39: yych = *++YYCURSOR; - if (yych == 'A') goto yy72; - goto yy18; -yy49: + if (yych == 'A') goto yy55; + goto yy16; +yy40: yych = *++YYCURSOR; - if (yych <= '/') goto yy18; - if (yych >= ':') goto yy18; -yy50: + if (yych <= '/') goto yy16; + if (yych >= ':') goto yy16; +yy41: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy50; - if (yych == ';') goto yy73; - goto yy18; -yy52: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy41; + if (yych == ';') goto yy56; + goto yy16; +yy42: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy52; - if (yych == ';') goto yy75; - goto yy18; -yy54: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy42; + if (yych == ';') goto yy57; + goto yy16; +yy43: ++YYCURSOR; if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2); yych = *YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy54; - if (yych <= ':') goto yy77; - goto yy18; -yy56: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy43; + if (yych <= ':') goto yy58; + goto yy16; +yy44: yych = *++YYCURSOR; - if (yych == '"') goto yy78; - goto yy18; -yy57: + if (yych == '"') goto yy59; + goto yy16; +yy45: yych = *++YYCURSOR; - if (yych == '"') goto yy80; - goto yy18; -yy58: + if (yych == '"') goto yy60; + goto yy16; +yy46: ++YYCURSOR; { zend_long id; @@ -1251,46 +1247,46 @@ return 1; } -yy60: +yy47: yych = *++YYCURSOR; - if (yych == '"') goto yy82; - goto yy18; -yy61: + if (yych == '"') goto yy61; + goto yy16; +yy48: yych = *++YYCURSOR; - if (yych == '{') goto yy84; - goto yy18; -yy62: + if (yych == '{') goto yy62; + goto yy16; +yy49: ++YYCURSOR; { *p = YYCURSOR; ZVAL_FALSE(rval); return 1; } -yy64: +yy50: ++YYCURSOR; { *p = YYCURSOR; ZVAL_TRUE(rval); return 1; } -yy66: +yy51: ++YYCURSOR; if ((YYLIMIT - YYCURSOR) < 3) YYFILL(3); yych = *YYCURSOR; if (yych <= ';') { - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy66; - if (yych <= ':') goto yy18; + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy51; + if (yych <= ':') goto yy16; } else { if (yych <= 'E') { - if (yych <= 'D') goto yy18; - goto yy70; + if (yych <= 'D') goto yy16; + goto yy53; } else { - if (yych == 'e') goto yy70; - goto yy18; + if (yych == 'e') goto yy53; + goto yy16; } } -yy68: +yy52: ++YYCURSOR; { #if SIZEOF_ZEND_LONG == 4 @@ -1300,26 +1296,26 @@ ZVAL_DOUBLE(rval, zend_strtod((const char *)start + 2, NULL)); return 1; } -yy70: +yy53: yych = *++YYCURSOR; if (yych <= ',') { - if (yych == '+') goto yy86; - goto yy18; + if (yych == '+') goto yy63; + goto yy16; } else { - if (yych <= '-') goto yy86; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy87; - goto yy18; - } -yy71: - yych = *++YYCURSOR; - if (yych == 'F') goto yy89; - goto yy18; -yy72: - yych = *++YYCURSOR; - if (yych == 'N') goto yy89; - goto yy18; -yy73: + if (yych <= '-') goto yy63; + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy64; + goto yy16; + } +yy54: + yych = *++YYCURSOR; + if (yych == 'F') goto yy65; + goto yy16; +yy55: + yych = *++YYCURSOR; + if (yych == 'N') goto yy65; + goto yy16; +yy56: ++YYCURSOR; { #if SIZEOF_ZEND_LONG == 4 @@ -1346,7 +1342,7 @@ ZVAL_LONG(rval, parse_iv(start + 2)); return 1; } -yy75: +yy57: ++YYCURSOR; { zend_long id; @@ -1372,11 +1368,11 @@ return 1; } -yy77: +yy58: yych = *++YYCURSOR; - if (yych == '"') goto yy90; - goto yy18; -yy78: + if (yych == '"') goto yy66; + goto yy16; +yy59: ++YYCURSOR; { size_t len, maxlen; @@ -1595,7 +1591,7 @@ return object_common(UNSERIALIZE_PASSTHRU, elements, has_unserialize); } -yy80: +yy60: ++YYCURSOR; { if (!var_hash) return 0; @@ -1676,7 +1672,7 @@ zend_string_release_ex(case_name, 0); return 0; } -yy82: +yy61: ++YYCURSOR; { size_t len, maxlen; @@ -1711,7 +1707,7 @@ ZVAL_STR(rval, str); return 1; } -yy84: +yy62: ++YYCURSOR; { zend_long elements = parse_iv(start + 2); @@ -1745,23 +1741,23 @@ return finish_nested_data(UNSERIALIZE_PASSTHRU); } -yy86: +yy63: yych = *++YYCURSOR; - if (yych <= '/') goto yy18; - if (yych >= ':') goto yy18; -yy87: + if (yych <= '/') goto yy16; + if (yych >= ':') goto yy16; +yy64: ++YYCURSOR; if (YYLIMIT <= YYCURSOR) YYFILL(1); yych = *YYCURSOR; - if (yych <= '/') goto yy18; - if (yych <= '9') goto yy87; - if (yych == ';') goto yy68; - goto yy18; -yy89: - yych = *++YYCURSOR; - if (yych == ';') goto yy92; - goto yy18; -yy90: + if (yych <= '/') goto yy16; + if (yych <= '9') goto yy64; + if (yych == ';') goto yy52; + goto yy16; +yy65: + yych = *++YYCURSOR; + if (yych == ';') goto yy67; + goto yy16; +yy66: ++YYCURSOR; { size_t len, maxlen; @@ -1799,7 +1795,7 @@ } return 1; } -yy92: +yy67: ++YYCURSOR; { *p = YYCURSOR; diff -Nru php8.2-8.2.30/ext/standard/versioning.c php8.2-8.2.31/ext/standard/versioning.c --- php8.2-8.2.30/ext/standard/versioning.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/standard/versioning.c 2026-05-05 13:59:08.000000000 +0000 @@ -45,8 +45,8 @@ * s/([^\d\.])([^\D\.])/$1.$2/g; * s/([^\D\.])([^\d\.])/$1.$2/g; */ -#define isdig(x) (isdigit(x)&&(x)!='.') -#define isndig(x) (!isdigit(x)&&(x)!='.') +#define isdig(x) (isdigit((unsigned char)(x))&&(x)!='.') +#define isndig(x) (!isdigit((unsigned char)(x))&&(x)!='.') #define isspecialver(x) ((x)=='-'||(x)=='_'||(x)=='+') lq = *(q - 1); @@ -59,7 +59,7 @@ *q++ = '.'; } *q++ = *p; - } else if (!isalnum(*p)) { + } else if (!isalnum((unsigned char)*p)) { if (lq != '.') { *q++ = '.'; } @@ -152,17 +152,17 @@ if ((n2 = strchr(p2, '.')) != NULL) { *n2 = '\0'; } - if (isdigit(*p1) && isdigit(*p2)) { + if (isdigit((unsigned char)*p1) && isdigit((unsigned char)*p2)) { /* compare element numerically */ l1 = strtol(p1, NULL, 10); l2 = strtol(p2, NULL, 10); compare = ZEND_NORMALIZE_BOOL(l1 - l2); - } else if (!isdigit(*p1) && !isdigit(*p2)) { + } else if (!isdigit((unsigned char)*p1) && !isdigit((unsigned char)*p2)) { /* compare element names */ compare = compare_special_version_forms(p1, p2); } else { /* mix of names and numbers */ - if (isdigit(*p1)) { + if (isdigit((unsigned char)*p1)) { compare = compare_special_version_forms("#N#", p2); } else { compare = compare_special_version_forms(p1, "#N#"); @@ -180,13 +180,13 @@ } if (compare == 0) { if (n1 != NULL) { - if (isdigit(*p1)) { + if (isdigit((unsigned char)*p1)) { compare = 1; } else { compare = php_version_compare(p1, "#N#"); } } else if (n2 != NULL) { - if (isdigit(*p2)) { + if (isdigit((unsigned char)*p2)) { compare = -1; } else { compare = php_version_compare("#N#", p2); diff -Nru php8.2-8.2.30/ext/tidy/tests/parsing_file_too_large.phpt php8.2-8.2.31/ext/tidy/tests/parsing_file_too_large.phpt --- php8.2-8.2.30/ext/tidy/tests/parsing_file_too_large.phpt 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/ext/tidy/tests/parsing_file_too_large.phpt 2026-05-05 13:59:08.000000000 +0000 @@ -4,6 +4,7 @@ tidy --SKIPIF-- 1) && (p[1] == '/') && (p[2] == '/')) { wrapper = php_stream_locate_url_wrapper(filename, &actual_path, STREAM_OPEN_FOR_INCLUDE); if (wrapper == &php_plain_files_wrapper) { @@ -531,7 +531,7 @@ /* Check for stream wrapper */ int is_stream_wrapper = 0; - for (p = ptr; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++); + for (p = ptr; isalnum((unsigned char)*p) || *p == '+' || *p == '-' || *p == '.'; p++); if ((*p == ':') && (p - ptr > 1) && (p[1] == '/') && (p[2] == '/')) { /* .:// or ..:// is not a stream wrapper */ if (p[-1] != '.' || p[-2] != '.' || p - 2 != ptr) { @@ -600,7 +600,7 @@ actual_path = trypath; /* Check for stream wrapper */ - for (p = trypath; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++); + for (p = trypath; isalnum((unsigned char)*p) || *p == '+' || *p == '-' || *p == '.'; p++); if ((*p == ':') && (p - trypath > 1) && (p[1] == '/') && (p[2] == '/')) { wrapper = php_stream_locate_url_wrapper(trypath, &actual_path, STREAM_OPEN_FOR_INCLUDE); if (!wrapper) { diff -Nru php8.2-8.2.30/main/php_config.h.in php8.2-8.2.31/main/php_config.h.in --- php8.2-8.2.30/main/php_config.h.in 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/main/php_config.h.in 2026-05-05 13:59:08.000000000 +0000 @@ -243,11 +243,6 @@ /* */ #undef COOKIE_SEEKER_USES_OFF64_T -/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP - systems. This function is required for `alloca.c' support on those systems. - */ -#undef CRAY_STACKSEG_END - /* Define if crypt_r has uses CRYPTD */ #undef CRYPT_R_CRYPTD @@ -257,7 +252,7 @@ /* Define if crypt_r uses struct crypt_data */ #undef CRYPT_R_STRUCT_CRYPT_DATA -/* Define to 1 if using `alloca.c'. */ +/* Define to 1 if using 'alloca.c'. */ #undef C_ALLOCA /* Define if the target system is darwin */ @@ -341,7 +336,7 @@ /* */ #undef GDBM_INCLUDE_FILE -/* Define to 1 if `TIOCGWINSZ' requires . */ +/* Define to 1 if 'TIOCGWINSZ' requires . */ #undef GWINSZ_IN_SYS_IOCTL /* Whether 3 arg set_rebind_proc() */ @@ -365,14 +360,13 @@ /* whether the compiler supports __alignof__ */ #undef HAVE_ALIGNOF -/* Define to 1 if you have `alloca', as a function or macro. */ +/* Define to 1 if you have 'alloca', as a function or macro. */ #undef HAVE_ALLOCA -/* Define to 1 if you have and it should be used (not on Ultrix). - */ +/* Define to 1 if works. */ #undef HAVE_ALLOCA_H -/* Define to 1 if you have the `alphasort' function. */ +/* Define to 1 if you have the 'alphasort' function. */ #undef HAVE_ALPHASORT /* AppArmor confinement available */ @@ -387,16 +381,16 @@ /* Define to 1 if you have the header file. */ #undef HAVE_ARPA_NAMESER_H -/* Define to 1 if you have the `asctime_r' function. */ +/* Define to 1 if you have the 'asctime_r' function. */ #undef HAVE_ASCTIME_R /* Define if asm goto support */ #undef HAVE_ASM_GOTO -/* Define to 1 if you have the `asprintf' function. */ +/* Define to 1 if you have the 'asprintf' function. */ #undef HAVE_ASPRINTF -/* Define to 1 if you have the `atoll' function. */ +/* Define to 1 if you have the 'atoll' function. */ #undef HAVE_ATOLL /* whether the compiler supports __attribute__ ((__aligned__)) */ @@ -435,10 +429,10 @@ /* */ #undef HAVE_CAPSTONE -/* Define to 1 if you have the `chroot' function. */ +/* Define to 1 if you have the 'chroot' function. */ #undef HAVE_CHROOT -/* Define to 1 if you have the `clearenv' function. */ +/* Define to 1 if you have the 'clearenv' function. */ #undef HAVE_CLEARENV /* */ @@ -477,7 +471,7 @@ /* Define to 1 if you have the header file. */ #undef HAVE_CPUID_H -/* Define to 1 if you have the `CreateProcess' function. */ +/* Define to 1 if you have the 'CreateProcess' function. */ #undef HAVE_CREATEPROCESS /* */ @@ -489,10 +483,10 @@ /* */ #undef HAVE_CRYPT_R -/* Define to 1 if you have the `ctermid' function. */ +/* Define to 1 if you have the 'ctermid' function. */ #undef HAVE_CTERMID -/* Define to 1 if you have the `ctime_r' function. */ +/* Define to 1 if you have the 'ctime_r' function. */ #undef HAVE_CTIME_R /* */ @@ -513,15 +507,15 @@ /* */ #undef HAVE_DCNGETTEXT -/* Define to 1 if you have the declaration of `arc4random_buf', and to 0 if +/* Define to 1 if you have the declaration of 'arc4random_buf', and to 0 if you don't. */ #undef HAVE_DECL_ARC4RANDOM_BUF -/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you +/* Define to 1 if you have the declaration of 'strerror_r', and to 0 if you don't. */ #undef HAVE_DECL_STRERROR_R -/* Define to 1 if you have the declaration of `tzname', and to 0 if you don't. +/* Define to 1 if you have the declaration of 'tzname', and to 0 if you don't. */ #undef HAVE_DECL_TZNAME @@ -591,19 +585,19 @@ /* Whether you want EXIF (metadata from images) support */ #undef HAVE_EXIF -/* Define to 1 if you have the `explicit_bzero' function. */ +/* Define to 1 if you have the 'explicit_bzero' function. */ #undef HAVE_EXPLICIT_BZERO -/* Define to 1 if you have the `explicit_memset' function. */ +/* Define to 1 if you have the 'explicit_memset' function. */ #undef HAVE_EXPLICIT_MEMSET -/* Define to 1 if you have the `fabsf' function. */ +/* Define to 1 if you have the 'fabsf' function. */ #undef HAVE_FABSF /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H -/* Define to 1 if you have the `fdatasync' function. */ +/* Define to 1 if you have the 'fdatasync' function. */ #undef HAVE_FDATASYNC /* Have ffi support */ @@ -630,25 +624,25 @@ /* Whether libffi supports thiscall calling convention */ #undef HAVE_FFI_THISCALL -/* Define to 1 if you have the `flock' function. */ +/* Define to 1 if you have the 'flock' function. */ #undef HAVE_FLOCK -/* Define to 1 if you have the `floorf' function. */ +/* Define to 1 if you have the 'floorf' function. */ #undef HAVE_FLOORF /* Define if flush should be called explicitly after a buffered io. */ #undef HAVE_FLUSHIO -/* Define to 1 if your system has a working POSIX `fnmatch' function. */ +/* Define to 1 if your system has a working POSIX 'fnmatch' function. */ #undef HAVE_FNMATCH /* */ #undef HAVE_FOPENCOOKIE -/* Define to 1 if you have the `fork' function. */ +/* Define to 1 if you have the 'fork' function. */ #undef HAVE_FORK -/* Define to 1 if you have the `forkx' function. */ +/* Define to 1 if you have the 'forkx' function. */ #undef HAVE_FORKX /* do we have acl support? */ @@ -660,7 +654,7 @@ /* whether FPU control word can be manipulated by inline assembler */ #undef HAVE_FPU_INLINE_ASM_X86 -/* Define to 1 if you have the `ftok' function. */ +/* Define to 1 if you have the 'ftok' function. */ #undef HAVE_FTOK /* Whether you want FTP support */ @@ -684,10 +678,10 @@ /* Define to 1 if you have the six-argument form of gethostbyname_r(). */ #undef HAVE_FUNC_GETHOSTBYNAME_R_6 -/* Define to 1 if you have the `funopen' function. */ +/* Define to 1 if you have the 'funopen' function. */ #undef HAVE_FUNOPEN -/* Define to 1 if you have the `gai_strerror' function. */ +/* Define to 1 if you have the 'gai_strerror' function. */ #undef HAVE_GAI_STRERROR /* Define if the target system has support for global register variables */ @@ -732,16 +726,16 @@ /* Define if you have the getaddrinfo function */ #undef HAVE_GETADDRINFO -/* Define to 1 if you have the `getcwd' function. */ +/* Define to 1 if you have the 'getcwd' function. */ #undef HAVE_GETCWD -/* Define to 1 if you have the `getgrgid_r' function. */ +/* Define to 1 if you have the 'getgrgid_r' function. */ #undef HAVE_GETGRGID_R -/* Define to 1 if you have the `getgrnam_r' function. */ +/* Define to 1 if you have the 'getgrnam_r' function. */ #undef HAVE_GETGRNAM_R -/* Define to 1 if you have the `getgroups' function. */ +/* Define to 1 if you have the 'getgroups' function. */ #undef HAVE_GETGROUPS /* */ @@ -756,70 +750,70 @@ /* whether getifaddrs is present and usable */ #undef HAVE_GETIFADDRS -/* Define to 1 if you have the `getloadavg' function. */ +/* Define to 1 if you have the 'getloadavg' function. */ #undef HAVE_GETLOADAVG -/* Define to 1 if you have the `getlogin' function. */ +/* Define to 1 if you have the 'getlogin' function. */ #undef HAVE_GETLOGIN -/* Define to 1 if you have the `getopt' function. */ +/* Define to 1 if you have the 'getopt' function. */ #undef HAVE_GETOPT -/* Define to 1 if you have the `getpgid' function. */ +/* Define to 1 if you have the 'getpgid' function. */ #undef HAVE_GETPGID -/* Define to 1 if you have the `getpid' function. */ +/* Define to 1 if you have the 'getpid' function. */ #undef HAVE_GETPID -/* Define to 1 if you have the `getpriority' function. */ +/* Define to 1 if you have the 'getpriority' function. */ #undef HAVE_GETPRIORITY -/* Define to 1 if you have the `getprotobyname' function. */ +/* Define to 1 if you have the 'getprotobyname' function. */ #undef HAVE_GETPROTOBYNAME -/* Define to 1 if you have the `getprotobynumber' function. */ +/* Define to 1 if you have the 'getprotobynumber' function. */ #undef HAVE_GETPROTOBYNUMBER -/* Define to 1 if you have the `getpwnam_r' function. */ +/* Define to 1 if you have the 'getpwnam_r' function. */ #undef HAVE_GETPWNAM_R -/* Define to 1 if you have the `getpwuid_r' function. */ +/* Define to 1 if you have the 'getpwuid_r' function. */ #undef HAVE_GETPWUID_R -/* Define to 1 if you have the `getrandom' function. */ +/* Define to 1 if you have the 'getrandom' function. */ #undef HAVE_GETRANDOM -/* Define to 1 if you have the `getrlimit' function. */ +/* Define to 1 if you have the 'getrlimit' function. */ #undef HAVE_GETRLIMIT -/* Define to 1 if you have the `getrusage' function. */ +/* Define to 1 if you have the 'getrusage' function. */ #undef HAVE_GETRUSAGE -/* Define to 1 if you have the `getservbyname' function. */ +/* Define to 1 if you have the 'getservbyname' function. */ #undef HAVE_GETSERVBYNAME -/* Define to 1 if you have the `getservbyport' function. */ +/* Define to 1 if you have the 'getservbyport' function. */ #undef HAVE_GETSERVBYPORT -/* Define to 1 if you have the `getsid' function. */ +/* Define to 1 if you have the 'getsid' function. */ #undef HAVE_GETSID -/* Define to 1 if you have the `gettimeofday' function. */ +/* Define to 1 if you have the 'gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY -/* Define to 1 if you have the `getwd' function. */ +/* Define to 1 if you have the 'getwd' function. */ #undef HAVE_GETWD /* glibc's iconv implementation */ #undef HAVE_GLIBC_ICONV -/* Define to 1 if you have the `glob' function. */ +/* Define to 1 if you have the 'glob' function. */ #undef HAVE_GLOB /* */ #undef HAVE_GMP -/* Define to 1 if you have the `gmtime_r' function. */ +/* Define to 1 if you have the 'gmtime_r' function. */ #undef HAVE_GMTIME_R /* Define to 1 if you have the header file. */ @@ -828,7 +822,7 @@ /* */ #undef HAVE_HISTORY_LIST -/* Define to 1 if you have the `hstrerror' function. */ +/* Define to 1 if you have the 'hstrerror' function. */ #undef HAVE_HSTRERROR /* */ @@ -849,10 +843,10 @@ /* Define to 1 if you have the header file. */ #undef HAVE_IEEEFP_H -/* Define to 1 if you have the `if_indextoname' function. */ +/* Define to 1 if you have the 'if_indextoname' function. */ #undef HAVE_IF_INDEXTONAME -/* Define to 1 if you have the `if_nametoindex' function. */ +/* Define to 1 if you have the 'if_nametoindex' function. */ #undef HAVE_IF_NAMETOINDEX /* */ @@ -885,28 +879,28 @@ /* */ #undef HAVE_INET_ATON -/* Define to 1 if you have the `inet_ntoa' function. */ +/* Define to 1 if you have the 'inet_ntoa' function. */ #undef HAVE_INET_NTOA -/* Define to 1 if you have the `inet_ntop' function. */ +/* Define to 1 if you have the 'inet_ntop' function. */ #undef HAVE_INET_NTOP -/* Define to 1 if you have the `inet_pton' function. */ +/* Define to 1 if you have the 'inet_pton' function. */ #undef HAVE_INET_PTON -/* Define to 1 if you have the `initgroups' function. */ +/* Define to 1 if you have the 'initgroups' function. */ #undef HAVE_INITGROUPS -/* Define to 1 if the system has the type `int16_t'. */ +/* Define to 1 if the system has the type 'int16_t'. */ #undef HAVE_INT16_T -/* Define to 1 if the system has the type `int32_t'. */ +/* Define to 1 if the system has the type 'int32_t'. */ #undef HAVE_INT32_T -/* Define to 1 if the system has the type `int64_t'. */ +/* Define to 1 if the system has the type 'int64_t'. */ #undef HAVE_INT64_T -/* Define to 1 if the system has the type `int8_t'. */ +/* Define to 1 if the system has the type 'int8_t'. */ #undef HAVE_INT8_T /* Whether intmax_t is available */ @@ -939,7 +933,7 @@ /* whether to enable JavaScript Object Serialization support */ #undef HAVE_JSON -/* Define to 1 if you have the `kill' function. */ +/* Define to 1 if you have the 'kill' function. */ #undef HAVE_KILL /* do we have kqueue? */ @@ -948,43 +942,43 @@ /* Define to 1 if you have the header file. */ #undef HAVE_LANGINFO_H -/* Define to 1 if you have the `lchown' function. */ +/* Define to 1 if you have the 'lchown' function. */ #undef HAVE_LCHOWN /* */ #undef HAVE_LDAP -/* Define to 1 if you have the `ldap_control_find' function. */ +/* Define to 1 if you have the 'ldap_control_find' function. */ #undef HAVE_LDAP_CONTROL_FIND -/* Define to 1 if you have the `ldap_extended_operation' function. */ +/* Define to 1 if you have the 'ldap_extended_operation' function. */ #undef HAVE_LDAP_EXTENDED_OPERATION -/* Define to 1 if you have the `ldap_extended_operation_s' function. */ +/* Define to 1 if you have the 'ldap_extended_operation_s' function. */ #undef HAVE_LDAP_EXTENDED_OPERATION_S -/* Define to 1 if you have the `ldap_parse_extended_result' function. */ +/* Define to 1 if you have the 'ldap_parse_extended_result' function. */ #undef HAVE_LDAP_PARSE_EXTENDED_RESULT -/* Define to 1 if you have the `ldap_parse_reference' function. */ +/* Define to 1 if you have the 'ldap_parse_reference' function. */ #undef HAVE_LDAP_PARSE_REFERENCE -/* Define to 1 if you have the `ldap_parse_result' function. */ +/* Define to 1 if you have the 'ldap_parse_result' function. */ #undef HAVE_LDAP_PARSE_RESULT -/* Define to 1 if you have the `ldap_passwd' function. */ +/* Define to 1 if you have the 'ldap_passwd' function. */ #undef HAVE_LDAP_PASSWD -/* Define to 1 if you have the `ldap_refresh_s' function. */ +/* Define to 1 if you have the 'ldap_refresh_s' function. */ #undef HAVE_LDAP_REFRESH_S /* LDAP SASL support */ #undef HAVE_LDAP_SASL -/* Define to 1 if you have the `ldap_start_tls_s' function. */ +/* Define to 1 if you have the 'ldap_start_tls_s' function. */ #undef HAVE_LDAP_START_TLS_S -/* Define to 1 if you have the `ldap_whoami_s' function. */ +/* Define to 1 if you have the 'ldap_whoami_s' function. */ #undef HAVE_LDAP_WHOAMI_S /* */ @@ -1026,7 +1020,7 @@ /* */ #undef HAVE_LIBJPEG -/* Define to 1 if you have the `m' library (-lm). */ +/* Define to 1 if you have the 'm' library (-lm). */ #undef HAVE_LIBM /* Whether you have libmm */ @@ -1044,7 +1038,7 @@ /* */ #undef HAVE_LIBPNG -/* Define to 1 if you have the `pq' library (-lpq). */ +/* Define to 1 if you have the 'pq' library (-lpq). */ #undef HAVE_LIBPQ /* */ @@ -1086,10 +1080,10 @@ /* Define to 1 if you have the header file. */ #undef HAVE_LINUX_SOCK_DIAG_H -/* Define to 1 if you have the `localtime_r' function. */ +/* Define to 1 if you have the 'localtime_r' function. */ #undef HAVE_LOCALTIME_R -/* Define to 1 if the system has the type `long double'. */ +/* Define to 1 if the system has the type 'long double'. */ #undef HAVE_LONG_DOUBLE /* do we have SO_LISTENQxxx? */ @@ -1104,7 +1098,7 @@ /* do we have mach_vm_read? */ #undef HAVE_MACH_VM_READ -/* Define to 1 if you have the `makedev' function. */ +/* Define to 1 if you have the 'makedev' function. */ #undef HAVE_MAKEDEV /* Define to 1 if you have the header file. */ @@ -1116,40 +1110,40 @@ /* whether to have multibyte string support */ #undef HAVE_MBSTRING -/* Define to 1 if you have the `memcntl' function. */ +/* Define to 1 if you have the 'memcntl' function. */ #undef HAVE_MEMCNTL -/* Define to 1 if you have the `memmem' function. */ +/* Define to 1 if you have the 'memmem' function. */ #undef HAVE_MEMMEM -/* Define to 1 if you have the `memmove' function. */ +/* Define to 1 if you have the 'memmove' function. */ #undef HAVE_MEMMOVE -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the `memrchr' function. */ +/* Define to 1 if you have the 'memrchr' function. */ #undef HAVE_MEMRCHR /* Libzip >= 1.7.0 with zip_*_method_supported functions */ #undef HAVE_METHOD_SUPPORTED -/* Define to 1 if you have the `mkfifo' function. */ +/* Define to 1 if you have the header file. */ +#undef HAVE_MINIX_CONFIG_H + +/* Define to 1 if you have the 'mkfifo' function. */ #undef HAVE_MKFIFO -/* Define to 1 if you have the `mknod' function. */ +/* Define to 1 if you have the 'mknod' function. */ #undef HAVE_MKNOD -/* Define to 1 if you have the `mkstemp' function. */ +/* Define to 1 if you have the 'mkstemp' function. */ #undef HAVE_MKSTEMP -/* Define to 1 if you have the `mmap' function. */ +/* Define to 1 if you have the 'mmap' function. */ #undef HAVE_MMAP -/* Define to 1 if you have the `mprotect' function. */ +/* Define to 1 if you have the 'mprotect' function. */ #undef HAVE_MPROTECT -/* Define to 1 if you have the `mremap' function. */ +/* Define to 1 if you have the 'mremap' function. */ #undef HAVE_MREMAP /* Whether you have MySQL */ @@ -1173,10 +1167,10 @@ /* */ #undef HAVE_NGETTEXT -/* Define to 1 if you have the `nice' function. */ +/* Define to 1 if you have the 'nice' function. */ #undef HAVE_NICE -/* Define to 1 if you have the `nl_langinfo' function. */ +/* Define to 1 if you have the 'nl_langinfo' function. */ #undef HAVE_NL_LANGINFO /* Define to 1 if you have the header file. */ @@ -1267,7 +1261,7 @@ /* */ #undef HAVE_PHP_SESSION -/* Define to 1 if you have the `poll' function. */ +/* Define to 1 if you have the 'poll' function. */ #undef HAVE_POLL /* Define to 1 if you have the header file. */ @@ -1297,7 +1291,7 @@ /* Define to 1 if the PS_STRINGS thing exists. */ #undef HAVE_PS_STRINGS -/* Define to 1 if you have the `pthread_jit_write_protect_np' function. */ +/* Define to 1 if you have the 'pthread_jit_write_protect_np' function. */ #undef HAVE_PTHREAD_JIT_WRITE_PROTECT_NP /* do we have ptrace? */ @@ -1309,7 +1303,7 @@ /* Define to 1 if you have the header file. */ #undef HAVE_PTY_H -/* Define to 1 if you have the `putenv' function. */ +/* Define to 1 if you have the 'putenv' function. */ #undef HAVE_PUTENV /* Define to 1 if you have the header file. */ @@ -1318,7 +1312,7 @@ /* */ #undef HAVE_PWRITE -/* Define to 1 if you have the `RAND_egd' function. */ +/* Define to 1 if you have the 'RAND_egd' function. */ #undef HAVE_RAND_EGD /* Define to 1 if you have the header file. */ @@ -1336,7 +1330,7 @@ /* */ #undef HAVE_RFC822_OUTPUT_ADDRESS_LIST -/* Define to 1 if you have the `rfork' function. */ +/* Define to 1 if you have the 'rfork' function. */ #undef HAVE_RFORK /* */ @@ -1354,7 +1348,7 @@ /* Whether you have sockaddr_storage.ss_family */ #undef HAVE_SA_SS_FAMILY -/* Define to 1 if you have the `scandir' function. */ +/* Define to 1 if you have the 'scandir' function. */ #undef HAVE_SCANDIR /* do we have select? */ @@ -1369,34 +1363,34 @@ /* */ #undef HAVE_SEMUN -/* Define to 1 if you have the `setegid' function. */ +/* Define to 1 if you have the 'setegid' function. */ #undef HAVE_SETEGID -/* Define to 1 if you have the `setenv' function. */ +/* Define to 1 if you have the 'setenv' function. */ #undef HAVE_SETENV -/* Define to 1 if you have the `seteuid' function. */ +/* Define to 1 if you have the 'seteuid' function. */ #undef HAVE_SETEUID -/* Define to 1 if you have the `setitimer' function. */ +/* Define to 1 if you have the 'setitimer' function. */ #undef HAVE_SETITIMER /* do we have setpflags? */ #undef HAVE_SETPFLAGS -/* Define to 1 if you have the `setpriority' function. */ +/* Define to 1 if you have the 'setpriority' function. */ #undef HAVE_SETPRIORITY -/* Define to 1 if you have the `setproctitle' function. */ +/* Define to 1 if you have the 'setproctitle' function. */ #undef HAVE_SETPROCTITLE -/* Define to 1 if you have the `setproctitle_fast' function. */ +/* Define to 1 if you have the 'setproctitle_fast' function. */ #undef HAVE_SETPROCTITLE_FAST -/* Define to 1 if you have the `setrlimit' function. */ +/* Define to 1 if you have the 'setrlimit' function. */ #undef HAVE_SETRLIMIT -/* Define to 1 if you have the `setsid' function. */ +/* Define to 1 if you have the 'setsid' function. */ #undef HAVE_SETSID /* */ @@ -1420,25 +1414,25 @@ /* */ #undef HAVE_SHM_OPEN -/* Define to 1 if you have the `shutdown' function. */ +/* Define to 1 if you have the 'shutdown' function. */ #undef HAVE_SHUTDOWN /* */ #undef HAVE_SHUTDOWN_SNMP_LOGGING -/* Define to 1 if you have the `sigaction' function. */ +/* Define to 1 if you have the 'sigaction' function. */ #undef HAVE_SIGACTION -/* Define to 1 if you have the `sigprocmask' function. */ +/* Define to 1 if you have the 'sigprocmask' function. */ #undef HAVE_SIGPROCMASK -/* Define to 1 if you have the `sigsetjmp' function. */ +/* Define to 1 if you have the 'sigsetjmp' function. */ #undef HAVE_SIGSETJMP -/* Define to 1 if you have the `sigtimedwait' function. */ +/* Define to 1 if you have the 'sigtimedwait' function. */ #undef HAVE_SIGTIMEDWAIT -/* Define to 1 if you have the `sigwaitinfo' function. */ +/* Define to 1 if you have the 'sigwaitinfo' function. */ #undef HAVE_SIGWAITINFO /* */ @@ -1477,7 +1471,7 @@ /* */ #undef HAVE_SOCKETS -/* Define to 1 if the system has the type `socklen_t'. */ +/* Define to 1 if the system has the type 'socklen_t'. */ #undef HAVE_SOCKLEN_T /* */ @@ -1528,25 +1522,28 @@ /* Whether ssize_t is available */ #undef HAVE_SSIZE_T -/* Define to 1 if you have the `statfs' function. */ +/* Define to 1 if you have the 'statfs' function. */ #undef HAVE_STATFS -/* Define to 1 if you have the `statvfs' function. */ +/* Define to 1 if you have the 'statvfs' function. */ #undef HAVE_STATVFS /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H +/* Define to 1 if you have the header file. */ +#undef HAVE_STDIO_H + /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H -/* Define to 1 if you have the `std_syslog' function. */ +/* Define to 1 if you have the 'std_syslog' function. */ #undef HAVE_STD_SYSLOG -/* Define to 1 if you have the `strcasecmp' function. */ +/* Define to 1 if you have the 'strcasecmp' function. */ #undef HAVE_STRCASECMP -/* Define to 1 if you have the `strerror_r' function. */ +/* Define if you have 'strerror_r'. */ #undef HAVE_STRERROR_R /* Define to 1 if you have the header file. */ @@ -1555,53 +1552,53 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H -/* Define to 1 if you have the `strlcat' function. */ +/* Define to 1 if you have the 'strlcat' function. */ #undef HAVE_STRLCAT -/* Define to 1 if you have the `strlcpy' function. */ +/* Define to 1 if you have the 'strlcpy' function. */ #undef HAVE_STRLCPY -/* Define to 1 if you have the `strndup' function. */ +/* Define to 1 if you have the 'strndup' function. */ #undef HAVE_STRNDUP -/* Define to 1 if you have the `strnlen' function. */ +/* Define to 1 if you have the 'strnlen' function. */ #undef HAVE_STRNLEN -/* Define to 1 if you have the `strptime' function. */ +/* Define to 1 if you have the 'strptime' function. */ #undef HAVE_STRPTIME /* whether strptime() declaration fails */ #undef HAVE_STRPTIME_DECL_FAILS -/* Define to 1 if you have the `strtok_r' function. */ +/* Define to 1 if you have the 'strtok_r' function. */ #undef HAVE_STRTOK_R -/* Define to 1 if you have the `strtoll' function. */ +/* Define to 1 if you have the 'strtoll' function. */ #undef HAVE_STRTOLL /* whether you have struct flock */ #undef HAVE_STRUCT_FLOCK -/* Define to 1 if `st_blksize' is a member of `struct stat'. */ +/* Define to 1 if 'st_blksize' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BLKSIZE -/* Define to 1 if `st_blocks' is a member of `struct stat'. */ +/* Define to 1 if 'st_blocks' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BLOCKS -/* Define to 1 if `st_rdev' is a member of `struct stat'. */ +/* Define to 1 if 'st_rdev' is a member of 'struct stat'. */ #undef HAVE_STRUCT_STAT_ST_RDEV -/* Define to 1 if `tm_gmtoff' is a member of `struct tm'. */ +/* Define to 1 if 'tm_gmtoff' is a member of 'struct tm'. */ #undef HAVE_STRUCT_TM_TM_GMTOFF -/* Define to 1 if `tm_zone' is a member of `struct tm'. */ +/* Define to 1 if 'tm_zone' is a member of 'struct tm'. */ #undef HAVE_STRUCT_TM_TM_ZONE -/* Define to 1 if your `struct stat' has `st_blocks'. Deprecated, use - `HAVE_STRUCT_STAT_ST_BLOCKS' instead. */ +/* Define to 1 if your 'struct stat' has 'st_blocks'. Deprecated, use + 'HAVE_STRUCT_STAT_ST_BLOCKS' instead. */ #undef HAVE_ST_BLOCKS -/* Define to 1 if you have the `symlink' function. */ +/* Define to 1 if you have the 'symlink' function. */ #undef HAVE_SYMLINK /* do we have sysconf? */ @@ -1745,33 +1742,33 @@ /* Define to 1 if you have the header file. */ #undef HAVE_TMMINTRIN_H -/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use - `HAVE_STRUCT_TM_TM_ZONE' instead. */ +/* Define to 1 if your 'struct tm' has 'tm_zone'. Deprecated, use + 'HAVE_STRUCT_TM_TM_ZONE' instead. */ #undef HAVE_TM_ZONE /* Whether you have a working ttyname_r */ #undef HAVE_TTYNAME_R -/* Define to 1 if you don't have `tm_zone' but do have the external array - `tzname'. */ +/* Define to 1 if you don't have 'tm_zone' but do have the external array + 'tzname'. */ #undef HAVE_TZNAME -/* Define to 1 if you have the `tzset' function. */ +/* Define to 1 if you have the 'tzset' function. */ #undef HAVE_TZSET /* */ #undef HAVE_UDBCEXT_H -/* Define to 1 if the system has the type `uint16_t'. */ +/* Define to 1 if the system has the type 'uint16_t'. */ #undef HAVE_UINT16_T -/* Define to 1 if the system has the type `uint32_t'. */ +/* Define to 1 if the system has the type 'uint32_t'. */ #undef HAVE_UINT32_T -/* Define to 1 if the system has the type `uint64_t'. */ +/* Define to 1 if the system has the type 'uint64_t'. */ #undef HAVE_UINT64_T -/* Define to 1 if the system has the type `uint8_t'. */ +/* Define to 1 if the system has the type 'uint8_t'. */ #undef HAVE_UINT8_T /* Define to 1 if you have the header file. */ @@ -1783,10 +1780,10 @@ /* Define to 1 if you have the header file. */ #undef HAVE_UNIX_H -/* Define to 1 if you have the `unsetenv' function. */ +/* Define to 1 if you have the 'unsetenv' function. */ #undef HAVE_UNSETENV -/* Define to 1 if you have the `unshare' function. */ +/* Define to 1 if you have the 'unshare' function. */ #undef HAVE_UNSHARE /* */ @@ -1796,13 +1793,13 @@ userfaultfd */ #undef HAVE_USERFAULTFD_WRITEFAULT -/* Define to 1 if you have the `usleep' function. */ +/* Define to 1 if you have the 'usleep' function. */ #undef HAVE_USLEEP -/* Define to 1 if you have the `utime' function. */ +/* Define to 1 if you have the 'utime' function. */ #undef HAVE_UTIME -/* Define to 1 if you have the `utimes' function. */ +/* Define to 1 if you have the 'utimes' function. */ #undef HAVE_UTIMES /* Define to 1 if you have the header file. */ @@ -1814,18 +1811,21 @@ /* */ #undef HAVE_VALGRIND -/* Define to 1 if you have the `vasprintf' function. */ +/* Define to 1 if you have the 'vasprintf' function. */ #undef HAVE_VASPRINTF -/* Define to 1 if you have the `wait3' function. */ +/* Define to 1 if you have the 'wait3' function. */ #undef HAVE_WAIT3 -/* Define to 1 if you have the `wait4' function. */ +/* Define to 1 if you have the 'wait4' function. */ #undef HAVE_WAIT4 -/* Define to 1 if you have the `waitpid' function. */ +/* Define to 1 if you have the 'waitpid' function. */ #undef HAVE_WAITPID +/* Define to 1 if you have the header file. */ +#undef HAVE_WCHAR_H + /* Define to 1 if you have the header file. */ #undef HAVE_WMMINTRIN_H @@ -2069,28 +2069,28 @@ /* */ #undef QDBM_INCLUDE_FILE -/* The size of `int', as computed by sizeof. */ +/* The size of 'int', as computed by sizeof. */ #undef SIZEOF_INT /* Size of intmax_t */ #undef SIZEOF_INTMAX_T -/* The size of `long', as computed by sizeof. */ +/* The size of 'long', as computed by sizeof. */ #undef SIZEOF_LONG -/* The size of `long long', as computed by sizeof. */ +/* The size of 'long long', as computed by sizeof. */ #undef SIZEOF_LONG_LONG -/* The size of `off_t', as computed by sizeof. */ +/* The size of 'off_t', as computed by sizeof. */ #undef SIZEOF_OFF_T /* Size of ptrdiff_t */ #undef SIZEOF_PTRDIFF_T -/* The size of `short', as computed by sizeof. */ +/* The size of 'short', as computed by sizeof. */ #undef SIZEOF_SHORT -/* The size of `size_t', as computed by sizeof. */ +/* The size of 'size_t', as computed by sizeof. */ #undef SIZEOF_SIZE_T /* Size of ssize_t */ @@ -2113,7 +2113,9 @@ STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION -/* Define to 1 if you have the ANSI C header files. */ +/* Define to 1 if all of the C89 standard headers exist (not just the ones + required in a freestanding environment). This macro is provided for + backward compatibility; new code need not use it. */ #undef STDC_HEADERS /* Define to 1 if strerror_r returns char *. */ @@ -2122,7 +2124,7 @@ /* */ #undef TCADB_INCLUDE_FILE -/* Define to 1 if your declares `struct tm'. */ +/* Define to 1 if your declares 'struct tm'. */ #undef TM_IN_SYS_TIME /* */ @@ -2134,25 +2136,95 @@ /* Use system default cipher list instead of hardcoded value */ #undef USE_OPENSSL_SYSTEM_CIPHERS -/* Enable extensions on AIX 3, Interix. */ +/* Enable extensions on AIX, Interix, z/OS. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif +/* Enable general extensions on macOS. */ +#ifndef _DARWIN_C_SOURCE +# undef _DARWIN_C_SOURCE +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# undef __EXTENSIONS__ +#endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif -/* Enable threading extensions on Solaris. */ +/* Enable X/Open compliant socket functions that do not require linking + with -lxnet on HP-UX 11.11. */ +#ifndef _HPUX_ALT_XOPEN_SOCKET_API +# undef _HPUX_ALT_XOPEN_SOCKET_API +#endif +/* Identify the host operating system as Minix. + This macro does not affect the system headers' behavior. + A future release of Autoconf may stop defining this macro. */ +#ifndef _MINIX +# undef _MINIX +#endif +/* Enable general extensions on NetBSD. + Enable NetBSD compatibility extensions on Minix. */ +#ifndef _NETBSD_SOURCE +# undef _NETBSD_SOURCE +#endif +/* Enable OpenBSD compatibility extensions on NetBSD. + Oddly enough, this does nothing on OpenBSD. */ +#ifndef _OPENBSD_SOURCE +# undef _OPENBSD_SOURCE +#endif +/* Define to 1 if needed for POSIX-compatible behavior. */ +#ifndef _POSIX_SOURCE +# undef _POSIX_SOURCE +#endif +/* Define to 2 if needed for POSIX-compatible behavior. */ +#ifndef _POSIX_1_SOURCE +# undef _POSIX_1_SOURCE +#endif +/* Enable POSIX-compatible threading on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif +/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ +#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ +# undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ +#endif +/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ +#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ +# undef __STDC_WANT_IEC_60559_BFP_EXT__ +#endif +/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ +#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ +# undef __STDC_WANT_IEC_60559_DFP_EXT__ +#endif +/* Enable extensions specified by C23 Annex F. */ +#ifndef __STDC_WANT_IEC_60559_EXT__ +# undef __STDC_WANT_IEC_60559_EXT__ +#endif +/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ +#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ +# undef __STDC_WANT_IEC_60559_FUNCS_EXT__ +#endif +/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */ +#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ +# undef __STDC_WANT_IEC_60559_TYPES_EXT__ +#endif +/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ +#ifndef __STDC_WANT_LIB_EXT2__ +# undef __STDC_WANT_LIB_EXT2__ +#endif +/* Enable extensions specified by ISO/IEC 24747:2009. */ +#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ +# undef __STDC_WANT_MATH_SPEC_FUNCS__ +#endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif -/* Enable general extensions on Solaris. */ -#ifndef __EXTENSIONS__ -# undef __EXTENSIONS__ +/* Enable X/Open extensions. Define to 500 only if necessary + to make mbstate_t available. */ +#ifndef _XOPEN_SOURCE +# undef _XOPEN_SOURCE #endif @@ -2186,38 +2258,28 @@ /* */ #undef ZTS -/* Define to 1 if on MINIX. */ -#undef _MINIX - -/* Define to 2 if the system does not provide POSIX.1 features except with - this defined. */ -#undef _POSIX_1_SOURCE - -/* Define to 1 if you need to in order for `stat' and other things to work. */ -#undef _POSIX_SOURCE - /* */ #undef _XOPEN_SOURCE /* Define when using musl libc */ #undef __MUSL__ -/* Define to `int' if doesn't define. */ +/* Define as 'int' if doesn't define. */ #undef gid_t /* */ #undef in_addr_t -/* Define to `__inline__' or `__inline' if that's what the C compiler +/* Define to '__inline__' or '__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif -/* Define to `unsigned int' if does not define. */ +/* Define as 'unsigned int' if doesn't define. */ #undef size_t -/* Define to `int' if doesn't define. */ +/* Define as 'int' if doesn't define. */ #undef uid_t diff -Nru php8.2-8.2.30/main/php_ini.c php8.2-8.2.31/main/php_ini.c --- php8.2-8.2.30/main/php_ini.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/main/php_ini.c 2026-05-05 13:59:08.000000000 +0000 @@ -40,7 +40,7 @@ char *tmp = path; \ while (*tmp) { \ if (*tmp == '\\') *tmp = '/'; \ - else *tmp = tolower(*tmp); \ + else *tmp = tolower((unsigned char)*tmp); \ tmp++; \ } \ } diff -Nru php8.2-8.2.30/main/php_ini_builder.c php8.2-8.2.31/main/php_ini_builder.c --- php8.2-8.2.30/main/php_ini_builder.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/main/php_ini_builder.c 2026-05-05 13:59:08.000000000 +0000 @@ -67,7 +67,7 @@ if (val != NULL) { val++; - if (!isalnum(*val) && *val != '"' && *val != '\'' && *val != '\0') { + if (!isalnum((unsigned char)*val) && *val != '"' && *val != '\'' && *val != '\0') { php_ini_builder_quoted(b, arg, val - arg - 1, val, arg + len - val); } else { php_ini_builder_realloc(b, len + strlen("\n")); diff -Nru php8.2-8.2.30/main/php_variables.c php8.2-8.2.31/main/php_variables.c --- php8.2-8.2.30/main/php_variables.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/main/php_variables.c 2026-05-05 13:59:08.000000000 +0000 @@ -220,7 +220,7 @@ ip++; index_s = ip; - if (isspace(*ip)) { + if (isspace((unsigned char)*ip)) { ip++; } if (*ip==']') { @@ -543,7 +543,7 @@ if (arg == PARSE_COOKIE) { /* Remove leading spaces from cookie names, needed for multi-cookie header where ; can be followed by a space */ - while (isspace(*var)) { + while (isspace((unsigned char)*var)) { var++; } if (var == val || *var == '\0') { diff -Nru php8.2-8.2.30/main/php_version.h php8.2-8.2.31/main/php_version.h --- php8.2-8.2.30/main/php_version.h 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/main/php_version.h 2026-05-05 13:59:08.000000000 +0000 @@ -2,7 +2,7 @@ /* edit configure.ac to change version number */ #define PHP_MAJOR_VERSION 8 #define PHP_MINOR_VERSION 2 -#define PHP_RELEASE_VERSION 30 +#define PHP_RELEASE_VERSION 31 #define PHP_EXTRA_VERSION "" -#define PHP_VERSION "8.2.30" -#define PHP_VERSION_ID 80230 +#define PHP_VERSION "8.2.31" +#define PHP_VERSION_ID 80231 diff -Nru php8.2-8.2.30/main/rfc1867.c php8.2-8.2.31/main/rfc1867.c --- php8.2-8.2.30/main/rfc1867.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/main/rfc1867.c 2026-05-05 13:59:08.000000000 +0000 @@ -414,7 +414,7 @@ } /* space in the beginning means same header */ - if (!isspace(line[0])) { + if (!isspace((unsigned char)line[0])) { value = strchr(line, ':'); } @@ -430,7 +430,7 @@ } *value = '\0'; - do { value++; } while (isspace(*value)); + do { value++; } while (isspace((unsigned char)*value)); key = estrdup(line); smart_string_appends(&buf_value, value); @@ -527,7 +527,7 @@ static char *php_ap_getword_conf(const zend_encoding *encoding, char *str) { - while (*str && isspace(*str)) { + while (*str && isspace((unsigned char)*str)) { ++str; } @@ -543,7 +543,7 @@ } else { char *strend = str; - while (*strend && !isspace(*strend)) { + while (*strend && !isspace((unsigned char)*strend)) { ++strend; } return substring_conf(str, strend - str, 0); @@ -810,7 +810,7 @@ goto fileupload_done; } - while (isspace(*cd)) { + while (isspace((unsigned char)*cd)) { ++cd; } @@ -818,7 +818,7 @@ { char *key = NULL, *word = pair; - while (isspace(*cd)) { + while (isspace((unsigned char)*cd)) { ++cd; } diff -Nru php8.2-8.2.30/main/snprintf.c php8.2-8.2.31/main/snprintf.c --- php8.2-8.2.30/main/snprintf.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/main/snprintf.c 2026-05-05 13:59:08.000000000 +0000 @@ -288,7 +288,7 @@ /* * Check for Infinity and NaN */ - if (isalpha((int)*p)) { + if (isalpha((unsigned char)*p)) { *len = strlen(p); memcpy(buf, p, *len + 1); *is_negative = false; @@ -435,11 +435,11 @@ #define NUM( c ) ( c - '0' ) #define STR_TO_DEC( str, num ) \ - num = NUM( *str++ ) ; \ - while ( isdigit((int)*str ) ) \ + num = NUM( *(str)++ ) ; \ + while ( isdigit((unsigned char)*(str) ) ) \ { \ num *= 10 ; \ - num += NUM( *str++ ) ; \ + num += NUM( *(str)++ ) ; \ } /* @@ -533,7 +533,7 @@ /* * Try to avoid checking for flags, width or precision */ - if (isascii((int)*fmt) && !islower((int)*fmt)) { + if (isascii((unsigned char)*fmt) && !islower((unsigned char)*fmt)) { /* * Recognize flags: -, #, BLANK, + */ @@ -555,7 +555,7 @@ /* * Check if a width was specified */ - if (isdigit((int)*fmt)) { + if (isdigit((unsigned char)*fmt)) { STR_TO_DEC(fmt, min_width); adjust_width = true; } else if (*fmt == '*') { @@ -575,7 +575,7 @@ if (*fmt == '.') { adjust_precision = true; fmt++; - if (isdigit((int)*fmt)) { + if (isdigit((unsigned char)*fmt)) { STR_TO_DEC(fmt, precision); } else if (*fmt == '*') { precision = va_arg(ap, int); diff -Nru php8.2-8.2.30/main/spprintf.c php8.2-8.2.31/main/spprintf.c --- php8.2-8.2.30/main/spprintf.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/main/spprintf.c 2026-05-05 13:59:08.000000000 +0000 @@ -148,12 +148,12 @@ #define NUM(c) (c - '0') #define STR_TO_DEC(str, num) do { \ - num = NUM(*str++); \ - while (isdigit((int)*str)) { \ + num = NUM(*(str)++); \ + while (isdigit((unsigned char)*(str))) {\ num *= 10; \ - num += NUM(*str++); \ + num += NUM(*(str)++); \ if (num >= INT_MAX / 10) { \ - while (isdigit((int)*str++)); \ + while (isdigit((unsigned char)*(str)++)); \ break; \ } \ } \ @@ -240,7 +240,7 @@ /* * Try to avoid checking for flags, width or precision */ - if (isascii((int)*fmt) && !islower((int)*fmt)) { + if (isascii((unsigned char)*fmt) && !islower((unsigned char)*fmt)) { /* * Recognize flags: -, #, BLANK, + */ @@ -262,7 +262,7 @@ /* * Check if a width was specified */ - if (isdigit((int)*fmt)) { + if (isdigit((unsigned char)*fmt)) { STR_TO_DEC(fmt, min_width); adjust_width = true; } else if (*fmt == '*') { @@ -282,7 +282,7 @@ if (*fmt == '.') { adjust_precision = true; fmt++; - if (isdigit((int)*fmt)) { + if (isdigit((unsigned char)*fmt)) { STR_TO_DEC(fmt, precision); } else if (*fmt == '*') { precision = va_arg(ap, int); diff -Nru php8.2-8.2.30/main/streams/streams.c php8.2-8.2.31/main/streams/streams.c --- php8.2-8.2.30/main/streams/streams.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/main/streams/streams.c 2026-05-05 13:59:08.000000000 +0000 @@ -1856,7 +1856,7 @@ unsigned int i; for(i = 0; i < protocol_len; i++) { - if (!isalnum((int)protocol[i]) && + if (!isalnum((unsigned char)protocol[i]) && protocol[i] != '+' && protocol[i] != '-' && protocol[i] != '.') { @@ -1936,7 +1936,7 @@ return (php_stream_wrapper*)((options & STREAM_LOCATE_WRAPPERS_ONLY) ? NULL : &php_plain_files_wrapper); } - for (p = path; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++) { + for (p = path; isalnum((unsigned char)*p) || *p == '+' || *p == '-' || *p == '.'; p++) { n++; } diff -Nru php8.2-8.2.30/main/streams/transports.c php8.2-8.2.31/main/streams/transports.c --- php8.2-8.2.30/main/streams/transports.c 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/main/streams/transports.c 2026-05-05 13:59:08.000000000 +0000 @@ -94,7 +94,7 @@ } } - for (p = name; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; p++) { + for (p = name; isalnum((unsigned char)*p) || *p == '+' || *p == '-' || *p == '.'; p++) { n++; } diff -Nru php8.2-8.2.30/pear/install-pear-nozlib.phar php8.2-8.2.31/pear/install-pear-nozlib.phar --- php8.2-8.2.30/pear/install-pear-nozlib.phar 2025-12-16 17:18:12.000000000 +0000 +++ php8.2-8.2.31/pear/install-pear-nozlib.phar 2026-05-05 13:59:08.000000000 +0000 @@ -1282,10 +1282,10 @@ require_once 'phar://install-pear-nozlib.phar/index.php'; -__HALT_COMPILER();Finstall-pear-nozlib.pharArchive/Tar.phpKYZCgKY!mArchive_Tar-1.5.0.tarZCgw;mConsole/Getopt.phph5ZCgh5mConsole_Getopt-1.4.3.tarzZCgzU/m index.php\+ZCg\+Hcm OS/Guess.php#-ZCg#-mPEAR-1.10.16.tarPZCgPZRmPEAR.phpZCg'7,mPEAR/ChannelFile.phpZCgα7mPEAR/ChannelFile/Parser.phpZCgnwPmPEAR/Command.php0ZCg0mPEAR/Command/Common.php; ZCg; k -mPEAR/Command/Install.phpZCgmPEAR/Command/Install.xml!ZCg!jmPEAR/Common.phphZCgh_mPEAR/Config.php ZCg 71mPEAR/Dependency2.phpZCgg{mPEAR/DependencyDB.phpK_ZCgK_jmPEAR/Downloader.phpZCgF(mPEAR/Downloader/Package.php*ZCg*1 mPEAR/ErrorStack.php1ZCg1mPEAR/Frontend.phpZCgmPEAR/Frontend/CLI.phprdZCgrdmPEAR/Installer.phpZCgpmPEAR/Installer/Role.php+ZCg+#tsCmPEAR/Installer/Role/Common.phpGZCgG?mPEAR/Installer/Role/Data.phpZCg -mPEAR/Installer/Role/Data.xmlZCgfszmPEAR/Installer/Role/Doc.php ZCg mPEAR/Installer/Role/Doc.xmlZCgh&P*mPEAR/Installer/Role/Php.php ZCg ?mmPEAR/Installer/Role/Php.xmlZCgzqmPEAR/Installer/Role/Script.phpZCg[mPEAR/Installer/Role/Script.xmlZCg@vmPEAR/Installer/Role/Test.phpZCgYmPEAR/Installer/Role/Test.xmlZCgB] mPEAR/PackageFile.php>ZCg>Om!PEAR/PackageFile/Generator/v1.phpEZCgEHm!PEAR/PackageFile/Generator/v2.php8ZCg8\;mPEAR/PackageFile/Parser/v1.php@ZCg@!mPEAR/PackageFile/Parser/v2.php ZCg mPEAR/PackageFile/v1.php"ZCg"0mPEAR/PackageFile/v2.phpdZCgd%Ewm!PEAR/PackageFile/v2/Validator.phpLZCgLC8mPEAR/Proxy.phpZCg(PzmPEAR/Registry.php+ZCg+FW5m PEAR/REST.phpAZCgA-mPEAR/REST/10.phpZCgmPEAR/Start.php :ZCg :ncmPEAR/Start/CLI.phpTSZCgTScmPEAR/Task/Common.phpDZCgD.mPEAR/Task/Postinstallscript.php9ZCg9Lvm"PEAR/Task/Postinstallscript/rw.phpAZCgAj+mPEAR/Task/Replace.phpZCgLpK_mPEAR/Task/Replace/rw.php<ZCg<7AmPEAR/Task/Unixeol.php$ ZCg$ jmPEAR/Task/Unixeol/rw.phpAZCgAoymPEAR/Task/Windowseol.php ZCg {MPmPEAR/Task/Windowseol/rw.phpNZCgNjmPEAR/Validate.php?VZCg?V,ntmPEAR/Validator/PECL.php^ZCg^_mPEAR/XMLParser.phpIZCgIͰhmStructures/Graph.phpiZCgiC}m,Structures/Graph/Manipulator/AcyclicTest.phpZCg1m2Structures/Graph/Manipulator/TopologicalSorter.phpZCgv?mStructures/Graph/Node.phpj+ZCgj+]#imStructures_Graph-1.2.0.tar8ZCg8(m -System.php QZCg QXBm XML/Util.php}ZCg}|mXML_Util-1.4.5.tar@ZCg@*BkmmPEAR/Command/Install.php QviCv(mPEAR/Command/Install.xml! Qvi!jmPEAR/Common.phph Qvih mPEAR/Config.php  Qvi ImPEAR/Dependency2.php QvimPEAR/DependencyDB.phpK_ QviK_@.mPEAR/Downloader.php8 Qvi8$mPEAR/Downloader/Package.php* Qvi*ET[mPEAR/ErrorStack.php1 Qvi1!mPEAR/Frontend.php QviޔmPEAR/Frontend/CLI.phpe QvieRmmPEAR/Installer.php Qvii?umPEAR/Installer/Role.php+ Qvi+θ7mPEAR/Installer/Role/Common.phpG QviG(mPEAR/Installer/Role/Data.php Qvir+kmPEAR/Installer/Role/Data.xml QvifszmPEAR/Installer/Role/Doc.php  Qvi çmPEAR/Installer/Role/Doc.xml Qvih&P*mPEAR/Installer/Role/Php.php  Qvi  >lmPEAR/Installer/Role/Php.xml QvizqmPEAR/Installer/Role/Script.php QviP'mPEAR/Installer/Role/Script.xml Qvi@vmPEAR/Installer/Role/Test.php QviiLmPEAR/Installer/Role/Test.xml QviB] mPEAR/PackageFile.php> Qvi>]m!PEAR/PackageFile/Generator/v1.phpE QviEAm!PEAR/PackageFile/Generator/v2.php8 Qvi8Y.hmPEAR/PackageFile/Parser/v1.php@ Qvi@mPEAR/PackageFile/Parser/v2.php Qvi lImPEAR/PackageFile/v1.php" Qvi"'TmPEAR/PackageFile/v2.phpd Qvid"m!PEAR/PackageFile/v2/Validator.phpL QviLgmPEAR/Proxy.php Qvi(PzmPEAR/Registry.php+ Qvi+ѱm PEAR/REST.phpiC QviiC_9~mPEAR/REST/10.php Qvid[rmPEAR/Start.php : Qvi :ncmPEAR/Start/CLI.phpTS QviTScmPEAR/Task/Common.phpD QviD&mPEAR/Task/Postinstallscript.php9 Qvi9Km"PEAR/Task/Postinstallscript/rw.phpA QviA{SmPEAR/Task/Replace.php Qvio9xmPEAR/Task/Replace/rw.php< Qvi<YY +mPEAR/Task/Unixeol.php$ Qvi$ jp mPEAR/Task/Unixeol/rw.phpA QviA; mPEAR/Task/Windowseol.php Qvi mPEAR/Task/Windowseol/rw.phpN QviNzߖmPEAR/Validate.php?V Qvi?V MmPEAR/Validator/PECL.php^ Qvi^f^mPEAR/XMLParser.phpI QviIYkmStructures/Graph.phpi QviiC}m,Structures/Graph/Manipulator/AcyclicTest.php Qvi1m2Structures/Graph/Manipulator/TopologicalSorter.php Qviv?mStructures/Graph/Node.phpj+ Qvij+]#imStructures_Graph-1.2.0.tar8 Qvi8(m +System.php Q Qvi Qw1WBm XML/Util.php} Qvi}|mXML_Util-1.4.5.tar@ Qvi@*Bkm_fmt = "Z100filename/Z8mode/Z8uid/Z8gid/Z12size/Z12mtime/" . + $this->_fmt = "Z100filename/Z8mode/Z8uid/Z8gid/a12size/Z12mtime/" . "Z8checksum/Z1typeflag/Z100link/Z6magic/Z2version/" . "Z32uname/Z32gname/Z8devmajor/Z8devminor/Z131prefix"; } @@ -2278,48 +2257,45 @@ { if (is_resource($this->_file)) { if ($p_len === null) { - if ($this->_compress_type == 'gz') { - @gzputs($this->_file, $p_binary_data); - } else { - if ($this->_compress_type == 'bz2') { - @bzwrite($this->_file, $p_binary_data); - } else { - if ($this->_compress_type == 'lzma2') { - @xzwrite($this->_file, $p_binary_data); - } else { - if ($this->_compress_type == 'none') { - @fputs($this->_file, $p_binary_data); - } else { - $this->_error( - 'Unknown or missing compression type (' - . $this->_compress_type . ')' - ); - } - } - } - } - } else { - if ($this->_compress_type == 'gz') { - @gzputs($this->_file, $p_binary_data, $p_len); - } else { - if ($this->_compress_type == 'bz2') { - @bzwrite($this->_file, $p_binary_data, $p_len); - } else { - if ($this->_compress_type == 'lzma2') { - @xzwrite($this->_file, $p_binary_data, $p_len); - } else { - if ($this->_compress_type == 'none') { - @fputs($this->_file, $p_binary_data, $p_len); - } else { - $this->_error( - 'Unknown or missing compression type (' - . $this->_compress_type . ')' - ); - } - } - } - } + switch ($this->_compress_type) + { + case 'gz': + $bytes = @gzwrite($this->_file, $p_binary_data); + break; + case 'bz2': + $bytes = @bzwrite($this->_file, $p_binary_data); + break; + case 'lzma2': + $bytes = @xzwrite($this->_file, $p_binary_data); + break; + case 'none': + $bytes = @fwrite($this->_file, $p_binary_data); + break; + default: + $this->_error('Unknown or missing compression type (' . $this->_compress_type . ')'); + return false; + } + } else { + switch ($this->_compress_type) + { + case 'gz': + $bytes = @gzwrite($this->_file, $p_binary_data, $p_len); + break; + case 'bz2': + $bytes = @bzwrite($this->_file, $p_binary_data, $p_len); + break; + case 'lzma2': + $bytes = @xzwrite($this->_file, $p_binary_data, $p_len); + break; + case 'none': + $bytes = @fwrite($this->_file, $p_binary_data, $p_len); + break; + default: + $this->_error('Unknown or missing compression type (' . $this->_compress_type . ')'); + return false; + } } + return $bytes !== false; } return true; } @@ -2404,7 +2380,7 @@ if (is_resource($this->_file)) { // ----- Write the last 0 filled block for end of archive $v_binary_data = pack('a1024', ''); - $this->_writeBlock($v_binary_data); + return $this->_writeBlock($v_binary_data); } return true; } @@ -2566,7 +2542,9 @@ $pack_format = sprintf('a%d', $this->buffer_length); } $v_binary_data = pack($pack_format, "$v_buffer"); - $this->_writeBlock($v_binary_data); + if(!$this->_writeBlock($v_binary_data)) { + return false; + } } fclose($v_file); @@ -2628,7 +2606,9 @@ $i = 0; while (($v_buffer = substr($p_string, (($i++) * 512), 512)) != '') { $v_binary_data = pack("a512", $v_buffer); - $this->_writeBlock($v_binary_data); + if (!$this->_writeBlock($v_binary_data)) { + return false; + } } return true; @@ -3815,8 +3795,8 @@ return $p_path; } } -package.xml0000664000175000017500000005035014575343342013062 0ustar ashnazgashnazg - +package.xml0000664000175000017500000005136215036730307013060 0ustar ashnazgashnazg + Archive_Tar pear.php.net Tar file management class @@ -3855,11 +3835,11 @@ stig@php.net no - 2024-03-16 - + 2025-07-19 + - 1.5.0 - 1.5.0 + 1.6.0 + 1.6.0 stable @@ -3867,12 +3847,15 @@ New BSD License -* PR #42: fix @return true... to @return bool true... on some functions -* PR #46: use 775 default for mkdirs, to avoid world-write +This release drops support for PHP 5.4 and 5.5. + +* PR #51: big file support +* PR #53: Fix return value of _writeBlock +* PR #58: Remove gzopen/gztell/gzseek shim - + @@ -3885,10 +3868,10 @@ - 5.2.0 + 5.6.0 - 1.9.0 + 1.10.0 @@ -3896,6 +3879,25 @@ + 1.6.0 + 1.6.0 + + + stable + stable + + 2025-07-19 + New BSD License + +This release drops support for PHP 5.4 and 5.5. + +* PR #51: big file support +* PR #53: Fix return value of _writeBlock +* PR #58: Remove gzopen/gztell/gzseek shim + + + + 1.5.0 1.5.0 @@ -4561,7 +4563,7 @@ -Archive_Tar-1.5.0/Archive/Tar.php0000664000175000017500000025444614575343342016427 0ustar ashnazgashnazg_fmt = "Z100filename/Z8mode/Z8uid/Z8gid/Z12size/Z12mtime/" . + $this->_fmt = "Z100filename/Z8mode/Z8uid/Z8gid/a12size/Z12mtime/" . "Z8checksum/Z1typeflag/Z100link/Z6magic/Z2version/" . "Z32uname/Z32gname/Z8devmajor/Z8devminor/Z131prefix"; } @@ -5554,48 +5535,45 @@ { if (is_resource($this->_file)) { if ($p_len === null) { - if ($this->_compress_type == 'gz') { - @gzputs($this->_file, $p_binary_data); - } else { - if ($this->_compress_type == 'bz2') { - @bzwrite($this->_file, $p_binary_data); - } else { - if ($this->_compress_type == 'lzma2') { - @xzwrite($this->_file, $p_binary_data); - } else { - if ($this->_compress_type == 'none') { - @fputs($this->_file, $p_binary_data); - } else { - $this->_error( - 'Unknown or missing compression type (' - . $this->_compress_type . ')' - ); - } - } - } - } - } else { - if ($this->_compress_type == 'gz') { - @gzputs($this->_file, $p_binary_data, $p_len); - } else { - if ($this->_compress_type == 'bz2') { - @bzwrite($this->_file, $p_binary_data, $p_len); - } else { - if ($this->_compress_type == 'lzma2') { - @xzwrite($this->_file, $p_binary_data, $p_len); - } else { - if ($this->_compress_type == 'none') { - @fputs($this->_file, $p_binary_data, $p_len); - } else { - $this->_error( - 'Unknown or missing compression type (' - . $this->_compress_type . ')' - ); - } - } - } - } + switch ($this->_compress_type) + { + case 'gz': + $bytes = @gzwrite($this->_file, $p_binary_data); + break; + case 'bz2': + $bytes = @bzwrite($this->_file, $p_binary_data); + break; + case 'lzma2': + $bytes = @xzwrite($this->_file, $p_binary_data); + break; + case 'none': + $bytes = @fwrite($this->_file, $p_binary_data); + break; + default: + $this->_error('Unknown or missing compression type (' . $this->_compress_type . ')'); + return false; + } + } else { + switch ($this->_compress_type) + { + case 'gz': + $bytes = @gzwrite($this->_file, $p_binary_data, $p_len); + break; + case 'bz2': + $bytes = @bzwrite($this->_file, $p_binary_data, $p_len); + break; + case 'lzma2': + $bytes = @xzwrite($this->_file, $p_binary_data, $p_len); + break; + case 'none': + $bytes = @fwrite($this->_file, $p_binary_data, $p_len); + break; + default: + $this->_error('Unknown or missing compression type (' . $this->_compress_type . ')'); + return false; + } } + return $bytes !== false; } return true; } @@ -5680,7 +5658,7 @@ if (is_resource($this->_file)) { // ----- Write the last 0 filled block for end of archive $v_binary_data = pack('a1024', ''); - $this->_writeBlock($v_binary_data); + return $this->_writeBlock($v_binary_data); } return true; } @@ -5842,7 +5820,9 @@ $pack_format = sprintf('a%d', $this->buffer_length); } $v_binary_data = pack($pack_format, "$v_buffer"); - $this->_writeBlock($v_binary_data); + if(!$this->_writeBlock($v_binary_data)) { + return false; + } } fclose($v_file); @@ -5904,7 +5884,9 @@ $i = 0; while (($v_buffer = substr($p_string, (($i++) * 512), 512)) != '') { $v_binary_data = pack("a512", $v_buffer); - $this->_writeBlock($v_binary_data); + if (!$this->_writeBlock($v_binary_data)) { + return false; + } } return true; @@ -7091,7 +7073,7 @@ return $p_path; } } -Archive_Tar-1.5.0/docs/Archive_Tar.txt0000644000175000017500000004524614575343342017461 0ustar ashnazgashnazgDocumentation for class Archive_Tar +Archive_Tar-1.6.0/docs/Archive_Tar.txt0000644000175000017500000004524615036730307017454 0ustar ashnazgashnazgDocumentation for class Archive_Tar =================================== Last update : 2001-08-15 @@ -7566,11 +7548,11 @@ Go through the archive and extract only the files present in the list. -package.sig0000664000175000017500000000030314575343370013036 0ustar ashnazgashnazg-----BEGIN PGP SIGNATURE----- +package.sig0000664000175000017500000000030315036730350013025 0ustar ashnazgashnazg-----BEGIN PGP SIGNATURE----- -iF0EABECAB0WIQQQ9oz3P4qkJvYXdSlyoyG6wkXxdQUCZfXG+AAKCRByoyG6wkXx -dWGFAJ47mleOupFDI3l/aiKTj3zafih36gCgosA9KxDa87XLExsxHdS2CgNPNJA= -=XWRy +iF0EABECAB0WIQQQ9oz3P4qkJvYXdSlyoyG6wkXxdQUCaHuw6AAKCRByoyG6wkXx +dbYcAKDfV1Xoum4YOQHKzrXVplUr2I/XrwCgiNn2vw9ifVwFMweSQGrROJBMm9o= +=HVo8 -----END PGP SIGNATURE----- 'phar://install-pear-nozlib.phar/Archive_Tar-1.5.0.tar', +$install_files = array('Archive_Tar' => 'phar://install-pear-nozlib.phar/Archive_Tar-1.6.0.tar', 'Console_Getopt' => 'phar://install-pear-nozlib.phar/Console_Getopt-1.4.3.tar', 'Structures_Graph' => 'phar://install-pear-nozlib.phar/Structures_Graph-1.2.0.tar', 'XML_Util' => 'phar://install-pear-nozlib.phar/XML_Util-1.4.5.tar', -'PEAR' => 'phar://install-pear-nozlib.phar/PEAR-1.10.16.tar', +'PEAR' => 'phar://install-pear-nozlib.phar/PEAR-1.10.18.tar', ); array_shift($argv); $debug = false; @@ -9231,7 +9213,7 @@ * @author Gregory Beaver * @copyright 1997-2020 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -9538,8 +9520,8 @@ * c-basic-offset: 4 * End: */ -package.xml0000664000175000017500000017051714720722517013067 0ustar ashnazgashnazg - +package.xml0000664000175000017500000017224715135450373013070 0ustar ashnazgashnazg + PEAR pear.php.net PEAR Base System @@ -9633,10 +9615,10 @@ mj@php.net no - 2024-11-24 - + 2026-01-25 + - 1.10.16 + 1.10.18 1.10.1 @@ -9645,43 +9627,41 @@ New BSD License -* PR #141: Fix bug #27796: "Array to string" conversion warnings on installs/other actions -* PR #145: Never reference E_STRICT on PHP 8.4+ -* PR #147: Fix tests 8.1+ +* PR #164: don't use report_memleaks with 8.5+ - + - + - + - + - + - + - + - + - + @@ -9690,77 +9670,77 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -9769,115 +9749,115 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -9934,11 +9914,11 @@ - + - + @@ -10901,9 +10881,43 @@ * PR #147: Fix tests 8.1+ + + 2025-12-14 + + 1.10.17 + 1.10.1 + + + stable + stable + + New BSD License + +* PR #152: Fix HTTP chunked encoding handling +* PR #153: fix composer.json: typo in replace for pear_exception package +* PR #154: switch to https by default +* PR #156: Throw new Error instead of E_USER_ERROR on PHP 7.0+ +* PR #159: update tests for https-first behavior + + + + 2026-01-25 + + 1.10.18 + 1.10.1 + + + stable + stable + + New BSD License + +* PR #164: don't use report_memleaks with 8.5+ + + -PEAR-1.10.16/OS/Guess.php0000664000175000017500000002637614720722517014426 0ustar ashnazgashnazg * @copyright 1997-2020 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -11298,7 +11312,7 @@ * c-basic-offset: 4 * End: */ -PEAR-1.10.16/PEAR/ChannelFile/Parser.php0000644000175000017500000000325414720722517017136 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -11364,7 +11378,7 @@ $ret->setPackagefile($file, $archive); return $ret; } -}PEAR-1.10.16/PEAR/Command/Auth.xml0000644000175000017500000000231414720722517016016 0ustar ashnazgashnazg +}PEAR-1.10.18/PEAR/Command/Auth.xml0000644000175000017500000000231415135450373016017 0ustar ashnazgashnazg Connects and authenticates to remote server [Deprecated in favor of channel-login] doLogin @@ -11393,7 +11407,7 @@ connect to the remote server, it only deletes the stored username and password from your user configuration. -PEAR-1.10.16/PEAR/Command/Auth.php0000644000175000017500000000501314720722517016004 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Command/Auth.php0000644000175000017500000000501315135450373016005 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 * @deprecated since 1.8.0alpha1 @@ -11473,7 +11487,7 @@ parent::__construct($ui, $config); } } -PEAR-1.10.16/PEAR/Command/Build.xml0000664000175000017500000000060414720722517016156 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Command/Build.xml0000664000175000017500000000060415135450373016157 0ustar ashnazgashnazg Build an Extension From C Source doBuild @@ -11487,7 +11501,7 @@ [package.xml] Builds one or more extensions contained in a package. -PEAR-1.10.16/PEAR/Command/Build.php0000664000175000017500000000512314720722517016146 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Command/Build.php0000664000175000017500000000512315135450373016147 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -11578,7 +11592,7 @@ } } } -PEAR-1.10.16/PEAR/Command/Channels.xml0000644000175000017500000001017214720722517016651 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Command/Channels.xml0000644000175000017500000001017215135450373016652 0ustar ashnazgashnazg List Available Channels doList @@ -11700,7 +11714,7 @@ remote server, it only deletes the stored username and password from your user configuration. -PEAR-1.10.16/PEAR/Command/Channels.php0000664000175000017500000010124514720722517016644 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Command/Channels.php0000664000175000017500000010132515135450373016644 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -12244,15 +12258,15 @@ // if force is specified, use a timestamp of "1" to force retrieval $lastmodified = isset($options['force']) ? false : $c->lastModified(); PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN); - $contents = $dl->downloadHttp('http://' . $c->getName() . '/channel.xml', + $contents = $dl->downloadHttp('https://' . $c->getName() . '/channel.xml', $this->ui, $tmpdir, null, $lastmodified); PEAR::staticPopErrorHandling(); if (PEAR::isError($contents)) { - // Attempt to fall back to https - $this->ui->outputData("Channel \"$params[0]\" is not responding over http://, failed with message: " . $contents->getMessage()); - $this->ui->outputData("Trying channel \"$params[0]\" over https:// instead"); + // Attempt to fall back to http + $this->ui->outputData("Channel \"$params[0]\" is not responding over https://, failed with message: " . $contents->getMessage()); + $this->ui->outputData("Trying channel \"$params[0]\" over http:// instead"); PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN); - $contents = $dl->downloadHttp('https://' . $c->getName() . '/channel.xml', + $contents = $dl->downloadHttp('http://' . $c->getName() . '/channel.xml', $this->ui, $tmpdir, null, $lastmodified); PEAR::staticPopErrorHandling(); if (PEAR::isError($contents)) { @@ -12260,8 +12274,9 @@ $c->getName() . '" (' . $contents->getMessage() . ')'); } } - - list($contents, $lastmodified) = $contents; + if (is_array($contents)) { + list($contents, $lastmodified) = $contents; + } if (!$contents) { $this->ui->outputData("Channel \"$params[0]\" is up to date"); return; @@ -12582,7 +12597,7 @@ return true; } } -PEAR-1.10.16/PEAR/Command/Common.php0000664000175000017500000002002614720722517016336 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -12854,7 +12869,7 @@ return $this->$func($command, $options, $params); } } -PEAR-1.10.16/PEAR/Command/Config.xml0000644000175000017500000000646614720722517016336 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Command/Config.xml0000644000175000017500000000646615135450373016337 0ustar ashnazgashnazg Show All Settings doConfigShow @@ -12945,7 +12960,7 @@ and uninstall). -PEAR-1.10.16/PEAR/Command/Config.php0000664000175000017500000003615314720722517016323 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Command/Config.php0000664000175000017500000003615315135450373016324 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -13359,7 +13374,7 @@ return false; } } -PEAR-1.10.16/PEAR/Command/Install.xml0000664000175000017500000002076314720722517016535 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Command/Install.xml0000664000175000017500000002076315135450373016536 0ustar ashnazgashnazg Install Package doInstall @@ -13638,7 +13653,7 @@ Run post-installation scripts in package <package>, if any exist. -PEAR-1.10.16/PEAR/Command/Install.php0000664000175000017500000014347314720722517016530 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Command/Install.php0000664000175000017500000014347315135450373016531 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -14911,7 +14926,7 @@ return $ret; } } -PEAR-1.10.16/PEAR/Command/Mirror.xml0000644000175000017500000000115114720722517016365 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Command/Mirror.xml0000644000175000017500000000115115135450373016366 0ustar ashnazgashnazg Downloads each available package from the default channel doDownloadAll @@ -14928,7 +14943,7 @@ and downloads them to current working directory. Note: only packages within preferred_state ({config preferred_state}) will be downloaded -PEAR-1.10.16/PEAR/Command/Mirror.php0000644000175000017500000001063614720722517016364 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Command/Mirror.php0000644000175000017500000001063615135450373016365 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.2.0 */ @@ -15066,7 +15081,7 @@ return true; } } -PEAR-1.10.16/PEAR/Command/Package.xml0000644000175000017500000001606614720722517016461 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Command/Package.xml0000644000175000017500000001606615135450373016462 0ustar ashnazgashnazg Build Package doPackage @@ -15302,7 +15317,7 @@ used for automated conversion or learning the format. -PEAR-1.10.16/PEAR/Command/Package.php0000664000175000017500000011633414720722517016451 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Command/Package.php0000664000175000017500000011633415135450373016452 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Command/Pickle.xml0000644000175000017500000000223315135450373016325 0ustar ashnazgashnazg Build PECL Package doPackage @@ -16459,7 +16474,7 @@ generate both package.xml. -PEAR-1.10.16/PEAR/Command/Pickle.php0000644000175000017500000003702714720722517016324 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Command/Pickle.php0000644000175000017500000003702715135450373016325 0ustar ashnazgashnazg * @copyright 2005-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.1 */ @@ -16879,7 +16894,7 @@ $gen->toPackageFile('.'); } } -PEAR-1.10.16/PEAR/Command/Registry.xml0000644000175000017500000000337614720722517016736 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Command/Registry.xml0000644000175000017500000000337615135450373016737 0ustar ashnazgashnazg List Installed Packages In The Default Channel doList @@ -16936,7 +16951,7 @@ local package file, an URL to a package file, or the name of an installed package. -PEAR-1.10.16/PEAR/Command/Registry.php0000664000175000017500000013231514720722517016723 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Command/Registry.php0000664000175000017500000013231515135450373016724 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -18081,7 +18096,7 @@ $this->ui->outputData($data, 'package-info'); } } -PEAR-1.10.16/PEAR/Command/Remote.xml0000644000175000017500000000635714720722517016363 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Command/Remote.xml0000644000175000017500000000635715135450373016364 0ustar ashnazgashnazg Information About Remote Packages doRemoteInfo @@ -18189,7 +18204,7 @@ parameter. -PEAR-1.10.16/PEAR/Command/Remote.php0000664000175000017500000007244214720722517016352 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Command/Remote.php0000664000175000017500000007244215135450373016353 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -18998,7 +19013,7 @@ return $num; } } -PEAR-1.10.16/PEAR/Command/Test.xml0000644000175000017500000000315114720722517016034 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Command/Test.xml0000644000175000017500000000315115135450373016035 0ustar ashnazgashnazg Run Regression Tests doRunTests @@ -19051,7 +19066,7 @@ [testfile|dir ...] Run regression tests with PHP's regression testing script (run-tests.php). -PEAR-1.10.16/PEAR/Command/Test.php0000644000175000017500000002755014720722517016034 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Command/Test.php0000644000175000017500000002755015135450373016035 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -19394,7 +19409,7 @@ return $this->raiseError('Some tests failed'); } } -PEAR-1.10.16/PEAR/Downloader/Package.php0000664000175000017500000022465714720722517017201 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -21375,7 +21390,7 @@ return $info; } } -PEAR-1.10.16/PEAR/Frontend/CLI.php0000644000175000017500000006211514720722517015721 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -21734,7 +21749,11 @@ function userConfirm($prompt, $default = 'yes') { - trigger_error("PEAR_Frontend_CLI::userConfirm not yet converted", E_USER_ERROR); + if (PHP_VERSION_ID < 70000) { + trigger_error("PEAR_Frontend_CLI::userConfirm not yet converted", E_USER_ERROR); + } else { + throw new Error('PEAR_Frontend_CLI::userConfirm not yet converted'); + } static $positives = array('y', 'yes', 'on', '1'); static $negatives = array('n', 'no', 'off', '0'); print "$this->lp$prompt [$default] : "; @@ -22125,7 +22144,7 @@ print $text; } } -PEAR-1.10.16/PEAR/Installer/Role/Common.php0000644000175000017500000001410714720722517017617 0ustar ashnazgashnazg * @copyright 1997-2006 The PHP Group * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -22298,7 +22317,7 @@ } } ?> -PEAR-1.10.16/PEAR/Installer/Role/Cfg.xml0000644000175000017500000000064514720722517017101 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Installer/Role/Cfg.xml0000644000175000017500000000064515135450373017102 0ustar ashnazgashnazg php extsrc extbin @@ -22312,7 +22331,7 @@ -PEAR-1.10.16/PEAR/Installer/Role/Cfg.php0000644000175000017500000000757714720722517017103 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Installer/Role/Cfg.php0000644000175000017500000000757715135450373017104 0ustar ashnazgashnazg * @copyright 2007-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.7.0 */ @@ -22416,7 +22435,7 @@ return $test; } -}PEAR-1.10.16/PEAR/Installer/Role/Data.xml0000644000175000017500000000062214720722517017246 0ustar ashnazgashnazg +}PEAR-1.10.18/PEAR/Installer/Role/Data.xml0000644000175000017500000000062215135450373017247 0ustar ashnazgashnazg php extsrc extbin @@ -22430,7 +22449,7 @@ -PEAR-1.10.16/PEAR/Installer/Role/Data.php0000644000175000017500000000141714720722517017240 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Installer/Role/Data.php0000644000175000017500000000141715135450373017241 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ class PEAR_Installer_Role_Data extends PEAR_Installer_Role_Common {} -?>PEAR-1.10.16/PEAR/Installer/Role/Doc.xml0000644000175000017500000000062114720722517017101 0ustar ashnazgashnazg +?>PEAR-1.10.18/PEAR/Installer/Role/Doc.xml0000644000175000017500000000062115135450373017102 0ustar ashnazgashnazg php extsrc extbin @@ -22470,7 +22489,7 @@ -PEAR-1.10.16/PEAR/Installer/Role/Doc.php0000644000175000017500000000141514720722517017072 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Installer/Role/Doc.php0000644000175000017500000000141515135450373017073 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ class PEAR_Installer_Role_Doc extends PEAR_Installer_Role_Common {} -?>PEAR-1.10.16/PEAR/Installer/Role/Ext.xml0000644000175000017500000000050214720722517017132 0ustar ashnazgashnazg +?>PEAR-1.10.18/PEAR/Installer/Role/Ext.xml0000644000175000017500000000050215135450373017133 0ustar ashnazgashnazg extbin zendextbin 1 @@ -22507,7 +22526,7 @@ 1 -PEAR-1.10.16/PEAR/Installer/Role/Ext.php0000644000175000017500000000141514720722517017125 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Installer/Role/Ext.php0000644000175000017500000000141515135450373017126 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ class PEAR_Installer_Role_Ext extends PEAR_Installer_Role_Common {} -?>PEAR-1.10.16/PEAR/Installer/Role/Man.xml0000644000175000017500000000064514720722517017115 0ustar ashnazgashnazg +?>PEAR-1.10.18/PEAR/Installer/Role/Man.xml0000644000175000017500000000064515135450373017116 0ustar ashnazgashnazg php extsrc extbin @@ -22548,7 +22567,7 @@ -PEAR-1.10.16/PEAR/Installer/Role/Man.php0000644000175000017500000000144514720722517017103 0ustar ashnazgashnazg * @copyright 2011 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.10.0 */ class PEAR_Installer_Role_Man extends PEAR_Installer_Role_Common {} ?> -PEAR-1.10.16/PEAR/Installer/Role/Php.xml0000644000175000017500000000065514720722517017132 0ustar ashnazgashnazg +PEAR-1.10.18/PEAR/Installer/Role/Php.xml0000644000175000017500000000065515135450373017133 0ustar ashnazgashnazg php extsrc extbin @@ -22590,7 +22609,7 @@ -PEAR-1.10.16/PEAR/Installer/Role/Php.php0000644000175000017500000000141514720722517017114 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Installer/Role/Php.php0000644000175000017500000000141515135450373017115 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ class PEAR_Installer_Role_Php extends PEAR_Installer_Role_Common {} -?>PEAR-1.10.16/PEAR/Installer/Role/Script.xml0000644000175000017500000000066014720722517017643 0ustar ashnazgashnazg +?>PEAR-1.10.18/PEAR/Installer/Role/Script.xml0000644000175000017500000000066015135450373017644 0ustar ashnazgashnazg php extsrc extbin @@ -22630,7 +22649,7 @@ 1 -PEAR-1.10.16/PEAR/Installer/Role/Script.php0000644000175000017500000000142314720722517017630 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Installer/Role/Script.php0000644000175000017500000000142315135450373017631 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ class PEAR_Installer_Role_Script extends PEAR_Installer_Role_Common {} -?>PEAR-1.10.16/PEAR/Installer/Role/Src.xml0000644000175000017500000000044214720722517017124 0ustar ashnazgashnazg +?>PEAR-1.10.18/PEAR/Installer/Role/Src.xml0000644000175000017500000000044215135450373017125 0ustar ashnazgashnazg extsrc zendextsrc 1 @@ -22667,7 +22686,7 @@ -PEAR-1.10.16/PEAR/Installer/Role/Src.php0000644000175000017500000000156214720722517017117 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Installer/Role/Src.php0000644000175000017500000000156215135450373017120 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -22699,7 +22718,7 @@ $installer->source_files++; } } -?>PEAR-1.10.16/PEAR/Installer/Role/Test.xml0000644000175000017500000000062214720722517017314 0ustar ashnazgashnazg +?>PEAR-1.10.18/PEAR/Installer/Role/Test.xml0000644000175000017500000000062215135450373017315 0ustar ashnazgashnazg php extsrc extbin @@ -22713,7 +22732,7 @@ -PEAR-1.10.16/PEAR/Installer/Role/Test.php0000644000175000017500000000141714720722517017306 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Installer/Role/Test.php0000644000175000017500000000141715135450373017307 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ class PEAR_Installer_Role_Test extends PEAR_Installer_Role_Common {} -?>PEAR-1.10.16/PEAR/Installer/Role/Www.xml0000644000175000017500000000064414720722517017165 0ustar ashnazgashnazg +?>PEAR-1.10.18/PEAR/Installer/Role/Www.xml0000644000175000017500000000064415135450373017166 0ustar ashnazgashnazg php extsrc extbin @@ -22753,7 +22772,7 @@ -PEAR-1.10.16/PEAR/Installer/Role/Www.php0000644000175000017500000000141114720722517017145 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Installer/Role/Www.php0000644000175000017500000000141115135450373017146 0ustar ashnazgashnazg * @copyright 2007-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.7.0 */ class PEAR_Installer_Role_Www extends PEAR_Installer_Role_Common {} -?>PEAR-1.10.16/PEAR/Installer/Role.php0000664000175000017500000001727414720722517016401 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Installer/Role.php0000664000175000017500000001727415135450373016402 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -23044,7 +23063,7 @@ PEAR_Installer_Role::getValidRoles('****', true); return true; } -}PEAR-1.10.16/PEAR/PackageFile/Generator/v1.php0000664000175000017500000014226114720722517020145 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -23091,7 +23110,7 @@ function getPackagerVersion() { - return '1.10.16'; + return '1.10.18'; } /** @@ -23242,7 +23261,7 @@ ); $ret = "\n"; $ret .= "\n"; - $ret .= "\n" . + $ret .= "\n" . " $pkginfo[package]"; if (isset($pkginfo['extends'])) { $ret .= "\n$pkginfo[extends]"; @@ -24330,7 +24349,7 @@ } } ?> -PEAR-1.10.16/PEAR/PackageFile/Generator/v2.php0000664000175000017500000010071114720722517020140 0ustar ashnazgashnazgoptions['beautifyFilelist'] = true; } - $arr['attribs']['packagerversion'] = '1.10.16'; + $arr['attribs']['packagerversion'] = '1.10.18'; if ($this->serialize($arr, $options)) { return $this->_serializedData . "\n"; } @@ -25216,7 +25235,7 @@ return $tag; } } -PEAR-1.10.16/PEAR/PackageFile/Parser/v1.php0000644000175000017500000004020714720722517017446 0ustar ashnazgashnazgPEAR-1.10.16/PEAR/PackageFile/Parser/v2.php0000644000175000017500000000611014720722517017442 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/PackageFile/Parser/v2.php0000644000175000017500000000611015135450373017443 0ustar ashnazgashnazgsetPackagefile($file, $archive); return $ret; } -}PEAR-1.10.16/PEAR/PackageFile/v2/rw.php0000644000175000017500000017313714720722517016654 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a8 */ @@ -27386,7 +27405,7 @@ { unset($this->_packageInfo['changelog']); } -}PEAR-1.10.16/PEAR/PackageFile/v2/Validator.php0000664000175000017500000024620014720722517020143 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a8 * @access private @@ -27499,8 +27518,8 @@ isset($test['dependencies']['required']) && isset($test['dependencies']['required']['pearinstaller']) && isset($test['dependencies']['required']['pearinstaller']['min']) && - '1.10.16' != '@package' . '_version@' && - version_compare('1.10.16', + '1.10.18' != '@package' . '_version@' && + version_compare('1.10.18', $test['dependencies']['required']['pearinstaller']['min'], '<') ) { $this->_pearVersionTooLow($test['dependencies']['required']['pearinstaller']['min']); @@ -28738,7 +28757,7 @@ $this->_stack->push(__FUNCTION__, 'error', array('version' => $version), 'This package.xml requires PEAR version %version% to parse properly, we are ' . - 'version 1.10.16'); + 'version 1.10.18'); } function _invalidTagOrder($oktags, $actual, $root) @@ -29521,7 +29540,7 @@ return $providesret; } } -PEAR-1.10.16/PEAR/PackageFile/v1.php0000664000175000017500000014266314720722517016225 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -31123,7 +31142,7 @@ // }}} } ?> -PEAR-1.10.16/PEAR/PackageFile/v2.php0000664000175000017500000021050014720722517016210 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -33182,7 +33201,7 @@ } } ?> -PEAR-1.10.16/PEAR/REST/10.php0000644000175000017500000007762114720722517014540 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a12 */ @@ -34052,7 +34071,7 @@ } } } -PEAR-1.10.16/PEAR/REST/11.php0000644000175000017500000002575114720722517014536 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.3 */ @@ -34392,7 +34411,7 @@ } } ?> -PEAR-1.10.16/PEAR/REST/13.php0000644000175000017500000003542714720722517014541 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a12 */ @@ -34787,7 +34806,7 @@ return $ret; } -}PEAR-1.10.16/PEAR/Task/Postinstallscript/rw.php0000644000175000017500000001403414720722517020623 0ustar ashnazgashnazg - read/write version * @@ -34812,7 +34831,7 @@ * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a10 */ @@ -34969,7 +34988,7 @@ ); } } -PEAR-1.10.16/PEAR/Task/Replace/rw.php0000644000175000017500000000302714720722517016435 0ustar ashnazgashnazg - read/write version * @@ -34994,7 +35013,7 @@ * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a10 */ @@ -35028,7 +35047,7 @@ return $this->_params; } } -PEAR-1.10.16/PEAR/Task/Unixeol/rw.php0000644000175000017500000000243414720722517016506 0ustar ashnazgashnazg - read/write version * @@ -35053,7 +35072,7 @@ * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a10 */ @@ -35083,7 +35102,7 @@ } } ?> -PEAR-1.10.16/PEAR/Task/Windowseol/rw.php0000644000175000017500000000245114720722517017214 0ustar ashnazgashnazg - read/write version * @@ -35109,7 +35128,7 @@ * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a10 */ @@ -35139,7 +35158,7 @@ } } ?> -PEAR-1.10.16/PEAR/Task/Common.php0000644000175000017500000001403714720722517015665 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 * @abstract @@ -35346,7 +35365,7 @@ return PEAR::raiseError($msg, $code); } } -PEAR-1.10.16/PEAR/Task/Postinstallscript.php0000644000175000017500000003457014720722517020202 0ustar ashnazgashnazg * @@ -35375,7 +35394,7 @@ * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -35696,7 +35715,7 @@ { } } -PEAR-1.10.16/PEAR/Task/Replace.php0000644000175000017500000001537114720722517016012 0ustar ashnazgashnazg * @@ -35721,7 +35740,7 @@ * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -35882,7 +35901,7 @@ return $contents; } } -PEAR-1.10.16/PEAR/Task/Unixeol.php0000644000175000017500000000437714720722517016066 0ustar ashnazgashnazg * @@ -35907,7 +35926,7 @@ * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -35961,7 +35980,7 @@ return preg_replace("/\r\n|\n\r|\r|\n/", "\n", $contents); } } -PEAR-1.10.16/PEAR/Task/Windowseol.php0000644000175000017500000000436314720722517016570 0ustar ashnazgashnazg * @@ -35987,7 +36006,7 @@ * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -36041,7 +36060,7 @@ return preg_replace("/\r\n|\n\r|\r|\n/", "\r\n", $contents); } } -PEAR-1.10.16/PEAR/Validator/PECL.php0000644000175000017500000000407114720722517016200 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a5 */ @@ -36102,7 +36121,7 @@ return $ret; } } -?>PEAR-1.10.16/PEAR/Builder.php0000664000175000017500000004477314720722517015135 0ustar ashnazgashnazgPEAR-1.10.18/PEAR/Builder.php0000664000175000017500000004477315135450373015136 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since PHP 4.0.2 * @see http://pear.php.net/manual/en/core.ppm.pear-builder.php @@ -36549,7 +36568,7 @@ if (!file_exists($build_dir) || !is_dir($build_dir) || !chdir($build_dir)) { return $this->raiseError("could not chdir to $build_dir"); } - putenv('PHP_PEAR_VERSION=1.10.16'); + putenv('PHP_PEAR_VERSION=1.10.18'); foreach ($to_run as $cmd) { $err = $this->_runCommand($cmd, $callback); if (PEAR::isError($err)) { @@ -36661,7 +36680,7 @@ return parent::log($level, $msg, $append_crlf); } } -PEAR-1.10.16/PEAR/ChannelFile.php0000644000175000017500000014323414720722517015705 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -38221,7 +38240,7 @@ return time(); } } -PEAR-1.10.16/PEAR/Command.php0000664000175000017500000003021314720722517015105 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -38609,7 +38628,7 @@ return false; } // }}} -}PEAR-1.10.16/PEAR/Common.php0000664000175000017500000006354214720722517014772 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 * @deprecated This class will disappear, and its components will be spread @@ -39447,7 +39466,7 @@ require_once 'PEAR/Config.php'; require_once 'PEAR/PackageFile.php'; -PEAR-1.10.16/PEAR/Config.php0000664000175000017500000020703514720722517014744 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -41571,7 +41590,7 @@ } } } -PEAR-1.10.16/PEAR/DependencyDB.php0000664000175000017500000005740114720722517016023 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -42342,7 +42361,7 @@ } } } -PEAR-1.10.16/PEAR/Dependency2.php0000664000175000017500000014241614720722517015700 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -42884,7 +42903,7 @@ */ function getPEARVersion() { - return '1.10.16'; + return '1.10.18'; } function validatePearinstallerDependency($dep) @@ -43699,7 +43718,7 @@ $this->_currentPackage, true))); } } -PEAR-1.10.16/PEAR/Downloader.php0000664000175000017500000020073114720722517015631 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.3.0 */ @@ -45337,7 +45356,7 @@ } $request .= $ifmodifiedsince . - "User-Agent: PEAR/1.10.16/PHP/" . PHP_VERSION . "\r\n"; + "User-Agent: PEAR/1.10.18/PHP/" . PHP_VERSION . "\r\n"; if ($object !== null) { // only pass in authentication for non-static calls $username = $config->get('username', null, $channel); @@ -45427,19 +45446,43 @@ call_user_func($callback, 'start', array(basename($dest_file), $length)); } - while ($data = fread($fp, 1024)) { - $bytes += strlen($data); - if ($callback) { - call_user_func($callback, 'bytesread', $bytes); + if (isset($headers['transfer-encoding']) && strtolower($headers['transfer-encoding']) === 'chunked') { + while (!feof($fp)) { + $chunk_size = hexdec(fgets($fp)); + if ($chunk_size === 0) { + break; + } + $data = fread($fp, $chunk_size); + $bytes += strlen($data); + if ($callback) { + call_user_func($callback, 'bytesread', $bytes); + } + if (!@fwrite($wp, $data)) { + fclose($fp); + if ($callback) { + call_user_func($callback, 'writefailed', + array($dest_file, error_get_last()["message"])); + } + return PEAR::raiseError( + "$dest_file: write failed (" . error_get_last()["message"] . ")"); + } + fgets($fp); // Skip the trailing CRLF } - if (!@fwrite($wp, $data)) { - fclose($fp); + } else { + while ($data = fread($fp, 1024)) { + $bytes += strlen($data); if ($callback) { - call_user_func($callback, 'writefailed', - array($dest_file, error_get_last()["message"])); + call_user_func($callback, 'bytesread', $bytes); + } + if (!@fwrite($wp, $data)) { + fclose($fp); + if ($callback) { + call_user_func($callback, 'writefailed', + array($dest_file, error_get_last()["message"])); + } + return PEAR::raiseError( + "$dest_file: write failed (" . error_get_last()["message"] . ")"); } - return PEAR::raiseError( - "$dest_file: write failed (" . error_get_last()["message"] . ")"); } } @@ -45466,7 +45509,7 @@ return $dest_file; } } -PEAR-1.10.16/PEAR/ErrorStack.php0000664000175000017500000010201414720722517015605 0ustar ashnazgashnazg * @author Greg Beaver - * @version 1.10.16 + * @version 1.10.18 * @package PEAR_ErrorStack * @category Debugging * @copyright 2004-2008 Greg Beaver @@ -46445,7 +46488,7 @@ $stack = &PEAR_ErrorStack::singleton('PEAR_ErrorStack'); $stack->pushCallback(array('PEAR_ErrorStack', '_handleError')); ?> -PEAR-1.10.16/PEAR/Exception.php0000644000175000017500000003315514720722517015473 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.3.3 * @@ -46832,7 +46875,7 @@ } return $causeMsg . $this->getTraceAsString(); } -}PEAR-1.10.16/PEAR/Frontend.php0000664000175000017500000001477214720722517015322 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -47055,7 +47098,7 @@ { } } -PEAR-1.10.16/PEAR/Installer.php0000664000175000017500000021071114720722517015467 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -48862,7 +48905,7 @@ // }}} } -PEAR-1.10.16/PEAR/PackageFile.php0000664000175000017500000003674614720722517015703 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -49353,7 +49396,7 @@ return $info; } } -PEAR-1.10.16/PEAR/Packager.php0000644000175000017500000001704014720722517015245 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ @@ -49552,7 +49595,7 @@ return $dest_package; } -}PEAR-1.10.16/PEAR/Proxy.php0000664000175000017500000001275214720722517014660 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -49955,10 +49998,10 @@ $pear_channel->setServer('pear.php.net'); $pear_channel->setSummary('PHP Extension and Application Repository'); $pear_channel->setDefaultPEARProtocols(); - $pear_channel->setBaseURL('REST1.0', 'http://pear.php.net/rest/'); - $pear_channel->setBaseURL('REST1.1', 'http://pear.php.net/rest/'); - $pear_channel->setBaseURL('REST1.3', 'http://pear.php.net/rest/'); - //$pear_channel->setBaseURL('REST1.4', 'http://pear.php.net/rest/'); + $pear_channel->setBaseURL('REST1.0', 'https://pear.php.net/rest/'); + $pear_channel->setBaseURL('REST1.1', 'https://pear.php.net/rest/'); + $pear_channel->setBaseURL('REST1.3', 'https://pear.php.net/rest/'); + //$pear_channel->setBaseURL('REST1.4', 'https://pear.php.net/rest/'); } else { $pear_channel->setServer('pear.php.net'); $pear_channel->setAlias('pear'); @@ -49980,8 +50023,8 @@ $pecl_channel->setServer('pecl.php.net'); $pecl_channel->setSummary('PHP Extension Community Library'); $pecl_channel->setDefaultPEARProtocols(); - $pecl_channel->setBaseURL('REST1.0', 'http://pecl.php.net/rest/'); - $pecl_channel->setBaseURL('REST1.1', 'http://pecl.php.net/rest/'); + $pecl_channel->setBaseURL('REST1.0', 'https://pecl.php.net/rest/'); + $pecl_channel->setBaseURL('REST1.1', 'https://pecl.php.net/rest/'); $pecl_channel->setValidationPackage('PEAR_Validator_PECL', '1.0'); } else { $pecl_channel->setServer('pecl.php.net'); @@ -50004,9 +50047,9 @@ $doc_channel->setServer('doc.php.net'); $doc_channel->setSummary('PHP Documentation Team'); $doc_channel->setDefaultPEARProtocols(); - $doc_channel->setBaseURL('REST1.0', 'http://doc.php.net/rest/'); - $doc_channel->setBaseURL('REST1.1', 'http://doc.php.net/rest/'); - $doc_channel->setBaseURL('REST1.3', 'http://doc.php.net/rest/'); + $doc_channel->setBaseURL('REST1.0', 'https://doc.php.net/rest/'); + $doc_channel->setBaseURL('REST1.1', 'https://doc.php.net/rest/'); + $doc_channel->setBaseURL('REST1.3', 'https://doc.php.net/rest/'); } else { $doc_channel->setServer('doc.php.net'); $doc_channel->setAlias('doc'); @@ -51248,9 +51291,9 @@ $pear_channel->setAlias('pear'); $pear_channel->setSummary('PHP Extension and Application Repository'); $pear_channel->setDefaultPEARProtocols(); - $pear_channel->setBaseURL('REST1.0', 'http://pear.php.net/rest/'); - $pear_channel->setBaseURL('REST1.1', 'http://pear.php.net/rest/'); - $pear_channel->setBaseURL('REST1.3', 'http://pear.php.net/rest/'); + $pear_channel->setBaseURL('REST1.0', 'https://pear.php.net/rest/'); + $pear_channel->setBaseURL('REST1.1', 'https://pear.php.net/rest/'); + $pear_channel->setBaseURL('REST1.3', 'https://pear.php.net/rest/'); return $pear_channel; } @@ -51264,8 +51307,8 @@ $pear_channel->setAlias('pecl'); $pear_channel->setSummary('PHP Extension Community Library'); $pear_channel->setDefaultPEARProtocols(); - $pear_channel->setBaseURL('REST1.0', 'http://pecl.php.net/rest/'); - $pear_channel->setBaseURL('REST1.1', 'http://pecl.php.net/rest/'); + $pear_channel->setBaseURL('REST1.0', 'https://pecl.php.net/rest/'); + $pear_channel->setBaseURL('REST1.1', 'https://pecl.php.net/rest/'); $pear_channel->setValidationPackage('PEAR_Validator_PECL', '1.0'); return $pear_channel; } @@ -51281,9 +51324,9 @@ $doc_channel->setAlias('phpdocs'); $doc_channel->setSummary('PHP Documentation Team'); $doc_channel->setDefaultPEARProtocols(); - $doc_channel->setBaseURL('REST1.0', 'http://doc.php.net/rest/'); - $doc_channel->setBaseURL('REST1.1', 'http://doc.php.net/rest/'); - $doc_channel->setBaseURL('REST1.3', 'http://doc.php.net/rest/'); + $doc_channel->setBaseURL('REST1.0', 'https://doc.php.net/rest/'); + $doc_channel->setBaseURL('REST1.1', 'https://doc.php.net/rest/'); + $doc_channel->setBaseURL('REST1.3', 'https://doc.php.net/rest/'); return $doc_channel; } @@ -52137,7 +52180,7 @@ return $ret; } } -PEAR-1.10.16/PEAR/REST.php0000664000175000017500000004050514720722517014311 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -52522,7 +52565,7 @@ } $request .= $ifmodifiedsince . - "User-Agent: PEAR/1.10.16/PHP/" . PHP_VERSION . "\r\n"; + "User-Agent: PEAR/1.10.18/PHP/" . PHP_VERSION . "\r\n"; $username = $this->config->get('username', null, $channel); $password = $this->config->get('password', null, $channel); @@ -52587,8 +52630,19 @@ $length = isset($headers['content-length']) ? $headers['content-length'] : -1; $data = ''; - while ($chunk = @fread($fp, 8192)) { - $data .= $chunk; + if (isset($headers['transfer-encoding']) && strtolower($headers['transfer-encoding']) === 'chunked') { + while (!feof($fp)) { + $chunk_size = hexdec(fgets($fp)); + if ($chunk_size === 0) { + break; + } + $data .= fread($fp, $chunk_size); + fgets($fp); // Skip the trailing CRLF + } + } else { + while ($chunk = @fread($fp, 8192)) { + $data .= $chunk; + } } fclose($fp); @@ -52611,7 +52665,7 @@ return $data; } } -PEAR-1.10.16/PEAR/RunTest.php0000664000175000017500000010663214720722517015144 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.3.3 */ @@ -52677,7 +52731,6 @@ 'display_errors=1', 'log_errors=0', 'html_errors=0', - 'report_memleaks=0', 'report_zend_debug=0', 'docref_root=', 'docref_ext=.html', @@ -52706,6 +52759,9 @@ $excluded_error_reporting |= E_STRICT; } $this->ini_overwrites[] = 'error_reporting=' . (E_ALL & ~$excluded_error_reporting); + if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 80500) { + $this->ini_overwrites[] = 'report_memleaks=0'; + } if (is_null($logger)) { require_once 'PEAR/Common.php'; $logger = new PEAR_Common; @@ -53588,7 +53644,7 @@ } } } -PEAR-1.10.16/PEAR/Validate.php0000664000175000017500000005276514720722517015300 0ustar ashnazgashnazg * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version Release: 1.10.16 + * @version Release: 1.10.18 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 */ @@ -54212,7 +54268,7 @@ { return true; } -}PEAR-1.10.16/PEAR/XMLParser.php0000644000175000017500000001537714720722517015360 0ustar ashnazgashnazg_dataStack[$this->_depth] .= $cdata; } -}PEAR-1.10.16/scripts/pear.bat0000755000175000017500000001036114720722517015400 0ustar ashnazgashnazg@ECHO OFF +}PEAR-1.10.18/scripts/pear.bat0000755000175000017500000001036115135450373015401 0ustar ashnazgashnazg@ECHO OFF REM ---------------------------------------------------------------------- REM PHP version 5 @@ -54568,7 +54624,7 @@ :RUN "%PHP_PEAR_PHP_BIN%" -C -d date.timezone=UTC -d output_buffering=1 -d safe_mode=0 -d open_basedir="" -d auto_prepend_file="" -d auto_append_file="" -d variables_order=EGPCS -d register_argc_argv="On" -d "include_path='%PHP_PEAR_INSTALL_DIR%'" -f "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9 :END -@ECHO ONPEAR-1.10.16/scripts/peardev.bat0000664000175000017500000001105014720722517016072 0ustar ashnazgashnazg@ECHO OFF +@ECHO ONPEAR-1.10.18/scripts/peardev.bat0000664000175000017500000001105015135450373016073 0ustar ashnazgashnazg@ECHO OFF REM ---------------------------------------------------------------------- REM PHP version 5 @@ -54682,7 +54738,7 @@ "%PHP_PEAR_PHP_BIN%" -C -d date.timezone=UTC -d memory_limit="-1" -d safe_mode=0 -d register_argc_argv="On" -d auto_prepend_file="" -d auto_append_file="" -d variables_order=EGPCS -d open_basedir="" -d output_buffering=1 -d "include_path='%PHP_PEAR_INSTALL_DIR%'" -f "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9 :END @ECHO ON -PEAR-1.10.16/scripts/pecl.bat0000664000175000017500000001072114720722517015373 0ustar ashnazgashnazg@ECHO OFF +PEAR-1.10.18/scripts/pecl.bat0000664000175000017500000001072115135450373015374 0ustar ashnazgashnazg@ECHO OFF REM ---------------------------------------------------------------------- REM PHP version 5 @@ -54796,7 +54852,7 @@ "%PHP_PEAR_PHP_BIN%" -C -d date.timezone=UTC -d output_buffering=1 -d safe_mode=0 -d "include_path='%PHP_PEAR_INSTALL_DIR%'" -d register_argc_argv="On" -d variables_order=EGPCS -f "%PHP_PEAR_INSTALL_DIR%\peclcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9 :END @ECHO ON -PEAR-1.10.16/scripts/pear.sh0000775000175000017500000000140414720722517015244 0ustar ashnazgashnazg#!/bin/sh +PEAR-1.10.18/scripts/pear.sh0000775000175000017500000000140415135450373015245 0ustar ashnazgashnazg#!/bin/sh # first find which PHP binary to use if test "x$PHP_PEAR_PHP_BIN" != "x"; then @@ -54824,7 +54880,7 @@ fi exec $PHP -C -q $INCARG -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d open_basedir="" -d safe_mode=0 -d register_argc_argv="On" -d auto_prepend_file="" -d auto_append_file="" $INCDIR/pearcmd.php "$@" -PEAR-1.10.16/scripts/peardev.sh0000755000175000017500000000143114720722517015741 0ustar ashnazgashnazg#!/bin/sh +PEAR-1.10.18/scripts/peardev.sh0000755000175000017500000000143115135450373015742 0ustar ashnazgashnazg#!/bin/sh # first find which PHP binary to use if test "x$PHP_PEAR_PHP_BIN" != "x"; then @@ -54852,7 +54908,7 @@ fi exec $PHP -d date.timezone=UTC -d memory_limit="-1" -C -q $INCARG -d output_buffering=1 -d open_basedir="" -d safe_mode=0 -d register_argc_argv="On" -d auto_prepend_file="" -d variables_order=EGPCS -d auto_append_file="" $INCDIR/pearcmd.php "$@" -PEAR-1.10.16/scripts/pecl.sh0000755000175000017500000000130214720722517015233 0ustar ashnazgashnazg#!/bin/sh +PEAR-1.10.18/scripts/pecl.sh0000755000175000017500000000130215135450373015234 0ustar ashnazgashnazg#!/bin/sh # first find which PHP binary to use if test "x$PHP_PEAR_PHP_BIN" != "x"; then @@ -54880,7 +54936,7 @@ fi exec $PHP -C -q $INCARG -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv="On" $INCDIR/peclcmd.php "$@" -PEAR-1.10.16/scripts/pearcmd.php0000664000175000017500000003517414720722517016115 0ustar ashnazgashnazg -PEAR-1.10.16/LICENSE0000644000175000017500000000270514720722517013277 0ustar ashnazgashnazgCopyright (c) 1997-2009, +PEAR-1.10.18/LICENSE0000644000175000017500000000270515135450373013300 0ustar ashnazgashnazgCopyright (c) 1997-2009, Stig Bakken , Gregory Beaver , Helgi Þormar Þorbjörnsson , @@ -55440,7 +55496,7 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -PEAR-1.10.16/INSTALL0000644000175000017500000000417014720722517013321 0ustar ashnazgashnazgPEAR - The PEAR Installer +PEAR-1.10.18/INSTALL0000644000175000017500000000417015135450373013322 0ustar ashnazgashnazgPEAR - The PEAR Installer ========================= Installing the PEAR Installer. @@ -55492,7 +55548,7 @@ related issues. Happy PHPing, we hope PEAR will be a great tool for your development work! -PEAR-1.10.16/package.dtd0000664000175000017500000000640414720722517014364 0ustar ashnazgashnazg