diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f9ded704c2..e52ee85064 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,13 @@ name: CI -on: [push, pull_request] +on: + pull_request: + push: + branches: + - main + - master + - develop + - 'release/**' env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -16,6 +23,20 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v6 + + - name: Install Ubuntu build deps + if: runner.os == 'Linux' + shell: bash + run: | + sudo apt-get update + sudo apt-get install -y flex bison libgmp-dev libmpfr-dev + + - name: Stabilize generated configure script timestamp + shell: bash + run: touch configure + - name: Configure shell: bash run: ./configure @@ -28,24 +49,276 @@ jobs: shell: bash run: make check - build-cmake: + build-cmake-unix: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - os: [macos-latest, ubuntu-latest, windows-latest] + include: + - os: macos-latest + regenerate_varimp: OFF + - os: ubuntu-latest + regenerate_varimp: ON steps: - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v6 + + - name: Install Ubuntu build deps + if: runner.os == 'Linux' + shell: bash + run: | + sudo apt-get update + sudo apt-get install -y flex bison libgmp-dev libmpfr-dev + - name: Create Build Environment run: cmake -E make_directory ${{github.workspace}}/build - name: Configure CMake shell: bash working-directory: ${{github.workspace}}/build - run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + run: > + cmake $GITHUB_WORKSPACE + -DCMAKE_BUILD_TYPE=$BUILD_TYPE + -DGECODE_REGENERATE_VARIMP=${{ matrix.regenerate_varimp }} - name: Build working-directory: ${{github.workspace}}/build shell: bash run: cmake --build . --config $BUILD_TYPE + + - name: Check + working-directory: ${{github.workspace}}/build + shell: bash + run: cmake --build . --config $BUILD_TYPE --target check + + - name: Install CMake package + working-directory: ${{github.workspace}}/build + shell: bash + run: cmake --install . --config $BUILD_TYPE --prefix "$GITHUB_WORKSPACE/install" + + - name: Consumer smoke tests + if: matrix.os == 'ubuntu-latest' + shell: bash + run: | + set -euxo pipefail + + prefix="$GITHUB_WORKSPACE/install" + work="$RUNNER_TEMP/gecode-consumers" + rm -rf "$work" + mkdir -p "$work/a" "$work/b" "$work/c" + + cat > "$work/a/CMakeLists.txt" <<'EOF' + cmake_minimum_required(VERSION 3.21) + project(consumer_a LANGUAGES CXX) + find_package(Gecode CONFIG REQUIRED) + message(STATUS "Gecode_VERSION=${Gecode_VERSION}") + add_executable(consumer_a main.cpp) + target_link_libraries(consumer_a PRIVATE Gecode::gecode) + EOF + cat > "$work/a/main.cpp" <<'EOF' + #include + int main(void) { return 0; } + EOF + + cat > "$work/b/CMakeLists.txt" <<'EOF' + cmake_minimum_required(VERSION 3.21) + project(consumer_b LANGUAGES CXX) + find_package(Gecode CONFIG REQUIRED COMPONENTS driver) + add_executable(consumer_b main.cpp) + target_link_libraries(consumer_b PRIVATE Gecode::gecodedriver) + EOF + cat > "$work/b/main.cpp" <<'EOF' + int main(void) { return 0; } + EOF + + cat > "$work/c/CMakeLists.txt" <<'EOF' + cmake_minimum_required(VERSION 3.21) + project(consumer_c LANGUAGES CXX) + find_package(Gecode CONFIG REQUIRED COMPONENTS gecodedriver) + add_executable(consumer_c main.cpp) + target_link_libraries(consumer_c PRIVATE Gecode::gecodedriver) + EOF + cat > "$work/c/main.cpp" <<'EOF' + int main(void) { return 0; } + EOF + + cmake -S "$work/a" -B "$work/a/build" -DCMAKE_PREFIX_PATH="$prefix" 2>&1 | tee "$work/a/configure.log" + cmake --build "$work/a/build" -j4 + + cmake -S "$work/b" -B "$work/b/build" -DCMAKE_PREFIX_PATH="$prefix" + cmake --build "$work/b/build" -j4 + + cmake -S "$work/c" -B "$work/c/build" -DCMAKE_PREFIX_PATH="$prefix" + cmake --build "$work/c/build" -j4 + + grep -q "Gecode_VERSION=" "$work/a/configure.log" + + build-cmake-windows: + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + include: + - name: shared + build_shared: ON + build_static: OFF + - name: static + build_shared: OFF + build_static: ON + + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v6 + + - name: Create Build Environment + shell: pwsh + run: cmake -E make_directory "${{ github.workspace }}\\build" + + - name: Configure CMake + shell: pwsh + run: > + cmake -S "${{ github.workspace }}" -B "${{ github.workspace }}\\build" + -G "Visual Studio 17 2022" -A x64 + -DGECODE_ENABLE_QT=OFF + -DGECODE_ENABLE_GIST=OFF + -DGECODE_ENABLE_MPFR=OFF + -DGECODE_BUILD_SHARED=${{ matrix.build_shared }} + -DGECODE_BUILD_STATIC=${{ matrix.build_static }} + + - name: Build + shell: pwsh + run: cmake --build "${{ github.workspace }}\\build" --config ${{ env.BUILD_TYPE }} + + - name: Check + shell: pwsh + run: cmake --build "${{ github.workspace }}\\build" --config ${{ env.BUILD_TYPE }} --target check + + - name: Install CMake package + shell: pwsh + run: cmake --install "${{ github.workspace }}\\build" --config ${{ env.BUILD_TYPE }} --prefix "${{ github.workspace }}\\install" + + - name: Consumer smoke tests + if: matrix.name == 'shared' + shell: pwsh + run: | + $prefix = "${{ github.workspace }}\install" + $work = Join-Path $env:RUNNER_TEMP "gecode-consumers-win" + if (Test-Path $work) { Remove-Item -Recurse -Force $work } + New-Item -ItemType Directory -Force -Path (Join-Path $work "a"), (Join-Path $work "b"), (Join-Path $work "c") | Out-Null + + @' + cmake_minimum_required(VERSION 3.21) + project(consumer_a LANGUAGES CXX) + find_package(Gecode CONFIG REQUIRED) + message(STATUS "Gecode_VERSION=${Gecode_VERSION}") + add_executable(consumer_a main.cpp) + target_link_libraries(consumer_a PRIVATE Gecode::gecode) + '@ | Set-Content -Encoding utf8 (Join-Path $work "a\CMakeLists.txt") + @' + #include + int main(void) { return 0; } + '@ | Set-Content -Encoding utf8 (Join-Path $work "a\main.cpp") + + @' + cmake_minimum_required(VERSION 3.21) + project(consumer_b LANGUAGES CXX) + find_package(Gecode CONFIG REQUIRED COMPONENTS driver) + add_executable(consumer_b main.cpp) + target_link_libraries(consumer_b PRIVATE Gecode::gecodedriver) + '@ | Set-Content -Encoding utf8 (Join-Path $work "b\CMakeLists.txt") + @' + int main(void) { return 0; } + '@ | Set-Content -Encoding utf8 (Join-Path $work "b\main.cpp") + + @' + cmake_minimum_required(VERSION 3.21) + project(consumer_c LANGUAGES CXX) + find_package(Gecode CONFIG REQUIRED COMPONENTS gecodedriver) + add_executable(consumer_c main.cpp) + target_link_libraries(consumer_c PRIVATE Gecode::gecodedriver) + '@ | Set-Content -Encoding utf8 (Join-Path $work "c\CMakeLists.txt") + @' + int main(void) { return 0; } + '@ | Set-Content -Encoding utf8 (Join-Path $work "c\main.cpp") + + cmake -S (Join-Path $work "a") -B (Join-Path $work "a\build") -G "Visual Studio 17 2022" -A x64 "-DCMAKE_PREFIX_PATH=$prefix" 2>&1 | Tee-Object -FilePath (Join-Path $work "a\configure.log") + cmake --build (Join-Path $work "a\build") --config ${{ env.BUILD_TYPE }} + + cmake -S (Join-Path $work "b") -B (Join-Path $work "b\build") -G "Visual Studio 17 2022" -A x64 "-DCMAKE_PREFIX_PATH=$prefix" + cmake --build (Join-Path $work "b\build") --config ${{ env.BUILD_TYPE }} + + cmake -S (Join-Path $work "c") -B (Join-Path $work "c\build") -G "Visual Studio 17 2022" -A x64 "-DCMAKE_PREFIX_PATH=$prefix" + cmake --build (Join-Path $work "c\build") --config ${{ env.BUILD_TYPE }} + + if (-not (Select-String -Path (Join-Path $work "a\configure.log") -Pattern "Gecode_VERSION=" -Quiet)) { + throw "Gecode_VERSION was not reported during consumer configure." + } + + build-autoconf-windows: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v6 + + - name: Resolve uv path on Windows host + shell: pwsh + run: | + $uvExe = (Get-Command uv -ErrorAction Stop).Source + $uvDir = Split-Path -Parent $uvExe + "UV_WIN_DIR=$uvDir" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + + - name: Setup MSYS2 + uses: msys2/setup-msys2@v2 + with: + msystem: UCRT64 + update: true + install: >- + autoconf + automake + bison + flex + gcc + make + m4 + libtool + mingw-w64-ucrt-x86_64-gcc + mingw-w64-ucrt-x86_64-gmp + mingw-w64-ucrt-x86_64-mpfr + + - name: Verify uv in MSYS2 shell + shell: msys2 {0} + run: | + UV_DIR="$(cygpath "$UV_WIN_DIR")" + echo "UV_DIR=$UV_DIR" >> "$GITHUB_ENV" + export PATH="$UV_DIR:$PATH" + uv --version + + - name: Stabilize generated configure script timestamp + shell: msys2 {0} + run: touch configure + + - name: Configure + shell: msys2 {0} + run: | + export PATH="$UV_DIR:$PATH" + CC=gcc CXX=g++ ./configure --with-host-os=Windows --disable-qt --disable-gist --disable-mpfr + + - name: Build + shell: msys2 {0} + run: | + export PATH="$UV_DIR:$PATH" + make test -j4 + + - name: Check + shell: msys2 {0} + run: | + export PATH="$UV_DIR:$PATH" + make check diff --git a/.gitignore b/.gitignore index 3783a1d855..6f3dfe2279 100644 --- a/.gitignore +++ b/.gitignore @@ -105,3 +105,7 @@ examples/sudoku-advanced examples/tsp examples/warehouses examples/word-square + +# Ignore build tree outputs (version metadata lives in top-level +# gecode-version.m4). +build/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f7803ec30..b8156f6339 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,75 +1,194 @@ -# -# Main authors: -# Victor Zverovich -# -# Copyright: -# Victor Zverovich, 2013 -# -# This file is part of Gecode, the generic constraint -# development environment: -# http://www.gecode.org -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# - # # CMake build script for Gecode. # -cmake_minimum_required(VERSION 3.8.0) - -project(GECODE) +cmake_minimum_required(VERSION 3.21) -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) +project(GECODE LANGUAGES C CXX) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/misc/cmake_modules) -find_package(MPFR) +# Match common CMake defaults: tests are opt-in for subprojects. +if(PROJECT_IS_TOP_LEVEL) + include(CTest) +elseif(NOT DEFINED BUILD_TESTING) + set(BUILD_TESTING OFF) +endif() + +# Keep this preference to preserve existing Gist/OpenGL linkage behavior. +set(OpenGL_GL_PREFERENCE LEGACY) + +# --------------------------------------------------------------------------- +# Build options (configure/autoconf parity-oriented) +# --------------------------------------------------------------------------- +# Legacy aliases are translated after option() initialization so they also +# override stale cache values from previous configure runs. +if(DEFINED ENABLE_THREADS) + set(GECODE_ALIAS_ENABLE_THREAD_VALUE "${ENABLE_THREADS}") + set(GECODE_USED_ENABLE_THREADS_ALIAS TRUE) +endif() +if(DEFINED ENABLE_GIST) + set(GECODE_ALIAS_ENABLE_GIST_VALUE "${ENABLE_GIST}") + set(GECODE_USED_ENABLE_GIST_ALIAS TRUE) +endif() +if(DEFINED BUILD_EXAMPLES) + set(GECODE_ALIAS_BUILD_EXAMPLES_VALUE "${BUILD_EXAMPLES}") + set(GECODE_USED_BUILD_EXAMPLES_ALIAS TRUE) +endif() +if(DEFINED ENABLE_CPPROFILER) + set(GECODE_ALIAS_ENABLE_CPPROFILER_VALUE "${ENABLE_CPPROFILER}") + set(GECODE_USED_ENABLE_CPPROFILER_ALIAS TRUE) +endif() + +set(GECODE_BUILD_SHARED_OR_STATIC_SET_BY_USER FALSE) +if(DEFINED GECODE_BUILD_SHARED OR DEFINED GECODE_BUILD_STATIC) + set(GECODE_BUILD_SHARED_OR_STATIC_SET_BY_USER TRUE) +endif() + +if(NOT DEFINED BUILD_SHARED_LIBS) + set(BUILD_SHARED_LIBS ON) +endif() +option(BUILD_SHARED_LIBS "Build shared libraries by default" ${BUILD_SHARED_LIBS}) + +set(GECODE_BUILD_SHARED_DEFAULT ON) +set(GECODE_BUILD_STATIC_DEFAULT OFF) +if(NOT GECODE_BUILD_SHARED_OR_STATIC_SET_BY_USER) + if(BUILD_SHARED_LIBS) + set(GECODE_BUILD_SHARED_DEFAULT ON) + set(GECODE_BUILD_STATIC_DEFAULT OFF) + else() + set(GECODE_BUILD_SHARED_DEFAULT OFF) + set(GECODE_BUILD_STATIC_DEFAULT ON) + endif() +endif() + +option(GECODE_BUILD_SHARED "Build shared libraries" ${GECODE_BUILD_SHARED_DEFAULT}) +option(GECODE_BUILD_STATIC "Build static libraries" ${GECODE_BUILD_STATIC_DEFAULT}) + +option(GECODE_ENABLE_THREAD "Enable thread support" ON) +option(GECODE_ENABLE_QT "Enable Qt support" ON) +option(GECODE_ENABLE_GIST "Enable Gist" ON) +option(GECODE_ENABLE_CPPROFILER "Enable CPProfiler support" ON) +option(GECODE_ENABLE_CBS "Enable counting-based search support" OFF) +set(GECODE_ENABLE_EXAMPLES_DEFAULT ${PROJECT_IS_TOP_LEVEL}) +option(GECODE_ENABLE_EXAMPLES "Build examples" ${GECODE_ENABLE_EXAMPLES_DEFAULT}) +set(GECODE_INSTALL_DEFAULT ${PROJECT_IS_TOP_LEVEL}) +option(GECODE_INSTALL "Enable install/export rules" ${GECODE_INSTALL_DEFAULT}) + +option(GECODE_ENABLE_SEARCH "Build search module" ON) +option(GECODE_ENABLE_INT_VARS "Build int variables module" ON) +option(GECODE_ENABLE_SET_VARS "Build set variables module" ON) +option(GECODE_ENABLE_FLOAT_VARS "Build float variables module" ON) +option(GECODE_ENABLE_MINIMODEL "Build minimodel module" ON) +option(GECODE_ENABLE_DRIVER "Build driver module" ON) +option(GECODE_ENABLE_FLATZINC "Build FlatZinc module" ON) + +option(GECODE_ENABLE_MPFR "Enable MPFR support" ON) +option(GECODE_ENABLE_ALLOCATOR "Enable default allocator" ON) +option(GECODE_ENABLE_AUDIT "Enable audit code" OFF) +option(GECODE_ENABLE_GCC_VISIBILITY "Enable GCC visibility attributes" ON) +option(GECODE_ENABLE_OSX_UNFAIR_MUTEX "Enable macOS unfair mutexes" ON) +option(GECODE_REGENERATE_VARIMP "Regenerate checked-in var-imp headers during build" OFF) +set(GECODE_FREELIST32_SIZE_MAX "" CACHE STRING "Max freelist size on 32-bit platforms") +set(GECODE_FREELIST64_SIZE_MAX "" CACHE STRING "Max freelist size on 64-bit platforms") +set(GECODE_WITH_VIS "" CACHE STRING "Additional .vis files (comma-separated)") +set(GECODE_LIB_PREFIX "" CACHE STRING "User-defined prefix for generated library basenames") +set(GECODE_LIB_SUFFIX "" CACHE STRING "User-defined suffix for generated library basenames") + +# Compatibility aliases (temporary) +if(GECODE_USED_ENABLE_THREADS_ALIAS) + set(GECODE_ENABLE_THREAD ${GECODE_ALIAS_ENABLE_THREAD_VALUE} CACHE BOOL "Enable thread support" FORCE) + message(WARNING "ENABLE_THREADS is deprecated; use GECODE_ENABLE_THREAD") +endif() +if(GECODE_USED_ENABLE_GIST_ALIAS) + set(GECODE_ENABLE_GIST ${GECODE_ALIAS_ENABLE_GIST_VALUE} CACHE BOOL "Enable Gist" FORCE) + message(WARNING "ENABLE_GIST is deprecated; use GECODE_ENABLE_GIST") +endif() +if(GECODE_USED_BUILD_EXAMPLES_ALIAS) + set(GECODE_ENABLE_EXAMPLES ${GECODE_ALIAS_BUILD_EXAMPLES_VALUE} CACHE BOOL "Build examples" FORCE) + message(WARNING "BUILD_EXAMPLES is deprecated; use GECODE_ENABLE_EXAMPLES") +endif() +if(GECODE_USED_ENABLE_CPPROFILER_ALIAS) + set(GECODE_ENABLE_CPPROFILER ${GECODE_ALIAS_ENABLE_CPPROFILER_VALUE} CACHE BOOL "Enable CPProfiler support" FORCE) + message(WARNING "ENABLE_CPPROFILER is deprecated; use GECODE_ENABLE_CPPROFILER") +endif() + +if(NOT GECODE_BUILD_SHARED AND NOT GECODE_BUILD_STATIC) + message(FATAL_ERROR "At least one of GECODE_BUILD_SHARED or GECODE_BUILD_STATIC must be ON") +endif() +if(WIN32 AND GECODE_BUILD_SHARED AND GECODE_BUILD_STATIC) + message(FATAL_ERROR "Building both shared and static in one tree is not supported on Windows") +endif() + +# Keep dependency closure behavior similar to configure. +if(GECODE_ENABLE_SET_VARS OR GECODE_ENABLE_FLOAT_VARS) + set(GECODE_ENABLE_INT_VARS ON CACHE BOOL "Build int variables module" FORCE) +endif() +if(GECODE_ENABLE_DRIVER) + set(GECODE_ENABLE_SEARCH ON CACHE BOOL "Build search module" FORCE) + set(GECODE_ENABLE_INT_VARS ON CACHE BOOL "Build int variables module" FORCE) +endif() +if(GECODE_ENABLE_FLATZINC) + set(GECODE_ENABLE_SEARCH ON CACHE BOOL "Build search module" FORCE) + set(GECODE_ENABLE_DRIVER ON CACHE BOOL "Build driver module" FORCE) + set(GECODE_ENABLE_MINIMODEL ON CACHE BOOL "Build minimodel module" FORCE) +endif() +if(GECODE_ENABLE_EXAMPLES) + set(GECODE_ENABLE_SEARCH ON CACHE BOOL "Build search module" FORCE) + set(GECODE_ENABLE_DRIVER ON CACHE BOOL "Build driver module" FORCE) + set(GECODE_ENABLE_MINIMODEL ON CACHE BOOL "Build minimodel module" FORCE) +endif() include(CheckCXXCompilerFlag) -if (GECODE_DISABLE_WARNINGS) - if (MSVC) - add_definitions(/wd4244 /wd4267 /wd4345 /wd4355 /wd4800 /wd4068) - else () - foreach (flag -Wextra -Wall -pedantic) - string(REPLACE ${flag} "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") - endforeach () - if (CMAKE_COMPILER_IS_GNUCXX) - add_definitions(-Wno-overloaded-virtual -Wno-unknown-pragmas) - elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - add_definitions(-Wno-constant-logical-operand -Wno-switch -Wno-unknown-pragmas) - endif () - endif () -endif () - -if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.11.0) - cmake_policy(SET CMP0072 NEW) - set (OpenGL_GL_PREFERENCE LEGACY) -endif() -if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17.0) - cmake_policy(SET CMP0100 NEW) -endif() - -# The following part of config.h is hard to derive from configure.ac. +set(GECODE_VISIBILITY_COMPILE_OPTION) +if(GECODE_ENABLE_GCC_VISIBILITY) + check_cxx_compiler_flag(-fvisibility=hidden HAVE_VISIBILITY_HIDDEN_FLAG) + if(HAVE_VISIBILITY_HIDDEN_FLAG) + set(GECODE_VISIBILITY_COMPILE_OPTION -fvisibility=hidden) + endif() +endif() + +if(GECODE_REGENERATE_VARIMP) + find_program(GECODE_UV_EXECUTABLE NAMES uv) + if(NOT GECODE_UV_EXECUTABLE) + message(FATAL_ERROR "GECODE_REGENERATE_VARIMP=ON requires uv on PATH") + endif() +endif() + +if(GECODE_ENABLE_MPFR) + find_package(MPFR) +endif() + +set(GECODE_HAS_QT_RUNTIME FALSE) +set(GECODE_QT_CORE) +set(GECODE_QT_WIDGETS) +if(GECODE_ENABLE_QT) + find_package(QT NAMES Qt6 Qt5 QUIET COMPONENTS Core Gui Widgets PrintSupport) + if(QT_FOUND) + find_package(Qt${QT_VERSION_MAJOR} QUIET COMPONENTS Core Gui Widgets PrintSupport) + endif() + + if(TARGET Qt6::Core) + set(GECODE_HAS_QT_RUNTIME TRUE) + set(GECODE_QT_CORE Qt6::Core) + set(GECODE_QT_WIDGETS Qt6::Widgets Qt6::Gui Qt6::PrintSupport) + elseif(TARGET Qt5::Core) + set(GECODE_HAS_QT_RUNTIME TRUE) + set(GECODE_QT_CORE Qt5::Core) + set(GECODE_QT_WIDGETS Qt5::Widgets Qt5::Gui Qt5::PrintSupport) + endif() +endif() + +set(GECODE_BUILD_GIST_TARGET ${GECODE_ENABLE_GIST}) +if(GECODE_BUILD_GIST_TARGET AND NOT GECODE_HAS_QT_RUNTIME) + message(WARNING "GECODE_ENABLE_GIST is ON but Qt was not found. Disabling Gist.") + set(GECODE_BUILD_GIST_TARGET FALSE) +endif() + +# --------------------------------------------------------------------------- +# Configure-time metadata and config.hpp generation +# --------------------------------------------------------------------------- file(READ gecode/support/config.hpp.in CONFIG) string(REGEX REPLACE "^/\\*([^*]|\\*[^/])*\\*/" "" CONFIG ${CONFIG}) string(REGEX MATCHALL "[^\n]*\n" CONFIG @@ -96,394 +215,674 @@ string(REGEX MATCHALL "[^\n]*\n" CONFIG #undef PACKAGE_VERSION ") -# Get version numbers and parts of config.h from configure.ac. -file(READ configure.ac LINES) -# Replace semicolons with "" to avoid CMake messing with them. -string(REPLACE ";" "" LINES "${LINES}") -# Split into lines keeping newlines to avoid foreach skipping empty ones. -string(REGEX MATCHALL "[^\n]*\n" LINES "${LINES}") -set(ah_command FALSE) -foreach (line "${EXTRA_CONFIG}" ${LINES}) - string(REPLACE ";" "" line "${line}") - if (ah_command) - # Do nothing. - elseif (line MATCHES "AC_INIT\\(([^,]*), *([^,]*), *([^)]*)\\)") - set(PACKAGE ${CMAKE_MATCH_1}) - set(VERSION ${CMAKE_MATCH_2}) - set(PACKAGE_BUGREPORT ${CMAKE_MATCH_3}) - message(STATUS "Got VERSION=${VERSION} from configure.ac") - elseif (line MATCHES "ac_gecode_flatzincversion=(.*)\n") - set(GECODE_FLATZINC_VERSION "${CMAKE_MATCH_1}") - elseif (line MATCHES "AH_BOTTOM\\(\\[(.*)") - set(ah_command bottom) - set(line "${CMAKE_MATCH_1}") - elseif (line MATCHES "AH_VERBATIM[^,]+,(.*)") - set(ah_command verbatim) - set(line "${CMAKE_MATCH_1}") - endif () - if (ah_command) - set(saved_ah_command ${ah_command}) - if (line MATCHES "^\\[(.*)") - set(line "${CMAKE_MATCH_1}") - endif () - if (line MATCHES "\\]\\)") - set(ah_command FALSE) - string(REPLACE "])" "" line "${line}") - endif () - # For some reason CMake may bundle several lines together. Split them too. - string(REGEX MATCHALL "[^\n]*\n" sublines "${line}") - set(config_add "") - foreach (subline ${sublines}) - set(config_add ${config_add} "${subline}") - endforeach () - if (saved_ah_command STREQUAL "verbatim") - set(CONFIG ${config_add} ${CONFIG}) - else () - set(CONFIG ${CONFIG} "\n" ${config_add}) - endif () - endif () -endforeach () +set(GECODE_VERSION_METADATA_FILE "${CMAKE_CURRENT_SOURCE_DIR}/gecode-version.m4") +if(NOT EXISTS "${GECODE_VERSION_METADATA_FILE}") + message(FATAL_ERROR "Missing version metadata file: ${GECODE_VERSION_METADATA_FILE}") +endif() +set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS + "${GECODE_VERSION_METADATA_FILE}") +file(READ "${GECODE_VERSION_METADATA_FILE}" GECODE_VERSION_METADATA) + +function(gecode_extract_version_metadata macro_name output_var) + string(REGEX MATCH "m4_define\\(\\[${macro_name}\\], *\\[([^]]+)\\]\\)" _match + "${GECODE_VERSION_METADATA}") + if(NOT _match) + message(FATAL_ERROR + "Could not parse ${macro_name} from ${GECODE_VERSION_METADATA_FILE}") + endif() + set(${output_var} "${CMAKE_MATCH_1}" PARENT_SCOPE) +endfunction() + +gecode_extract_version_metadata("GECODE_M4_VERSION" VERSION) +gecode_extract_version_metadata("GECODE_M4_SOVERSION" GECODE_SOVERSION) +gecode_extract_version_metadata("GECODE_M4_FLATZINC_VERSION" GECODE_FLATZINC_VERSION) + +set(PACKAGE "GECODE") +set(PACKAGE_BUGREPORT "users@gecode.org") + set(PACKAGE_NAME ${PACKAGE}) string(TOLOWER ${PACKAGE} PACKAGE_TARNAME) set(PACKAGE_URL "") set(PACKAGE_VERSION ${VERSION}) set(${PACKAGE}_VERSION ${VERSION}) +set(GECODE_PROJECT_VERSION ${VERSION}) string(REPLACE "." "-" GECODE_LIBRARY_VERSION "${VERSION}") set(PACKAGE_STRING "${PACKAGE} ${VERSION}") -if (VERSION MATCHES "(.*)\\.(.*)\\.(.*)") +if(VERSION MATCHES "(.*)\\.(.*)\\.(.*)") math(EXPR GECODE_VERSION_NUMBER "${CMAKE_MATCH_1} * 100000 + ${CMAKE_MATCH_2} * 100 + ${CMAKE_MATCH_3}") -endif () - -set(GECODE_DLL_USERPREFIX "") -set(GECODE_DLL_USERSUFFIX "") -set(GECODE_HAS_INT_VARS "/**/") -set(GECODE_HAS_SET_VARS "/**/") -set(GECODE_HAS_FLOAT_VARS "/**/") -set(GECODE_STATIC_LIBS 1) -set(GECODE_ALLOCATOR "/**/") -if (MPFR_FOUND) - set(GECODE_HAS_MPFR "/**/") -endif () +endif() -check_cxx_compiler_flag(-fvisibility=hidden HAVE_VISIBILITY_HIDDEN_FLAG) -if (HAVE_VISIBILITY_HIDDEN_FLAG) +set(GECODE_DLL_USERPREFIX "${GECODE_LIB_PREFIX}") +set(GECODE_DLL_USERSUFFIX "${GECODE_LIB_SUFFIX}") +if(GECODE_ENABLE_INT_VARS) + set(GECODE_HAS_INT_VARS "/**/") +endif() +if(GECODE_ENABLE_SET_VARS) + set(GECODE_HAS_SET_VARS "/**/") +endif() +if(GECODE_ENABLE_FLOAT_VARS) + set(GECODE_HAS_FLOAT_VARS "/**/") +endif() +if(GECODE_BUILD_STATIC) + set(GECODE_STATIC_LIBS 1) +endif() +if(GECODE_ENABLE_ALLOCATOR) + set(GECODE_ALLOCATOR "/**/") +endif() +if(GECODE_ENABLE_AUDIT) + set(GECODE_AUDIT "/**/") +endif() +if(GECODE_ENABLE_CPPROFILER) + set(GECODE_HAS_CPPROFILER "/**/") +endif() +if(GECODE_ENABLE_CBS) + set(GECODE_HAS_CBS "/**/") +endif() +if(GECODE_ENABLE_MPFR AND MPFR_FOUND AND GECODE_ENABLE_FLOAT_VARS) + set(GECODE_HAS_MPFR "/**/") +endif() +if(HAVE_VISIBILITY_HIDDEN_FLAG) set(GECODE_GCC_HAS_CLASS_VISIBILITY "/**/") -endif () - -option(ENABLE_THREADS "Enable thread support" ON) -if (ENABLE_THREADS) +endif() +if(GECODE_ENABLE_THREAD) set(GECODE_HAS_THREADS 1) endif() - -option(ENABLE_GIST "Enable gist" OFF) -if (ENABLE_GIST) - set(GECODE_USE_QT TRUE) -else() - set(GECODE_USE_QT FALSE) -endif() - -# Don't use Qt if GECODE_USE_QT is set to FALSE. -if (NOT DEFINED GECODE_USE_QT OR GECODE_USE_QT) - find_package(Qt6 QUIET COMPONENTS Core Gui Widgets PrintSupport) - if (Qt6_FOUND) - set(GECODE_HAS_QT "/**/") - set(GECODE_HAS_GIST "/**/") - set(EXTRA_LIBS gist) - set(CMAKE_AUTOMOC TRUE) - else() - find_package(Qt5 QUIET COMPONENTS Core Gui Widgets PrintSupport) - if (Qt5_FOUND) - set(GECODE_HAS_QT "/**/") - set(GECODE_HAS_GIST "/**/") - set(EXTRA_LIBS gist) - set(CMAKE_AUTOMOC TRUE) - else() - find_package(Qt4) - if (QT4_FOUND) - set(GECODE_HAS_QT "/**/") - set(GECODE_HAS_GIST "/**/") - set(EXTRA_LIBS gist) - set(CMAKE_AUTOMOC TRUE) - include(${QT_USE_FILE}) - endif() - endif() - endif() -endif () +if(APPLE AND GECODE_ENABLE_THREAD AND GECODE_ENABLE_OSX_UNFAIR_MUTEX) + set(GECODE_USE_OSX_UNFAIR_MUTEX "/**/") +endif() +if(GECODE_HAS_QT_RUNTIME) + set(GECODE_HAS_QT "/**/") +endif() +if(GECODE_BUILD_GIST_TARGET) + set(GECODE_HAS_GIST "/**/") +endif() +if(GECODE_FREELIST32_SIZE_MAX) + set(GECODE_FREELIST_SIZE_MAX32 ${GECODE_FREELIST32_SIZE_MAX}) +endif() +if(GECODE_FREELIST64_SIZE_MAX) + set(GECODE_FREELIST_SIZE_MAX64 ${GECODE_FREELIST64_SIZE_MAX}) +endif() include(CheckSymbolExists) check_symbol_exists(mmap sys/mman.h HAVE_MMAP) -# Check for inline. include(CheckCSourceCompiles) -check_c_source_compiles(" - inline __attribute__ ((__always_inline__)) void foo(void) {} - int main() {}" HAVE_ALWAYS_INLINE) -check_c_source_compiles(" - __forceinline void foo(void) {} - int main() {}" HAVE_FORCE_INLINE) +check_c_source_compiles("inline __attribute__ ((__always_inline__)) void foo(void) {}\nint main() {}" HAVE_ALWAYS_INLINE) +check_c_source_compiles("__forceinline void foo(void) {}\nint main() {}" HAVE_FORCE_INLINE) set(forceinline inline) -if (HAVE_ALWAYS_INLINE) +if(HAVE_ALWAYS_INLINE) set(forceinline "inline __attribute__ ((__always_inline__))") -endif () -if (HAVE_FORCE_INLINE) +endif() +if(HAVE_FORCE_INLINE) set(forceinline "__forceinline") -endif () - -# Check for bit index -check_c_source_compiles(" - int main() { return __builtin_ffsl(0); }" HAVE_BUILTIN_FFSL) -if (HAVE_BUILTIN_FFSL) - set(GECODE_HAS_BUILTIN_FFSL "/**/") -endif () - -# Check for popcount -check_c_source_compiles(" - int main() { return __builtin_popcountll(0); }" HAVE_BUILTIN_POPCOUNTLL) -if (HAVE_BUILTIN_POPCOUNTLL) +endif() + +check_c_source_compiles("int main() { return __builtin_ffsll(0); }" HAVE_BUILTIN_FFSLL) +if(HAVE_BUILTIN_FFSLL) + set(GECODE_HAS_BUILTIN_FFSLL "/**/") +endif() +check_c_source_compiles("int main() { return __builtin_popcountll(0); }" HAVE_BUILTIN_POPCOUNTLL) +if(HAVE_BUILTIN_POPCOUNTLL) set(GECODE_HAS_BUILTIN_POPCOUNTLL "/**/") -endif () +endif() -# Process config.hpp using autoconf rules. +# Process config.hpp using autoconf-like undef handling. list(LENGTH CONFIG length) math(EXPR length "${length} - 1") -foreach (i RANGE ${length}) +foreach(i RANGE ${length}) list(GET CONFIG ${i} line) - if (line MATCHES "^#( *)undef (.*)\n") + if(line MATCHES "^#( *)undef (.*)\n") set(space "${CMAKE_MATCH_1}") set(var ${CMAKE_MATCH_2}) - if (NOT DEFINED ${var} OR (var MATCHES "HAVE_.*" AND NOT ${var})) + if(NOT DEFINED ${var} OR (var MATCHES "HAVE_.*" AND NOT ${var})) set(line "/* #${space}undef ${var} */\n") - else () - if ("${${var}}" STREQUAL "/**/" OR "${var}" STREQUAL "GECODE_VERSION_NUMBER" OR - "${var}" STREQUAL "forceinline" OR var MATCHES "SIZEOF_.*") + else() + if("${${var}}" STREQUAL "/**/" OR "${var}" STREQUAL "GECODE_VERSION_NUMBER" OR + "${var}" STREQUAL "forceinline" OR var MATCHES "SIZEOF_.*") set(value ${${var}}) - elseif (NOT (var MATCHES ^HAVE OR ${var} EQUAL 0 OR ${var} EQUAL 1)) + elseif(NOT (var MATCHES ^HAVE OR ${var} EQUAL 0 OR ${var} EQUAL 1)) set(value \"${${var}}\") - elseif (${var}) + elseif(${var}) set(value 1) - else () + else() set(value 0) - endif () + endif() set(line "#${space}define ${var} ${value}\n") - endif () - endif () + endif() + endif() string(REPLACE "" ";" line "${line}") set(CONFIG_OUT "${CONFIG_OUT}${line}") -endforeach () +endforeach() + file(WRITE ${GECODE_BINARY_DIR}/gecode/support/config.hpp "/* gecode/support/config.hpp. Generated from config.hpp.in by configure. */ /* gecode/support/config.hpp.in. Generated from configure.ac by autoheader. */ -/* Disable autolink because all the dependencies are handled by CMake. */ -#define GECODE_BUILD_SUPPORT -#define GECODE_BUILD_KERNEL -#define GECODE_BUILD_SEARCH -#define GECODE_BUILD_INT -#define GECODE_BUILD_SET -#define GECODE_BUILD_FLOAT -#define GECODE_BUILD_MINIMODEL -#define GECODE_BUILD_FLATZINC -#define GECODE_BUILD_DRIVER -#define GECODE_BUILD_GIST +/* Disable MSVC pragma-based auto-linking: CMake wires dependencies explicitly. */ +#define GECODE_NO_AUTOLINK 1 ${CONFIG_OUT}") -# Expands a value substituting variables and appends the result to ${var}. -function (expand var value) - if (value MATCHES "\\$\\(([^:]+)(.*)\\)") - # Perform substitution. - set(pattern ${CMAKE_MATCH_2}) - set(items ${${CMAKE_MATCH_1}}) - if (pattern MATCHES ":%=([^%]*)%([^%]*)") - set(values ) - foreach (item ${items}) - set(values ${values} ${CMAKE_MATCH_1}${item}${CMAKE_MATCH_2}) - endforeach () - else () - set(values ${items}) - endif () - else () - set(values ${value}) - endif () - set(${var} ${${var}} ${values} PARENT_SCOPE) -endfunction () - -# Parse Makefile.in extracting variables. -file(READ Makefile.in text) -string(REPLACE "\\\n" "" text "${text}") -string(REGEX REPLACE "#[^\n]*\n" "" text "${text}") -string(REGEX MATCHALL "[^\n]+" lines "${text}") -foreach (line ${lines}) - if (line MATCHES "([^ \t]+)[ \t]*=[ \t]*(.*)") - set(var ${CMAKE_MATCH_1}) - set(${var} ) - string(REGEX MATCHALL "[^ \t]+" items "${CMAKE_MATCH_2}") - foreach (item ${items}) - expand(${var} ${item}) - endforeach () - endif () -endforeach () - -foreach (lib support kernel search int set float - minimodel driver flatzinc ${EXTRA_LIBS}) - if (lib STREQUAL "minimodel") - set(libupper MM) - else () - string(TOUPPER ${lib} libupper) - endif () - if (${libupper}SRC) - set(sources ) - foreach (src ${${libupper}SRC} ${${libupper}_GENSRC}) - if (src STREQUAL "gecode/float/rounding.cpp" AND NOT ${MPFR_FOUND}) - # ignore empty source files to prevent linker warnings - else () - set(sources ${sources} ${src}) - endif () - endforeach () - add_library(gecode${lib} ${sources} ${${libupper}HDR}) - target_include_directories(gecode${lib} - PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ) - list(APPEND GECODE_INSTALL_TARGETS gecode${lib}) - endif () -endforeach () - -option(ENABLE_CPPROFILER "Enable cpprofiler tracer mode" ON) -if(ENABLE_CPPROFILER) - add_definitions(-DGECODE_HAS_CPPROFILER) -endif() - -find_package(Threads) -target_link_libraries(gecodesupport ${CMAKE_THREAD_LIBS_INIT}) -target_link_libraries(gecodekernel gecodesupport) -target_link_libraries(gecodesearch gecodekernel) -target_link_libraries(gecodeint gecodekernel) -target_link_libraries(gecodeset gecodeint) -target_link_libraries(gecodefloat gecodeint) -target_link_libraries(gecodeminimodel gecodeint gecodeset gecodesearch) -target_link_libraries(gecodedriver gecodeint) -target_link_libraries(gecodeflatzinc gecodeminimodel gecodedriver) - -if (GECODE_HAS_QT) - if (Qt6_FOUND) - target_link_libraries(gecodegist Qt6::Widgets Qt6::Gui Qt6::PrintSupport) - target_link_libraries(gecodeflatzinc Qt6::Core) - target_link_libraries(gecodeflatzinc gecodegist) - elseif (Qt5_FOUND) - target_link_libraries(gecodegist Qt5::Widgets Qt5::Gui Qt5::PrintSupport) - target_link_libraries(gecodeflatzinc Qt5::Core) - target_link_libraries(gecodeflatzinc gecodegist) +# --------------------------------------------------------------------------- +# Native source inventory for CMake (decoupled from Makefile.in). +# --------------------------------------------------------------------------- +include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/GecodeSources.cmake) + +# --------------------------------------------------------------------------- +# Generated variable implementations (in-source, matching Makefile behavior) +# --------------------------------------------------------------------------- +set(GECODE_VIS_FILES) +if(GECODE_ENABLE_INT_VARS) + list(APPEND GECODE_VIS_FILES + gecode/int/var-imp/int.vis + gecode/int/var-imp/bool.vis) +endif() +if(GECODE_ENABLE_SET_VARS) + list(APPEND GECODE_VIS_FILES + gecode/set/var-imp/set.vis) +endif() +if(GECODE_ENABLE_FLOAT_VARS) + list(APPEND GECODE_VIS_FILES + gecode/float/var-imp/float.vis) +endif() +if(GECODE_WITH_VIS) + string(REPLACE "," ";" _extra_vis "${GECODE_WITH_VIS}") + foreach(vis ${_extra_vis}) + list(APPEND GECODE_VIS_FILES "${vis}") + endforeach() +endif() +list(REMOVE_DUPLICATES GECODE_VIS_FILES) + +set(GECODE_VIS_DEPENDS) +set(GECODE_VIS_FILES_FOR_GEN) +foreach(vis ${GECODE_VIS_FILES}) + if(IS_ABSOLUTE "${vis}") + list(APPEND GECODE_VIS_DEPENDS "${vis}") + list(APPEND GECODE_VIS_FILES_FOR_GEN "${vis}") else() - target_link_libraries(gecodegist ${QT_LIBRARIES}) - target_link_libraries(gecodeflatzinc gecodegist ${QT_LIBRARIES}) + list(APPEND GECODE_VIS_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/${vis}") + if(vis MATCHES "^\\./") + list(APPEND GECODE_VIS_FILES_FOR_GEN "${vis}") + else() + list(APPEND GECODE_VIS_FILES_FOR_GEN "./${vis}") + endif() + endif() +endforeach() +string(JOIN "||" GECODE_VIS_FILES_SERIALIZED ${GECODE_VIS_FILES_FOR_GEN}) + +set(GECODE_VAR_TYPE_HPP_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/gecode/kernel/var-type.hpp) +set(GECODE_VAR_IMP_HPP_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/gecode/kernel/var-imp.hpp) +set(GECODE_VAR_TYPE_HPP ${GECODE_VAR_TYPE_HPP_SOURCE}) +set(GECODE_VAR_IMP_HPP ${GECODE_VAR_IMP_HPP_SOURCE}) + +if(GECODE_REGENERATE_VARIMP) + set(GECODE_VAR_TYPE_HPP ${CMAKE_CURRENT_BINARY_DIR}/gecode/kernel/var-type.hpp) + set(GECODE_VAR_IMP_HPP ${CMAKE_CURRENT_BINARY_DIR}/gecode/kernel/var-imp.hpp) + file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/gecode/kernel") + + add_custom_command( + OUTPUT ${GECODE_VAR_TYPE_HPP} + COMMAND ${CMAKE_COMMAND} + -DUV_EXECUTABLE=${GECODE_UV_EXECUTABLE} + -DGENVARIMP=${CMAKE_CURRENT_SOURCE_DIR}/misc/genvarimp.py + -DMODE=-typehpp + -DOUT_FILE=${GECODE_VAR_TYPE_HPP} + -DVIS_FILES_SERIALIZED=${GECODE_VIS_FILES_SERIALIZED} + -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/GenerateVarImp.cmake + DEPENDS ${GECODE_VIS_DEPENDS} ${CMAKE_CURRENT_SOURCE_DIR}/misc/genvarimp.py ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt ${CMAKE_CURRENT_SOURCE_DIR}/configure.ac + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM + ) + add_custom_command( + OUTPUT ${GECODE_VAR_IMP_HPP} + COMMAND ${CMAKE_COMMAND} + -DUV_EXECUTABLE=${GECODE_UV_EXECUTABLE} + -DGENVARIMP=${CMAKE_CURRENT_SOURCE_DIR}/misc/genvarimp.py + -DMODE=-header + -DOUT_FILE=${GECODE_VAR_IMP_HPP} + -DVIS_FILES_SERIALIZED=${GECODE_VIS_FILES_SERIALIZED} + -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/GenerateVarImp.cmake + DEPENDS ${GECODE_VIS_DEPENDS} ${CMAKE_CURRENT_SOURCE_DIR}/misc/genvarimp.py ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt ${CMAKE_CURRENT_SOURCE_DIR}/configure.ac + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + VERBATIM + ) + add_custom_target(gecode-varimp-gen DEPENDS ${GECODE_VAR_TYPE_HPP} ${GECODE_VAR_IMP_HPP}) +else() + add_custom_target(gecode-varimp-gen) +endif() + +# --------------------------------------------------------------------------- +# Target creation helpers +# --------------------------------------------------------------------------- +set(GECODE_LIBRARY_COMPONENTS support kernel) +if(GECODE_ENABLE_SEARCH) + list(APPEND GECODE_LIBRARY_COMPONENTS search) +endif() +if(GECODE_ENABLE_INT_VARS) + list(APPEND GECODE_LIBRARY_COMPONENTS int) +endif() +if(GECODE_ENABLE_SET_VARS) + list(APPEND GECODE_LIBRARY_COMPONENTS set) +endif() +if(GECODE_ENABLE_FLOAT_VARS) + list(APPEND GECODE_LIBRARY_COMPONENTS float) +endif() +if(GECODE_ENABLE_MINIMODEL) + list(APPEND GECODE_LIBRARY_COMPONENTS minimodel) +endif() +if(GECODE_ENABLE_DRIVER) + list(APPEND GECODE_LIBRARY_COMPONENTS driver) +endif() +if(GECODE_ENABLE_FLATZINC) + list(APPEND GECODE_LIBRARY_COMPONENTS flatzinc) +endif() +if(GECODE_BUILD_GIST_TARGET) + list(APPEND GECODE_LIBRARY_COMPONENTS gist) +endif() + +set(GECODE_DEFAULT_LINK_VARIANT) +if(GECODE_BUILD_SHARED) + set(GECODE_DEFAULT_LINK_VARIANT shared) +else() + set(GECODE_DEFAULT_LINK_VARIANT static) +endif() + +function(add_gecode_component_library lib) + string(TOUPPER ${lib} libupper) + set(sources ${GECODE_${libupper}_SOURCES}) + set(component_output_name "${GECODE_LIB_PREFIX}gecode${lib}${GECODE_LIB_SUFFIX}") + if(lib STREQUAL "float" AND NOT (GECODE_ENABLE_MPFR AND MPFR_FOUND)) + # Keep in sync with Make behavior: skip empty MPFR-only source when MPFR is absent. + list(REMOVE_ITEM sources "gecode/float/rounding.cpp") endif() -endif () -if (FLOATSRC) - target_link_libraries(gecodefloat gecodekernel) - target_link_libraries(gecodeminimodel gecodefloat) - if (MPFR_FOUND) - target_link_libraries(gecodefloat ${MPFR_LIBRARIES}) - target_include_directories(gecodefloat PRIVATE ${MPFR_INCLUDES}) - endif () -endif () + if(NOT sources) + return() + endif() -add_executable(gecode-test EXCLUDE_FROM_ALL ${TESTSRC} ${TESTHDR}) -target_link_libraries(gecode-test gecodeflatzinc gecodeminimodel) + if(GECODE_BUILD_SHARED) + add_library(gecode${lib}_shared SHARED ${sources}) + target_compile_definitions(gecode${lib}_shared PRIVATE GECODE_BUILD_${libupper}) + target_compile_features(gecode${lib}_shared PUBLIC cxx_std_17) + target_include_directories(gecode${lib}_shared + PUBLIC + $ + $ + $) + if(GECODE_VISIBILITY_COMPILE_OPTION) + target_compile_options(gecode${lib}_shared PRIVATE ${GECODE_VISIBILITY_COMPILE_OPTION}) + endif() + set_target_properties(gecode${lib}_shared PROPERTIES + OUTPUT_NAME "${component_output_name}" + VERSION ${GECODE_PROJECT_VERSION} + SOVERSION ${GECODE_SOVERSION}) + add_dependencies(gecode${lib}_shared gecode-varimp-gen) + list(APPEND GECODE_INSTALL_TARGETS gecode${lib}_shared) + list(APPEND GECODE_EXPORT_TARGETS gecode${lib}_shared) + set(GECODE_INSTALL_TARGETS ${GECODE_INSTALL_TARGETS} PARENT_SCOPE) + set(GECODE_EXPORT_TARGETS ${GECODE_EXPORT_TARGETS} PARENT_SCOPE) + endif() -add_executable(fzn-gecode ${FLATZINCEXESRC}) -target_link_libraries(fzn-gecode gecodeflatzinc gecodeminimodel gecodedriver) -list(APPEND GECODE_INSTALL_TARGETS fzn-gecode) + if(GECODE_BUILD_STATIC) + add_library(gecode${lib}_static STATIC ${sources}) + target_compile_definitions(gecode${lib}_static PRIVATE GECODE_BUILD_${libupper}) + target_compile_features(gecode${lib}_static PUBLIC cxx_std_17) + target_include_directories(gecode${lib}_static + PUBLIC + $ + $ + $) + if(GECODE_VISIBILITY_COMPILE_OPTION) + target_compile_options(gecode${lib}_static PRIVATE ${GECODE_VISIBILITY_COMPILE_OPTION}) + endif() + set_target_properties(gecode${lib}_static PROPERTIES + OUTPUT_NAME "${component_output_name}") + add_dependencies(gecode${lib}_static gecode-varimp-gen) + list(APPEND GECODE_INSTALL_TARGETS gecode${lib}_static) + list(APPEND GECODE_EXPORT_TARGETS gecode${lib}_static) + set(GECODE_INSTALL_TARGETS ${GECODE_INSTALL_TARGETS} PARENT_SCOPE) + set(GECODE_EXPORT_TARGETS ${GECODE_EXPORT_TARGETS} PARENT_SCOPE) + endif() + add_library(gecode${lib} INTERFACE) + target_link_libraries(gecode${lib} INTERFACE gecode${lib}_${GECODE_DEFAULT_LINK_VARIANT}) + list(APPEND GECODE_INSTALL_TARGETS gecode${lib}) + list(APPEND GECODE_EXPORT_TARGETS gecode${lib}) + set(GECODE_INSTALL_TARGETS ${GECODE_INSTALL_TARGETS} PARENT_SCOPE) + set(GECODE_EXPORT_TARGETS ${GECODE_EXPORT_TARGETS} PARENT_SCOPE) +endfunction() + +function(gecode_link_component comp) + foreach(kind shared static) + if(TARGET gecode${comp}_${kind}) + foreach(dep ${ARGN}) + if(TARGET gecode${dep}_${kind}) + target_link_libraries(gecode${comp}_${kind} PUBLIC gecode${dep}_${kind}) + elseif(TARGET ${dep}) + target_link_libraries(gecode${comp}_${kind} PUBLIC ${dep}) + endif() + endforeach() + endif() + endforeach() +endfunction() + +function(gecode_enable_automoc_if_exists target_name) + if(TARGET ${target_name}) + set_target_properties(${target_name} PROPERTIES AUTOMOC ON) + endif() +endfunction() + +foreach(component ${GECODE_LIBRARY_COMPONENTS}) + add_gecode_component_library(${component}) +endforeach() + +if(GECODE_ENABLE_THREAD) + find_package(Threads REQUIRED) + gecode_link_component(support Threads::Threads) +endif() + +gecode_link_component(kernel support) +if(GECODE_ENABLE_SEARCH) + gecode_link_component(search kernel) + if(WIN32 AND GECODE_ENABLE_CPPROFILER) + gecode_link_component(search ws2_32) + endif() +endif() +if(GECODE_ENABLE_INT_VARS) + gecode_link_component(int kernel) +endif() +if(GECODE_ENABLE_SET_VARS) + gecode_link_component(set int) +endif() +if(GECODE_ENABLE_FLOAT_VARS) + gecode_link_component(float int kernel) + if(GECODE_ENABLE_MPFR AND MPFR_FOUND) + foreach(kind shared static) + if(TARGET gecodefloat_${kind}) + if(TARGET MPFR::MPFR) + target_link_libraries(gecodefloat_${kind} PUBLIC MPFR::MPFR) + else() + target_link_libraries(gecodefloat_${kind} PUBLIC ${MPFR_LIBRARIES}) + target_include_directories(gecodefloat_${kind} PRIVATE ${MPFR_INCLUDES}) + endif() + endif() + endforeach() + endif() +endif() +if(GECODE_ENABLE_MINIMODEL) + set(mm_deps int set search) + if(GECODE_ENABLE_FLOAT_VARS) + list(APPEND mm_deps float) + endif() + gecode_link_component(minimodel ${mm_deps}) +endif() +if(GECODE_ENABLE_DRIVER) + set(driver_deps int search) + if(GECODE_ENABLE_MINIMODEL) + list(APPEND driver_deps minimodel) + endif() + if(GECODE_BUILD_GIST_TARGET) + list(APPEND driver_deps gist) + endif() + gecode_link_component(driver ${driver_deps}) +endif() +if(GECODE_BUILD_GIST_TARGET) + gecode_enable_automoc_if_exists(gecodegist_shared) + gecode_enable_automoc_if_exists(gecodegist_static) + foreach(kind shared static) + if(TARGET gecodegist_${kind}) + target_link_libraries(gecodegist_${kind} PUBLIC ${GECODE_QT_WIDGETS}) + endif() + endforeach() + if(GECODE_ENABLE_SEARCH) + gecode_link_component(gist search int) + endif() +endif() +if(GECODE_ENABLE_FLATZINC) + set(fzn_deps minimodel driver) + if(GECODE_BUILD_GIST_TARGET) + list(APPEND fzn_deps gist) + endif() + gecode_link_component(flatzinc ${fzn_deps}) + if(GECODE_HAS_QT_RUNTIME) + foreach(kind shared static) + if(TARGET gecodeflatzinc_${kind}) + target_link_libraries(gecodeflatzinc_${kind} PUBLIC ${GECODE_QT_CORE}) + endif() + endforeach() + endif() +endif() + +# Compatibility aggregate target for downstream projects expecting Gecode::gecode. +add_library(gecode INTERFACE) +foreach(component IN ITEMS support kernel search int set float minimodel driver flatzinc gist) + if(TARGET gecode${component}) + target_link_libraries(gecode INTERFACE gecode${component}) + endif() +endforeach() +add_library(Gecode::gecode ALIAS gecode) +list(APPEND GECODE_INSTALL_TARGETS gecode) +list(APPEND GECODE_EXPORT_TARGETS gecode) + +# --------------------------------------------------------------------------- +# Executables / tests +# --------------------------------------------------------------------------- +if(GECODE_ENABLE_FLATZINC) + add_executable(fzn-gecode ${GECODE_FLATZINC_EXE_SOURCE}) + target_link_libraries(fzn-gecode PRIVATE gecodeflatzinc) + list(APPEND GECODE_INSTALL_TARGETS fzn-gecode) +endif() + +if(BUILD_TESTING) + set(GECODE_CAN_BUILD_TESTS TRUE) + foreach(required search int minimodel driver) + if(NOT TARGET gecode${required}) + set(GECODE_CAN_BUILD_TESTS FALSE) + endif() + endforeach() + + if(GECODE_ENABLE_SET_VARS AND NOT TARGET gecodeset) + set(GECODE_CAN_BUILD_TESTS FALSE) + endif() + if(GECODE_ENABLE_FLOAT_VARS AND NOT TARGET gecodefloat) + set(GECODE_CAN_BUILD_TESTS FALSE) + endif() + if(GECODE_ENABLE_FLATZINC AND NOT TARGET gecodeflatzinc) + set(GECODE_CAN_BUILD_TESTS FALSE) + endif() + + set(GECODE_TEST_SOURCES_SELECTED ${GECODE_TEST_SOURCES}) + if(NOT GECODE_ENABLE_SET_VARS) + list(FILTER GECODE_TEST_SOURCES_SELECTED EXCLUDE REGEX "^test/set(/|\\.cpp)") + endif() + if(NOT GECODE_ENABLE_FLOAT_VARS) + list(FILTER GECODE_TEST_SOURCES_SELECTED EXCLUDE REGEX "^test/float(/|\\.cpp)") + endif() + if(NOT GECODE_ENABLE_FLATZINC) + list(FILTER GECODE_TEST_SOURCES_SELECTED EXCLUDE REGEX "^test/flatzinc(/|\\.cpp)") + endif() + + if(GECODE_CAN_BUILD_TESTS) + add_executable(gecode-test EXCLUDE_FROM_ALL ${GECODE_TEST_SOURCES_SELECTED}) + set(GECODE_TEST_LINK_LIBS gecodeminimodel) + if(GECODE_ENABLE_FLATZINC) + list(APPEND GECODE_TEST_LINK_LIBS gecodeflatzinc) + endif() + target_link_libraries(gecode-test PRIVATE ${GECODE_TEST_LINK_LIBS}) + + set(GECODE_CHECK_TESTS + Branch::Int::Dense::3 + Int::Arithmetic::Abs + Int::Arithmetic::ArgMax + Int::Arithmetic::Max::Nary + Int::Cumulative::Man::Fix::0::4 + Int::Distinct::Random + Int::Linear::Bool::Int::Lq + Int::MiniModel::LinExpr::Bool::352 + NoGoods::Queens + Search::DFS::Sol::Binary::Nary::Binary::1::1::1) + if(GECODE_ENABLE_FLATZINC) + list(INSERT GECODE_CHECK_TESTS 1 FlatZinc::magic_square) + endif() + if(GECODE_ENABLE_SET_VARS) + list(APPEND GECODE_CHECK_TESTS + Set::Dom::Dom::Gr + Set::RelOp::ConstSSI::Union + Set::Sequence::SeqU1 + Set::Wait) + endif() + + set(GECODE_CHECK_ARGS -iter 2 -threads 0) + foreach(gecode_check_test ${GECODE_CHECK_TESTS}) + list(APPEND GECODE_CHECK_ARGS -test ${gecode_check_test}) + endforeach() + + add_test(NAME test COMMAND gecode-test ${GECODE_CHECK_ARGS}) + get_property(GECODE_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) + if(GECODE_IS_MULTI_CONFIG) + add_custom_target(check + COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -R "^test$" -C $ + DEPENDS gecode-test + USES_TERMINAL) + else() + add_custom_target(check + COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -R "^test$" + DEPENDS gecode-test + USES_TERMINAL) + endif() + else() + message(WARNING "Skipping gecode-test/check targets because required modules are disabled") + add_custom_target(check + COMMAND ${CMAKE_COMMAND} -E echo "Skipping check target because required modules are disabled") + endif() +else() + add_custom_target(check + COMMAND ${CMAKE_COMMAND} -E echo "Skipping check target because BUILD_TESTING is OFF") +endif() + +# --------------------------------------------------------------------------- +# FlatZinc scripts and solver configs +# --------------------------------------------------------------------------- set(prefix ${CMAKE_INSTALL_PREFIX}) set(datarootdir \${prefix}/share) set(datadir \${datarootdir}) -if(WIN32) - configure_file( - ${PROJECT_SOURCE_DIR}/tools/flatzinc/mzn-gecode.bat.in - ${PROJECT_BINARY_DIR}/tools/flatzinc/mzn-gecode.bat - @ONLY - ) - set(MZN_SCRIPT ${PROJECT_BINARY_DIR}/tools/flatzinc/mzn-gecode.bat) -else() - configure_file( - ${PROJECT_SOURCE_DIR}/tools/flatzinc/mzn-gecode.in - ${PROJECT_BINARY_DIR}/tools/flatzinc/mzn-gecode - @ONLY - ) - set(MZN_SCRIPT ${PROJECT_BINARY_DIR}/tools/flatzinc/mzn-gecode) -endif() -configure_file( - ${PROJECT_SOURCE_DIR}/tools/flatzinc/gecode.msc.in - ${PROJECT_BINARY_DIR}/tools/flatzinc/gecode.msc - @ONLY -) -if (GECODE_HAS_GIST) - configure_file( - ${PROJECT_SOURCE_DIR}/tools/flatzinc/gecode-gist.msc.in - ${PROJECT_BINARY_DIR}/tools/flatzinc/gecode-gist.msc - @ONLY - ) +if(GECODE_ENABLE_FLATZINC) + if(WIN32) + configure_file(${PROJECT_SOURCE_DIR}/tools/flatzinc/mzn-gecode.bat.in + ${PROJECT_BINARY_DIR}/tools/flatzinc/mzn-gecode.bat @ONLY) + set(MZN_SCRIPT ${PROJECT_BINARY_DIR}/tools/flatzinc/mzn-gecode.bat) + else() + configure_file(${PROJECT_SOURCE_DIR}/tools/flatzinc/mzn-gecode.in + ${PROJECT_BINARY_DIR}/tools/flatzinc/mzn-gecode @ONLY) + set(MZN_SCRIPT ${PROJECT_BINARY_DIR}/tools/flatzinc/mzn-gecode) + endif() + configure_file(${PROJECT_SOURCE_DIR}/tools/flatzinc/gecode.msc.in + ${PROJECT_BINARY_DIR}/tools/flatzinc/gecode.msc @ONLY) + if(GECODE_BUILD_GIST_TARGET) + configure_file(${PROJECT_SOURCE_DIR}/tools/flatzinc/gecode-gist.msc.in + ${PROJECT_BINARY_DIR}/tools/flatzinc/gecode-gist.msc @ONLY) + endif() endif() -set_property(GLOBAL PROPERTY USE_FOLDERS ON) - -option(BUILD_EXAMPLES "Build examples." OFF) -if (${BUILD_EXAMPLES}) +if(GECODE_ENABLE_EXAMPLES) add_subdirectory(examples) endif() -enable_testing() -add_test(test gecode-test - -iter 2 -test Branch::Int::Dense::3 - -test Int::Linear::Int::Int::Eq::Bnd::12::4 - -test Int::Distinct::Random - -test Int::Arithmetic::Mult::XYZ::Bnd::C - -test Int::Arithmetic::Mult::XYZ::Dom::A - -test Search::BAB::Sol::BalGr::Binary::Binary::Binary::1::1) - -## Installation Target +# --------------------------------------------------------------------------- +# Installation + CMake package export +# --------------------------------------------------------------------------- include(GNUInstallDirs) -# Install libraries and executables -install( - TARGETS ${GECODE_INSTALL_TARGETS} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -) -install( - FILES ${MZN_SCRIPT} - DESTINATION ${CMAKE_INSTALL_BINDIR} -) -# Install include directory -install( - DIRECTORY gecode - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} - FILES_MATCHING - PATTERN "**.hh" - PATTERN "**.hpp" - PATTERN "LICENSE_1_0.txt" - PATTERN "mznlib" EXCLUDE - PATTERN "exampleplugin" EXCLUDE - PATTERN "standalone-example" EXCLUDE - PATTERN "abi*" EXCLUDE -) -install( - FILES ${PROJECT_BINARY_DIR}/gecode/support/config.hpp - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/gecode/support/ -) -# Install MiniZinc library -install( - DIRECTORY gecode/flatzinc/mznlib/ - DESTINATION ${CMAKE_INSTALL_DATADIR}/minizinc/gecode -) -install( - FILES ${PROJECT_BINARY_DIR}/tools/flatzinc/gecode.msc - DESTINATION ${CMAKE_INSTALL_DATADIR}/minizinc/solvers -) -if (GECODE_HAS_GIST) - install( - FILES ${PROJECT_BINARY_DIR}/tools/flatzinc/gecode-gist.msc - DESTINATION share/minizinc/solvers - ) +if(GECODE_INSTALL) + include(CMakePackageConfigHelpers) + + install(TARGETS ${GECODE_INSTALL_TARGETS} + EXPORT GecodeTargets + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + + if(GECODE_ENABLE_FLATZINC) + install(FILES ${MZN_SCRIPT} DESTINATION ${CMAKE_INSTALL_BINDIR}) + endif() + + install(DIRECTORY gecode + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + FILES_MATCHING + PATTERN "**.hh" + PATTERN "**.hpp" + PATTERN "LICENSE_1_0.txt" + PATTERN "mznlib" EXCLUDE + PATTERN "exampleplugin" EXCLUDE + PATTERN "standalone-example" EXCLUDE + PATTERN "abi*" EXCLUDE) + + install(FILES ${PROJECT_BINARY_DIR}/gecode/support/config.hpp + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/gecode/support/) + if(GECODE_REGENERATE_VARIMP) + install(FILES ${GECODE_VAR_TYPE_HPP} ${GECODE_VAR_IMP_HPP} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/gecode/kernel/) + endif() + + if(GECODE_ENABLE_FLATZINC) + install(DIRECTORY gecode/flatzinc/mznlib/ + DESTINATION ${CMAKE_INSTALL_DATADIR}/minizinc/gecode) + + install(FILES ${PROJECT_BINARY_DIR}/tools/flatzinc/gecode.msc + DESTINATION ${CMAKE_INSTALL_DATADIR}/minizinc/solvers) + if(GECODE_BUILD_GIST_TARGET) + install(FILES ${PROJECT_BINARY_DIR}/tools/flatzinc/gecode-gist.msc + DESTINATION ${CMAKE_INSTALL_DATADIR}/minizinc/solvers) + endif() + endif() + + set(GECODE_PACKAGE_NEEDS_THREADS OFF) + if(GECODE_ENABLE_THREAD) + set(GECODE_PACKAGE_NEEDS_THREADS ON) + endif() + set(GECODE_PACKAGE_NEEDS_MPFR OFF) + if(GECODE_ENABLE_FLOAT_VARS AND GECODE_ENABLE_MPFR AND MPFR_FOUND AND TARGET MPFR::MPFR) + set(GECODE_PACKAGE_NEEDS_MPFR ON) + endif() + set(GECODE_PACKAGE_QT_MAJOR "") + set(GECODE_PACKAGE_QT_COMPONENTS "") + if(GECODE_BUILD_GIST_TARGET) + set(GECODE_PACKAGE_QT_COMPONENTS "Core;Gui;Widgets;PrintSupport") + elseif(GECODE_ENABLE_FLATZINC AND GECODE_HAS_QT_RUNTIME) + set(GECODE_PACKAGE_QT_COMPONENTS "Core") + endif() + if(NOT GECODE_PACKAGE_QT_COMPONENTS STREQUAL "") + if(Qt6_FOUND) + set(GECODE_PACKAGE_QT_MAJOR "6") + elseif(Qt5_FOUND) + set(GECODE_PACKAGE_QT_MAJOR "5") + endif() + endif() + + configure_package_config_file( + ${CMAKE_CURRENT_SOURCE_DIR}/cmake/GecodeConfig.cmake.in + ${CMAKE_CURRENT_BINARY_DIR}/GecodeConfig.cmake + INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Gecode) + + write_basic_package_version_file( + ${CMAKE_CURRENT_BINARY_DIR}/GecodeConfigVersion.cmake + VERSION ${GECODE_PROJECT_VERSION} + COMPATIBILITY SameMajorVersion) + + install(EXPORT GecodeTargets + FILE GecodeTargets.cmake + NAMESPACE Gecode:: + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Gecode) + + install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/GecodeConfig.cmake + ${CMAKE_CURRENT_BINARY_DIR}/GecodeConfigVersion.cmake + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Gecode) + + install(FILES + ${CMAKE_CURRENT_SOURCE_DIR}/misc/cmake_modules/FindMPFR.cmake + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Gecode) endif() + +set_property(GLOBAL PROPERTY USE_FOLDERS ON) diff --git a/Makefile.contribs b/Makefile.contribs deleted file mode 100644 index 1958647fdf..0000000000 --- a/Makefile.contribs +++ /dev/null @@ -1,84 +0,0 @@ -# -*-Makefile-*- -# -# Main authors: -# Christian Schulte -# Guido Tack -# Grégoire Dooms -# -# -# Copyright: -# Christian Schulte, 2005 -# Guido Tack, 2005 -# Grégoire Dooms, 2005 -# -# This file is part of Gecode, the generic constraint -# development environment: -# http://www.gecode.org -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# - -CONTRIBS := $(shell ls -d contribs/* 2>/dev/null ) - -contribdirs: - @rm -f configure.ac - @(echo "dnl This file was generated by Makefile.contribs."; \ - echo "dnl Do not edit! Modifications will get lost!"; \ - echo "dnl Edit configure.ac.in instead."; echo ""; \ - cat configure.ac.in \ - ) > configure.ac - @for i in $(CONTRIBS); do \ - if test ! -d $$i ; then continue ; fi; \ - if test -f $$i.dis* ; then \ - echo "Skipping disabled contrib $$i"; \ - elif test -f $$i/configure -a '(' -f $$i/vti.ac -o -f $$i/shortdesc.ac ')' ; then \ - mv configure.ac configure.ac.1; \ - sed -e "s|\(dnl @SUBDIRS@\)|AC_CONFIG_SUBDIRS($$i) \1|g" \ - configure.ac.1 > configure.ac; \ - if test -f $$i/vti.ac; then \ - echo "Add variable contrib from $$i"; \ - mv configure.ac configure.ac.1; \ - (sed -e "s|\(dnl @VTIS@\)|m4_include($$i/vti.ac) \1|g" \ - configure.ac.1 > configure.ac); \ - else \ - mv configure.ac configure.ac.1; \ - echo "Add contrib from $$i"; \ - DESC="`head -n 1 $$i/shortdesc.ac`"; \ - sed -e "s|\(dnl @CONTRIBS@\)|AC_GECODE_ENABLE_CONTRIB($${i#*\/},\"$$DESC\",[]) \1|g" \ - configure.ac.1 > configure.ac; \ - fi ;\ - else \ - if test ! -f $$i/configure; then \ - echo "Skipping contrib $$i : no configure script"; \ - else \ - echo "Skipping contrib $$i : no shortdescr.ac or vis.ac file "; \ - fi; \ - fi;\ - done - @rm -f configure.ac.1 - @echo "\n// STATISTICS: support-any\n" >> gecode/support/config.hpp.in - @echo Running autoconf on generated configure.ac ... - @autoconf - @autoheader - @mv gecode/support/config.hpp.in config.hpp.in.1 - @perl misc/fixautoheader.perl < config.hpp.in.1 \ - > gecode/support/config.hpp.in - @rm config.hpp.in.1 - @echo done. diff --git a/Makefile.dep b/Makefile.dep index be9edb6dd6..b9b54b60ca 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -33944,6 +33944,101 @@ test/flatzinc/steiner_triples$(OBJSUFFIX) test/flatzinc/steiner_triples$(SBJSUFF ./gecode/support/static-stack.hpp ./gecode/support/thread.hpp ./gecode/support/thread/thread.hpp \ ./gecode/support/timer.hpp ./test/flatzinc.hh ./test/test.hh \ ./test/test.hpp +test/flatzinc/subtyping$(OBJSUFFIX) test/flatzinc/subtyping$(SBJSUFFIX): \ + ./gecode/driver.hh ./gecode/driver/options.hpp ./gecode/driver/script.hpp \ + ./gecode/flatzinc.hh ./gecode/flatzinc/ast.hh ./gecode/flatzinc/conexpr.hh \ + ./gecode/flatzinc/option.hh ./gecode/flatzinc/varspec.hh ./gecode/float.hh \ + ./gecode/float/array-traits.hpp ./gecode/float/array.hpp ./gecode/float/branch.hpp \ + ./gecode/float/branch/action.hpp ./gecode/float/branch/afc.hpp ./gecode/float/branch/assign.hpp \ + ./gecode/float/branch/chb.hpp ./gecode/float/branch/traits.hpp ./gecode/float/branch/val.hpp \ + ./gecode/float/branch/var.hpp ./gecode/float/channel.hpp ./gecode/float/exception.hpp \ + ./gecode/float/limits.hpp ./gecode/float/nextafter.hpp ./gecode/float/num.hpp \ + ./gecode/float/rounding.hpp ./gecode/float/trace.hpp ./gecode/float/trace/delta.hpp \ + ./gecode/float/trace/trace-view.hpp ./gecode/float/trace/traits.hpp ./gecode/float/val.hpp \ + ./gecode/float/var-imp.hpp ./gecode/float/var-imp/delta.hpp ./gecode/float/var-imp/float.hpp \ + ./gecode/float/var/float.hpp ./gecode/float/var/print.hpp ./gecode/float/view.hpp \ + ./gecode/float/view/float.hpp ./gecode/float/view/minus.hpp ./gecode/float/view/offset.hpp \ + ./gecode/float/view/print.hpp ./gecode/float/view/rel-test.hpp ./gecode/float/view/scale.hpp \ + ./gecode/gist.hh ./gecode/gist/gist.hpp ./gecode/int.hh \ + ./gecode/int/array-traits.hpp ./gecode/int/array.hpp ./gecode/int/branch.hpp \ + ./gecode/int/branch/action.hpp ./gecode/int/branch/afc.hpp ./gecode/int/branch/assign.hpp \ + ./gecode/int/branch/chb.hpp ./gecode/int/branch/traits.hpp ./gecode/int/branch/val.hpp \ + ./gecode/int/branch/var.hpp ./gecode/int/channel.hpp ./gecode/int/div.hh \ + ./gecode/int/div.hpp ./gecode/int/exception.hpp ./gecode/int/extensional.hpp \ + ./gecode/int/extensional/dfa.hpp ./gecode/int/extensional/tuple-set.hpp ./gecode/int/int-set-1.hpp \ + ./gecode/int/int-set-2.hpp ./gecode/int/ipl.hpp ./gecode/int/irt.hpp \ + ./gecode/int/limits.hpp ./gecode/int/propagator.hpp ./gecode/int/reify.hpp \ + ./gecode/int/trace.hpp ./gecode/int/trace/bool-delta.hpp ./gecode/int/trace/bool-trace-view.hpp \ + ./gecode/int/trace/int-delta.hpp ./gecode/int/trace/int-trace-view.hpp ./gecode/int/trace/traits.hpp \ + ./gecode/int/var-imp.hpp ./gecode/int/var-imp/bool.hpp ./gecode/int/var-imp/delta.hpp \ + ./gecode/int/var-imp/int.hpp ./gecode/int/var/bool.hpp ./gecode/int/var/int.hpp \ + ./gecode/int/var/print.hpp ./gecode/int/view.hpp ./gecode/int/view/bool-test.hpp \ + ./gecode/int/view/bool.hpp ./gecode/int/view/cached.hpp ./gecode/int/view/constint.hpp \ + ./gecode/int/view/int.hpp ./gecode/int/view/iter.hpp ./gecode/int/view/minus.hpp \ + ./gecode/int/view/neg-bool.hpp ./gecode/int/view/offset.hpp ./gecode/int/view/print.hpp \ + ./gecode/int/view/rel-test.hpp ./gecode/int/view/scale.hpp ./gecode/int/view/zero.hpp \ + ./gecode/iter.hh ./gecode/iter/ranges-add.hpp ./gecode/iter/ranges-append.hpp \ + ./gecode/iter/ranges-array.hpp ./gecode/iter/ranges-cache.hpp ./gecode/iter/ranges-compl.hpp \ + ./gecode/iter/ranges-diff.hpp ./gecode/iter/ranges-empty.hpp ./gecode/iter/ranges-inter.hpp \ + ./gecode/iter/ranges-list.hpp ./gecode/iter/ranges-map.hpp ./gecode/iter/ranges-minmax.hpp \ + ./gecode/iter/ranges-minus.hpp ./gecode/iter/ranges-negative.hpp ./gecode/iter/ranges-offset.hpp \ + ./gecode/iter/ranges-operations.hpp ./gecode/iter/ranges-positive.hpp ./gecode/iter/ranges-rangelist.hpp \ + ./gecode/iter/ranges-scale.hpp ./gecode/iter/ranges-singleton-append.hpp ./gecode/iter/ranges-singleton.hpp \ + ./gecode/iter/ranges-size.hpp ./gecode/iter/ranges-union.hpp ./gecode/iter/ranges-values.hpp \ + ./gecode/iter/values-array.hpp ./gecode/iter/values-bitset.hpp ./gecode/iter/values-bitsetoffset.hpp \ + ./gecode/iter/values-inter.hpp ./gecode/iter/values-list.hpp ./gecode/iter/values-map.hpp \ + ./gecode/iter/values-minus.hpp ./gecode/iter/values-negative.hpp ./gecode/iter/values-offset.hpp \ + ./gecode/iter/values-positive.hpp ./gecode/iter/values-ranges.hpp ./gecode/iter/values-singleton.hpp \ + ./gecode/iter/values-union.hpp ./gecode/iter/values-unique.hpp ./gecode/kernel.hh \ + ./gecode/kernel/archive.hpp ./gecode/kernel/branch/action.hpp ./gecode/kernel/branch/afc.hpp \ + ./gecode/kernel/branch/chb.hpp ./gecode/kernel/branch/filter.hpp ./gecode/kernel/branch/merit.hpp \ + ./gecode/kernel/branch/print.hpp ./gecode/kernel/branch/tiebreak.hpp ./gecode/kernel/branch/traits.hpp \ + ./gecode/kernel/branch/val-commit.hpp ./gecode/kernel/branch/val-sel-commit.hpp ./gecode/kernel/branch/val-sel.hpp \ + ./gecode/kernel/branch/val.hpp ./gecode/kernel/branch/var.hpp ./gecode/kernel/branch/view-sel.hpp \ + ./gecode/kernel/branch/view-val.hpp ./gecode/kernel/branch/view.hpp ./gecode/kernel/core.hpp \ + ./gecode/kernel/data/array.hpp ./gecode/kernel/data/rnd.hpp ./gecode/kernel/data/shared-array.hpp \ + ./gecode/kernel/data/shared-data.hpp ./gecode/kernel/exception.hpp ./gecode/kernel/gpi.hpp \ + ./gecode/kernel/macros.hpp ./gecode/kernel/memory/allocators.hpp ./gecode/kernel/memory/config.hpp \ + ./gecode/kernel/memory/manager.hpp ./gecode/kernel/memory/region.hpp ./gecode/kernel/modevent.hpp \ + ./gecode/kernel/propagator/advisor.hpp ./gecode/kernel/propagator/pattern.hpp ./gecode/kernel/propagator/subscribed.hpp \ + ./gecode/kernel/propagator/wait.hpp ./gecode/kernel/range-list.hpp ./gecode/kernel/shared-object.hpp \ + ./gecode/kernel/shared-space-data.hpp ./gecode/kernel/trace/filter.hpp ./gecode/kernel/trace/general.hpp \ + ./gecode/kernel/trace/print.hpp ./gecode/kernel/trace/recorder.hpp ./gecode/kernel/trace/tracer.hpp \ + ./gecode/kernel/trace/traits.hpp ./gecode/kernel/var-imp.hpp ./gecode/kernel/var-type.hpp \ + ./gecode/kernel/var.hpp ./gecode/kernel/view.hpp ./gecode/minimodel.hh \ + ./gecode/minimodel/aliases.hpp ./gecode/minimodel/bool-expr.hpp ./gecode/minimodel/channel.hpp \ + ./gecode/minimodel/exception.hpp ./gecode/minimodel/float-expr.hpp ./gecode/minimodel/float-rel.hpp \ + ./gecode/minimodel/int-expr.hpp ./gecode/minimodel/int-rel.hpp ./gecode/minimodel/ipl.hpp \ + ./gecode/minimodel/ldsb.hpp ./gecode/minimodel/matrix.hpp ./gecode/minimodel/optimize.hpp \ + ./gecode/minimodel/reg.hpp ./gecode/minimodel/set-expr.hpp ./gecode/minimodel/set-rel.hpp \ + ./gecode/search.hh ./gecode/search/bab.hpp ./gecode/search/base.hpp \ + ./gecode/search/build.hpp ./gecode/search/cutoff.hpp ./gecode/search/dfs.hpp \ + ./gecode/search/engine.hpp ./gecode/search/exception.hpp ./gecode/search/lds.hpp \ + ./gecode/search/options.hpp ./gecode/search/pbs.hpp ./gecode/search/rbs.hpp \ + ./gecode/search/sebs.hpp ./gecode/search/seq/dead.hh ./gecode/search/statistics.hpp \ + ./gecode/search/stop.hpp ./gecode/search/support.hh ./gecode/search/trace-recorder.hpp \ + ./gecode/search/tracer.hpp ./gecode/search/traits.hpp ./gecode/set.hh \ + ./gecode/set/array-traits.hpp ./gecode/set/array.hpp ./gecode/set/branch.hpp \ + ./gecode/set/branch/action.hpp ./gecode/set/branch/afc.hpp ./gecode/set/branch/assign.hpp \ + ./gecode/set/branch/chb.hpp ./gecode/set/branch/traits.hpp ./gecode/set/branch/val.hpp \ + ./gecode/set/branch/var.hpp ./gecode/set/exception.hpp ./gecode/set/int.hpp \ + ./gecode/set/limits.hpp ./gecode/set/trace.hpp ./gecode/set/trace/delta.hpp \ + ./gecode/set/trace/trace-view.hpp ./gecode/set/trace/traits.hpp ./gecode/set/var-imp.hpp \ + ./gecode/set/var-imp/delta.hpp ./gecode/set/var-imp/integerset.hpp ./gecode/set/var-imp/iter.hpp \ + ./gecode/set/var-imp/set.hpp ./gecode/set/var/print.hpp ./gecode/set/var/set.hpp \ + ./gecode/set/view.hpp ./gecode/set/view/cached.hpp ./gecode/set/view/complement.hpp \ + ./gecode/set/view/const.hpp ./gecode/set/view/print.hpp ./gecode/set/view/set.hpp \ + ./gecode/set/view/singleton.hpp ./gecode/support.hh ./gecode/support/allocator.hpp \ + ./gecode/support/auto-link.hpp ./gecode/support/bitset-base.hpp ./gecode/support/bitset-offset.hpp \ + ./gecode/support/bitset.hpp ./gecode/support/block-allocator.hpp ./gecode/support/cast.hpp \ + ./gecode/support/config.hpp ./gecode/support/dynamic-array.hpp ./gecode/support/dynamic-queue.hpp \ + ./gecode/support/dynamic-stack.hpp ./gecode/support/exception.hpp ./gecode/support/hash.hpp \ + ./gecode/support/heap.hpp ./gecode/support/hw-rnd.hpp ./gecode/support/int-type.hpp \ + ./gecode/support/macros.hpp ./gecode/support/marked-pointer.hpp ./gecode/support/random.hpp \ + ./gecode/support/ref-count.hpp ./gecode/support/run-jobs.hpp ./gecode/support/sort.hpp \ + ./gecode/support/static-stack.hpp ./gecode/support/thread.hpp ./gecode/support/thread/thread.hpp \ + ./gecode/support/timer.hpp ./test/flatzinc.hh ./test/test.hh \ + ./test/test.hpp test/flatzinc/timetabling$(OBJSUFFIX) test/flatzinc/timetabling$(SBJSUFFIX): \ ./gecode/driver.hh ./gecode/driver/options.hpp ./gecode/driver/script.hpp \ ./gecode/flatzinc.hh ./gecode/flatzinc/ast.hh ./gecode/flatzinc/conexpr.hh \ diff --git a/Makefile.in b/Makefile.in index 0fca3dd78c..a532b05fdb 100755 --- a/Makefile.in +++ b/Makefile.in @@ -75,6 +75,7 @@ export EXAMPLES_EXTRA_CXXFLAGS = @EXAMPLES_EXTRA_CXXFLAGS@ export QT_CPPFLAGS = @QTDEFINES@ @QTINCLUDES@ export LINKQT = @QTLIBS@ +export LINKCPPROFILER = @LINKCPPROFILER@ export MPFR_CPPFLAGS = @GMP_CPPFLAGS@ @MPFR_CPPFLAGS@ ifeq "@enable_mpfr@" "yes" export LINKMPFR = @MPFR_LIB_PATH@ @GMP_LIB_PATH@ @MPFR_LINK@ @GMP_LINK@ @@ -124,10 +125,11 @@ export SOSUFFIX = @DLL_ARCH@@USERSUFFIX@@SOSUFFIX@ # export RMF = rm -rf export MV = mv +export UVRUN = @PROG_UV@ run --script export MANIFEST = @MANIFEST@ -nologo -export FIXMANIFEST = perl $(top_srcdir)/misc/fixmanifest.perl $(DLLSUFFIX) +export FIXMANIFEST = $(UVRUN) $(top_srcdir)/misc/fixmanifest.py $(DLLSUFFIX) export RESCOMP = @RESCOMP@ -n -i$(top_srcdir) -export RCGEN = perl $(top_srcdir)/misc/genrc.perl $(DLLSUFFIX) $(top_srcdir) +export RCGEN = $(UVRUN) $(top_srcdir)/misc/genrc.py $(DLLSUFFIX) $(top_srcdir) ifeq "@need_soname@" "yes" export CREATELINK = ln -fs @@ -1336,21 +1338,6 @@ makecompletedmessage: @echo make install @echo -# ugly hack by Gr�goire Dooms to call a target on a contribs after evaluating all the variables in this Makefile. -# used as make contribs:cpgraph:doc or make contribs:cpgraph:Makefile.in -.PHONY: contribs\:% -contribs\:%: - $(MAKE) -C $(shell echo $@ | sed 's/\(contribs:[^:]*\):.*/\1/;s+:+/+') $(shell echo $@ | sed 's/contribs:[^:]*:\(.*\)/\1/;s+:+/+') - -# less ugly hack by Guido Tack to call a target -# Just give ICD (in-contrib-dir) and ICT (in-contrib-target) as arguments -# to make incontrib -ICT= -ICD= -.PHONY: incontrib -incontrib: - $(MAKE) -C contribs/$(ICD) $(ICT) - compilesubdirs: @for_subdirs="$(subdirs)"; for i in $$for_subdirs; do \ if test -f $$i/Makefile; then \ @@ -1365,12 +1352,12 @@ compilesubdirs: VIS = @ALLVIS@ VISDEP = $(VIS) \ - $(top_srcdir)/misc/genvarimp.perl Makefile + $(top_srcdir)/misc/genvarimp.py Makefile gecode/kernel/var-type.hpp: $(VISDEP) - perl $(top_srcdir)/misc/genvarimp.perl -typehpp $(VIS) > $@ + $(UVRUN) $(top_srcdir)/misc/genvarimp.py -typehpp $(VIS) > $@ gecode/kernel/var-imp.hpp: $(VISDEP) - perl $(top_srcdir)/misc/genvarimp.perl -header $(VIS) > $@ + $(UVRUN) $(top_srcdir)/misc/genvarimp.py -header $(VIS) > $@ # # Object targets @@ -1527,6 +1514,10 @@ $(FLATZINC_GENSRC:%.cpp=%$(SBJSUFFIX)): gecode/flatzinc/%$(SBJSUFFIX): gecode/fl @GECODE_BUILD_FLATZINC_FLAG@ \ @COMPILESBJ@$@ @CXXIN@$< +# Generated FlatZinc sources include parser.tab.hpp; make dependency explicit for parallel builds. +gecode/flatzinc/parser.tab$(OBJSUFFIX) gecode/flatzinc/lexer.yy$(OBJSUFFIX): gecode/flatzinc/parser.tab.hpp +gecode/flatzinc/parser.tab$(SBJSUFFIX) gecode/flatzinc/lexer.yy$(SBJSUFFIX): gecode/flatzinc/parser.tab.hpp + # # DLL Targets # @@ -1555,7 +1546,7 @@ $(KERNELDLL): $(KERNELOBJ) $(SUPPORTDLL) $(CREATELINK) $@ $(@:%$(DLLSUFFIX)=%$(SOSUFFIX)) $(SEARCHDLL): $(SEARCHOBJ) $(SUPPORTDLL) $(KERNELDLL) $(CXX) $(DLLFLAGS) $(SEARCHOBJ) $(SEARCHSONAME) \ - @DLLPATH@ $(LINKSUPPORT) $(LINKKERNEL) \ + @DLLPATH@ $(LINKSUPPORT) $(LINKKERNEL) $(LINKCPPROFILER) \ @LINKOUTPUT@$(SEARCHDLL) $(CREATELINK) $@ $(@:%$(DLLSUFFIX)=%$(SOLINKSUFFIX)) $(CREATELINK) $@ $(@:%$(DLLSUFFIX)=%$(SOSUFFIX)) @@ -1632,7 +1623,7 @@ $(SEARCHRC): endif $(SEARCHDLL) $(SEARCHLIB): $(SEARCHOBJ) $(SEARCHRES) $(SUPPORTDLL) $(KERNELDLL) $(CXX) $(DLLFLAGS) $(SEARCHOBJ) $(SEARCHRES) \ - @DLLPATH@ @LINKOUTPUT@$(SEARCHDLL) $(GLDFLAGS) + @DLLPATH@ @LINKOUTPUT@$(SEARCHDLL) $(GLDFLAGS) $(LINKCPPROFILER) $(FIXMANIFEST) $(SEARCHDLL).manifest $(MANIFEST) -manifest $(SEARCHDLL).manifest \ -outputresource:$(SEARCHDLL)\;2 @@ -1791,13 +1782,13 @@ examples/%$(EXESUFFIX): examples/%$(OBJSUFFIX) examples/%$(EXESUFFIX).res \ $(ALLLIB) $(CXX) @EXEOUTPUT@$@ $< $@.res \ $(DLLPATH) $(CXXFLAGS) \ - $(LINKALL) $(GLDFLAGS) $(LINKQT) + $(LINKALL) $(GLDFLAGS) $(LINKQT) $(LINKCPPROFILER) $(FIXMANIFEST) $@.manifest $(MANIFEST) -manifest $@.manifest -outputresource:$@\;1 else examples/%$(EXESUFFIX): examples/%$(OBJSUFFIX) $(ALLLIB) $(CXX) @EXEOUTPUT@$@ $< $(DLLPATH) $(CXXFLAGS) \ - $(LINKALL) $(GLDFLAGS) $(LINKQT) + $(LINKALL) $(GLDFLAGS) $(LINKQT) $(LINKCPPROFILER) $(FIXMANIFEST) $@.manifest $(MANIFEST) -manifest $@.manifest -outputresource:$@\;1 endif @@ -1811,7 +1802,7 @@ TESTRES = endif $(TESTEXE): $(TESTOBJ) $(TESTRES) $(ALLLIB) $(CXX) @EXEOUTPUT@$@ $(TESTOBJ) $(TESTRES) $(DLLPATH) $(CXXFLAGS) \ - $(LINKALL) $(GLDFLAGS) $(LINKQT) + $(LINKALL) $(GLDFLAGS) $(LINKQT) $(LINKCPPROFILER) $(FIXMANIFEST) $@.manifest $(DLLSUFFIX) $(MANIFEST) -manifest $@.manifest -outputresource:$@\;1 @@ -1831,8 +1822,8 @@ FLATZINCEXERES = endif $(FLATZINCEXE): $(FLATZINCEXEOBJ) $(FLATZINCEXERES) $(ALLLIB) $(CXX) @EXEOUTPUT@$@ $(FLATZINCEXEOBJ) $(FLATZINCEXERES) \ - $(DLLPATH) $(CXXFLAGS) \ - $(LINKALL) $(GLDFLAGS) $(LINKSTATICQT) + $(DLLPATH) $(CXXFLAGS) \ + $(LINKALL) $(GLDFLAGS) $(LINKSTATICQT) $(LINKCPPROFILER) $(FIXMANIFEST) $@.manifest $(MANIFEST) -manifest $@.manifest -outputresource:$@\;1 @@ -1857,8 +1848,6 @@ doxygen.conf: $(top_srcdir)/doxygen/doxygen.conf.in config.status # Documentation # -export ENABLEDOCCHM = @ENABLEDOCCHM@ -export ENABLEDOCDOCSET = @ENABLEDOCDOCSET@ ENABLEDOCSEARCH = @ENABLEDOCSEARCH@ .PHONY: doc @@ -1867,73 +1856,28 @@ DOCSRC_NOTGENERATED = \ misc/doxygen/back.png misc/doxygen/footer.html \ misc/doxygen/gecode-logo-100.png \ misc/doxygen/stylesheet.css \ - misc/genlicense.perl misc/genstatistics.perl \ - misc/genchangelog.perl + misc/genlicense.py misc/genstatistics.py \ + misc/genchangelog.py DOCSRC = $(DOCSRC_NOTGENERATED:%=$(top_srcdir)/%) \ doxygen.conf.use header.html \ doxygen.hh license.hh stat.hh changelog.hh changelog.hh: $(top_srcdir)/changelog.in - perl $(top_srcdir)/misc/genchangelog.perl < $^ > changelog.hh + $(UVRUN) $(top_srcdir)/misc/genchangelog.py < $^ > changelog.hh ChangeLog: $(top_srcdir)/changelog.in - perl $(top_srcdir)/misc/gentxtchangelog.perl < $^ > ChangeLog + $(UVRUN) $(top_srcdir)/misc/gentxtchangelog.py < $^ > ChangeLog license.hh: $(ALLGECODEHDR:%=$(top_srcdir)/%) $(ALLSRC:%=$(top_srcdir)/%) \ $(VARIMPHDR) - perl $(top_srcdir)/misc/genlicense.perl $^ > license.hh + $(UVRUN) $(top_srcdir)/misc/genlicense.py $^ > license.hh stat.hh: $(ALLGECODEHDR:%=$(top_srcdir)/%) $(ALLSRC:%=$(top_srcdir)/%) \ $(TESTHDR:%=$(top_srcdir)/%) $(TESTSRC:%=$(top_srcdir)/%) \ $(VARIMPHDR) - perl $(top_srcdir)/misc/genstatistics.perl $^ > stat.hh - - -ifeq "@ENABLEDOCCHM@" "yes" - -DOCTARGET=GecodeReference.chm - -header.html: $(top_srcdir)/misc/doxygen/header.html doxygen.conf - grep -v '' < $< > $@ -doxygen.conf.use: doxygen.conf - (echo "GENERATE_HTMLHELP = YES"; \ - echo "SEARCHENGINE = NO";\ - echo "HAVE_DOT = @GECODE_DOXYGEN_DOT@") | \ - cat $< - > $@ - -doc: $(ALLGECODEHDR:%=$(top_srcdir)/%) $(VARIMPHDR) \ - $(ALLSRC:%=$(top_srcdir)/%) $(DOCSRC) - mkdir -p doc/html - cp -f $(top_srcdir)/misc/doxygen/back.png \ - $(top_srcdir)/misc/doxygen/gecode-logo-100.png doc/html - doxygen doxygen.conf.use - mv doc/html/GecodeReference.chm GecodeReference.chm - -else -ifeq "@ENABLEDOCDOCSET@" "yes" - -DOCTARGET=org.gecode.@VERSION@.docset - -header.html: $(top_srcdir)/misc/doxygen/header.html doxygen.conf - grep -v '' < $< > $@ -doxygen.conf.use: doxygen.conf - (echo "SEARCHENGINE = NO";\ - echo "HAVE_DOT = @GECODE_DOXYGEN_DOT@";\ - echo "GENERATE_DOCSET = YES";\ - echo "DOCSET_BUNDLE_ID = org.gecode.@VERSION@";\ - echo "DOCSET_FEEDNAME = Gecode") | \ - cat $< - > $@ + $(UVRUN) $(top_srcdir)/misc/genstatistics.py $^ > stat.hh -doc: $(ALLGECODEHDR:%=$(top_srcdir)/%) $(VARIMPHDR) \ - $(ALLSRC:%=$(top_srcdir)/%) $(DOCSRC) - mkdir -p doc/html - cp -f $(top_srcdir)/misc/doxygen/back.png \ - $(top_srcdir)/misc/doxygen/gecode-logo-100.png doc/html - doxygen doxygen.conf.use - cd doc/html && make - mv doc/html/$(DOCTARGET) . -else DOCTARGET=doc/html ifeq "@ENABLEDOCSEARCH@" "yes" @@ -1941,8 +1885,7 @@ ifeq "@ENABLEDOCSEARCH@" "yes" header.html: $(top_srcdir)/misc/doxygen/header.html doxygen.conf cat < $< > $@ doxygen.conf.use: doxygen.conf - (echo "GENERATE_HTMLHELP = NO"; \ - echo "SEARCHENGINE = YES"; \ + (echo "SEARCHENGINE = YES"; \ echo "SERVER_BASED_SEARCH = YES"; \ echo "HAVE_DOT = @GECODE_DOXYGEN_DOT@") | \ cat $< - > $@ @@ -1951,14 +1894,13 @@ else header.html: $(top_srcdir)/misc/doxygen/header.html doxygen.conf grep -v '' < $< > $@ doxygen.conf.use: doxygen.conf - (echo "GENERATE_HTMLHELP = NO"; \ - echo "SEARCHENGINE = NO"; \ + (echo "SEARCHENGINE = NO"; \ echo "HAVE_DOT = @GECODE_DOXYGEN_DOT@") | \ cat $< - > $@ endif -doc: $(ALLGECODEHDR:%=$(top_srcdir)/%) $(VARIMPHDR) \ +doc: mkcompiledirs $(ALLGECODEHDR:%=$(top_srcdir)/%) $(VARIMPHDR) \ $(ALLSRC:%=$(top_srcdir)/%) $(DOCSRC) mkdir -p doc/html cp -f $(top_srcdir)/misc/doxygen/back.png \ @@ -1973,9 +1915,6 @@ ifeq "@ENABLEDOCSEARCH@" "yes" rm doc/html/search2.php endif -endif -endif - # # Installation # @@ -2126,7 +2065,7 @@ veryclean: clean $(RMF) $(EXAMPLEEXE) $(RMF) $(TESTEXE) $(RMF) $(FLATZINCEXE) - $(RMF) doc GecodeReference.chm ChangeLog + $(RMF) doc ChangeLog $(RMF) $(ALLOBJ:%$(OBJSUFFIX)=%.gcno) $(TESTOBJ:%$(OBJSUFFIX)=%.gcno) $(RMF) $(ALLOBJ:%$(OBJSUFFIX)=%.gcda) $(TESTOBJ:%$(OBJSUFFIX)=%.gcda) @@ -2138,7 +2077,7 @@ distclean: veryclean depend: mkcompiledirs @$(MAKE) $(VARIMP) gecode/flatzinc/parser.tab.hpp - perl $(top_srcdir)/misc/makedepend.perl \ + $(UVRUN) $(top_srcdir)/misc/makedepend.py \ $(top_srcdir) \ $(ALLSRC) \ $(FLATZINC_GENSRC) \ diff --git a/README.md b/README.md index 6bd39946c2..e743491bca 100644 --- a/README.md +++ b/README.md @@ -7,22 +7,90 @@ constraint-based systems and applications. Gecode provides a constraint solver with state-of-the-art performance while being modular and extensible. -[master](https://github.com/Gecode/gecode/tree/master): -[![Build Status master](https://api.travis-ci.org/Gecode/gecode.svg?branch=master)](https://travis-ci.org/Gecode/gecode) - -[develop](https://github.com/Gecode/gecode/tree/develop): -[![Build Status develop](https://api.travis-ci.org/Gecode/gecode.svg?branch=develop)](https://travis-ci.org/Gecode/gecode) +[![CI](https://github.com/Gecode/gecode/actions/workflows/build.yml/badge.svg)](https://github.com/Gecode/gecode/actions/workflows/build.yml) ## Getting All the Info You Need... You can find lots of information on [Gecode's webpages](https://gecode.github.io), -including how to download, compile, install, and use it. +including how to download, compile, install, and use it. In particular, Gecode comes with [extensive tutorial and reference documentation](https://gecode.github.io/documentation.html). +## CMake Build Options + +CMake now exposes options aligned with the Autoconf build switches. +The minimum required CMake version is 3.21. +`configure.ac` is the canonical autoconf source, and `configure` is generated +from it. +Version metadata shared by autoconf and CMake lives in `gecode-version.m4`. +`build/` is reserved for generated build outputs. + +| Autoconf switch | CMake option / mechanism | Status | Notes | +|---|---|---|---| +| `--enable-shared` | `GECODE_BUILD_SHARED` | Supported directly | Default `ON` | +| `--enable-static` | `GECODE_BUILD_STATIC` | Supported directly | Default `OFF` | +| `--enable-thread` | `GECODE_ENABLE_THREAD` | Supported directly | Default `ON` | +| `--enable-osx-unfair-mutex` | `GECODE_ENABLE_OSX_UNFAIR_MUTEX` | Supported directly | Default `ON` | +| `--enable-qt` | `GECODE_ENABLE_QT` | Supported directly | Qt5/Qt6 package discovery | +| `--enable-gist` | `GECODE_ENABLE_GIST` | Supported directly | Disabled automatically if Qt is unavailable | +| `--enable-cpprofiler` | `GECODE_ENABLE_CPPROFILER` | Supported directly | Default `ON` | +| `--enable-cbs` | `GECODE_ENABLE_CBS` | Supported directly | Default `OFF` | +| `--enable-examples` | `GECODE_ENABLE_EXAMPLES` | Supported directly | Default `ON` for top-level builds, `OFF` for subprojects | +| `--enable-search` | `GECODE_ENABLE_SEARCH` | Supported directly | Default `ON` | +| `--enable-int-vars` | `GECODE_ENABLE_INT_VARS` | Supported directly | Default `ON` | +| `--enable-set-vars` | `GECODE_ENABLE_SET_VARS` | Supported directly | Default `ON` | +| `--enable-float-vars` | `GECODE_ENABLE_FLOAT_VARS` | Supported directly | Default `ON` | +| `--enable-minimodel` | `GECODE_ENABLE_MINIMODEL` | Supported directly | Default `ON` | +| `--enable-driver` | `GECODE_ENABLE_DRIVER` | Supported directly | Default `ON` | +| `--enable-flatzinc` | `GECODE_ENABLE_FLATZINC` | Supported directly | Default `ON` | +| `--enable-mpfr` | `GECODE_ENABLE_MPFR` | Supported directly | Default `ON`; uses `find_package(MPFR)` | +| `--enable-allocator` | `GECODE_ENABLE_ALLOCATOR` | Supported directly | Default `ON` | +| `--enable-audit` | `GECODE_ENABLE_AUDIT` | Supported directly | Default `OFF` | +| `--enable-gcc-visibility` | `GECODE_ENABLE_GCC_VISIBILITY` | Supported directly | Default `ON` | +| `--with-freelist32-size-max` | `GECODE_FREELIST32_SIZE_MAX` | Supported directly | Cache string | +| `--with-freelist64-size-max` | `GECODE_FREELIST64_SIZE_MAX` | Supported directly | Cache string | +| `--with-vis` | `GECODE_WITH_VIS` | Supported directly | Comma-separated list | +| `--with-lib-prefix` | `GECODE_LIB_PREFIX` | Supported directly | Prefixes generated library basenames | +| `--with-lib-suffix` | `GECODE_LIB_SUFFIX` | Supported directly | Suffixes generated library basenames | +| `--enable-debug` | `CMAKE_BUILD_TYPE=Debug` (or multi-config `Debug`) | Mapped to native CMake mechanism | Use standard CMake build-type workflows | +| `--enable-profile` | Toolchain/CMake compile+link flags | Mapped to native CMake mechanism | Configure profiling via standard compiler flags | +| `--enable-gcov` | Toolchain/CMake coverage flags | Mapped to native CMake mechanism | Configure coverage instrumentation via compiler/linker flags | +| `--with-mpfr-include`, `--with-mpfr-lib` | `CMAKE_PREFIX_PATH`, `MPFR_ROOT`, toolchain include/link paths | Mapped to native CMake mechanism | Use CMake package and toolchain discovery | +| `--with-gmp-include`, `--with-gmp-lib` | Toolchain include/link paths | Mapped to native CMake mechanism | GMP is resolved through MPFR/toolchain linkage | +| `--with-host-os` | None | Not supported in CMake | Generator/toolchain already determine host/target platform | +| `--with-compiler-vendor` | None | Not supported in CMake | Compiler is selected through toolchain and generator | +| `--with-sdk`, `--with-macosx-version-min`, `--with-architectures` | None | Not supported in CMake | Use native CMake/macOS toolchain settings | +| `--enable-framework` | None | Not supported in CMake | No framework-bundle generator path is implemented | +| `--enable-resource` | None | Not supported in CMake | No autoconf-style resource toggle in CMake | +| `--enable-doc-dot`, `--enable-doc-search`, `--enable-doc-tagfile` | None | Not supported in CMake | No parity layer for doxygen doc toggles | + +By default, CMake uses checked-in `gecode/kernel/var-type.hpp` and +`gecode/kernel/var-imp.hpp`; regeneration is opt-in via +`-DGECODE_REGENERATE_VARIMP=ON`. +Build-time script execution requires `uv` on `PATH`. Gecode does not check +for Python directly; scripts are always run with `uv run --script ...`. +When `-DGECODE_REGENERATE_VARIMP=ON` is set, CMake also requires `uv`. + +Compatibility aliases are still accepted temporarily: +`ENABLE_THREADS`, `ENABLE_GIST`, `BUILD_EXAMPLES`, `ENABLE_CPPROFILER`. + +## CMake Package Consumption + +For CMake build/install workflows and downstream `find_package(Gecode)` usage, +see [`docs/cmake-build.md`](docs/cmake-build.md). + +Minimal downstream example: + +```cmake +find_package(Gecode CONFIG REQUIRED) +target_link_libraries(my_target PRIVATE Gecode::gecode) +``` + +Use `Gecode_VERSION` from package config for version checks. + ## Download Gecode Gecode packages (source, Apple MacOS, Microsoft Windows) can be downloaded from @@ -38,5 +106,3 @@ We happily accept smaller contributions and fixes, please provide them as pull r Gecode is licensed under the [MIT license](https://github.com/Gecode/gecode/blob/master/LICENSE). - - diff --git a/changelog.in b/changelog.in index 05e127effb..8991273607 100755 --- a/changelog.in +++ b/changelog.in @@ -65,10 +65,46 @@ [RELEASE] Version: 6.3.0 -Date: 2020-??-?? +Date: 2026-??-?? [DESCRIPTION] Let's see. +[ENTRY] +Module: other +What: change +Rank: major +[DESCRIPTION] +Modernize the build infrastructure across CMake and autoconf: +raise CMake minimum version to 3.21, update autoconf macros to +current style, make configure.ac the canonical autoconf source, +and centralize shared version metadata in gecode-version.m4. + +[ENTRY] +Module: other +What: change +Rank: major +[DESCRIPTION] +Migrate build helper scripts from Perl to Python and execute them +via uv. This removes Perl as a build-time dependency and unifies +script execution in autoconf, CMake, and CI. + +[ENTRY] +Module: search +What: bug +Rank: minor +[DESCRIPTION] +Fix CPProfiler compilation on Windows and MinGW by using the +standard _WIN32 platform guard, guarding MSVC-specific pragmas, +and linking against the Windows socket library where required. + +[ENTRY] +Module: other +What: removed +Rank: major +[DESCRIPTION] +Remove outdated contrib modules (qecode and quacode) from the +main build and repository maintenance path. + [ENTRY] Module: flatzinc What: change @@ -179,7 +215,7 @@ What: new Rank: minor Thanks: Jip J. Dekker [DESCRIPTION] -Add the reason for restarting to the MetaInfo object available when restarting. +Add the reason for restarting to the MetaInfo object available when restarting. [ENTRY] Module: other @@ -248,7 +284,7 @@ Thanks: Jip J. Dekker Add support for building Gecode Gist with Qt6. [ENTRY] -Module: flatzinc +Module: flatzinc What: new Rank: minor Thanks: Jip J. Dekker @@ -256,7 +292,7 @@ Thanks: Jip J. Dekker Add support for disjunctive and cumulative on optional variables. [ENTRY] -Module: flatzinc +Module: flatzinc What: new Rank: minor Thanks: Jip J. Dekker diff --git a/cmake/GecodeConfig.cmake.in b/cmake/GecodeConfig.cmake.in new file mode 100644 index 0000000000..f6e9b6e8b8 --- /dev/null +++ b/cmake/GecodeConfig.cmake.in @@ -0,0 +1,62 @@ +@PACKAGE_INIT@ + +include(CMakeFindDependencyMacro) +if("@GECODE_PACKAGE_NEEDS_THREADS@" STREQUAL "ON") + find_dependency(Threads REQUIRED) +endif() +if("@GECODE_PACKAGE_NEEDS_MPFR@" STREQUAL "ON") + set(_gecode_saved_module_path "${CMAKE_MODULE_PATH}") + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") + find_dependency(MPFR REQUIRED) + set(CMAKE_MODULE_PATH "${_gecode_saved_module_path}") + unset(_gecode_saved_module_path) +endif() +set(_gecode_qt_components "@GECODE_PACKAGE_QT_COMPONENTS@") +if("@GECODE_PACKAGE_QT_MAJOR@" STREQUAL "6") + find_dependency(Qt6 REQUIRED COMPONENTS ${_gecode_qt_components}) +elseif("@GECODE_PACKAGE_QT_MAJOR@" STREQUAL "5") + find_dependency(Qt5 REQUIRED COMPONENTS ${_gecode_qt_components}) +endif() + +include("${CMAKE_CURRENT_LIST_DIR}/GecodeTargets.cmake") + +set(Gecode_VERSION "@GECODE_PROJECT_VERSION@") +set(Gecode_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_INCLUDEDIR@") +set(Gecode_LIBRARIES Gecode::gecode) + +set(_gecode_supported_components + support + kernel + search + int + set + float + minimodel + driver + flatzinc + gist) + +foreach(_gecode_component IN LISTS _gecode_supported_components) + set(_gecode_component_target "Gecode::gecode${_gecode_component}") + if(TARGET ${_gecode_component_target}) + set(_gecode_component_found TRUE) + else() + set(_gecode_component_found FALSE) + endif() + set(Gecode_${_gecode_component}_FOUND ${_gecode_component_found}) + set(Gecode_gecode${_gecode_component}_FOUND ${_gecode_component_found}) +endforeach() + +foreach(_gecode_requested_component IN LISTS Gecode_FIND_COMPONENTS) + if(NOT DEFINED Gecode_${_gecode_requested_component}_FOUND) + set(Gecode_${_gecode_requested_component}_FOUND FALSE) + endif() +endforeach() + +unset(_gecode_component) +unset(_gecode_component_found) +unset(_gecode_component_target) +unset(_gecode_requested_component) +unset(_gecode_supported_components) + +check_required_components(Gecode) diff --git a/cmake/GecodeSources.cmake b/cmake/GecodeSources.cmake new file mode 100644 index 0000000000..eb1809eba8 --- /dev/null +++ b/cmake/GecodeSources.cmake @@ -0,0 +1,425 @@ +# +# Native source inventory for the CMake build. +# This file intentionally avoids file(GLOB...) so source changes are explicit. +# + +set(GECODE_SUPPORT_SOURCES + gecode/support/allocator.cpp + gecode/support/exception.cpp + gecode/support/heap.cpp + gecode/support/hw-rnd.cpp + gecode/support/thread/thread.cpp +) + +set(GECODE_KERNEL_SOURCES + gecode/kernel/archive.cpp + gecode/kernel/branch/action.cpp + gecode/kernel/branch/afc.cpp + gecode/kernel/branch/chb.cpp + gecode/kernel/branch/function.cpp + gecode/kernel/core.cpp + gecode/kernel/data/array.cpp + gecode/kernel/data/rnd.cpp + gecode/kernel/exception.cpp + gecode/kernel/gpi.cpp + gecode/kernel/memory/manager.cpp + gecode/kernel/memory/region.cpp + gecode/kernel/trace/filter.cpp + gecode/kernel/trace/general.cpp + gecode/kernel/trace/recorder.cpp + gecode/kernel/trace/tracer.cpp +) + +set(GECODE_SEARCH_SOURCES + gecode/search/bab.cpp + gecode/search/cpprofiler/tracer.cpp + gecode/search/cutoff.cpp + gecode/search/dfs.cpp + gecode/search/engine.cpp + gecode/search/exception.cpp + gecode/search/lds.cpp + gecode/search/nogoods.cpp + gecode/search/options.cpp + gecode/search/par/pbs.cpp + gecode/search/pbs.cpp + gecode/search/rbs.cpp + gecode/search/seq/dead.cpp + gecode/search/seq/pbs.cpp + gecode/search/seq/rbs.cpp + gecode/search/stop.cpp + gecode/search/tracer.cpp +) + +set(GECODE_INT_SOURCES + gecode/int/arithmetic.cpp + gecode/int/arithmetic/mult.cpp + gecode/int/array.cpp + gecode/int/bin-packing.cpp + gecode/int/bin-packing/conflict-graph.cpp + gecode/int/bin-packing/propagate.cpp + gecode/int/bool.cpp + gecode/int/bool/eqv.cpp + gecode/int/branch.cpp + gecode/int/branch/action.cpp + gecode/int/branch/chb.cpp + gecode/int/branch/val-sel-commit.cpp + gecode/int/branch/view-sel.cpp + gecode/int/branch/view-values.cpp + gecode/int/channel.cpp + gecode/int/channel/link-multi.cpp + gecode/int/channel/link-single.cpp + gecode/int/circuit.cpp + gecode/int/count.cpp + gecode/int/cumulative.cpp + gecode/int/cumulatives.cpp + gecode/int/distinct.cpp + gecode/int/distinct/cbs.cpp + gecode/int/distinct/eqite.cpp + gecode/int/dom.cpp + gecode/int/element.cpp + gecode/int/element/pair.cpp + gecode/int/exception.cpp + gecode/int/exec.cpp + gecode/int/exec/when.cpp + gecode/int/extensional-regular.cpp + gecode/int/extensional-tuple-set.cpp + gecode/int/extensional/dfa.cpp + gecode/int/extensional/tuple-set.cpp + gecode/int/gcc.cpp + gecode/int/int-set.cpp + gecode/int/ldsb.cpp + gecode/int/ldsb/sym-imp.cpp + gecode/int/ldsb/sym-obj.cpp + gecode/int/linear-bool.cpp + gecode/int/linear-int.cpp + gecode/int/linear/bool-post.cpp + gecode/int/linear/int-post.cpp + gecode/int/member.cpp + gecode/int/no-overlap.cpp + gecode/int/nvalues.cpp + gecode/int/order.cpp + gecode/int/order/propagate.cpp + gecode/int/precede.cpp + gecode/int/rel.cpp + gecode/int/relax.cpp + gecode/int/sequence.cpp + gecode/int/sorted.cpp + gecode/int/trace.cpp + gecode/int/trace/tracer.cpp + gecode/int/unary.cpp + gecode/int/unshare.cpp + gecode/int/var-imp/bool.cpp + gecode/int/var-imp/int.cpp + gecode/int/var/bool.cpp + gecode/int/var/int.cpp +) + +set(GECODE_SET_SOURCES + gecode/set/array.cpp + gecode/set/bool.cpp + gecode/set/branch.cpp + gecode/set/branch/action.cpp + gecode/set/branch/chb.cpp + gecode/set/branch/ngl.cpp + gecode/set/branch/val-sel-commit.cpp + gecode/set/branch/view-sel.cpp + gecode/set/cardinality.cpp + gecode/set/channel.cpp + gecode/set/convex.cpp + gecode/set/convex/conv.cpp + gecode/set/convex/hull.cpp + gecode/set/distinct.cpp + gecode/set/distinct/atmostOne.cpp + gecode/set/dom.cpp + gecode/set/element.cpp + gecode/set/exception.cpp + gecode/set/exec.cpp + gecode/set/int.cpp + gecode/set/ldsb.cpp + gecode/set/ldsb/sym-imp.cpp + gecode/set/precede.cpp + gecode/set/rel-op-const-cvc.cpp + gecode/set/rel-op-const-cvv.cpp + gecode/set/rel-op-const-vcc.cpp + gecode/set/rel-op-const-vcv.cpp + gecode/set/rel-op-const-vvc.cpp + gecode/set/rel-op-singleton.cpp + gecode/set/rel-op-ternary.cpp + gecode/set/rel-op.cpp + gecode/set/rel-op/post-compl-cvc.cpp + gecode/set/rel-op/post-compl-cvv.cpp + gecode/set/rel-op/post-compl-vvc.cpp + gecode/set/rel-op/post-compl.cpp + gecode/set/rel-op/post-nocompl-cvc.cpp + gecode/set/rel-op/post-nocompl-cvv.cpp + gecode/set/rel-op/post-nocompl-vvc.cpp + gecode/set/rel-op/post-nocompl.cpp + gecode/set/rel.cpp + gecode/set/relax.cpp + gecode/set/sequence.cpp + gecode/set/sequence/seq-u.cpp + gecode/set/sequence/seq.cpp + gecode/set/trace.cpp + gecode/set/trace/tracer.cpp + gecode/set/var-imp/integerset.cpp + gecode/set/var-imp/set.cpp + gecode/set/var/set.cpp +) + +set(GECODE_FLOAT_SOURCES + gecode/float/arithmetic.cpp + gecode/float/array.cpp + gecode/float/bool.cpp + gecode/float/branch.cpp + gecode/float/branch/action.cpp + gecode/float/branch/chb.cpp + gecode/float/branch/val-sel-commit.cpp + gecode/float/branch/view-sel.cpp + gecode/float/channel.cpp + gecode/float/dom.cpp + gecode/float/exception.cpp + gecode/float/exec.cpp + gecode/float/linear.cpp + gecode/float/linear/post.cpp + gecode/float/rel.cpp + gecode/float/relax.cpp + gecode/float/rounding.cpp + gecode/float/trace.cpp + gecode/float/trace/tracer.cpp + gecode/float/transcendental.cpp + gecode/float/trigonometric.cpp + gecode/float/var-imp/float.cpp + gecode/float/var/float.cpp +) + +set(GECODE_MINIMODEL_SOURCES + gecode/minimodel/bool-expr.cpp + gecode/minimodel/dom.cpp + gecode/minimodel/exception.cpp + gecode/minimodel/float-arith.cpp + gecode/minimodel/float-expr.cpp + gecode/minimodel/float-rel.cpp + gecode/minimodel/int-arith.cpp + gecode/minimodel/int-expr.cpp + gecode/minimodel/int-rel.cpp + gecode/minimodel/ipl.cpp + gecode/minimodel/optimize.cpp + gecode/minimodel/reg.cpp + gecode/minimodel/set-expr.cpp + gecode/minimodel/set-rel.cpp +) + +set(GECODE_DRIVER_SOURCES + gecode/driver/options.cpp + gecode/driver/script.cpp +) + +set(GECODE_GIST_SOURCES + gecode/gist/drawingcursor.cpp + gecode/gist/gecodelogo.cpp + gecode/gist/gist.cpp + gecode/gist/mainwindow.cpp + gecode/gist/node.cpp + gecode/gist/nodestats.cpp + gecode/gist/nodewidget.cpp + gecode/gist/preferences.cpp + gecode/gist/qtgist.cpp + gecode/gist/spacenode.cpp + gecode/gist/stopbrancher.cpp + gecode/gist/textoutput.cpp + gecode/gist/treecanvas.cpp + gecode/gist/visualnode.cpp +) + +set(GECODE_FLATZINC_SOURCES + gecode/flatzinc/branch.cpp + gecode/flatzinc/flatzinc.cpp + gecode/flatzinc/lexer.yy.cpp + gecode/flatzinc/parser.tab.cpp + gecode/flatzinc/registry.cpp +) + +set(GECODE_TEST_SOURCES + test/afc.cpp + test/array.cpp + test/assign.cpp + test/assign/bool.cpp + test/assign/float.cpp + test/assign/int.cpp + test/assign/set.cpp + test/branch.cpp + test/branch/bool.cpp + test/branch/float.cpp + test/branch/int.cpp + test/branch/set.cpp + test/flatzinc.cpp + test/flatzinc/2dpacking.cpp + test/flatzinc/alpha.cpp + test/flatzinc/battleships1.cpp + test/flatzinc/battleships10.cpp + test/flatzinc/battleships2.cpp + test/flatzinc/battleships3.cpp + test/flatzinc/battleships4.cpp + test/flatzinc/battleships5.cpp + test/flatzinc/battleships7.cpp + test/flatzinc/battleships9.cpp + test/flatzinc/blocksworld_instance_1.cpp + test/flatzinc/blocksworld_instance_2.cpp + test/flatzinc/bool_clause.cpp + test/flatzinc/bug232.cpp + test/flatzinc/bug319.cpp + test/flatzinc/bugfix_r6746.cpp + test/flatzinc/bugfix_r7854.cpp + test/flatzinc/cumulatives.cpp + test/flatzinc/cumulatives_full_1.cpp + test/flatzinc/cumulatives_full_2.cpp + test/flatzinc/cumulatives_full_3.cpp + test/flatzinc/cumulatives_full_4.cpp + test/flatzinc/cumulatives_full_5.cpp + test/flatzinc/cumulatives_full_6.cpp + test/flatzinc/cumulatives_full_7.cpp + test/flatzinc/cumulatives_full_8.cpp + test/flatzinc/cutstock.cpp + test/flatzinc/empty_domain_1.cpp + test/flatzinc/empty_domain_2.cpp + test/flatzinc/eq20.cpp + test/flatzinc/factory_planning_instance.cpp + test/flatzinc/golomb.cpp + test/flatzinc/int_set_as_type1.cpp + test/flatzinc/int_set_as_type2.cpp + test/flatzinc/jobshop.cpp + test/flatzinc/jobshop2x2.cpp + test/flatzinc/knights.cpp + test/flatzinc/langford2.cpp + test/flatzinc/latin_squares_fd.cpp + test/flatzinc/magicsq_3.cpp + test/flatzinc/magicsq_4.cpp + test/flatzinc/magicsq_5.cpp + test/flatzinc/multidim_knapsack_simple.cpp + test/flatzinc/no_warn_empty_domain.cpp + test/flatzinc/on_restart_complete.cpp + test/flatzinc/on_restart_last_val_bool.cpp + test/flatzinc/on_restart_last_val_float.cpp + test/flatzinc/on_restart_last_val_int.cpp + test/flatzinc/on_restart_last_val_set.cpp + test/flatzinc/on_restart_sol_bool.cpp + test/flatzinc/on_restart_sol_float.cpp + test/flatzinc/on_restart_sol_int.cpp + test/flatzinc/on_restart_sol_set.cpp + test/flatzinc/oss.cpp + test/flatzinc/output_test.cpp + test/flatzinc/packing.cpp + test/flatzinc/perfsq.cpp + test/flatzinc/perfsq2.cpp + test/flatzinc/photo.cpp + test/flatzinc/product_fd.cpp + test/flatzinc/product_lp.cpp + test/flatzinc/quasigroup_qg5.cpp + test/flatzinc/queen_cp2.cpp + test/flatzinc/queen_ip.cpp + test/flatzinc/queens4.cpp + test/flatzinc/radiation.cpp + test/flatzinc/sat_arith1.cpp + test/flatzinc/sat_array_bool_and.cpp + test/flatzinc/sat_array_bool_or.cpp + test/flatzinc/sat_cmp_reif.cpp + test/flatzinc/sat_eq_reif.cpp + test/flatzinc/shared_array_element.cpp + test/flatzinc/simple_sat.cpp + test/flatzinc/singHoist2.cpp + test/flatzinc/steiner_triples.cpp + test/flatzinc/subtyping.cpp + test/flatzinc/sudoku.cpp + test/flatzinc/template_design.cpp + test/flatzinc/tenpenki_1.cpp + test/flatzinc/tenpenki_2.cpp + test/flatzinc/tenpenki_3.cpp + test/flatzinc/tenpenki_4.cpp + test/flatzinc/tenpenki_5.cpp + test/flatzinc/tenpenki_6.cpp + test/flatzinc/test_approx_bnb.cpp + test/flatzinc/test_array_just_right.cpp + test/flatzinc/test_assigned_var_bounds_bad.cpp + test/flatzinc/test_flatzinc_output_anns.cpp + test/flatzinc/test_fzn_arith.cpp + test/flatzinc/test_fzn_arrays.cpp + test/flatzinc/test_fzn_coercions.cpp + test/flatzinc/test_fzn_comparison.cpp + test/flatzinc/test_fzn_logic.cpp + test/flatzinc/test_fzn_sets.cpp + test/flatzinc/test_int_div.cpp + test/flatzinc/test_int_mod.cpp + test/flatzinc/test_int_ranges_as_values.cpp + test/flatzinc/test_seq_search.cpp + test/flatzinc/timetabling.cpp + test/flatzinc/trucking.cpp + test/flatzinc/warehouses.cpp + test/flatzinc/warehouses_small.cpp + test/flatzinc/wolf_goat_cabbage.cpp + test/flatzinc/zebra.cpp + test/float.cpp + test/float/arithmetic.cpp + test/float/basic.cpp + test/float/channel.cpp + test/float/dom.cpp + test/float/linear.cpp + test/float/mm-lin.cpp + test/float/rel.cpp + test/float/transcendental.cpp + test/float/trigonometric.cpp + test/groups.cpp + test/int.cpp + test/int/arithmetic.cpp + test/int/basic.cpp + test/int/bin-packing.cpp + test/int/bool.cpp + test/int/channel.cpp + test/int/circuit.cpp + test/int/count.cpp + test/int/cumulative.cpp + test/int/cumulatives.cpp + test/int/distinct.cpp + test/int/dom.cpp + test/int/element.cpp + test/int/exec.cpp + test/int/extensional.cpp + test/int/gcc.cpp + test/int/linear.cpp + test/int/member.cpp + test/int/mm-arithmetic.cpp + test/int/mm-bool.cpp + test/int/mm-count.cpp + test/int/mm-lin.cpp + test/int/mm-rel.cpp + test/int/no-overlap.cpp + test/int/nvalues.cpp + test/int/order.cpp + test/int/precede.cpp + test/int/rel.cpp + test/int/sequence.cpp + test/int/sorted.cpp + test/int/unary.cpp + test/int/unshare.cpp + test/ldsb.cpp + test/nogoods.cpp + test/region.cpp + test/search.cpp + test/set.cpp + test/set/channel.cpp + test/set/construct.cpp + test/set/convex.cpp + test/set/distinct.cpp + test/set/dom.cpp + test/set/element.cpp + test/set/exec.cpp + test/set/int.cpp + test/set/mm-set.cpp + test/set/precede.cpp + test/set/rel-op-const.cpp + test/set/rel-op.cpp + test/set/rel.cpp + test/set/sequence.cpp + test/test.cpp +) + +set(GECODE_FLATZINC_EXE_SOURCE tools/flatzinc/fzn-gecode.cpp) diff --git a/cmake/GenerateVarImp.cmake b/cmake/GenerateVarImp.cmake new file mode 100644 index 0000000000..9562d1a4df --- /dev/null +++ b/cmake/GenerateVarImp.cmake @@ -0,0 +1,16 @@ +if(NOT DEFINED UV_EXECUTABLE OR NOT DEFINED GENVARIMP OR NOT DEFINED MODE OR NOT DEFINED OUT_FILE) + message(FATAL_ERROR "GenerateVarImp.cmake requires UV_EXECUTABLE, GENVARIMP, MODE, and OUT_FILE") +endif() + +if(DEFINED VIS_FILES_SERIALIZED) + string(REPLACE "||" ";" VIS_FILES "${VIS_FILES_SERIALIZED}") +endif() + +execute_process( + COMMAND "${UV_EXECUTABLE}" run --script "${GENVARIMP}" "${MODE}" ${VIS_FILES} + OUTPUT_FILE "${OUT_FILE}" + RESULT_VARIABLE genvarimp_status) + +if(NOT genvarimp_status EQUAL 0) + message(FATAL_ERROR "genvarimp failed for ${OUT_FILE}") +endif() diff --git a/config.guess b/config.guess new file mode 100755 index 0000000000..cdfc439204 --- /dev/null +++ b/config.guess @@ -0,0 +1,1807 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright 1992-2023 Free Software Foundation, Inc. + +# shellcheck disable=SC2006,SC2268 # see below for rationale + +timestamp='2023-08-22' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 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 . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). +# +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. +# +# You can get the latest version of this script from: +# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess +# +# Please send patches to . + + +# The "shellcheck disable" line above the timestamp inhibits complaints +# about features and limitations of the classic Bourne shell that were +# superseded or lifted in POSIX. However, this script identifies a wide +# variety of pre-POSIX systems that do not have POSIX shells at all, and +# even some reasonably current systems (Solaris 10 as case-in-point) still +# have a pre-POSIX /bin/sh. + + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system '$me' is run on. + +Options: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright 1992-2023 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try '$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +# Just in case it came from the environment. +GUESS= + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still +# use 'HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +tmp= +# shellcheck disable=SC2172 +trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 + +set_cc_for_build() { + # prevent multiple calls if $tmp is already set + test "$tmp" && return 0 + : "${TMPDIR=/tmp}" + # shellcheck disable=SC2039,SC3028 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } + dummy=$tmp/dummy + case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in + ,,) echo "int x;" > "$dummy.c" + for driver in cc gcc c89 c99 ; do + if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then + CC_FOR_BUILD=$driver + break + fi + done + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; + esac +} + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if test -f /.attbin/uname ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +case $UNAME_SYSTEM in +Linux|GNU|GNU/*) + LIBC=unknown + + set_cc_for_build + cat <<-EOF > "$dummy.c" + #if defined(__ANDROID__) + LIBC=android + #else + #include + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #elif defined(__GLIBC__) + LIBC=gnu + #else + #include + /* First heuristic to detect musl libc. */ + #ifdef __DEFINED_va_list + LIBC=musl + #endif + #endif + #endif + EOF + cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` + eval "$cc_set_libc" + + # Second heuristic to detect musl libc. + if [ "$LIBC" = unknown ] && + command -v ldd >/dev/null && + ldd --version 2>&1 | grep -q ^musl; then + LIBC=musl + fi + + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + if [ "$LIBC" = unknown ]; then + LIBC=gnu + fi + ;; +esac + +# Note: order is significant - the case branches are not exclusive. + +case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ + /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ + /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ + echo unknown)` + case $UNAME_MACHINE_ARCH in + aarch64eb) machine=aarch64_be-unknown ;; + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + earmv*) + arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` + endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` + machine=${arch}${endian}-unknown + ;; + *) machine=$UNAME_MACHINE_ARCH-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently (or will in the future) and ABI. + case $UNAME_MACHINE_ARCH in + earm*) + os=netbsdelf + ;; + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # Determine ABI tags. + case $UNAME_MACHINE_ARCH in + earm*) + expr='s/^earmv[0-9]/-eabi/;s/eb$//' + abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case $UNAME_VERSION in + Debian*) + release='-gnu' + ;; + *) + release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + GUESS=$machine-${os}${release}${abi-} + ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE + ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE + ;; + *:SecBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` + GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE + ;; + *:LibertyBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` + GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE + ;; + *:MidnightBSD:*:*) + GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE + ;; + *:ekkoBSD:*:*) + GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE + ;; + *:SolidBSD:*:*) + GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE + ;; + *:OS108:*:*) + GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE + ;; + macppc:MirBSD:*:*) + GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE + ;; + *:MirBSD:*:*) + GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE + ;; + *:Sortix:*:*) + GUESS=$UNAME_MACHINE-unknown-sortix + ;; + *:Twizzler:*:*) + GUESS=$UNAME_MACHINE-unknown-twizzler + ;; + *:Redox:*:*) + GUESS=$UNAME_MACHINE-unknown-redox + ;; + mips:OSF1:*.*) + GUESS=mips-dec-osf1 + ;; + alpha:OSF1:*:*) + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + trap '' 0 + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case $ALPHA_CPU_TYPE in + "EV4 (21064)") + UNAME_MACHINE=alpha ;; + "EV4.5 (21064)") + UNAME_MACHINE=alpha ;; + "LCA4 (21066/21068)") + UNAME_MACHINE=alpha ;; + "EV5 (21164)") + UNAME_MACHINE=alphaev5 ;; + "EV5.6 (21164A)") + UNAME_MACHINE=alphaev56 ;; + "EV5.6 (21164PC)") + UNAME_MACHINE=alphapca56 ;; + "EV5.7 (21164PC)") + UNAME_MACHINE=alphapca57 ;; + "EV6 (21264)") + UNAME_MACHINE=alphaev6 ;; + "EV6.7 (21264A)") + UNAME_MACHINE=alphaev67 ;; + "EV6.8CB (21264C)") + UNAME_MACHINE=alphaev68 ;; + "EV6.8AL (21264B)") + UNAME_MACHINE=alphaev68 ;; + "EV6.8CX (21264D)") + UNAME_MACHINE=alphaev68 ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE=alphaev69 ;; + "EV7 (21364)") + UNAME_MACHINE=alphaev7 ;; + "EV7.9 (21364A)") + UNAME_MACHINE=alphaev79 ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + GUESS=$UNAME_MACHINE-dec-osf$OSF_REL + ;; + Amiga*:UNIX_System_V:4.0:*) + GUESS=m68k-unknown-sysv4 + ;; + *:[Aa]miga[Oo][Ss]:*:*) + GUESS=$UNAME_MACHINE-unknown-amigaos + ;; + *:[Mm]orph[Oo][Ss]:*:*) + GUESS=$UNAME_MACHINE-unknown-morphos + ;; + *:OS/390:*:*) + GUESS=i370-ibm-openedition + ;; + *:z/VM:*:*) + GUESS=s390-ibm-zvmoe + ;; + *:OS400:*:*) + GUESS=powerpc-ibm-os400 + ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + GUESS=arm-acorn-riscix$UNAME_RELEASE + ;; + arm*:riscos:*:*|arm*:RISCOS:*:*) + GUESS=arm-unknown-riscos + ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + GUESS=hppa1.1-hitachi-hiuxmpp + ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + case `(/bin/universe) 2>/dev/null` in + att) GUESS=pyramid-pyramid-sysv3 ;; + *) GUESS=pyramid-pyramid-bsd ;; + esac + ;; + NILE*:*:*:dcosx) + GUESS=pyramid-pyramid-svr4 + ;; + DRS?6000:unix:4.0:6*) + GUESS=sparc-icl-nx6 + ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) GUESS=sparc-icl-nx7 ;; + esac + ;; + s390x:SunOS:*:*) + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL + ;; + sun4H:SunOS:5.*:*) + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=sparc-hal-solaris2$SUN_REL + ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=sparc-sun-solaris2$SUN_REL + ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + GUESS=i386-pc-auroraux$UNAME_RELEASE + ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + set_cc_for_build + SUN_ARCH=i386 + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if test "$CC_FOR_BUILD" != no_compiler_found; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH=x86_64 + fi + fi + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=$SUN_ARCH-pc-solaris2$SUN_REL + ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=sparc-sun-solaris3$SUN_REL + ;; + sun4*:SunOS:*:*) + case `/usr/bin/arch -k` in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like '4.1.3-JL'. + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` + GUESS=sparc-sun-sunos$SUN_REL + ;; + sun3*:SunOS:*:*) + GUESS=m68k-sun-sunos$UNAME_RELEASE + ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 + case `/bin/arch` in + sun3) + GUESS=m68k-sun-sunos$UNAME_RELEASE + ;; + sun4) + GUESS=sparc-sun-sunos$UNAME_RELEASE + ;; + esac + ;; + aushp:SunOS:*:*) + GUESS=sparc-auspex-sunos$UNAME_RELEASE + ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + GUESS=m68k-atari-mint$UNAME_RELEASE + ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + GUESS=m68k-atari-mint$UNAME_RELEASE + ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + GUESS=m68k-atari-mint$UNAME_RELEASE + ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + GUESS=m68k-milan-mint$UNAME_RELEASE + ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + GUESS=m68k-hades-mint$UNAME_RELEASE + ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + GUESS=m68k-unknown-mint$UNAME_RELEASE + ;; + m68k:machten:*:*) + GUESS=m68k-apple-machten$UNAME_RELEASE + ;; + powerpc:machten:*:*) + GUESS=powerpc-apple-machten$UNAME_RELEASE + ;; + RISC*:Mach:*:*) + GUESS=mips-dec-mach_bsd4.3 + ;; + RISC*:ULTRIX:*:*) + GUESS=mips-dec-ultrix$UNAME_RELEASE + ;; + VAX*:ULTRIX*:*:*) + GUESS=vax-dec-ultrix$UNAME_RELEASE + ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + GUESS=clipper-intergraph-clix$UNAME_RELEASE + ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + set_cc_for_build + sed 's/^ //' << EOF > "$dummy.c" +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && + dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`"$dummy" "$dummyarg"` && + { echo "$SYSTEM_NAME"; exit; } + GUESS=mips-mips-riscos$UNAME_RELEASE + ;; + Motorola:PowerMAX_OS:*:*) + GUESS=powerpc-motorola-powermax + ;; + Motorola:*:4.3:PL8-*) + GUESS=powerpc-harris-powermax + ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + GUESS=powerpc-harris-powermax + ;; + Night_Hawk:Power_UNIX:*:*) + GUESS=powerpc-harris-powerunix + ;; + m88k:CX/UX:7*:*) + GUESS=m88k-harris-cxux7 + ;; + m88k:*:4*:R4*) + GUESS=m88k-motorola-sysv4 + ;; + m88k:*:3*:R3*) + GUESS=m88k-motorola-sysv3 + ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 + then + if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ + test "$TARGET_BINARY_INTERFACE"x = x + then + GUESS=m88k-dg-dgux$UNAME_RELEASE + else + GUESS=m88k-dg-dguxbcs$UNAME_RELEASE + fi + else + GUESS=i586-dg-dgux$UNAME_RELEASE + fi + ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + GUESS=m88k-dolphin-sysv3 + ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + GUESS=m88k-motorola-sysv3 + ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + GUESS=m88k-tektronix-sysv3 + ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + GUESS=m68k-tektronix-bsd + ;; + *:IRIX*:*:*) + IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` + GUESS=mips-sgi-irix$IRIX_REL + ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id + ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + GUESS=i386-ibm-aix + ;; + ia64:AIX:*:*) + if test -x /usr/bin/oslevel ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=$UNAME_VERSION.$UNAME_RELEASE + fi + GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV + ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + set_cc_for_build + sed 's/^ //' << EOF > "$dummy.c" + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` + then + GUESS=$SYSTEM_NAME + else + GUESS=rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + GUESS=rs6000-ibm-aix3.2.4 + else + GUESS=rs6000-ibm-aix3.2 + fi + ;; + *:AIX:*:[4567]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if test -x /usr/bin/lslpp ; then + IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ + awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` + else + IBM_REV=$UNAME_VERSION.$UNAME_RELEASE + fi + GUESS=$IBM_ARCH-ibm-aix$IBM_REV + ;; + *:AIX:*:*) + GUESS=rs6000-ibm-aix + ;; + ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) + GUESS=romp-ibm-bsd4.4 + ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to + ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + GUESS=rs6000-bull-bosx + ;; + DPX/2?00:B.O.S.:*:*) + GUESS=m68k-bull-sysv3 + ;; + 9000/[34]??:4.3bsd:1.*:*) + GUESS=m68k-hp-bsd + ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + GUESS=m68k-hp-bsd4.4 + ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` + case $UNAME_MACHINE in + 9000/31?) HP_ARCH=m68000 ;; + 9000/[34]??) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if test -x /usr/bin/getconf; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case $sc_cpu_version in + 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 + 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case $sc_kernel_bits in + 32) HP_ARCH=hppa2.0n ;; + 64) HP_ARCH=hppa2.0w ;; + '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 + esac ;; + esac + fi + if test "$HP_ARCH" = ""; then + set_cc_for_build + sed 's/^ //' << EOF > "$dummy.c" + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if test "$HP_ARCH" = hppa2.0w + then + set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH=hppa2.0w + else + HP_ARCH=hppa64 + fi + fi + GUESS=$HP_ARCH-hp-hpux$HPUX_REV + ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` + GUESS=ia64-hp-hpux$HPUX_REV + ;; + 3050*:HI-UX:*:*) + set_cc_for_build + sed 's/^ //' << EOF > "$dummy.c" + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && + { echo "$SYSTEM_NAME"; exit; } + GUESS=unknown-hitachi-hiuxwe2 + ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) + GUESS=hppa1.1-hp-bsd + ;; + 9000/8??:4.3bsd:*:*) + GUESS=hppa1.0-hp-bsd + ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + GUESS=hppa1.0-hp-mpeix + ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) + GUESS=hppa1.1-hp-osf + ;; + hp8??:OSF1:*:*) + GUESS=hppa1.0-hp-osf + ;; + i*86:OSF1:*:*) + if test -x /usr/sbin/sysversion ; then + GUESS=$UNAME_MACHINE-unknown-osf1mk + else + GUESS=$UNAME_MACHINE-unknown-osf1 + fi + ;; + parisc*:Lites*:*:*) + GUESS=hppa1.1-hp-lites + ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + GUESS=c1-convex-bsd + ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + GUESS=c34-convex-bsd + ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + GUESS=c38-convex-bsd + ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + GUESS=c4-convex-bsd + ;; + CRAY*Y-MP:*:*:*) + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=ymp-cray-unicos$CRAY_REL + ;; + CRAY*[A-Z]90:*:*:*) + echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=t90-cray-unicos$CRAY_REL + ;; + CRAY*T3E:*:*:*) + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=alphaev5-cray-unicosmk$CRAY_REL + ;; + CRAY*SV1:*:*:*) + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=sv1-cray-unicos$CRAY_REL + ;; + *:UNICOS/mp:*:*) + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=craynv-cray-unicosmp$CRAY_REL + ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` + GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} + ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` + GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} + ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE + ;; + sparc*:BSD/OS:*:*) + GUESS=sparc-unknown-bsdi$UNAME_RELEASE + ;; + *:BSD/OS:*:*) + GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE + ;; + arm:FreeBSD:*:*) + UNAME_PROCESSOR=`uname -p` + set_cc_for_build + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi + else + FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf + fi + ;; + *:FreeBSD:*:*) + UNAME_PROCESSOR=`uname -p` + case $UNAME_PROCESSOR in + amd64) + UNAME_PROCESSOR=x86_64 ;; + i386) + UNAME_PROCESSOR=i586 ;; + esac + FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL + ;; + i*:CYGWIN*:*) + GUESS=$UNAME_MACHINE-pc-cygwin + ;; + *:MINGW64*:*) + GUESS=$UNAME_MACHINE-pc-mingw64 + ;; + *:MINGW*:*) + GUESS=$UNAME_MACHINE-pc-mingw32 + ;; + *:MSYS*:*) + GUESS=$UNAME_MACHINE-pc-msys + ;; + i*:PW*:*) + GUESS=$UNAME_MACHINE-pc-pw32 + ;; + *:SerenityOS:*:*) + GUESS=$UNAME_MACHINE-pc-serenity + ;; + *:Interix*:*) + case $UNAME_MACHINE in + x86) + GUESS=i586-pc-interix$UNAME_RELEASE + ;; + authenticamd | genuineintel | EM64T) + GUESS=x86_64-unknown-interix$UNAME_RELEASE + ;; + IA64) + GUESS=ia64-unknown-interix$UNAME_RELEASE + ;; + esac ;; + i*:UWIN*:*) + GUESS=$UNAME_MACHINE-pc-uwin + ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + GUESS=x86_64-pc-cygwin + ;; + prep*:SunOS:5.*:*) + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=powerpcle-unknown-solaris2$SUN_REL + ;; + *:GNU:*:*) + # the GNU system + GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` + GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` + GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL + ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` + GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC + ;; + x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) + GUESS="$UNAME_MACHINE-pc-managarm-mlibc" + ;; + *:[Mm]anagarm:*:*) + GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" + ;; + *:Minix:*:*) + GUESS=$UNAME_MACHINE-unknown-minix + ;; + aarch64:Linux:*:*) + set_cc_for_build + CPU=$UNAME_MACHINE + LIBCABI=$LIBC + if test "$CC_FOR_BUILD" != no_compiler_found; then + ABI=64 + sed 's/^ //' << EOF > "$dummy.c" + #ifdef __ARM_EABI__ + #ifdef __ARM_PCS_VFP + ABI=eabihf + #else + ABI=eabi + #endif + #endif +EOF + cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` + eval "$cc_set_abi" + case $ABI in + eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;; + esac + fi + GUESS=$CPU-unknown-linux-$LIBCABI + ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC=gnulibc1 ; fi + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + arm*:Linux:*:*) + set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi + else + GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf + fi + fi + ;; + avr32*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + cris:Linux:*:*) + GUESS=$UNAME_MACHINE-axis-linux-$LIBC + ;; + crisv32:Linux:*:*) + GUESS=$UNAME_MACHINE-axis-linux-$LIBC + ;; + e2k:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + frv:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + hexagon:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + i*86:Linux:*:*) + GUESS=$UNAME_MACHINE-pc-linux-$LIBC + ;; + ia64:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + k1om:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + kvx:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + kvx:cos:*:*) + GUESS=$UNAME_MACHINE-unknown-cos + ;; + kvx:mbr:*:*) + GUESS=$UNAME_MACHINE-unknown-mbr + ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + m32r*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + m68*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + mips:Linux:*:* | mips64:Linux:*:*) + set_cc_for_build + IS_GLIBC=0 + test x"${LIBC}" = xgnu && IS_GLIBC=1 + sed 's/^ //' << EOF > "$dummy.c" + #undef CPU + #undef mips + #undef mipsel + #undef mips64 + #undef mips64el + #if ${IS_GLIBC} && defined(_ABI64) + LIBCABI=gnuabi64 + #else + #if ${IS_GLIBC} && defined(_ABIN32) + LIBCABI=gnuabin32 + #else + LIBCABI=${LIBC} + #endif + #endif + + #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 + CPU=mipsisa64r6 + #else + #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 + CPU=mipsisa32r6 + #else + #if defined(__mips64) + CPU=mips64 + #else + CPU=mips + #endif + #endif + #endif + + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + MIPS_ENDIAN=el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + MIPS_ENDIAN= + #else + MIPS_ENDIAN= + #endif + #endif +EOF + cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` + eval "$cc_set_vars" + test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } + ;; + mips64el:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + openrisc*:Linux:*:*) + GUESS=or1k-unknown-linux-$LIBC + ;; + or32:Linux:*:* | or1k*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + padre:Linux:*:*) + GUESS=sparc-unknown-linux-$LIBC + ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + GUESS=hppa64-unknown-linux-$LIBC + ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; + PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; + *) GUESS=hppa-unknown-linux-$LIBC ;; + esac + ;; + ppc64:Linux:*:*) + GUESS=powerpc64-unknown-linux-$LIBC + ;; + ppc:Linux:*:*) + GUESS=powerpc-unknown-linux-$LIBC + ;; + ppc64le:Linux:*:*) + GUESS=powerpc64le-unknown-linux-$LIBC + ;; + ppcle:Linux:*:*) + GUESS=powerpcle-unknown-linux-$LIBC + ;; + riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + s390:Linux:*:* | s390x:Linux:*:*) + GUESS=$UNAME_MACHINE-ibm-linux-$LIBC + ;; + sh64*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + sh*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + tile*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + vax:Linux:*:*) + GUESS=$UNAME_MACHINE-dec-linux-$LIBC + ;; + x86_64:Linux:*:*) + set_cc_for_build + CPU=$UNAME_MACHINE + LIBCABI=$LIBC + if test "$CC_FOR_BUILD" != no_compiler_found; then + ABI=64 + sed 's/^ //' << EOF > "$dummy.c" + #ifdef __i386__ + ABI=x86 + #else + #ifdef __ILP32__ + ABI=x32 + #endif + #endif +EOF + cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` + eval "$cc_set_abi" + case $ABI in + x86) CPU=i686 ;; + x32) LIBCABI=${LIBC}x32 ;; + esac + fi + GUESS=$CPU-pc-linux-$LIBCABI + ;; + xtensa*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + GUESS=i386-sequent-sysv4 + ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION + ;; + i*86:OS/2:*:*) + # If we were able to find 'uname', then EMX Unix compatibility + # is probably installed. + GUESS=$UNAME_MACHINE-pc-os2-emx + ;; + i*86:XTS-300:*:STOP) + GUESS=$UNAME_MACHINE-unknown-stop + ;; + i*86:atheos:*:*) + GUESS=$UNAME_MACHINE-unknown-atheos + ;; + i*86:syllable:*:*) + GUESS=$UNAME_MACHINE-pc-syllable + ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + GUESS=i386-unknown-lynxos$UNAME_RELEASE + ;; + i*86:*DOS:*:*) + GUESS=$UNAME_MACHINE-pc-msdosdjgpp + ;; + i*86:*:4.*:*) + UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL + else + GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL + fi + ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL + else + GUESS=$UNAME_MACHINE-pc-sysv32 + fi + ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configure will decide that + # this is a cross-build. + GUESS=i586-pc-msdosdjgpp + ;; + Intel:Mach:3*:*) + GUESS=i386-pc-mach3 + ;; + paragon:*:*:*) + GUESS=i860-intel-osf1 + ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 + fi + ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + GUESS=m68010-convergent-sysv + ;; + mc68k:UNIX:SYSTEM5:3.51m) + GUESS=m68k-convergent-sysv + ;; + M680?0:D-NIX:5.3:*) + GUESS=m68k-diab-dnix + ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + GUESS=m68k-unknown-lynxos$UNAME_RELEASE + ;; + mc68030:UNIX_System_V:4.*:*) + GUESS=m68k-atari-sysv4 + ;; + TSUNAMI:LynxOS:2.*:*) + GUESS=sparc-unknown-lynxos$UNAME_RELEASE + ;; + rs6000:LynxOS:2.*:*) + GUESS=rs6000-unknown-lynxos$UNAME_RELEASE + ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + GUESS=powerpc-unknown-lynxos$UNAME_RELEASE + ;; + SM[BE]S:UNIX_SV:*:*) + GUESS=mips-dde-sysv$UNAME_RELEASE + ;; + RM*:ReliantUNIX-*:*:*) + GUESS=mips-sni-sysv4 + ;; + RM*:SINIX-*:*:*) + GUESS=mips-sni-sysv4 + ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + GUESS=$UNAME_MACHINE-sni-sysv4 + else + GUESS=ns32k-sni-sysv + fi + ;; + PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort + # says + GUESS=i586-unisys-sysv4 + ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + GUESS=hppa1.1-stratus-sysv4 + ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + GUESS=i860-stratus-sysv4 + ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + GUESS=$UNAME_MACHINE-stratus-vos + ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + GUESS=hppa1.1-stratus-vos + ;; + mc68*:A/UX:*:*) + GUESS=m68k-apple-aux$UNAME_RELEASE + ;; + news*:NEWS-OS:6*:*) + GUESS=mips-sony-newsos6 + ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if test -d /usr/nec; then + GUESS=mips-nec-sysv$UNAME_RELEASE + else + GUESS=mips-unknown-sysv$UNAME_RELEASE + fi + ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + GUESS=powerpc-be-beos + ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + GUESS=powerpc-apple-beos + ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + GUESS=i586-pc-beos + ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + GUESS=i586-pc-haiku + ;; + ppc:Haiku:*:*) # Haiku running on Apple PowerPC + GUESS=powerpc-apple-haiku + ;; + *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) + GUESS=$UNAME_MACHINE-unknown-haiku + ;; + SX-4:SUPER-UX:*:*) + GUESS=sx4-nec-superux$UNAME_RELEASE + ;; + SX-5:SUPER-UX:*:*) + GUESS=sx5-nec-superux$UNAME_RELEASE + ;; + SX-6:SUPER-UX:*:*) + GUESS=sx6-nec-superux$UNAME_RELEASE + ;; + SX-7:SUPER-UX:*:*) + GUESS=sx7-nec-superux$UNAME_RELEASE + ;; + SX-8:SUPER-UX:*:*) + GUESS=sx8-nec-superux$UNAME_RELEASE + ;; + SX-8R:SUPER-UX:*:*) + GUESS=sx8r-nec-superux$UNAME_RELEASE + ;; + SX-ACE:SUPER-UX:*:*) + GUESS=sxace-nec-superux$UNAME_RELEASE + ;; + Power*:Rhapsody:*:*) + GUESS=powerpc-apple-rhapsody$UNAME_RELEASE + ;; + *:Rhapsody:*:*) + GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE + ;; + arm64:Darwin:*:*) + GUESS=aarch64-apple-darwin$UNAME_RELEASE + ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` + case $UNAME_PROCESSOR in + unknown) UNAME_PROCESSOR=powerpc ;; + esac + if command -v xcode-select > /dev/null 2> /dev/null && \ + ! xcode-select --print-path > /dev/null 2> /dev/null ; then + # Avoid executing cc if there is no toolchain installed as + # cc will be a stub that puts up a graphical alert + # prompting the user to install developer tools. + CC_FOR_BUILD=no_compiler_found + else + set_cc_for_build + fi + if test "$CC_FOR_BUILD" != no_compiler_found; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc + if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_PPC >/dev/null + then + UNAME_PROCESSOR=powerpc + fi + elif test "$UNAME_PROCESSOR" = i386 ; then + # uname -m returns i386 or x86_64 + UNAME_PROCESSOR=$UNAME_MACHINE + fi + GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE + ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = x86; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE + ;; + *:QNX:*:4*) + GUESS=i386-pc-qnx + ;; + NEO-*:NONSTOP_KERNEL:*:*) + GUESS=neo-tandem-nsk$UNAME_RELEASE + ;; + NSE-*:NONSTOP_KERNEL:*:*) + GUESS=nse-tandem-nsk$UNAME_RELEASE + ;; + NSR-*:NONSTOP_KERNEL:*:*) + GUESS=nsr-tandem-nsk$UNAME_RELEASE + ;; + NSV-*:NONSTOP_KERNEL:*:*) + GUESS=nsv-tandem-nsk$UNAME_RELEASE + ;; + NSX-*:NONSTOP_KERNEL:*:*) + GUESS=nsx-tandem-nsk$UNAME_RELEASE + ;; + *:NonStop-UX:*:*) + GUESS=mips-compaq-nonstopux + ;; + BS2000:POSIX*:*:*) + GUESS=bs2000-siemens-sysv + ;; + DS/*:UNIX_System_V:*:*) + GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE + ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "${cputype-}" = 386; then + UNAME_MACHINE=i386 + elif test "x${cputype-}" != x; then + UNAME_MACHINE=$cputype + fi + GUESS=$UNAME_MACHINE-unknown-plan9 + ;; + *:TOPS-10:*:*) + GUESS=pdp10-unknown-tops10 + ;; + *:TENEX:*:*) + GUESS=pdp10-unknown-tenex + ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + GUESS=pdp10-dec-tops20 + ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + GUESS=pdp10-xkl-tops20 + ;; + *:TOPS-20:*:*) + GUESS=pdp10-unknown-tops20 + ;; + *:ITS:*:*) + GUESS=pdp10-unknown-its + ;; + SEI:*:*:SEIUX) + GUESS=mips-sei-seiux$UNAME_RELEASE + ;; + *:DragonFly:*:*) + DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL + ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case $UNAME_MACHINE in + A*) GUESS=alpha-dec-vms ;; + I*) GUESS=ia64-dec-vms ;; + V*) GUESS=vax-dec-vms ;; + esac ;; + *:XENIX:*:SysV) + GUESS=i386-pc-xenix + ;; + i*86:skyos:*:*) + SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` + GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL + ;; + i*86:rdos:*:*) + GUESS=$UNAME_MACHINE-pc-rdos + ;; + i*86:Fiwix:*:*) + GUESS=$UNAME_MACHINE-pc-fiwix + ;; + *:AROS:*:*) + GUESS=$UNAME_MACHINE-unknown-aros + ;; + x86_64:VMkernel:*:*) + GUESS=$UNAME_MACHINE-unknown-esx + ;; + amd64:Isilon\ OneFS:*:*) + GUESS=x86_64-unknown-onefs + ;; + *:Unleashed:*:*) + GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE + ;; +esac + +# Do we have a guess based on uname results? +if test "x$GUESS" != x; then + echo "$GUESS" + exit +fi + +# No uname command or uname output not recognized. +set_cc_for_build +cat > "$dummy.c" < +#include +#endif +#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) +#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) +#include +#if defined(_SIZE_T_) || defined(SIGLOST) +#include +#endif +#endif +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); +#endif + +#if defined (vax) +#if !defined (ultrix) +#include +#if defined (BSD) +#if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +#else +#if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +#else + printf ("vax-dec-bsd\n"); exit (0); +#endif +#endif +#else + printf ("vax-dec-bsd\n"); exit (0); +#endif +#else +#if defined(_SIZE_T_) || defined(SIGLOST) + struct utsname un; + uname (&un); + printf ("vax-dec-ultrix%s\n", un.release); exit (0); +#else + printf ("vax-dec-ultrix\n"); exit (0); +#endif +#endif +#endif +#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) +#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) +#if defined(_SIZE_T_) || defined(SIGLOST) + struct utsname *un; + uname (&un); + printf ("mips-dec-ultrix%s\n", un.release); exit (0); +#else + printf ("mips-dec-ultrix\n"); exit (0); +#endif +#endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. +test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } + +echo "$0: unable to guess system type" >&2 + +case $UNAME_MACHINE:$UNAME_SYSTEM in + mips:Linux | mips64:Linux) + # If we got here on MIPS GNU/Linux, output extra information. + cat >&2 <&2 <&2 </dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = "$UNAME_MACHINE" +UNAME_RELEASE = "$UNAME_RELEASE" +UNAME_SYSTEM = "$UNAME_SYSTEM" +UNAME_VERSION = "$UNAME_VERSION" +EOF +fi + +exit 1 + +# Local variables: +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/config.sub b/config.sub new file mode 100755 index 0000000000..defe52c0c8 --- /dev/null +++ b/config.sub @@ -0,0 +1,1960 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright 1992-2023 Free Software Foundation, Inc. + +# shellcheck disable=SC2006,SC2268 # see below for rationale + +timestamp='2023-09-19' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 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 . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). + + +# Please send patches to . +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# You can get the latest version of this script from: +# https://git.savannah.gnu.org/cgit/config.git/plain/config.sub + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +# The "shellcheck disable" line above the timestamp inhibits complaints +# about features and limitations of the classic Bourne shell that were +# superseded or lifted in POSIX. However, this script identifies a wide +# variety of pre-POSIX systems that do not have POSIX shells at all, and +# even some reasonably current systems (Solaris 10 as case-in-point) still +# have a pre-POSIX /bin/sh. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS + +Canonicalize a configuration name. + +Options: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright 1992-2023 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try '$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo "$1" + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Split fields of configuration type +# shellcheck disable=SC2162 +saved_IFS=$IFS +IFS="-" read field1 field2 field3 field4 <&2 + exit 1 + ;; + *-*-*-*) + basic_machine=$field1-$field2 + basic_os=$field3-$field4 + ;; + *-*-*) + # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two + # parts + maybe_os=$field2-$field3 + case $maybe_os in + nto-qnx* | linux-* | uclinux-uclibc* \ + | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ + | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ + | storm-chaos* | os2-emx* | rtmk-nova* | managarm-* \ + | windows-* ) + basic_machine=$field1 + basic_os=$maybe_os + ;; + android-linux) + basic_machine=$field1-unknown + basic_os=linux-android + ;; + *) + basic_machine=$field1-$field2 + basic_os=$field3 + ;; + esac + ;; + *-*) + # A lone config we happen to match not fitting any pattern + case $field1-$field2 in + decstation-3100) + basic_machine=mips-dec + basic_os= + ;; + *-*) + # Second component is usually, but not always the OS + case $field2 in + # Prevent following clause from handling this valid os + sun*os*) + basic_machine=$field1 + basic_os=$field2 + ;; + zephyr*) + basic_machine=$field1-unknown + basic_os=$field2 + ;; + # Manufacturers + dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ + | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ + | unicom* | ibm* | next | hp | isi* | apollo | altos* \ + | convergent* | ncr* | news | 32* | 3600* | 3100* \ + | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ + | ultra | tti* | harris | dolphin | highlevel | gould \ + | cbm | ns | masscomp | apple | axis | knuth | cray \ + | microblaze* | sim | cisco \ + | oki | wec | wrs | winbond) + basic_machine=$field1-$field2 + basic_os= + ;; + *) + basic_machine=$field1 + basic_os=$field2 + ;; + esac + ;; + esac + ;; + *) + # Convert single-component short-hands not valid as part of + # multi-component configurations. + case $field1 in + 386bsd) + basic_machine=i386-pc + basic_os=bsd + ;; + a29khif) + basic_machine=a29k-amd + basic_os=udi + ;; + adobe68k) + basic_machine=m68010-adobe + basic_os=scout + ;; + alliant) + basic_machine=fx80-alliant + basic_os= + ;; + altos | altos3068) + basic_machine=m68k-altos + basic_os= + ;; + am29k) + basic_machine=a29k-none + basic_os=bsd + ;; + amdahl) + basic_machine=580-amdahl + basic_os=sysv + ;; + amiga) + basic_machine=m68k-unknown + basic_os= + ;; + amigaos | amigados) + basic_machine=m68k-unknown + basic_os=amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + basic_os=sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + basic_os=sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + basic_os=bsd + ;; + aros) + basic_machine=i386-pc + basic_os=aros + ;; + aux) + basic_machine=m68k-apple + basic_os=aux + ;; + balance) + basic_machine=ns32k-sequent + basic_os=dynix + ;; + blackfin) + basic_machine=bfin-unknown + basic_os=linux + ;; + cegcc) + basic_machine=arm-unknown + basic_os=cegcc + ;; + convex-c1) + basic_machine=c1-convex + basic_os=bsd + ;; + convex-c2) + basic_machine=c2-convex + basic_os=bsd + ;; + convex-c32) + basic_machine=c32-convex + basic_os=bsd + ;; + convex-c34) + basic_machine=c34-convex + basic_os=bsd + ;; + convex-c38) + basic_machine=c38-convex + basic_os=bsd + ;; + cray) + basic_machine=j90-cray + basic_os=unicos + ;; + crds | unos) + basic_machine=m68k-crds + basic_os= + ;; + da30) + basic_machine=m68k-da30 + basic_os= + ;; + decstation | pmax | pmin | dec3100 | decstatn) + basic_machine=mips-dec + basic_os= + ;; + delta88) + basic_machine=m88k-motorola + basic_os=sysv3 + ;; + dicos) + basic_machine=i686-pc + basic_os=dicos + ;; + djgpp) + basic_machine=i586-pc + basic_os=msdosdjgpp + ;; + ebmon29k) + basic_machine=a29k-amd + basic_os=ebmon + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + basic_os=ose + ;; + gmicro) + basic_machine=tron-gmicro + basic_os=sysv + ;; + go32) + basic_machine=i386-pc + basic_os=go32 + ;; + h8300hms) + basic_machine=h8300-hitachi + basic_os=hms + ;; + h8300xray) + basic_machine=h8300-hitachi + basic_os=xray + ;; + h8500hms) + basic_machine=h8500-hitachi + basic_os=hms + ;; + harris) + basic_machine=m88k-harris + basic_os=sysv3 + ;; + hp300 | hp300hpux) + basic_machine=m68k-hp + basic_os=hpux + ;; + hp300bsd) + basic_machine=m68k-hp + basic_os=bsd + ;; + hppaosf) + basic_machine=hppa1.1-hp + basic_os=osf + ;; + hppro) + basic_machine=hppa1.1-hp + basic_os=proelf + ;; + i386mach) + basic_machine=i386-mach + basic_os=mach + ;; + isi68 | isi) + basic_machine=m68k-isi + basic_os=sysv + ;; + m68knommu) + basic_machine=m68k-unknown + basic_os=linux + ;; + magnum | m3230) + basic_machine=mips-mips + basic_os=sysv + ;; + merlin) + basic_machine=ns32k-utek + basic_os=sysv + ;; + mingw64) + basic_machine=x86_64-pc + basic_os=mingw64 + ;; + mingw32) + basic_machine=i686-pc + basic_os=mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + basic_os=mingw32ce + ;; + monitor) + basic_machine=m68k-rom68k + basic_os=coff + ;; + morphos) + basic_machine=powerpc-unknown + basic_os=morphos + ;; + moxiebox) + basic_machine=moxie-unknown + basic_os=moxiebox + ;; + msdos) + basic_machine=i386-pc + basic_os=msdos + ;; + msys) + basic_machine=i686-pc + basic_os=msys + ;; + mvs) + basic_machine=i370-ibm + basic_os=mvs + ;; + nacl) + basic_machine=le32-unknown + basic_os=nacl + ;; + ncr3000) + basic_machine=i486-ncr + basic_os=sysv4 + ;; + netbsd386) + basic_machine=i386-pc + basic_os=netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + basic_os=linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + basic_os=newsos + ;; + news1000) + basic_machine=m68030-sony + basic_os=newsos + ;; + necv70) + basic_machine=v70-nec + basic_os=sysv + ;; + nh3000) + basic_machine=m68k-harris + basic_os=cxux + ;; + nh[45]000) + basic_machine=m88k-harris + basic_os=cxux + ;; + nindy960) + basic_machine=i960-intel + basic_os=nindy + ;; + mon960) + basic_machine=i960-intel + basic_os=mon960 + ;; + nonstopux) + basic_machine=mips-compaq + basic_os=nonstopux + ;; + os400) + basic_machine=powerpc-ibm + basic_os=os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + basic_os=ose + ;; + os68k) + basic_machine=m68k-none + basic_os=os68k + ;; + paragon) + basic_machine=i860-intel + basic_os=osf + ;; + parisc) + basic_machine=hppa-unknown + basic_os=linux + ;; + psp) + basic_machine=mipsallegrexel-sony + basic_os=psp + ;; + pw32) + basic_machine=i586-unknown + basic_os=pw32 + ;; + rdos | rdos64) + basic_machine=x86_64-pc + basic_os=rdos + ;; + rdos32) + basic_machine=i386-pc + basic_os=rdos + ;; + rom68k) + basic_machine=m68k-rom68k + basic_os=coff + ;; + sa29200) + basic_machine=a29k-amd + basic_os=udi + ;; + sei) + basic_machine=mips-sei + basic_os=seiux + ;; + sequent) + basic_machine=i386-sequent + basic_os= + ;; + sps7) + basic_machine=m68k-bull + basic_os=sysv2 + ;; + st2000) + basic_machine=m68k-tandem + basic_os= + ;; + stratus) + basic_machine=i860-stratus + basic_os=sysv4 + ;; + sun2) + basic_machine=m68000-sun + basic_os= + ;; + sun2os3) + basic_machine=m68000-sun + basic_os=sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + basic_os=sunos4 + ;; + sun3) + basic_machine=m68k-sun + basic_os= + ;; + sun3os3) + basic_machine=m68k-sun + basic_os=sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + basic_os=sunos4 + ;; + sun4) + basic_machine=sparc-sun + basic_os= + ;; + sun4os3) + basic_machine=sparc-sun + basic_os=sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + basic_os=sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + basic_os=solaris2 + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + basic_os= + ;; + sv1) + basic_machine=sv1-cray + basic_os=unicos + ;; + symmetry) + basic_machine=i386-sequent + basic_os=dynix + ;; + t3e) + basic_machine=alphaev5-cray + basic_os=unicos + ;; + t90) + basic_machine=t90-cray + basic_os=unicos + ;; + toad1) + basic_machine=pdp10-xkl + basic_os=tops20 + ;; + tpf) + basic_machine=s390x-ibm + basic_os=tpf + ;; + udi29k) + basic_machine=a29k-amd + basic_os=udi + ;; + ultra3) + basic_machine=a29k-nyu + basic_os=sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + basic_os=none + ;; + vaxv) + basic_machine=vax-dec + basic_os=sysv + ;; + vms) + basic_machine=vax-dec + basic_os=vms + ;; + vsta) + basic_machine=i386-pc + basic_os=vsta + ;; + vxworks960) + basic_machine=i960-wrs + basic_os=vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + basic_os=vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + basic_os=vxworks + ;; + xbox) + basic_machine=i686-pc + basic_os=mingw32 + ;; + ymp) + basic_machine=ymp-cray + basic_os=unicos + ;; + *) + basic_machine=$1 + basic_os= + ;; + esac + ;; +esac + +# Decode 1-component or ad-hoc basic machines +case $basic_machine in + # Here we handle the default manufacturer of certain CPU types. It is in + # some cases the only manufacturer, in others, it is the most popular. + w89k) + cpu=hppa1.1 + vendor=winbond + ;; + op50n) + cpu=hppa1.1 + vendor=oki + ;; + op60c) + cpu=hppa1.1 + vendor=oki + ;; + ibm*) + cpu=i370 + vendor=ibm + ;; + orion105) + cpu=clipper + vendor=highlevel + ;; + mac | mpw | mac-mpw) + cpu=m68k + vendor=apple + ;; + pmac | pmac-mpw) + cpu=powerpc + vendor=apple + ;; + + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + cpu=m68000 + vendor=att + ;; + 3b*) + cpu=we32k + vendor=att + ;; + bluegene*) + cpu=powerpc + vendor=ibm + basic_os=cnk + ;; + decsystem10* | dec10*) + cpu=pdp10 + vendor=dec + basic_os=tops10 + ;; + decsystem20* | dec20*) + cpu=pdp10 + vendor=dec + basic_os=tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + cpu=m68k + vendor=motorola + ;; + dpx2*) + cpu=m68k + vendor=bull + basic_os=sysv3 + ;; + encore | umax | mmax) + cpu=ns32k + vendor=encore + ;; + elxsi) + cpu=elxsi + vendor=elxsi + basic_os=${basic_os:-bsd} + ;; + fx2800) + cpu=i860 + vendor=alliant + ;; + genix) + cpu=ns32k + vendor=ns + ;; + h3050r* | hiux*) + cpu=hppa1.1 + vendor=hitachi + basic_os=hiuxwe2 + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + cpu=hppa1.0 + vendor=hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + cpu=m68000 + vendor=hp + ;; + hp9k3[2-9][0-9]) + cpu=m68k + vendor=hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + cpu=hppa1.0 + vendor=hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + cpu=hppa1.1 + vendor=hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + cpu=hppa1.1 + vendor=hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + cpu=hppa1.1 + vendor=hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + cpu=hppa1.1 + vendor=hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + cpu=hppa1.0 + vendor=hp + ;; + i*86v32) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=sysv32 + ;; + i*86v4*) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=sysv4 + ;; + i*86v) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=sysv + ;; + i*86sol2) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=solaris2 + ;; + j90 | j90-cray) + cpu=j90 + vendor=cray + basic_os=${basic_os:-unicos} + ;; + iris | iris4d) + cpu=mips + vendor=sgi + case $basic_os in + irix*) + ;; + *) + basic_os=irix4 + ;; + esac + ;; + miniframe) + cpu=m68000 + vendor=convergent + ;; + *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) + cpu=m68k + vendor=atari + basic_os=mint + ;; + news-3600 | risc-news) + cpu=mips + vendor=sony + basic_os=newsos + ;; + next | m*-next) + cpu=m68k + vendor=next + case $basic_os in + openstep*) + ;; + nextstep*) + ;; + ns2*) + basic_os=nextstep2 + ;; + *) + basic_os=nextstep3 + ;; + esac + ;; + np1) + cpu=np1 + vendor=gould + ;; + op50n-* | op60c-*) + cpu=hppa1.1 + vendor=oki + basic_os=proelf + ;; + pa-hitachi) + cpu=hppa1.1 + vendor=hitachi + basic_os=hiuxwe2 + ;; + pbd) + cpu=sparc + vendor=tti + ;; + pbb) + cpu=m68k + vendor=tti + ;; + pc532) + cpu=ns32k + vendor=pc532 + ;; + pn) + cpu=pn + vendor=gould + ;; + power) + cpu=power + vendor=ibm + ;; + ps2) + cpu=i386 + vendor=ibm + ;; + rm[46]00) + cpu=mips + vendor=siemens + ;; + rtpc | rtpc-*) + cpu=romp + vendor=ibm + ;; + sde) + cpu=mipsisa32 + vendor=sde + basic_os=${basic_os:-elf} + ;; + simso-wrs) + cpu=sparclite + vendor=wrs + basic_os=vxworks + ;; + tower | tower-32) + cpu=m68k + vendor=ncr + ;; + vpp*|vx|vx-*) + cpu=f301 + vendor=fujitsu + ;; + w65) + cpu=w65 + vendor=wdc + ;; + w89k-*) + cpu=hppa1.1 + vendor=winbond + basic_os=proelf + ;; + none) + cpu=none + vendor=none + ;; + leon|leon[3-9]) + cpu=sparc + vendor=$basic_machine + ;; + leon-*|leon[3-9]-*) + cpu=sparc + vendor=`echo "$basic_machine" | sed 's/-.*//'` + ;; + + *-*) + # shellcheck disable=SC2162 + saved_IFS=$IFS + IFS="-" read cpu vendor <&2 + exit 1 + ;; + esac + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $vendor in + digital*) + vendor=dec + ;; + commodore*) + vendor=cbm + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if test x"$basic_os" != x +then + +# First recognize some ad-hoc cases, or perhaps split kernel-os, or else just +# set os. +obj= +case $basic_os in + gnu/linux*) + kernel=linux + os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` + ;; + os2-emx) + kernel=os2 + os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` + ;; + nto-qnx*) + kernel=nto + os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` + ;; + *-*) + # shellcheck disable=SC2162 + saved_IFS=$IFS + IFS="-" read kernel os <&2 + fi + ;; + *) + echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2 + exit 1 + ;; +esac + +case $obj in + aout* | coff* | elf* | pe*) + ;; + '') + # empty is fine + ;; + *) + echo "Invalid configuration '$1': Machine code format '$obj' not recognized" 1>&2 + exit 1 + ;; +esac + +# Here we handle the constraint that a (synthetic) cpu and os are +# valid only in combination with each other and nowhere else. +case $cpu-$os in + # The "javascript-unknown-ghcjs" triple is used by GHC; we + # accept it here in order to tolerate that, but reject any + # variations. + javascript-ghcjs) + ;; + javascript-* | *-ghcjs) + echo "Invalid configuration '$1': cpu '$cpu' is not valid with os '$os$obj'" 1>&2 + exit 1 + ;; +esac + +# As a final step for OS-related things, validate the OS-kernel combination +# (given a valid OS), if there is a kernel. +case $kernel-$os-$obj in + linux-gnu*- | linux-dietlibc*- | linux-android*- | linux-newlib*- \ + | linux-musl*- | linux-relibc*- | linux-uclibc*- | linux-mlibc*- ) + ;; + uclinux-uclibc*- ) + ;; + managarm-mlibc*- | managarm-kernel*- ) + ;; + windows*-msvc*-) + ;; + -dietlibc*- | -newlib*- | -musl*- | -relibc*- | -uclibc*- | -mlibc*- ) + # These are just libc implementations, not actual OSes, and thus + # require a kernel. + echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 + exit 1 + ;; + -kernel*- ) + echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2 + exit 1 + ;; + *-kernel*- ) + echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2 + exit 1 + ;; + *-msvc*- ) + echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2 + exit 1 + ;; + kfreebsd*-gnu*- | kopensolaris*-gnu*-) + ;; + vxworks-simlinux- | vxworks-simwindows- | vxworks-spe-) + ;; + nto-qnx*-) + ;; + os2-emx-) + ;; + *-eabi*- | *-gnueabi*-) + ;; + none--*) + # None (no kernel, i.e. freestanding / bare metal), + # can be paired with an machine code file format + ;; + -*-) + # Blank kernel with real OS is always fine. + ;; + --*) + # Blank kernel and OS with real machine code file format is always fine. + ;; + *-*-*) + echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2 + exit 1 + ;; +esac + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +case $vendor in + unknown) + case $cpu-$os in + *-riscix*) + vendor=acorn + ;; + *-sunos*) + vendor=sun + ;; + *-cnk* | *-aix*) + vendor=ibm + ;; + *-beos*) + vendor=be + ;; + *-hpux*) + vendor=hp + ;; + *-mpeix*) + vendor=hp + ;; + *-hiux*) + vendor=hitachi + ;; + *-unos*) + vendor=crds + ;; + *-dgux*) + vendor=dg + ;; + *-luna*) + vendor=omron + ;; + *-genix*) + vendor=ns + ;; + *-clix*) + vendor=intergraph + ;; + *-mvs* | *-opened*) + vendor=ibm + ;; + *-os400*) + vendor=ibm + ;; + s390-* | s390x-*) + vendor=ibm + ;; + *-ptx*) + vendor=sequent + ;; + *-tpf*) + vendor=ibm + ;; + *-vxsim* | *-vxworks* | *-windiss*) + vendor=wrs + ;; + *-aux*) + vendor=apple + ;; + *-hms*) + vendor=hitachi + ;; + *-mpw* | *-macos*) + vendor=apple + ;; + *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) + vendor=atari + ;; + *-vos*) + vendor=stratus + ;; + esac + ;; +esac + +echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" +exit + +# Local variables: +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/configure b/configure index 960c2d0770..15155ebe6b 100755 --- a/configure +++ b/configure @@ -1,12 +1,13 @@ #! /bin/sh # From configure.ac Id. # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for GECODE 6.3.0. +# Generated by GNU Autoconf 2.72 for GECODE 6.3.0. # # 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 @@ -17,63 +18,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 || @@ -82,13 +85,6 @@ if test "${PATH_SEPARATOR+set}" != set; then 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 #(( @@ -97,43 +93,27 @@ case $0 in #(( 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. @@ -154,26 +134,28 @@ case $- in # (((( 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 " @@ -188,42 +170,55 @@ as_fn_success || { exitcode=1; echo as_fn_success failed.; } 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 @@ -231,14 +226,22 @@ fi 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 @@ -255,26 +258,28 @@ case $- in # (((( 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 users@gecode.org + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and users@gecode.org $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -295,6 +300,7 @@ as_fn_unset () } as_unset=as_fn_unset + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -326,7 +332,7 @@ as_fn_mkdir_p () 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" @@ -335,7 +341,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 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 @@ -374,16 +380,18 @@ as_fn_executable_p () # 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... @@ -391,16 +399,18 @@ fi # as_fn_append # 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 @@ -414,9 +424,9 @@ as_fn_error () 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 @@ -443,7 +453,7 @@ as_me=`$as_basename -- "$0" || $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 @@ -476,6 +486,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -487,7 +499,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits 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 @@ -501,6 +513,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits 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*) @@ -514,6 +530,12 @@ case `echo -n x` in #((((( 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 @@ -525,9 +547,9 @@ if (echo >conf$$.file) 2>/dev/null; then 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 @@ -552,10 +574,12 @@ as_test_x='test -x' 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 test -n "$DJDIR" || exec 7<&0 /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" @@ -982,9 +1005,9 @@ do 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" @@ -1137,6 +1160,15 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1186,9 +1218,9 @@ do 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" @@ -1202,9 +1234,9 @@ do 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" @@ -1232,8 +1264,8 @@ do | --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" ;; *=*) @@ -1241,16 +1273,16 @@ Try \`$0 --help' for more information" # 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}" ;; @@ -1266,7 +1298,7 @@ if test -n "$ac_unrecognized_opts"; then 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 @@ -1274,7 +1306,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1291,7 +1323,7 @@ do 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 @@ -1330,7 +1362,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 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 @@ -1359,7 +1391,7 @@ if test ! -r "$srcdir/$ac_unique_file"; then 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)` @@ -1387,7 +1419,7 @@ if test "$ac_init_help" = "long"; then # 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 GECODE 6.3.0 to adapt to many kinds of systems. +'configure' configures GECODE 6.3.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1401,11 +1433,11 @@ Configuration: --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 @@ -1413,10 +1445,10 @@ Installation directories: --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. @@ -1427,6 +1459,7 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1443,6 +1476,10 @@ Fine tuning of the installation directories: _ACEOF cat <<\_ACEOF + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi @@ -1477,16 +1514,13 @@ Optional Features: --enable-doc-dot enable graphs in documentation [default=yes] --enable-doc-search enable documentation search engine [default=no] --enable-doc-tagfile generate doxygen tagfile [default=yes] - --enable-doc-chm build compressed html documentation [default=yes on - Windows] - --enable-doc-docset build docset documentation for XCode [default=no] --enable-float-vars build float variable library (implies --enable-int-vars) [default=yes] --enable-set-vars build finite set library (implies --enable-int-vars) [default=yes] --enable-int-vars build finite domain library [default=yes] --enable-mpfr build with MPFR support [default=yes] - --enable-qt build with Qt support, requires at least Qt 4.3 + --enable-qt build with Qt support, requires Qt 5 or newer [default=yes] --enable-gist build Gecode Interactive Search Tool [default=yes] --enable-cbs build with support for counting-based search @@ -1536,7 +1570,7 @@ Some influential environment variables: CFLAGS C compiler flags CXXCPP C++ preprocessor -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 . @@ -1555,9 +1589,9 @@ if test "$ac_init_help" = "recursive"; then 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/ ;; @@ -1585,7 +1619,8 @@ esac 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 @@ -1593,7 +1628,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 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 @@ -1603,9 +1638,9 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF GECODE configure 6.3.0 -generated by GNU Autoconf 2.69 +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 @@ -1622,14 +1657,14 @@ fi 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 @@ -1637,17 +1672,19 @@ $as_echo "$ac_try_echo"; } >&5 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 @@ -1660,14 +1697,14 @@ fi 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 @@ -1675,17 +1712,19 @@ $as_echo "$ac_try_echo"; } >&5 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 @@ -1704,7 +1743,7 @@ case "(($ac_try" in *) 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 @@ -1712,17 +1751,19 @@ $as_echo "$ac_try_echo"; } >&5 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 @@ -1735,14 +1776,14 @@ fi ac_fn_cxx_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 @@ -1750,20 +1791,22 @@ $as_echo "$ac_try_echo"; } >&5 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_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 @@ -1781,28 +1824,22 @@ fi ac_fn_cxx_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. @@ -1811,7 +1848,7 @@ else #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. */ @@ -1820,160 +1857,30 @@ choke me #endif int -main () +main (void) { return $2 (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_cxx_check_func - -# ac_fn_cxx_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_cxx_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_cxx_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_cxx_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_cxx_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 users@gecode.org ## -## ------------------------------- ##" - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; +else case e in #( + e) eval "$3=no" ;; 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_cxx_check_header_mongrel - -# ac_fn_cxx_try_run LINENO -# ------------------------ -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_cxx_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\"" -$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;; +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext ;; 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 ac_res=\$$3 + { 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 - as_fn_set_status $ac_retval -} # ac_fn_cxx_try_run +} # ac_fn_cxx_check_func # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES # --------------------------------------------------------- @@ -1982,49 +1889,56 @@ fi ac_fn_cxx_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_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_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_cxx_check_header_compile -# ac_fn_cxx_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_cxx_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 @@ -2038,24 +1952,29 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_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_cxx_check_decl +} # ac_fn_check_decl # ac_fn_c_try_run LINENO # ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. +# 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 @@ -2065,28 +1984,30 @@ case "(($ac_try" in *) 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; } && { 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 +printf "%s\n" "$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 : + printf "%s\n" "$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 +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 + ac_retval=$ac_status ;; +esac fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno @@ -2108,7 +2029,7 @@ 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; @@ -2118,14 +2039,15 @@ return test_array [0]; 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; @@ -2135,24 +2057,26 @@ return test_array [0]; 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; @@ -2162,14 +2086,15 @@ return test_array [0]; 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; @@ -2179,24 +2104,28 @@ return test_array [0]; 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 @@ -2204,7 +2133,7 @@ while test "x$ac_lo" != "x$ac_hi"; do /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -2214,12 +2143,14 @@ return test_array [0]; 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 ;; @@ -2229,12 +2160,12 @@ esac 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"); @@ -2262,10 +2193,12 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : echo >>conftest.val; read $3 &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_cxx_try_run +ac_configure_args_raw= +for ac_arg +do + case $ac_arg in + *\'*) + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_configure_args_raw " '$ac_arg'" +done + +case $ac_configure_args_raw in + *$as_nl*) + ac_safe_unquote= ;; + *) + ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. + ac_unsafe_a="$ac_unsafe_z#~" + ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" + ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; +esac + cat >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 GECODE $as_me 6.3.0, which was -generated by GNU Autoconf 2.69. Invocation command line was +generated by GNU Autoconf 2.72. Invocation command line was - $ $0 $@ + $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log @@ -2316,8 +2313,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 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 @@ -2352,7 +2353,7 @@ do | -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'" ;; @@ -2387,11 +2388,13 @@ done # 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 @@ -2402,8 +2405,8 @@ trap 'exit_status=$? 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) ;; #( @@ -2427,7 +2430,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ) echo - $as_echo "## ----------------- ## + printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -2435,14 +2438,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 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 @@ -2450,15 +2453,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 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 @@ -2466,8 +2469,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 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 && @@ -2481,65 +2484,50 @@ ac_signal=0 # 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 @@ -2547,64 +2535,712 @@ if test -r "$cache_file"; then # 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 -as_fn_append ac_header_list " stdlib.h" -as_fn_append ac_header_list " unistd.h" -as_fn_append ac_header_list " sys/param.h" -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - 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;} - 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;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then +# 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; +} +" + +# 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_cxx_list " stdio.h stdio_h HAVE_STDIO_H" +as_fn_append ac_header_cxx_list " stdlib.h stdlib_h HAVE_STDLIB_H" +as_fn_append ac_header_cxx_list " string.h string_h HAVE_STRING_H" +as_fn_append ac_header_cxx_list " inttypes.h inttypes_h HAVE_INTTYPES_H" +as_fn_append ac_header_cxx_list " stdint.h stdint_h HAVE_STDINT_H" +as_fn_append ac_header_cxx_list " strings.h strings_h HAVE_STRINGS_H" +as_fn_append ac_header_cxx_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" +as_fn_append ac_header_cxx_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" +as_fn_append ac_header_cxx_list " unistd.h unistd_h HAVE_UNISTD_H" +as_fn_append ac_header_cxx_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" +as_fn_append ac_func_cxx_list " getpagesize HAVE_GETPAGESIZE" + +# 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}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." + +# 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 +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { 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) + { 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=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. 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 @@ -2614,11 +3250,12 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 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. ## @@ -2763,18 +3400,17 @@ GECODE_FLATZINC_VERSION=${ac_gecode_flatzincversion} - - # Check whether --with-host-os was given. -if test "${with_host_os+set}" = set; then : +if test ${with_host_os+y} +then : withval=$with_host_os; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the host operating system" >&5 -$as_echo_n "checking for the host operating system... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the host operating system" >&5 +printf %s "checking for the host operating system... " >&6; } if test "${with_host_os:-no}" = "no"; then guess_host_os=$(uname -s 2>/dev/null) else @@ -2783,18 +3419,18 @@ $as_echo_n "checking for the host operating system... " >&6; } case ${guess_host_os} in GNU/kFreeBSD|*inux*|FreeBSD|NetBSD) host_os=linux - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5 -$as_echo "Linux" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Linux" >&5 +printf "%s\n" "Linux" >&6; } ;; *arwin*) host_os=darwin - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5 -$as_echo "Darwin" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5 +printf "%s\n" "Darwin" >&6; } ;; CYGWIN*|*indows*) host_os=windows - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 -$as_echo "Windows" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 +printf "%s\n" "Windows" >&6; } ;; *) as_fn_error $? "Host OS not supported." "$LINENO" 5 @@ -2806,6 +3442,12 @@ if test "${CXX}x" = "x" -a "${CC}x" = "x" -a "${host_os}" = "windows"; then CXX=cl fi + + + + + + ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -2816,42 +3458,48 @@ if test -z "$CXX"; then 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 @@ -2860,42 +3508,48 @@ fi 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 @@ -2907,8 +3561,8 @@ done 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 @@ -2918,7 +3572,7 @@ fi 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 @@ -2928,7 +3582,7 @@ case "(($ac_try" in *) 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 @@ -2938,7 +3592,7 @@ $as_echo "$ac_try_echo"; } >&5 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 @@ -2946,7 +3600,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -2958,9 +3612,9 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # 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.*" @@ -2981,13 +3635,14 @@ case "(($ac_try" in *) 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. @@ -3002,12 +3657,12 @@ do # 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. @@ -3018,48 +3673,52 @@ do 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 @@ -3069,15 +3728,16 @@ for ac_file in conftest.exe conftest conftest.*; do * ) 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 @@ -3086,9 +3746,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { FILE *f = fopen ("conftest.out", "w"); + if (!f) + return 1; return ferror (f) || fclose (f) != 0; ; @@ -3098,8 +3760,8 @@ _ACEOF 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 @@ -3107,10 +3769,10 @@ case "(($ac_try" in *) 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 @@ -3118,39 +3780,41 @@ $as_echo "$ac_try_echo"; } >&5 *) 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) { ; @@ -3164,11 +3828,12 @@ case "(($ac_try" in *) 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 @@ -3177,31 +3842,34 @@ $as_echo "$ac_try_echo"; } >&5 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_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 @@ -3211,30 +3879,36 @@ main () 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" @@ -3242,57 +3916,63 @@ else /* 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 @@ -3307,12 +3987,121 @@ else 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' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + + + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -3321,38 +4110,44 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; 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}gcc" - $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 @@ -3361,38 +4156,44 @@ if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; 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="gcc" - $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 if test "x$ac_ct_CC" = x; then @@ -3400,8 +4201,8 @@ fi 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 @@ -3414,38 +4215,44 @@ if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; 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}cc" - $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 @@ -3454,12 +4261,13 @@ fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; 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 ac_prog_rejected=no @@ -3467,15 +4275,19 @@ 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 test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" - $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 @@ -3491,18 +4303,19 @@ if test $ac_prog_rejected = yes; then # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi -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 @@ -3513,38 +4326,44 @@ if test -z "$CC"; then 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 @@ -3557,38 +4376,44 @@ if test -z "$CC"; then 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 @@ -3600,34 +4425,140 @@ done 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 + fi +fi + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. +set dummy ${ac_tool_prefix}clang; ac_word=$2 +{ 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 + 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_prog_CC="${ac_tool_prefix}clang" + 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 ;; +esac +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "clang", so it can be a program name with args. +set dummy clang; ac_word=$2 +{ 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 + 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_prog_ac_ct_CC="clang" + 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 ;; +esac +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ 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 fi +else + CC="$ac_cv_prog_CC" fi 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 @@ -3637,20 +4568,21 @@ $as_echo "$ac_try_echo"; } >&5 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_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 @@ -3660,30 +4592,36 @@ main () 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" @@ -3691,57 +4629,63 @@ else /* 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 @@ -3756,94 +4700,153 @@ else 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. */ +$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 + +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 + +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. */ -#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]; - -/* 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 **, 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; -} +$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 @@ -3862,38 +4865,44 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 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 @@ -3902,38 +4911,44 @@ if test -z "$ac_cv_prog_RANLIB"; then 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 @@ -3941,8 +4956,8 @@ fi 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 @@ -3954,38 +4969,44 @@ fi # Extract the first word of "diff", so it can be a program name with args. set dummy diff; 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_PROG_DIFF+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$PROG_DIFF"; 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_PROG_DIFF+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$PROG_DIFF"; then ac_cv_prog_PROG_DIFF="$PROG_DIFF" # 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_PROG_DIFF="ok" - $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 PROG_DIFF=$ac_cv_prog_PROG_DIFF if test -n "$PROG_DIFF"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_DIFF" >&5 -$as_echo "$PROG_DIFF" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROG_DIFF" >&5 +printf "%s\n" "$PROG_DIFF" >&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 @@ -3994,38 +5015,44 @@ fi fi # Extract the first word of "tar", so it can be a program name with args. set dummy tar; 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_PROG_TAR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$PROG_TAR"; 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_PROG_TAR+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$PROG_TAR"; then ac_cv_prog_PROG_TAR="$PROG_TAR" # 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_PROG_TAR="ok" - $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 PROG_TAR=$ac_cv_prog_PROG_TAR if test -n "$PROG_TAR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_TAR" >&5 -$as_echo "$PROG_TAR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROG_TAR" >&5 +printf "%s\n" "$PROG_TAR" >&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 @@ -4034,38 +5061,44 @@ fi fi # Extract the first word of "make", so it can be a program name with args. set dummy make; 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_PROG_MAKE+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$PROG_MAKE"; 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_PROG_MAKE+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$PROG_MAKE"; then ac_cv_prog_PROG_MAKE="$PROG_MAKE" # 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_PROG_MAKE="ok" - $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 PROG_MAKE=$ac_cv_prog_PROG_MAKE if test -n "$PROG_MAKE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_MAKE" >&5 -$as_echo "$PROG_MAKE" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROG_MAKE" >&5 +printf "%s\n" "$PROG_MAKE" >&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 @@ -4074,83 +5107,95 @@ fi fi # 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_prog_PROG_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$PROG_SED"; 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_PROG_SED+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$PROG_SED"; then ac_cv_prog_PROG_SED="$PROG_SED" # 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_PROG_SED="ok" - $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 PROG_SED=$ac_cv_prog_PROG_SED if test -n "$PROG_SED"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SED" >&5 -$as_echo "$PROG_SED" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROG_SED" >&5 +printf "%s\n" "$PROG_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 if test "${PROG_SED}x" = "x"; then as_fn_error $? "In order to compile Gecode, you need the sed tool." "$LINENO" 5 fi -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; 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_PROG_PERL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$PROG_PERL"; then - ac_cv_prog_PROG_PERL="$PROG_PERL" # Let the user override the test. +# Extract the first word of "uv", so it can be a program name with args. +set dummy uv; ac_word=$2 +{ 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_PROG_UV+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$PROG_UV"; then + ac_cv_prog_PROG_UV="$PROG_UV" # 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 - ac_cv_prog_PROG_PERL="ok" - $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_prog_PROG_UV="uv" + 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 ;; +esac fi -fi -PROG_PERL=$ac_cv_prog_PROG_PERL -if test -n "$PROG_PERL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_PERL" >&5 -$as_echo "$PROG_PERL" >&6; } +PROG_UV=$ac_cv_prog_PROG_UV +if test -n "$PROG_UV"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROG_UV" >&5 +printf "%s\n" "$PROG_UV" >&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 "${PROG_PERL}x" = "x"; then - as_fn_error $? "In order to compile Gecode, you need perl." "$LINENO" 5 + if test "${PROG_UV}x" = "x"; then + as_fn_error $? "In order to compile Gecode, you need uv." "$LINENO" 5 fi case $host_os in @@ -4173,38 +5218,35 @@ 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' 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 @@ -4214,56 +5256,56 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* 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 @@ -4273,26 +5315,30 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* 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 @@ -4305,7 +5351,8 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # Check whether --with-compiler-vendor was given. -if test "${with_compiler_vendor+set}" = set; then : +if test ${with_compiler_vendor+y} +then : withval=$with_compiler_vendor; fi @@ -4327,17 +5374,18 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu please, do fail #endif 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_cxx_compiler_vendor=gnu -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __INTEL_COMPILER # error "Macro __INTEL_COMPILER is undefined!" @@ -4346,14 +5394,15 @@ else please, do fail #endif 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_cxx_compiler_vendor=intel cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4364,17 +5413,18 @@ if ac_fn_cxx_try_compile "$LINENO"; then : please, do fail #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_gecode_library_architecture="-x86${ac_gecode_library_architecture}" 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _M_IA64 @@ -4384,17 +5434,18 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext please, do fail #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_gecode_library_architecture="-ia64${ac_gecode_library_architecture}" 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _M_X64 @@ -4404,19 +5455,20 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext please, do fail #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_gecode_library_architecture="-x64${ac_gecode_library_architecture}" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - ac_ext=c +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +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' @@ -4431,14 +5483,15 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu please, do fail #endif 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_cxx_compiler_vendor=microsoft cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4449,17 +5502,18 @@ if ac_fn_c_try_compile "$LINENO"; then : please, do fail #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_gecode_library_architecture="-x86${ac_gecode_library_architecture}" 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _M_IA64 @@ -4469,17 +5523,18 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext please, do fail #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_gecode_library_architecture="-ia64${ac_gecode_library_architecture}" 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _M_X64 @@ -4489,31 +5544,35 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext please, do fail #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_gecode_library_architecture="-x64${ac_gecode_library_architecture}" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - ac_cv_cxx_compiler_vendor=unknown +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +else case e in #( + e) ac_cv_cxx_compiler_vendor=unknown ;; +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_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' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - + ;; +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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' @@ -4542,20 +5601,22 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu really, the version is too old #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - as_fn_error $? "Your version of gcc is too old. You need at least version 4.2." "$LINENO" 5 +if ac_fn_c_try_compile "$LINENO" +then : +else case e in #( + e) as_fn_error $? "Your version of gcc is too old. You need at least version 4.2." "$LINENO" 5 + ;; +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_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4576,20 +5637,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu really, the version is too old #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - -else - as_fn_error $? "Your version of g++ is too old. You need at least version 4.2." "$LINENO" 5 +if ac_fn_cxx_try_compile "$LINENO" +then : +else case e in #( + e) as_fn_error $? "Your version of g++ is too old. You need at least version 4.2." "$LINENO" 5 + ;; +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_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4616,26 +5679,28 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu really, the version is too old #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : -else - as_fn_error $? "Your version of cl is too old. You need at least Microsoft Visual C++ 2013." "$LINENO" 5 +else case e in #( + e) as_fn_error $? "Your version of cl is too old. You need at least Microsoft Visual C++ 2013." "$LINENO" 5 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' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - + ;; +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 ;; *) @@ -4644,69 +5709,76 @@ esac # Check whether --enable-resource was given. -if test "${enable_resource+set}" = set; then : +if test ${enable_resource+y} +then : enableval=$enable_resource; fi # Extract the first word of "rc.exe", so it can be a program name with args. set dummy rc.exe; 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_HAVE_RC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$HAVE_RC"; 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_HAVE_RC+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$HAVE_RC"; then ac_cv_prog_HAVE_RC="$HAVE_RC" # 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_HAVE_RC="found" - $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 HAVE_RC=$ac_cv_prog_HAVE_RC if test -n "$HAVE_RC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RC" >&5 -$as_echo "$HAVE_RC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_RC" >&5 +printf "%s\n" "$HAVE_RC" >&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 to build with Visual Studio resource files" >&5 -$as_echo_n "checking whether to build with Visual Studio resource files... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with Visual Studio resource files" >&5 +printf %s "checking whether to build with Visual Studio resource files... " >&6; } if test "${enable_resource:-no}" = "yes" -a \ "${ac_gecode_compiler_vendor}" = "microsoft"; then if test "${HAVE_RC}x" = "x"; 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; } RESCOMP=@true enable_resource=no 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; } RESCOMP="rc.exe" enable_resource=yes 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; } enable_resource=no RESCOMP=@true @@ -4723,7 +5795,8 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # Check whether --with-sdk was given. -if test "${with_sdk+set}" = set; then : +if test ${with_sdk+y} +then : withval=$with_sdk; fi @@ -4731,22 +5804,22 @@ fi if test "${with_sdk:-no}" != "no"; then if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -isysroot ${with_sdk}" >&5 -$as_echo_n "checking whether ${CXX} accepts -isysroot ${with_sdk}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -isysroot ${with_sdk}" >&5 +printf %s "checking whether ${CXX} accepts -isysroot ${with_sdk}... " >&6; } if ${CXX} -isysroot ${with_sdk} 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -isysroot ${with_sdk}" >&5 -$as_echo_n "checking whether ${CXX} accepts -isysroot ${with_sdk}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -isysroot ${with_sdk}" >&5 +printf %s "checking whether ${CXX} accepts -isysroot ${with_sdk}... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -4759,34 +5832,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-isysroot ${with_sdk}${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4794,8 +5869,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -isysroot ${with_sdk}" >&5 -$as_echo_n "checking whether ${CC} accepts -isysroot ${with_sdk}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -isysroot ${with_sdk}" >&5 +printf %s "checking whether ${CC} accepts -isysroot ${with_sdk}... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -4808,34 +5883,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-isysroot ${with_sdk}${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4848,7 +5925,8 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi # Check whether --with-macosx-version-min was given. -if test "${with_macosx_version_min+set}" = set; then : +if test ${with_macosx_version_min+y} +then : withval=$with_macosx_version_min; fi @@ -4856,22 +5934,22 @@ fi if test "${with_macosx_version_min:-no}" != "no"; then if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5 -$as_echo_n "checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5 +printf %s "checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; } if ${CXX} -mmacosx-version-min=${with_macosx_version_min} 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5 -$as_echo_n "checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5 +printf %s "checking whether ${CXX} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -4884,34 +5962,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4919,8 +5999,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5 -$as_echo_n "checking whether ${CC} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mmacosx-version-min=${with_macosx_version_min}" >&5 +printf %s "checking whether ${CC} accepts -mmacosx-version-min=${with_macosx_version_min}... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -4933,34 +6013,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-mmacosx-version-min=${with_macosx_version_min}${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4973,12 +6055,13 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi # Check whether --with-architectures was given. -if test "${with_architectures+set}" = set; then : +if test ${with_architectures+y} +then : withval=$with_architectures; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build for different architectures" >&5 -$as_echo_n "checking Whether to build for different architectures... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Whether to build for different architectures" >&5 +printf %s "checking Whether to build for different architectures... " >&6; } if test "${host_os}" = "darwin"; then if test "${with_architectures:-no}" != "no"; then archflags=""; @@ -4987,22 +6070,22 @@ $as_echo_n "checking Whether to build for different architectures... " >&6; } done if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${archflags}" >&5 -$as_echo_n "checking whether ${CXX} accepts ${archflags}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${archflags}" >&5 +printf %s "checking whether ${CXX} accepts ${archflags}... " >&6; } if ${CXX} ${archflags} 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${archflags}" >&5 -$as_echo_n "checking whether ${CXX} accepts ${archflags}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${archflags}" >&5 +printf %s "checking whether ${CXX} accepts ${archflags}... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -5015,34 +6098,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="${archflags}${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -5050,8 +6135,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${archflags}" >&5 -$as_echo_n "checking whether ${CC} accepts ${archflags}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${archflags}" >&5 +printf %s "checking whether ${CC} accepts ${archflags}... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -5064,34 +6149,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="${archflags}${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -5100,87 +6187,86 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi DLLFLAGS="${archflags}${DLLFLAGS:+ }${DLLFLAGS}" - { $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 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 --with-lib-prefix was given. -if test "${with_lib_prefix+set}" = set; then : +if test ${with_lib_prefix+y} +then : withval=$with_lib_prefix; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-defined library name prefix" >&5 -$as_echo_n "checking for user-defined library name prefix... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-defined library name prefix" >&5 +printf %s "checking for user-defined library name prefix... " >&6; } if test "x${with_lib_prefix}" != "x"; then ac_gecode_userprefix=${with_lib_prefix} - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_lib_prefix}" >&5 -$as_echo "${with_lib_prefix}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_lib_prefix}" >&5 +printf "%s\n" "${with_lib_prefix}" >&6; } else ac_gecode_userprefix= - { $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 -cat >>confdefs.h <<_ACEOF -#define GECODE_DLL_USERPREFIX "${ac_gecode_userprefix}" -_ACEOF +printf "%s\n" "#define GECODE_DLL_USERPREFIX \"${ac_gecode_userprefix}\"" >>confdefs.h # Check whether --with-lib-suffix was given. -if test "${with_lib_suffix+set}" = set; then : +if test ${with_lib_suffix+y} +then : withval=$with_lib_suffix; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for user-defined library name suffix" >&5 -$as_echo_n "checking for user-defined library name suffix... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for user-defined library name suffix" >&5 +printf %s "checking for user-defined library name suffix... " >&6; } if test "x${with_lib_suffix}" != "x"; then ac_gecode_usersuffix=${with_lib_suffix} USERSUFFIX=${with_lib_suffix} - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_lib_suffix}" >&5 -$as_echo "${with_lib_suffix}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_lib_suffix}" >&5 +printf "%s\n" "${with_lib_suffix}" >&6; } else ac_gecode_usersuffix= USERSUFFIX="" - { $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 -cat >>confdefs.h <<_ACEOF -#define GECODE_DLL_USERSUFFIX "${ac_gecode_usersuffix}" -_ACEOF +printf "%s\n" "#define GECODE_DLL_USERSUFFIX \"${ac_gecode_usersuffix}\"" >>confdefs.h # Check whether --enable-framework was given. -if test "${enable_framework+set}" = set; then : +if test ${enable_framework+y} +then : enableval=$enable_framework; fi if test "${host_os}" = "darwin"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build framework bundle on Mac OS X" >&5 -$as_echo_n "checking whether to build framework bundle on Mac OS X... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build framework bundle on Mac OS X" >&5 +printf %s "checking whether to build framework bundle on Mac OS X... " >&6; } if test "${enable_framework:-no}" = "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; } BUILD_MACOS_FRAMEWORK="yes" enable_static="yes"; enable_shared="no"; 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; } BUILD_MACOS_FRAMEWORK="no" fi @@ -5193,467 +6279,245 @@ if test "${host_os}" = "windows" -a \ enable_shared="no" fi # Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : +if test ${enable_static+y} +then : enableval=$enable_static; fi - { $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; } if test "${enable_static:-no}" = "yes"; then -$as_echo "#define GECODE_STATIC_LIBS /**/" >>confdefs.h +printf "%s\n" "#define GECODE_STATIC_LIBS /**/" >>confdefs.h BUILDSTATIC="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; } enable_shared=no else BUILDSTATIC="no" enable_shared=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; } fi # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then : +if test ${enable_shared+y} +then : enableval=$enable_shared; fi - { $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; } if test "${enable_shared:-yes}" = "yes"; then BUILDDLL="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; } else BUILDDLL="no" if test "${enable_static:-no}" = "no"; then as_fn_error $? "One of --enable-static or --enable-shared must be given" "$LINENO" 5 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; } fi # Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : +if test ${enable_debug+y} +then : enableval=$enable_debug; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with debug symbols and assertions" >&5 -$as_echo_n "checking whether to build with debug symbols and assertions... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with debug symbols and assertions" >&5 +printf %s "checking whether to build with debug symbols and assertions... " >&6; } if test "${enable_debug:-no}" = "yes"; then ac_gecode_library_architecture="-d${ac_gecode_library_architecture}" DEBUG_BUILD=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; } else ac_gecode_library_architecture="-r${ac_gecode_library_architecture}" DEBUG_BUILD=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; } CFLAGS="-DNDEBUG${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-DNDEBUG${CXXFLAGS:+ }${CXXFLAGS}" fi - -{ $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 - 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 - for ac_exec_ext in '' $ac_executable_extensions; do - 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 -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - $as_echo_n 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" - "$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 - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_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_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$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 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_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 +ac_header= ac_cache= +for ac_item in $ac_header_cxx_list do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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" - 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 -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - $as_echo_n 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" - "$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 - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + if test $ac_cache; then + ac_fn_cxx_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 - # 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_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -{ $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 -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_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 -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev/null 2>&1; then : +done -else - ac_cv_header_stdc=no -fi -rm -f conftest* -fi -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 -/* 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))) -int -main () -{ - 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_cxx_try_run "$LINENO"; then : -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi -fi -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 -$as_echo "#define STDC_HEADERS 1" >>confdefs.h -fi +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes +then : -# 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_cxx_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 STDC_HEADERS 1" >>confdefs.h fi - -done - - # Check whether --enable-peakheap was given. -if test "${enable_peakheap+set}" = set; then : +if test ${enable_peakheap+y} +then : enableval=$enable_peakheap; fi if test "${enable_peakheap:-no}" = "yes"; then ac_fn_cxx_check_func "$LINENO" "_msize" "ac_cv_func__msize" -if test "x$ac_cv_func__msize" = xyes; then : - +if test "x$ac_cv_func__msize" = xyes +then : -$as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h +printf "%s\n" "#define GECODE_PEAKHEAP /**/" >>confdefs.h -$as_echo "#define GECODE_PEAKHEAP_MALLOC_H /**/" >>confdefs.h +printf "%s\n" "#define GECODE_PEAKHEAP_MALLOC_H /**/" >>confdefs.h -$as_echo "#define GECODE_MSIZE _msize" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5 -$as_echo_n "checking whether to build with peak heap size tracking... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +printf "%s\n" "#define GECODE_MSIZE _msize" >>confdefs.h -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5 +printf %s "checking whether to build with peak heap size tracking... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } - for ac_header in malloc/malloc.h +else case e in #( + e) + for ac_header in malloc/malloc.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" -if test "x$ac_cv_header_malloc_malloc_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MALLOC_MALLOC_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" +if test "x$ac_cv_header_malloc_malloc_h" = xyes +then : + printf "%s\n" "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h ac_fn_cxx_check_func "$LINENO" "malloc_size" "ac_cv_func_malloc_size" -if test "x$ac_cv_func_malloc_size" = xyes; then : - - $as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h - +if test "x$ac_cv_func_malloc_size" = xyes +then : -$as_echo "#define GECODE_PEAKHEAP_MALLOC_MALLOC_H /**/" >>confdefs.h + printf "%s\n" "#define GECODE_PEAKHEAP /**/" >>confdefs.h - $as_echo "#define GECODE_MSIZE malloc_size" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5 -$as_echo_n "checking whether to build with peak heap size tracking... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +printf "%s\n" "#define GECODE_PEAKHEAP_MALLOC_MALLOC_H /**/" >>confdefs.h -else + printf "%s\n" "#define GECODE_MSIZE malloc_size" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5 -$as_echo_n "checking whether to build with peak heap size tracking... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5 +printf %s "checking whether to build with peak heap size tracking... " >&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}: checking whether to build with peak heap size tracking" >&5 +printf %s "checking whether to build with peak heap size tracking... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -else - - for ac_header in malloc.h +else case e in #( + e) + for ac_header in malloc.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" -if test "x$ac_cv_header_malloc_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MALLOC_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" +if test "x$ac_cv_header_malloc_h" = xyes +then : + printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h ac_fn_cxx_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size" -if test "x$ac_cv_func_malloc_usable_size" = xyes; then : - - $as_echo "#define GECODE_PEAKHEAP /**/" >>confdefs.h +if test "x$ac_cv_func_malloc_usable_size" = xyes +then : + printf "%s\n" "#define GECODE_PEAKHEAP /**/" >>confdefs.h -$as_echo "#define GECODE_PEAKHEAP_MALLOC_H /**/" >>confdefs.h - $as_echo "#define GECODE_MSIZE malloc_usable_size" >>confdefs.h +printf "%s\n" "#define GECODE_PEAKHEAP_MALLOC_H /**/" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5 -$as_echo_n "checking whether to build with peak heap size tracking... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else + printf "%s\n" "#define GECODE_MSIZE malloc_usable_size" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5 -$as_echo_n "checking whether to build with peak heap size tracking... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5 +printf %s "checking whether to build with peak heap size tracking... " >&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}: checking whether to build with peak heap size tracking" >&5 +printf %s "checking whether to build with peak heap size tracking... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5 -$as_echo_n "checking whether to build with peak heap size tracking... " >&6; } - { $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}: checking whether to build with peak heap size tracking" >&5 +printf %s "checking whether to build with peak heap size tracking... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac fi done - - + ;; +esac fi done - - + ;; +esac fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5 -$as_echo_n "checking whether to build with peak heap size tracking... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with peak heap size tracking" >&5 +printf %s "checking whether to build with peak heap size tracking... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Check whether --enable-small-codesize was given. -if test "${enable_small_codesize+set}" = set; then : +if test ${enable_small_codesize+y} +then : enableval=$enable_small_codesize; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to optimize for code size" >&5 -$as_echo_n "checking whether to optimize for code size... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to optimize for code size" >&5 +printf %s "checking whether to optimize for code size... " >&6; } if test "${enable_debug:-no}" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not in debug builds" >&5 -$as_echo "not in debug builds" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not in debug builds" >&5 +printf "%s\n" "not in debug builds" >&6; } elif test "${enable_small_codesize:-no}" = "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; } case $host_os in darwin*) ac_gecode_gcc_optimize_flag=-Oz @@ -5664,107 +6528,195 @@ $as_echo "yes" >&6; } ;; esac 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; } ac_gecode_gcc_optimize_flag=-O3 ac_gecode_cl_optimize_flag=-O2 fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX options needed to detect all undeclared functions" >&5 +printf %s "checking for $CXX options needed to detect all undeclared functions... " >&6; } +if test ${ac_cv_cxx_undeclared_builtin_options+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_save_CFLAGS=$CFLAGS + ac_cv_cxx_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_cxx_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_cxx_try_compile "$LINENO" +then : + if test x"$ac_arg" = x +then : + ac_cv_cxx_undeclared_builtin_options='none needed' +else case e in #( + e) ac_cv_cxx_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_cxx_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_cxx_undeclared_builtin_options" >&6; } + case $ac_cv_cxx_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 $CXX report undeclared builtins +See 'config.log' for more details" "$LINENO" 5; } ;; #( + 'none needed') : + ac_cxx_undeclared_builtin_options='' ;; #( + *) : + ac_cxx_undeclared_builtin_options=$ac_cv_cxx_undeclared_builtin_options ;; +esac + # Check whether --enable-leak-debug was given. -if test "${enable_leak_debug+set}" = set; then : +if test ${enable_leak_debug+y} +then : enableval=$enable_leak_debug; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for finding memory leaks" >&5 -$as_echo_n "checking whether to build with support for finding memory leaks... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with support for finding memory leaks" >&5 +printf %s "checking whether to build with support for finding memory leaks... " >&6; } if test "${enable_leak_debug:-no}" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_fn_cxx_check_decl "$LINENO" "mtrace" "ac_cv_have_decl_mtrace" "#include -" -if test "x$ac_cv_have_decl_mtrace" = xyes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_fn_check_decl "$LINENO" "mtrace" "ac_cv_have_decl_mtrace" "#include +" "$ac_cxx_undeclared_builtin_options" "CXXFLAGS" +if test "x$ac_cv_have_decl_mtrace" = xyes +then : -$as_echo "#define GECODE_HAS_MTRACE /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_MTRACE /**/" >>confdefs.h -else - as_fn_error $? "mtrace not available." "$LINENO" 5 +else case e in #( + e) as_fn_error $? "mtrace not available." "$LINENO" 5 ;; +esac 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 # Check whether --enable-allocator was given. -if test "${enable_allocator+set}" = set; then : +if test ${enable_allocator+y} +then : enableval=$enable_allocator; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with default memory allocator" >&5 -$as_echo_n "checking whether to build with default memory allocator... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with default memory allocator" >&5 +printf %s "checking whether to build with default memory allocator... " >&6; } if test "${enable_allocator:-yes}" = "yes"; then -$as_echo "#define GECODE_ALLOCATOR /**/" >>confdefs.h +printf "%s\n" "#define GECODE_ALLOCATOR /**/" >>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-audit was given. -if test "${enable_audit+set}" = set; then : +if test ${enable_audit+y} +then : enableval=$enable_audit; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with auditing code" >&5 -$as_echo_n "checking whether to build with auditing code... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with auditing code" >&5 +printf %s "checking whether to build with auditing code... " >&6; } if test "${enable_audit:-no}" = "yes"; then -$as_echo "#define GECODE_AUDIT /**/" >>confdefs.h +printf "%s\n" "#define GECODE_AUDIT /**/" >>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-profile was given. -if test "${enable_profile+set}" = set; then : +if test ${enable_profile+y} +then : enableval=$enable_profile; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with profiling information" >&5 -$as_echo_n "checking whether to build with profiling information... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with profiling information" >&5 +printf %s "checking whether to build with profiling information... " >&6; } if test "${enable_profile:-no}" = "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; } if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pg" >&5 -$as_echo_n "checking whether ${CXX} accepts -pg... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pg" >&5 +printf %s "checking whether ${CXX} accepts -pg... " >&6; } if ${CXX} -pg 2>&1 | grep "ignoring unknown option" -q; 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 test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 -$as_echo_n "checking whether ${CXX} accepts -p... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 +printf %s "checking whether ${CXX} accepts -p... " >&6; } if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-p${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 -$as_echo_n "checking whether ${CXX} accepts -p... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 +printf %s "checking whether ${CXX} accepts -p... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -5777,34 +6729,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -5812,8 +6766,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5 -$as_echo_n "checking whether ${CC} accepts -p... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5 +printf %s "checking whether ${CC} accepts -p... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -5826,34 +6780,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-p${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -5862,15 +6818,15 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi 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; } CFLAGS="-pg${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pg" >&5 -$as_echo_n "checking whether ${CXX} accepts -pg... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pg" >&5 +printf %s "checking whether ${CXX} accepts -pg... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -5883,36 +6839,37 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 -$as_echo_n "checking whether ${CXX} accepts -p... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 +printf %s "checking whether ${CXX} accepts -p... " >&6; } if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-p${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 -$as_echo_n "checking whether ${CXX} accepts -p... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 +printf %s "checking whether ${CXX} accepts -p... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -5925,34 +6882,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -5960,8 +6919,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5 -$as_echo_n "checking whether ${CC} accepts -p... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5 +printf %s "checking whether ${CC} accepts -p... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -5974,34 +6933,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-p${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6011,35 +6972,35 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi else CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CFLAGS="-pg${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-pg${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 -$as_echo_n "checking whether ${CXX} accepts -p... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 +printf %s "checking whether ${CXX} accepts -p... " >&6; } if ${CXX} -p 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-p${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 -$as_echo_n "checking whether ${CXX} accepts -p... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -p" >&5 +printf %s "checking whether ${CXX} accepts -p... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -6052,34 +7013,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-p${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6087,8 +7050,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5 -$as_echo_n "checking whether ${CC} accepts -p... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -p" >&5 +printf %s "checking whether ${CC} accepts -p... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-p${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -6101,43 +7064,46 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-p${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 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' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - fi + fi ;; +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_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6147,38 +7113,39 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 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 # Check whether --enable-gcov was given. -if test "${enable_gcov+set}" = set; then : +if test ${enable_gcov+y} +then : enableval=$enable_gcov; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov support" >&5 -$as_echo_n "checking whether to build with gcov support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov support" >&5 +printf %s "checking whether to build with gcov support... " >&6; } if test "${enable_gcov:-no}" = "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; } if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fprofile-arcs" >&5 -$as_echo_n "checking whether ${CXX} accepts -fprofile-arcs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fprofile-arcs" >&5 +printf %s "checking whether ${CXX} accepts -fprofile-arcs... " >&6; } if ${CXX} -fprofile-arcs 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fprofile-arcs" >&5 -$as_echo_n "checking whether ${CXX} accepts -fprofile-arcs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fprofile-arcs" >&5 +printf %s "checking whether ${CXX} accepts -fprofile-arcs... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -6191,34 +7158,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fprofile-arcs${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6226,8 +7195,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fprofile-arcs" >&5 -$as_echo_n "checking whether ${CC} accepts -fprofile-arcs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fprofile-arcs" >&5 +printf %s "checking whether ${CC} accepts -fprofile-arcs... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -6240,34 +7209,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fprofile-arcs${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6277,22 +7248,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ftest-coverage" >&5 -$as_echo_n "checking whether ${CXX} accepts -ftest-coverage... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ftest-coverage" >&5 +printf %s "checking whether ${CXX} accepts -ftest-coverage... " >&6; } if ${CXX} -ftest-coverage 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ftest-coverage" >&5 -$as_echo_n "checking whether ${CXX} accepts -ftest-coverage... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ftest-coverage" >&5 +printf %s "checking whether ${CXX} accepts -ftest-coverage... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -6305,34 +7276,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-ftest-coverage${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6340,8 +7313,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -ftest-coverage" >&5 -$as_echo_n "checking whether ${CC} accepts -ftest-coverage... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -ftest-coverage" >&5 +printf %s "checking whether ${CC} accepts -ftest-coverage... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -6354,34 +7327,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-ftest-coverage${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6392,8 +7367,8 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu DLLFLAGS=""-fprofile-arcs"${DLLFLAGS:+ }${DLLFLAGS}" DLLFLAGS=""-ftest-coverage"${DLLFLAGS:+ }${DLLFLAGS}" 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 ac_ext=c @@ -6404,88 +7379,92 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu # 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 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int has at least 32 bit" >&5 -$as_echo_n "checking if int has at least 32 bit... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if int has at least 32 bit" >&5 +printf %s "checking if int has at least 32 bit... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { - #if SIZEOF_INT>=4 - #else - blablub - #endif +#if SIZEOF_INT<4 +choke me +#endif ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - as_fn_error $? "Gecode needs at least 32 bit integers." "$LINENO" 5 +if ac_fn_c_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) as_fn_error $? "Gecode needs at least 32 bit integers." "$LINENO" 5 ;; +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 if doubles have a big enough mantissa" >&5 -$as_echo_n "checking if doubles have a big enough mantissa... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if doubles have a big enough mantissa" >&5 +printf %s "checking if doubles have a big enough mantissa... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { - #if DBL_MANT_DIG>=53 - #else - blablub - #endif +#if DBL_MANT_DIG<53 +choke me +#endif ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - as_fn_error $? "Gecode needs a double mantissa of at least 53 bits." "$LINENO" 5 +if ac_fn_c_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) as_fn_error $? "Gecode needs a double mantissa of at least 53 bits." "$LINENO" 5 ;; +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_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' @@ -6496,72 +7475,72 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # Check whether --enable-thread was given. -if test "${enable_thread+set}" = set; then : +if test ${enable_thread+y} +then : enableval=$enable_thread; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with multi-threading support" >&5 -$as_echo_n "checking whether to build with multi-threading support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with multi-threading support" >&5 +printf %s "checking whether to build with multi-threading support... " >&6; } if test "${enable_thread:-yes}" = "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 GECODE_HAS_THREADS 1" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_THREADS 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 # Check whether --enable-osx-unfair-mutex was given. -if test "${enable_osx_unfair_mutex+set}" = set; then : +if test ${enable_osx_unfair_mutex+y} +then : enableval=$enable_osx_unfair_mutex; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use unfair mutexes on macOS" >&5 -$as_echo_n "checking whether to use unfair mutexes on macOS... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use unfair mutexes on macOS" >&5 +printf %s "checking whether to use unfair mutexes on macOS... " >&6; } if test "${enable_osx_unfair_mutex:-yes}" = "yes"; then if test "${host_os}" = "darwin"; 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 GECODE_USE_OSX_UNFAIR_MUTEX 1" >>confdefs.h +printf "%s\n" "#define GECODE_USE_OSX_UNFAIR_MUTEX 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 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 --with-freelist32-size-max was given. -if test "${with_freelist32_size_max+set}" = set; then : +if test ${with_freelist32_size_max+y} +then : withval=$with_freelist32_size_max; fi if test "${with_freelist32_size_max:-no}" != "no"; then -cat >>confdefs.h <<_ACEOF -#define GECODE_FREELIST_SIZE_MAX32 ${with_freelist32_size_max} -_ACEOF +printf "%s\n" "#define GECODE_FREELIST_SIZE_MAX32 ${with_freelist32_size_max}" >>confdefs.h fi # Check whether --with-freelist64-size-max was given. -if test "${with_freelist64_size_max+set}" = set; then : +if test ${with_freelist64_size_max+y} +then : withval=$with_freelist64_size_max; fi if test "${with_freelist64_size_max:-no}" != "no"; then -cat >>confdefs.h <<_ACEOF -#define GECODE_FREELIST_SIZE_MAX64 ${with_freelist64_size_max} -_ACEOF +printf "%s\n" "#define GECODE_FREELIST_SIZE_MAX64 ${with_freelist64_size_max}" >>confdefs.h fi @@ -6690,22 +7669,22 @@ gnu) esac if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5 -$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5 +printf %s "checking whether ${CXX} accepts -fPIC... " >&6; } if ${CXX} -fPIC 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5 -$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5 +printf %s "checking whether ${CXX} accepts -fPIC... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -6718,34 +7697,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6753,8 +7734,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fPIC" >&5 -$as_echo_n "checking whether ${CC} accepts -fPIC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fPIC" >&5 +printf %s "checking whether ${CC} accepts -fPIC... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -6767,34 +7748,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6804,22 +7787,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5 +printf %s "checking whether ${CXX} accepts -Wextra... " >&6; } if ${CXX} -Wextra 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5 +printf %s "checking whether ${CXX} accepts -Wextra... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -6832,34 +7815,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6867,8 +7852,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wextra" >&5 -$as_echo_n "checking whether ${CC} accepts -Wextra... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wextra" >&5 +printf %s "checking whether ${CC} accepts -Wextra... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -6881,34 +7866,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6918,22 +7905,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5 +printf %s "checking whether ${CXX} accepts -Wall... " >&6; } if ${CXX} -Wall 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5 +printf %s "checking whether ${CXX} accepts -Wall... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -6946,34 +7933,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6981,8 +7970,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wall" >&5 -$as_echo_n "checking whether ${CC} accepts -Wall... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wall" >&5 +printf %s "checking whether ${CC} accepts -Wall... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-Wall${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -6995,34 +7984,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7032,22 +8023,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5 +printf %s "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; } if ${CXX} -Wno-unknown-pragmas 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5 +printf %s "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -7060,34 +8051,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7095,8 +8088,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-unknown-pragmas" >&5 -$as_echo_n "checking whether ${CC} accepts -Wno-unknown-pragmas... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-unknown-pragmas" >&5 +printf %s "checking whether ${CC} accepts -Wno-unknown-pragmas... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -7109,34 +8102,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7146,22 +8141,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5 -$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5 +printf %s "checking whether ${CXX} accepts -pipe... " >&6; } if ${CXX} -pipe 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5 -$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5 +printf %s "checking whether ${CXX} accepts -pipe... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -7174,34 +8169,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7209,8 +8206,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -pipe" >&5 -$as_echo_n "checking whether ${CC} accepts -pipe... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -pipe" >&5 +printf %s "checking whether ${CC} accepts -pipe... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-pipe${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -7223,34 +8220,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7260,22 +8259,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++17" >&5 -$as_echo_n "checking whether ${CXX} accepts -std=c++17... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++17" >&5 +printf %s "checking whether ${CXX} accepts -std=c++17... " >&6; } if ${CXX} -std=c++17 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-std=c++17${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-std=c++17${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++17" >&5 -$as_echo_n "checking whether ${CXX} accepts -std=c++17... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++17" >&5 +printf %s "checking whether ${CXX} accepts -std=c++17... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-std=c++17${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -7288,34 +8287,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-std=c++17${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7323,8 +8324,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -std=c++17" >&5 -$as_echo_n "checking whether ${CC} accepts -std=c++17... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -std=c++17" >&5 +printf %s "checking whether ${CC} accepts -std=c++17... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-std=c++17${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -7337,34 +8338,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-std=c++17${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7374,29 +8377,29 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5 -$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5 +printf %s "checking whether ${CXX} accepts -ggdb... " >&6; } if ${CXX} -ggdb 2>&1 | grep "ignoring unknown option" -q; 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 test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -7409,34 +8412,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7444,8 +8449,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 -$as_echo_n "checking whether ${CC} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 +printf %s "checking whether ${CC} accepts -g... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -7458,34 +8463,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7494,15 +8501,15 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi 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; } CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5 -$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5 +printf %s "checking whether ${CXX} accepts -ggdb... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -7515,36 +8522,37 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -7557,34 +8565,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7592,8 +8602,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 -$as_echo_n "checking whether ${CC} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 +printf %s "checking whether ${CC} accepts -g... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -7606,34 +8616,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7643,35 +8655,35 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi else CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -7684,34 +8696,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7719,8 +8733,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 -$as_echo_n "checking whether ${CC} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 +printf %s "checking whether ${CC} accepts -g... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -7733,43 +8747,46 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 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' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - fi + fi ;; +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_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7779,16 +8796,18 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_fn_cxx_check_func "$LINENO" "__builtin_ffsll" "ac_cv_func___builtin_ffsll" -if test "x$ac_cv_func___builtin_ffsll" = xyes; then : +if test "x$ac_cv_func___builtin_ffsll" = xyes +then : -$as_echo "#define GECODE_HAS_BUILTIN_FFSLL /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_BUILTIN_FFSLL /**/" >>confdefs.h fi ac_fn_cxx_check_func "$LINENO" "__builtin_popcountll" "ac_cv_func___builtin_popcountll" -if test "x$ac_cv_func___builtin_popcountll" = xyes; then : +if test "x$ac_cv_func___builtin_popcountll" = xyes +then : -$as_echo "#define GECODE_HAS_BUILTIN_POPCOUNTLL /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_BUILTIN_POPCOUNTLL /**/" >>confdefs.h fi @@ -7862,35 +8881,36 @@ fi DRIVER="driver" # Check whether --enable-gcc-visibility was given. -if test "${enable_gcc_visibility+set}" = set; then : +if test ${enable_gcc_visibility+y} +then : enableval=$enable_gcc_visibility; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gcc visibility attributes" >&5 -$as_echo_n "checking whether to use gcc visibility attributes... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use gcc visibility attributes" >&5 +printf %s "checking whether to use gcc visibility attributes... " >&6; } if test "${enable_gcc_visibility:-yes}" = "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; } if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5 -$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5 +printf %s "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; } if ${CXX} -fvisibility=hidden 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h +printf "%s\n" "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5 -$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5 +printf %s "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -7903,38 +8923,40 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h +printf "%s\n" "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7944,13 +8966,13 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 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 "${enable_debug:-no}" = "no" -a "${enable_gcov:-no}" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports forced inlining" >&5 -$as_echo_n "checking if compiler supports forced inlining... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports forced inlining" >&5 +printf %s "checking if compiler supports forced inlining... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7968,48 +8990,52 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu please, do fail #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +if ac_fn_cxx_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -$as_echo "#define forceinline inline" >>confdefs.h +printf "%s\n" "#define forceinline inline" >>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. */ inline __attribute__ ((__always_inline__)) void foo(void) {} int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +if ac_fn_cxx_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define forceinline inline __attribute__ ((__always_inline__))" >>confdefs.h - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +printf "%s\n" "#define forceinline inline __attribute__ ((__always_inline__))" >>confdefs.h -$as_echo "#define forceinline inline" >>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 forceinline inline" >>confdefs.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 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=${ac_gecode_save_CXXFLAGS} ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' @@ -8019,22 +9045,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5 -$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5 +printf %s "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } if ${CXX} ${ac_gecode_gcc_optimize_flag} 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5 -$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5 +printf %s "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -8047,34 +9073,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8082,8 +9110,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}" >&5 -$as_echo_n "checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}" >&5 +printf %s "checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -8096,34 +9124,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8133,22 +9163,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5 +printf %s "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; } if ${CXX} -fno-strict-aliasing 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5 +printf %s "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -8161,34 +9191,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8196,8 +9228,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-strict-aliasing" >&5 -$as_echo_n "checking whether ${CC} accepts -fno-strict-aliasing... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-strict-aliasing" >&5 +printf %s "checking whether ${CC} accepts -fno-strict-aliasing... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -8210,34 +9242,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8247,22 +9281,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-math-errno" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-math-errno... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-math-errno" >&5 +printf %s "checking whether ${CXX} accepts -fno-math-errno... " >&6; } if ${CXX} -fno-math-errno 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-math-errno" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-math-errno... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-math-errno" >&5 +printf %s "checking whether ${CXX} accepts -fno-math-errno... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -8275,34 +9309,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fno-math-errno${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8310,8 +9346,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-math-errno" >&5 -$as_echo_n "checking whether ${CC} accepts -fno-math-errno... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-math-errno" >&5 +printf %s "checking whether ${CC} accepts -fno-math-errno... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -8324,34 +9360,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fno-math-errno${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8361,22 +9399,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ffinite-math-only" >&5 -$as_echo_n "checking whether ${CXX} accepts -ffinite-math-only... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ffinite-math-only" >&5 +printf %s "checking whether ${CXX} accepts -ffinite-math-only... " >&6; } if ${CXX} -ffinite-math-only 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ffinite-math-only" >&5 -$as_echo_n "checking whether ${CXX} accepts -ffinite-math-only... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ffinite-math-only" >&5 +printf %s "checking whether ${CXX} accepts -ffinite-math-only... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -8389,34 +9427,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-ffinite-math-only${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8424,8 +9464,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -ffinite-math-only" >&5 -$as_echo_n "checking whether ${CC} accepts -ffinite-math-only... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -ffinite-math-only" >&5 +printf %s "checking whether ${CC} accepts -ffinite-math-only... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -8438,34 +9478,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-ffinite-math-only${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8475,22 +9517,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-rounding-math" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-rounding-math... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-rounding-math" >&5 +printf %s "checking whether ${CXX} accepts -fno-rounding-math... " >&6; } if ${CXX} -fno-rounding-math 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-rounding-math" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-rounding-math... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-rounding-math" >&5 +printf %s "checking whether ${CXX} accepts -fno-rounding-math... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -8503,34 +9545,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fno-rounding-math${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8538,8 +9582,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-rounding-math" >&5 -$as_echo_n "checking whether ${CC} accepts -fno-rounding-math... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-rounding-math" >&5 +printf %s "checking whether ${CC} accepts -fno-rounding-math... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -8552,34 +9596,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fno-rounding-math${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8589,22 +9635,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-signaling-nans" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-signaling-nans... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-signaling-nans" >&5 +printf %s "checking whether ${CXX} accepts -fno-signaling-nans... " >&6; } if ${CXX} -fno-signaling-nans 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-signaling-nans" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-signaling-nans... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-signaling-nans" >&5 +printf %s "checking whether ${CXX} accepts -fno-signaling-nans... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -8617,34 +9663,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fno-signaling-nans${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8652,8 +9700,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-signaling-nans" >&5 -$as_echo_n "checking whether ${CC} accepts -fno-signaling-nans... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-signaling-nans" >&5 +printf %s "checking whether ${CC} accepts -fno-signaling-nans... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -8666,34 +9714,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fno-signaling-nans${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8703,22 +9753,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fcx-limited-range" >&5 -$as_echo_n "checking whether ${CXX} accepts -fcx-limited-range... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fcx-limited-range" >&5 +printf %s "checking whether ${CXX} accepts -fcx-limited-range... " >&6; } if ${CXX} -fcx-limited-range 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fcx-limited-range" >&5 -$as_echo_n "checking whether ${CXX} accepts -fcx-limited-range... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fcx-limited-range" >&5 +printf %s "checking whether ${CXX} accepts -fcx-limited-range... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -8731,34 +9781,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fcx-limited-range${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8766,8 +9818,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fcx-limited-range" >&5 -$as_echo_n "checking whether ${CC} accepts -fcx-limited-range... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fcx-limited-range" >&5 +printf %s "checking whether ${CC} accepts -fcx-limited-range... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -8780,34 +9832,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fcx-limited-range${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8817,22 +9871,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mthreads" >&5 -$as_echo_n "checking whether ${CXX} accepts -mthreads... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mthreads" >&5 +printf %s "checking whether ${CXX} accepts -mthreads... " >&6; } if ${CXX} -mthreads 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mthreads" >&5 -$as_echo_n "checking whether ${CXX} accepts -mthreads... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -mthreads" >&5 +printf %s "checking whether ${CXX} accepts -mthreads... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -8845,34 +9899,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-mthreads${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8880,8 +9936,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mthreads" >&5 -$as_echo_n "checking whether ${CC} accepts -mthreads... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mthreads" >&5 +printf %s "checking whether ${CC} accepts -mthreads... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -8894,34 +9950,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-mthreads${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8932,26 +9990,26 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu else if test "${enable_debug:-no}" = "yes"; then -$as_echo "#define forceinline inline" >>confdefs.h +printf "%s\n" "#define forceinline inline" >>confdefs.h if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5 +printf %s "checking whether ${CXX} accepts -fno-inline-functions... " >&6; } if ${CXX} -fno-inline-functions 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5 +printf %s "checking whether ${CXX} accepts -fno-inline-functions... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -8964,34 +10022,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8999,8 +10059,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-inline-functions" >&5 -$as_echo_n "checking whether ${CC} accepts -fno-inline-functions... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-inline-functions" >&5 +printf %s "checking whether ${CC} accepts -fno-inline-functions... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -9013,34 +10073,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9050,22 +10112,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5 -$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5 +printf %s "checking whether ${CXX} accepts -fimplement-inlines... " >&6; } if ${CXX} -fimplement-inlines 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5 -$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5 +printf %s "checking whether ${CXX} accepts -fimplement-inlines... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -9078,34 +10140,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9113,8 +10177,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fimplement-inlines" >&5 -$as_echo_n "checking whether ${CC} accepts -fimplement-inlines... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fimplement-inlines" >&5 +printf %s "checking whether ${CC} accepts -fimplement-inlines... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -9127,34 +10191,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9166,22 +10232,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Qunused-arguments" >&5 -$as_echo_n "checking whether ${CXX} accepts -Qunused-arguments... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Qunused-arguments" >&5 +printf %s "checking whether ${CXX} accepts -Qunused-arguments... " >&6; } if ${CXX} -Qunused-arguments 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Qunused-arguments" >&5 -$as_echo_n "checking whether ${CXX} accepts -Qunused-arguments... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Qunused-arguments" >&5 +printf %s "checking whether ${CXX} accepts -Qunused-arguments... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -9194,34 +10260,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-Qunused-arguments${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9229,8 +10297,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Qunused-arguments" >&5 -$as_echo_n "checking whether ${CC} accepts -Qunused-arguments... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Qunused-arguments" >&5 +printf %s "checking whether ${CC} accepts -Qunused-arguments... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -9243,34 +10311,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-Qunused-arguments${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9283,14 +10353,14 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu intel) case $host_os in windows*) - $as_echo "#define forceinline __forceinline" >>confdefs.h + printf "%s\n" "#define forceinline __forceinline" >>confdefs.h CFLAGS="-nologo -bigobj${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-nologo -bigobj${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-D_CRT_SECURE_NO_DEPRECATE${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-EHsc${CXXFLAGS:+ }${CXXFLAGS}" -$as_echo "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h +printf "%s\n" "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h if test "${enable_debug:-no}" = "no"; then CFLAGS="${ac_gecode_cl_optimize_flag}${CFLAGS:+ }${CFLAGS}" @@ -9299,22 +10369,22 @@ $as_echo "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h CXXFLAGS="-MD -GS- -wd4355 -wd4068${CXXFLAGS:+ }${CXXFLAGS}" if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5 -$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5 +printf %s "checking whether ${CXX} accepts -arch:SSE2... " >&6; } if ${CXX} -arch:SSE2 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5 -$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5 +printf %s "checking whether ${CXX} accepts -arch:SSE2... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -9327,34 +10397,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9362,8 +10434,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -arch:SSE2" >&5 -$as_echo_n "checking whether ${CC} accepts -arch:SSE2... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -arch:SSE2" >&5 +printf %s "checking whether ${CC} accepts -arch:SSE2... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -9376,34 +10448,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9432,38 +10506,44 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # Extract the first word of "mt.exe", so it can be a program name with args. set dummy mt.exe; 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_MANIFEST+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$MANIFEST"; 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_MANIFEST+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$MANIFEST"; then ac_cv_prog_MANIFEST="$MANIFEST" # 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_MANIFEST="mt.exe" - $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 MANIFEST=$ac_cv_prog_MANIFEST if test -n "$MANIFEST"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST" >&5 -$as_echo "$MANIFEST" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST" >&5 +printf "%s\n" "$MANIFEST" >&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 @@ -9561,35 +10641,36 @@ fi ;; *) # Check whether --enable-gcc-visibility was given. -if test "${enable_gcc_visibility+set}" = set; then : +if test ${enable_gcc_visibility+y} +then : enableval=$enable_gcc_visibility; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gcc visibility attributes" >&5 -$as_echo_n "checking whether to use gcc visibility attributes... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use gcc visibility attributes" >&5 +printf %s "checking whether to use gcc visibility attributes... " >&6; } if test "${enable_gcc_visibility:-yes}" = "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; } if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5 -$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5 +printf %s "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; } if ${CXX} -fvisibility=hidden 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h +printf "%s\n" "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5 -$as_echo_n "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fvisibility=hidden" >&5 +printf %s "checking whether ${CXX} accepts -fvisibility=hidden... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -9602,38 +10683,40 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h +printf "%s\n" "#define GECODE_GCC_HAS_CLASS_VISIBILITY /**/" >>confdefs.h CFLAGS="-fvisibility=hidden${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-fvisibility=hidden${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9643,8 +10726,8 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 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 DLLPATH=-L. @@ -9767,22 +10850,22 @@ $as_echo "no" >&6; } esac if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5 -$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5 +printf %s "checking whether ${CXX} accepts -fPIC... " >&6; } if ${CXX} -fPIC 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5 -$as_echo_n "checking whether ${CXX} accepts -fPIC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fPIC" >&5 +printf %s "checking whether ${CXX} accepts -fPIC... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -9795,34 +10878,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fPIC${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9830,8 +10915,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fPIC" >&5 -$as_echo_n "checking whether ${CC} accepts -fPIC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fPIC" >&5 +printf %s "checking whether ${CC} accepts -fPIC... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -9844,34 +10929,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fPIC${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9881,22 +10968,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5 +printf %s "checking whether ${CXX} accepts -Wextra... " >&6; } if ${CXX} -Wextra 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wextra... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wextra" >&5 +printf %s "checking whether ${CXX} accepts -Wextra... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -9909,34 +10996,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-Wextra${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9944,8 +11033,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wextra" >&5 -$as_echo_n "checking whether ${CC} accepts -Wextra... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wextra" >&5 +printf %s "checking whether ${CC} accepts -Wextra... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -9958,34 +11047,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-Wextra${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9995,22 +11086,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5 +printf %s "checking whether ${CXX} accepts -Wall... " >&6; } if ${CXX} -Wall 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wall... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wall" >&5 +printf %s "checking whether ${CXX} accepts -Wall... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -10023,34 +11114,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-Wall${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10058,8 +11151,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wall" >&5 -$as_echo_n "checking whether ${CC} accepts -Wall... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wall" >&5 +printf %s "checking whether ${CC} accepts -Wall... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-Wall${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -10072,34 +11165,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-Wall${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10109,22 +11204,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5 +printf %s "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; } if ${CXX} -Wno-unknown-pragmas 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5 -$as_echo_n "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -Wno-unknown-pragmas" >&5 +printf %s "checking whether ${CXX} accepts -Wno-unknown-pragmas... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -10137,34 +11232,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-Wno-unknown-pragmas${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10172,8 +11269,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-unknown-pragmas" >&5 -$as_echo_n "checking whether ${CC} accepts -Wno-unknown-pragmas... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-unknown-pragmas" >&5 +printf %s "checking whether ${CC} accepts -Wno-unknown-pragmas... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -10186,34 +11283,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-Wno-unknown-pragmas${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10223,22 +11322,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5 -$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5 +printf %s "checking whether ${CXX} accepts -pipe... " >&6; } if ${CXX} -pipe 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5 -$as_echo_n "checking whether ${CXX} accepts -pipe... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -pipe" >&5 +printf %s "checking whether ${CXX} accepts -pipe... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -10251,34 +11350,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-pipe${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10286,8 +11387,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -pipe" >&5 -$as_echo_n "checking whether ${CC} accepts -pipe... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -pipe" >&5 +printf %s "checking whether ${CC} accepts -pipe... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-pipe${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -10300,34 +11401,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-pipe${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10337,22 +11440,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++17" >&5 -$as_echo_n "checking whether ${CXX} accepts -std=c++17... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++17" >&5 +printf %s "checking whether ${CXX} accepts -std=c++17... " >&6; } if ${CXX} -std=c++17 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-std=c++17${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-std=c++17${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++17" >&5 -$as_echo_n "checking whether ${CXX} accepts -std=c++17... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -std=c++17" >&5 +printf %s "checking whether ${CXX} accepts -std=c++17... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-std=c++17${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -10365,34 +11468,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-std=c++17${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10400,8 +11505,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -std=c++17" >&5 -$as_echo_n "checking whether ${CC} accepts -std=c++17... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -std=c++17" >&5 +printf %s "checking whether ${CC} accepts -std=c++17... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-std=c++17${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -10414,34 +11519,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-std=c++17${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10451,29 +11558,29 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5 -$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5 +printf %s "checking whether ${CXX} accepts -ggdb... " >&6; } if ${CXX} -ggdb 2>&1 | grep "ignoring unknown option" -q; 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 test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -10486,34 +11593,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10521,8 +11630,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 -$as_echo_n "checking whether ${CC} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 +printf %s "checking whether ${CC} accepts -g... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -10535,34 +11644,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10571,15 +11682,15 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi 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; } CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5 -$as_echo_n "checking whether ${CXX} accepts -ggdb... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -ggdb" >&5 +printf %s "checking whether ${CXX} accepts -ggdb... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -10592,36 +11703,37 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -10634,34 +11746,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10669,8 +11783,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 -$as_echo_n "checking whether ${CC} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 +printf %s "checking whether ${CC} accepts -g... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -10683,34 +11797,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10720,35 +11836,35 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi else CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CFLAGS="-ggdb${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-ggdb${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } if ${CXX} -g 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 -$as_echo_n "checking whether ${CXX} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -g" >&5 +printf %s "checking whether ${CXX} accepts -g... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -10761,34 +11877,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-g${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10796,8 +11914,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 -$as_echo_n "checking whether ${CC} accepts -g... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -g" >&5 +printf %s "checking whether ${CC} accepts -g... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-g${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -10810,43 +11928,46 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-g${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 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' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - fi + fi ;; +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_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10856,16 +11977,18 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_fn_cxx_check_func "$LINENO" "__builtin_ffsll" "ac_cv_func___builtin_ffsll" -if test "x$ac_cv_func___builtin_ffsll" = xyes; then : +if test "x$ac_cv_func___builtin_ffsll" = xyes +then : -$as_echo "#define GECODE_HAS_BUILTIN_FFSLL /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_BUILTIN_FFSLL /**/" >>confdefs.h fi ac_fn_cxx_check_func "$LINENO" "__builtin_popcountll" "ac_cv_func___builtin_popcountll" -if test "x$ac_cv_func___builtin_popcountll" = xyes; then : +if test "x$ac_cv_func___builtin_popcountll" = xyes +then : -$as_echo "#define GECODE_HAS_BUILTIN_POPCOUNTLL /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_BUILTIN_POPCOUNTLL /**/" >>confdefs.h fi @@ -10940,8 +12063,8 @@ fi if test "${enable_debug:-no}" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports forced inlining" >&5 -$as_echo_n "checking if compiler supports forced inlining... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports forced inlining" >&5 +printf %s "checking if compiler supports forced inlining... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10959,48 +12082,52 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu please, do fail #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +if ac_fn_cxx_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } -$as_echo "#define forceinline inline" >>confdefs.h +printf "%s\n" "#define forceinline inline" >>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. */ inline __attribute__ ((__always_inline__)) void foo(void) {} int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +if ac_fn_cxx_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define forceinline inline __attribute__ ((__always_inline__))" >>confdefs.h - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +printf "%s\n" "#define forceinline inline __attribute__ ((__always_inline__))" >>confdefs.h -$as_echo "#define forceinline inline" >>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 forceinline inline" >>confdefs.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 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=${ac_gecode_save_CXXFLAGS} ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' @@ -11010,22 +12137,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5 -$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5 +printf %s "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } if ${CXX} ${ac_gecode_gcc_optimize_flag} 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5 -$as_echo_n "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}" >&5 +printf %s "checking whether ${CXX} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -11038,34 +12165,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="${ac_gecode_gcc_optimize_flag}${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -11073,8 +12202,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}" >&5 -$as_echo_n "checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}" >&5 +printf %s "checking whether ${CC} accepts ${ac_gecode_gcc_optimize_flag}... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -11087,34 +12216,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="${ac_gecode_gcc_optimize_flag}${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -11124,22 +12255,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5 +printf %s "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; } if ${CXX} -fno-strict-aliasing 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-strict-aliasing" >&5 +printf %s "checking whether ${CXX} accepts -fno-strict-aliasing... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -11152,34 +12283,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fno-strict-aliasing${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -11187,8 +12320,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-strict-aliasing" >&5 -$as_echo_n "checking whether ${CC} accepts -fno-strict-aliasing... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-strict-aliasing" >&5 +printf %s "checking whether ${CC} accepts -fno-strict-aliasing... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -11201,34 +12334,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fno-strict-aliasing${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -11238,26 +12373,26 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi else -$as_echo "#define forceinline inline" >>confdefs.h +printf "%s\n" "#define forceinline inline" >>confdefs.h if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5 +printf %s "checking whether ${CXX} accepts -fno-inline-functions... " >&6; } if ${CXX} -fno-inline-functions 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5 -$as_echo_n "checking whether ${CXX} accepts -fno-inline-functions... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fno-inline-functions" >&5 +printf %s "checking whether ${CXX} accepts -fno-inline-functions... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -11270,34 +12405,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fno-inline-functions${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -11305,8 +12442,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-inline-functions" >&5 -$as_echo_n "checking whether ${CC} accepts -fno-inline-functions... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-inline-functions" >&5 +printf %s "checking whether ${CC} accepts -fno-inline-functions... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -11319,34 +12456,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fno-inline-functions${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -11356,22 +12495,22 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5 -$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5 +printf %s "checking whether ${CXX} accepts -fimplement-inlines... " >&6; } if ${CXX} -fimplement-inlines 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5 -$as_echo_n "checking whether ${CXX} accepts -fimplement-inlines... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fimplement-inlines" >&5 +printf %s "checking whether ${CXX} accepts -fimplement-inlines... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -11384,34 +12523,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-fimplement-inlines${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -11419,8 +12560,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fimplement-inlines" >&5 -$as_echo_n "checking whether ${CC} accepts -fimplement-inlines... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fimplement-inlines" >&5 +printf %s "checking whether ${CC} accepts -fimplement-inlines... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -11433,34 +12574,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-fimplement-inlines${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -11473,14 +12616,14 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu esac ;; microsoft) - $as_echo "#define forceinline __forceinline" >>confdefs.h + printf "%s\n" "#define forceinline __forceinline" >>confdefs.h CFLAGS="-nologo -bigobj${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-nologo -bigobj${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-D_CRT_SECURE_NO_DEPRECATE${CFLAGS:+ }${CFLAGS}" CXXFLAGS="-EHsc${CXXFLAGS:+ }${CXXFLAGS}" -$as_echo "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h +printf "%s\n" "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h if test "${enable_debug:-no}" = "no"; then CFLAGS="${ac_gecode_cl_optimize_flag}${CFLAGS:+ }${CFLAGS}" @@ -11489,22 +12632,22 @@ $as_echo "#define GECODE_MEMORY_ALIGNMENT sizeof(void*)" >>confdefs.h CXXFLAGS="-MD -GS- -wd4355 -wd4068${CXXFLAGS:+ }${CXXFLAGS}" if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5 -$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5 +printf %s "checking whether ${CXX} accepts -arch:SSE2... " >&6; } if ${CXX} -arch:SSE2 2>&1 | grep "ignoring unknown option" -q; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}" CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5 -$as_echo_n "checking whether ${CXX} accepts -arch:SSE2... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -arch:SSE2" >&5 +printf %s "checking whether ${CXX} accepts -arch:SSE2... " >&6; } ac_gecode_save_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS} -Werror" ac_ext=cpp @@ -11517,34 +12660,36 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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 CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $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; } CXXFLAGS="-arch:SSE2${CXXFLAGS:+ }${CXXFLAGS}" fi -else - CXXFLAGS="${ac_gecode_save_CXXFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CXXFLAGS="${ac_gecode_save_CXXFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -11552,8 +12697,8 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -arch:SSE2" >&5 -$as_echo_n "checking whether ${CC} accepts -arch:SSE2... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -arch:SSE2" >&5 +printf %s "checking whether ${CC} accepts -arch:SSE2... " >&6; } ac_gecode_save_CFLAGS="${CFLAGS}" CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS} -Werror" ac_ext=c @@ -11566,34 +12711,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* 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 : if grep -q "unrecognized\|argument unused" conftest.err; then CFLAGS="${ac_gecode_save_CFLAGS}" - { $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 CFLAGS="${ac_gecode_save_CFLAGS}" - { $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; } CFLAGS="-arch:SSE2${CFLAGS:+ }${CFLAGS}" fi -else - CFLAGS="${ac_gecode_save_CFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - : +else case e in #( + e) CFLAGS="${ac_gecode_save_CFLAGS}" + { 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 ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -11622,38 +12769,44 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # Extract the first word of "mt.exe", so it can be a program name with args. set dummy mt.exe; 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_MANIFEST+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$MANIFEST"; 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_MANIFEST+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$MANIFEST"; then ac_cv_prog_MANIFEST="$MANIFEST" # 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_MANIFEST="mt.exe" - $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 MANIFEST=$ac_cv_prog_MANIFEST if test -n "$MANIFEST"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST" >&5 -$as_echo "$MANIFEST" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST" >&5 +printf "%s\n" "$MANIFEST" >&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 @@ -11756,176 +12909,116 @@ esac # Check whether --enable-doc-dot was given. -if test "${enable_doc_dot+set}" = set; then : +if test ${enable_doc_dot+y} +then : enableval=$enable_doc_dot; fi # Extract the first word of "dot", so it can be a program name with args. set dummy dot; 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_DOT+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DOT"; 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_DOT+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$DOT"; then ac_cv_prog_DOT="$DOT" # 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_DOT="dot" - $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 DOT=$ac_cv_prog_DOT if test -n "$DOT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 -$as_echo "$DOT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 +printf "%s\n" "$DOT" >&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 to enable graphs in the documentation" >&5 -$as_echo_n "checking whether to enable graphs in the documentation... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable graphs in the documentation" >&5 +printf %s "checking whether to enable graphs in the documentation... " >&6; } if test "${enable_doc_dot:-yes}" = "yes"; then if test x$DOT = x; then if test x"${enable_doc_dot}" = x; 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; } GECODE_DOXYGEN_DOT=NO else as_fn_error $? "you need the dot tool from graphviz to generate graphs in the documentation" "$LINENO" 5 fi 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; } GECODE_DOXYGEN_DOT=YES 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; } GECODE_DOXYGEN_DOT=NO fi # Check whether --enable-doc-search was given. -if test "${enable_doc_search+set}" = set; then : +if test ${enable_doc_search+y} +then : enableval=$enable_doc_search; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the documentation search engine" >&5 -$as_echo_n "checking whether to enable the documentation search engine... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the documentation search engine" >&5 +printf %s "checking whether to enable the documentation search engine... " >&6; } if test "${enable_doc_search:-no}" = "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; } ENABLEDOCSEARCH="yes" 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; } ENABLEDOCSEARCH="no" fi # Check whether --enable-doc-tagfile was given. -if test "${enable_doc_tagfile+set}" = set; then : +if test ${enable_doc_tagfile+y} +then : enableval=$enable_doc_tagfile; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate a doxygen tagfile" >&5 -$as_echo_n "checking whether to generate a doxygen tagfile... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to generate a doxygen tagfile" >&5 +printf %s "checking whether to generate a doxygen tagfile... " >&6; } if test "${enable_doc_tagfile:-yes}" = "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; } GECODE_DOXYGEN_TAGFILE="doc/gecode-doc.tag" 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-doc-chm was given. -if test "${enable_doc_chm+set}" = set; then : - enableval=$enable_doc_chm; -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build compressed html documentation" >&5 -$as_echo_n "checking whether to build compressed html documentation... " >&6; } - case $host_os in - windows*) - if test "${enable_doc_chm:-yes}" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ENABLEDOCCHM="yes" - - ENABLEDOCSEARCH="no" - - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ENABLEDOCCHM="no" - - fi - ;; - *) - if test "${enable_doc_chm:-no}" = "yes"; then - as_fn_error $? "building chms is only supported on Windows." "$LINENO" 5 - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ENABLEDOCCHM="no" - - fi - ;; - esac - # Check whether --enable-doc-docset was given. -if test "${enable_doc_docset+set}" = set; then : - enableval=$enable_doc_docset; -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build docset documentation for XCode" >&5 -$as_echo_n "checking whether to build docset documentation for XCode... " >&6; } - case $host_os in - darwin*) - if test "${enable_doc_docset:-no}" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ENABLEDOCDOCSET="yes" - - ENABLEDOCSEARCH="no" - - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ENABLEDOCDOCSET="no" - - fi - ;; - *) - if test "${enable_doc_docset:-no}" = "yes"; then - as_fn_error $? "building docsets is only supported on Mac OS X." "$LINENO" 5 - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ENABLEDOCDOCSET="no" - - fi - ;; - esac - @@ -11933,7 +13026,8 @@ $as_echo "no" >&6; } # Check whether --with-vis was given. -if test "${with_vis+set}" = set; then : +if test ${with_vis+y} +then : withval=$with_vis; fi @@ -11944,23 +13038,24 @@ fi # Check whether --enable-float-vars was given. -if test "${enable_float_vars+set}" = set; then : +if test ${enable_float_vars+y} +then : enableval=$enable_float_vars; fi ac_gecode_vis="\$(top_srcdir)/gecode/float/var-imp/float.vis${ac_gecode_vis:+ }${ac_gecode_vis}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the float variables library" >&5 -$as_echo_n "checking whether to build the float variables library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the float variables library" >&5 +printf %s "checking whether to build the float variables library... " >&6; } if test "${enable_float_vars:-yes}" = "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; } enable_float_vars="yes"; enable_int_vars="yes"; LINKFLOAT=${LINKLIBDIR}${LINKPREFIX}${FLOAT}${DLL_ARCH}${LINKSUFFIX} -$as_echo "#define GECODE_HAS_FLOAT_VARS /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_FLOAT_VARS /**/" >>confdefs.h else enable_float_vars="no"; @@ -11968,8 +13063,8 @@ $as_echo "#define GECODE_HAS_FLOAT_VARS /**/" >>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 enable_float_vars=${enable_float_vars} @@ -11977,23 +13072,24 @@ $as_echo "no" >&6; } # Check whether --enable-set-vars was given. -if test "${enable_set_vars+set}" = set; then : +if test ${enable_set_vars+y} +then : enableval=$enable_set_vars; fi ac_gecode_vis="\$(top_srcdir)/gecode/set/var-imp/set.vis${ac_gecode_vis:+ }${ac_gecode_vis}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the set variables library" >&5 -$as_echo_n "checking whether to build the set variables library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the set variables library" >&5 +printf %s "checking whether to build the set variables library... " >&6; } if test "${enable_set_vars:-yes}" = "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; } enable_set_vars="yes"; enable_int_vars="yes"; LINKSET=${LINKLIBDIR}${LINKPREFIX}${SET}${DLL_ARCH}${LINKSUFFIX} -$as_echo "#define GECODE_HAS_SET_VARS /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_SET_VARS /**/" >>confdefs.h else enable_set_vars="no"; @@ -12001,8 +13097,8 @@ $as_echo "#define GECODE_HAS_SET_VARS /**/" >>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 enable_set_vars=${enable_set_vars} @@ -12010,31 +13106,32 @@ $as_echo "no" >&6; } # Check whether --enable-int-vars was given. -if test "${enable_int_vars+set}" = set; then : +if test ${enable_int_vars+y} +then : enableval=$enable_int_vars; fi ac_gecode_vis="\$(top_srcdir)/gecode/int/var-imp/int.vis \$(top_srcdir)/gecode/int/var-imp/bool.vis${ac_gecode_vis:+ }${ac_gecode_vis}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the int variables library" >&5 -$as_echo_n "checking whether to build the int variables library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the int variables library" >&5 +printf %s "checking whether to build the int variables library... " >&6; } if test "${enable_int_vars:-yes}" = "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; } enable_int_vars="yes"; LINKINT=${LINKLIBDIR}${LINKPREFIX}${INT}${DLL_ARCH}${LINKSUFFIX} -$as_echo "#define GECODE_HAS_INT_VARS /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_INT_VARS /**/" >>confdefs.h else enable_int_vars="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; } fi enable_int_vars=${enable_int_vars} @@ -12043,19 +13140,21 @@ $as_echo "no" >&6; } # Check whether --enable-mpfr was given. -if test "${enable_mpfr+set}" = set; then : +if test ${enable_mpfr+y} +then : enableval=$enable_mpfr; fi if test "${enable_float_vars:-yes}" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with MPFR support" >&5 -$as_echo_n "checking whether to build with MPFR support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with MPFR support" >&5 +printf %s "checking whether to build with MPFR support... " >&6; } if test "${enable_mpfr:-yes}" = "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; } # Check whether --with-gmp-include was given. -if test "${with_gmp_include+set}" = set; then : +if test ${with_gmp_include+y} +then : withval=$with_gmp_include; fi @@ -12066,7 +13165,8 @@ fi # Check whether --with-gmp-lib was given. -if test "${with_gmp_lib+set}" = set; then : +if test ${with_gmp_lib+y} +then : withval=$with_gmp_lib; fi @@ -12094,196 +13194,204 @@ fi gnu) CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${GMP_CPPFLAGS}" LIBS="${LIBS}${LIBS:+ } ${GMP_LIB_PATH}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5 -$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; } -if ${ac_cv_lib_gmp___gmpz_init+:} 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_init in -lgmp" >&5 +printf %s "checking for __gmpz_init in -lgmp... " >&6; } +if test ${ac_cv_lib_gmp___gmpz_init+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. */ -#ifdef __cplusplus -extern "C" -#endif -char __gmpz_init (); +namespace conftest { + extern "C" int __gmpz_init (); +} int -main () +main (void) { -return __gmpz_init (); +return conftest::__gmpz_init (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_lib_gmp___gmpz_init=yes -else - ac_cv_lib_gmp___gmpz_init=no +else case e in #( + e) ac_cv_lib_gmp___gmpz_init=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_init" >&5 -$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; } -if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5 +printf "%s\n" "$ac_cv_lib_gmp___gmpz_init" >&6; } +if test "x$ac_cv_lib_gmp___gmpz_init" = xyes +then : GMP_LINK="${ac_gecode_tmp_gmp_lib} -lgmp" -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lmpir" >&5 -$as_echo_n "checking for __gmpz_init in -lmpir... " >&6; } -if ${ac_cv_lib_mpir___gmpz_init+:} 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 __gmpz_init in -lmpir" >&5 +printf %s "checking for __gmpz_init in -lmpir... " >&6; } +if test ${ac_cv_lib_mpir___gmpz_init+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lmpir $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. */ -#ifdef __cplusplus -extern "C" -#endif -char __gmpz_init (); +namespace conftest { + extern "C" int __gmpz_init (); +} int -main () +main (void) { -return __gmpz_init (); +return conftest::__gmpz_init (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_lib_mpir___gmpz_init=yes -else - ac_cv_lib_mpir___gmpz_init=no +else case e in #( + e) ac_cv_lib_mpir___gmpz_init=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_mpir___gmpz_init" >&5 -$as_echo "$ac_cv_lib_mpir___gmpz_init" >&6; } -if test "x$ac_cv_lib_mpir___gmpz_init" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpir___gmpz_init" >&5 +printf "%s\n" "$ac_cv_lib_mpir___gmpz_init" >&6; } +if test "x$ac_cv_lib_mpir___gmpz_init" = xyes +then : GMP_LINK="${ac_gecode_tmp_gmp_lib} -lmpir" -else - +else case e in #( + e) enable_mpfr=no; - + ;; +esac fi - + ;; +esac fi ;; microsoft) CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${GMP_CPPFLAGS}" LIBS="${LIBS}${LIBS:+ } /link ${GMP_LIB_PATH} gmp.lib" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5 -$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; } -if ${ac_cv_lib_gmp___gmpz_init+:} 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_init in -lgmp" >&5 +printf %s "checking for __gmpz_init in -lgmp... " >&6; } +if test ${ac_cv_lib_gmp___gmpz_init+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. */ -#ifdef __cplusplus -extern "C" -#endif -char __gmpz_init (); +namespace conftest { + extern "C" int __gmpz_init (); +} int -main () +main (void) { -return __gmpz_init (); +return conftest::__gmpz_init (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_lib_gmp___gmpz_init=yes -else - ac_cv_lib_gmp___gmpz_init=no +else case e in #( + e) ac_cv_lib_gmp___gmpz_init=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_init" >&5 -$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; } -if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5 +printf "%s\n" "$ac_cv_lib_gmp___gmpz_init" >&6; } +if test "x$ac_cv_lib_gmp___gmpz_init" = xyes +then : GMP_LINK="${ac_gecode_tmp_gmp_lib} gmp.lib" -else - +else case e in #( + e) LIBS="${ac_gecode_save_LIBS}" LIBS="${LIBS}${LIBS:+ } /link ${GMP_LIB_PATH} mpir.lib" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lmpir" >&5 -$as_echo_n "checking for __gmpz_init in -lmpir... " >&6; } -if ${ac_cv_lib_mpir___gmpz_init+:} 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_init in -lmpir" >&5 +printf %s "checking for __gmpz_init in -lmpir... " >&6; } +if test ${ac_cv_lib_mpir___gmpz_init+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lmpir $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. */ -#ifdef __cplusplus -extern "C" -#endif -char __gmpz_init (); +namespace conftest { + extern "C" int __gmpz_init (); +} int -main () +main (void) { -return __gmpz_init (); +return conftest::__gmpz_init (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_lib_mpir___gmpz_init=yes -else - ac_cv_lib_mpir___gmpz_init=no +else case e in #( + e) ac_cv_lib_mpir___gmpz_init=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_mpir___gmpz_init" >&5 -$as_echo "$ac_cv_lib_mpir___gmpz_init" >&6; } -if test "x$ac_cv_lib_mpir___gmpz_init" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpir___gmpz_init" >&5 +printf "%s\n" "$ac_cv_lib_mpir___gmpz_init" >&6; } +if test "x$ac_cv_lib_mpir___gmpz_init" = xyes +then : GMP_LINK="${ac_gecode_tmp_gmp_lib} mpir.lib" -else - +else case e in #( + e) enable_mpfr=no; - + ;; +esac fi - + ;; +esac fi ;; @@ -12293,7 +13401,8 @@ fi # Check whether --with-mpfr-include was given. -if test "${with_mpfr_include+set}" = set; then : +if test ${with_mpfr_include+y} +then : withval=$with_mpfr_include; fi @@ -12304,7 +13413,8 @@ fi # Check whether --with-mpfr-lib was given. -if test "${with_mpfr_lib+set}" = set; then : +if test ${with_mpfr_lib+y} +then : withval=$with_mpfr_lib; fi @@ -12340,124 +13450,124 @@ fi gnu) CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${MPFR_CPPFLAGS} ${GMP_CPPFLAGS}" LIBS="${LIBS}${LIBS:+ } ${MPFR_LIB_PATH} ${GMP_LIB_PATH} ${MPFR_LINK} ${GMP_LINK}" - for ac_header in gmp.h + for ac_header in gmp.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" -if test "x$ac_cv_header_gmp_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GMP_H 1 -_ACEOF - for ac_header in mpfr.h + ac_fn_cxx_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" +if test "x$ac_cv_header_gmp_h" = xyes +then : + printf "%s\n" "#define HAVE_GMP_H 1" >>confdefs.h + for ac_header in mpfr.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default" -if test "x$ac_cv_header_mpfr_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MPFR_H 1 -_ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_add in -lmpfr" >&5 -$as_echo_n "checking for mpfr_add in -lmpfr... " >&6; } -if ${ac_cv_lib_mpfr_mpfr_add+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS + ac_fn_cxx_check_header_compile "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default" +if test "x$ac_cv_header_mpfr_h" = xyes +then : + printf "%s\n" "#define HAVE_MPFR_H 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mpfr_add in -lmpfr" >&5 +printf %s "checking for mpfr_add in -lmpfr... " >&6; } +if test ${ac_cv_lib_mpfr_mpfr_add+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lmpfr $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. */ -#ifdef __cplusplus -extern "C" -#endif -char mpfr_add (); +namespace conftest { + extern "C" int mpfr_add (); +} int -main () +main (void) { -return mpfr_add (); +return conftest::mpfr_add (); ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_lib_mpfr_mpfr_add=yes -else - ac_cv_lib_mpfr_mpfr_add=no +else case e in #( + e) ac_cv_lib_mpfr_mpfr_add=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_mpfr_mpfr_add" >&5 -$as_echo "$ac_cv_lib_mpfr_mpfr_add" >&6; } -if test "x$ac_cv_lib_mpfr_mpfr_add" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_add" >&5 +printf "%s\n" "$ac_cv_lib_mpfr_mpfr_add" >&6; } +if test "x$ac_cv_lib_mpfr_mpfr_add" = xyes +then : -$as_echo "#define GECODE_HAS_MPFR /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_MPFR /**/" >>confdefs.h enable_mpfr=yes; -else - enable_mpfr=no; +else case e in #( + e) enable_mpfr=no; ;; +esac fi -else - enable_mpfr=no; +else case e in #( + e) enable_mpfr=no; ;; +esac fi done - -else - enable_mpfr=no; +else case e in #( + e) enable_mpfr=no; ;; +esac fi done - ;; microsoft) CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ } ${MPFR_CPPFLAGS} ${GMP_CPPFLAGS}" LIBS="${LIBS}${LIBS:+ } /link ${MPFR_LIB_PATH} ${GMP_LIB_PATH} ${MPFR_LINK} ${GMP_LINK}" - for ac_header in gmp.h + for ac_header in gmp.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" -if test "x$ac_cv_header_gmp_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GMP_H 1 -_ACEOF - for ac_header in mpfr.h + ac_fn_cxx_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" +if test "x$ac_cv_header_gmp_h" = xyes +then : + printf "%s\n" "#define HAVE_GMP_H 1" >>confdefs.h + for ac_header in mpfr.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default" -if test "x$ac_cv_header_mpfr_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MPFR_H 1 -_ACEOF + ac_fn_cxx_check_header_compile "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default" +if test "x$ac_cv_header_mpfr_h" = xyes +then : + printf "%s\n" "#define HAVE_MPFR_H 1" >>confdefs.h ac_fn_cxx_check_func "$LINENO" "mpfr_add" "ac_cv_func_mpfr_add" -if test "x$ac_cv_func_mpfr_add" = xyes; then : +if test "x$ac_cv_func_mpfr_add" = xyes +then : -$as_echo "#define GECODE_HAS_MPFR /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_MPFR /**/" >>confdefs.h enable_mpfr=yes; -else - enable_mpfr=no; +else case e in #( + e) enable_mpfr=no; ;; +esac fi -else - enable_mpfr=no; +else case e in #( + e) enable_mpfr=no; ;; +esac fi done - -else - enable_mpfr=no; +else case e in #( + e) enable_mpfr=no; ;; +esac fi done - ;; esac CPPFLAGS="${ac_gecode_save_CPPFLAGS}" LIBS="${ac_gecode_save_LIBS}" 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; } enable_mpfr=no; fi else @@ -12468,125 +13578,140 @@ $as_echo "no" >&6; } # Check whether --enable-qt was given. -if test "${enable_qt+set}" = set; then : +if test ${enable_qt+y} +then : enableval=$enable_qt; fi - for ac_prog in qmake-qt4 qmake + for ac_prog in qmake6 qmake-qt6 qmake-qt5 qmake5 qmake 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_QMAKE+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$QMAKE"; 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_QMAKE+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$QMAKE"; then ac_cv_prog_QMAKE="$QMAKE" # 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_QMAKE="$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 QMAKE=$ac_cv_prog_QMAKE if test -n "$QMAKE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 -$as_echo "$QMAKE" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5 +printf "%s\n" "$QMAKE" >&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 -n "$QMAKE" && break done - for ac_prog in moc-qt4 moc + for ac_prog in moc-qt6 moc6 moc-qt5 moc 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_MOC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$MOC"; 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_MOC+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$MOC"; then ac_cv_prog_MOC="$MOC" # 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_MOC="$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 MOC=$ac_cv_prog_MOC if test -n "$MOC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 -$as_echo "$MOC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 +printf "%s\n" "$MOC" >&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 -n "$MOC" && break done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Qt support" >&5 -$as_echo_n "checking whether to build with Qt support... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with Qt support" >&5 +printf %s "checking whether to build with Qt support... " >&6; } if test "${enable_qt:-yes}" = "yes"; then if test "${QMAKE}x" = "x" -o "${MOC}x" = "x"; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Qt support requested but qmake/moc were not found. Disabling Qt support." >&5 +printf "%s\n" "$as_me: WARNING: Qt support requested but qmake/moc were not found. Disabling Qt support." >&2;} + enable_qt=no else - ac_gecode_qt_version=`${QMAKE} -query QT_VERSION` - ac_gecode_qt_major=`echo ${ac_gecode_qt_version} | grep -o '^[0-9]*'` - ac_gecode_qt_minor=`echo ${ac_gecode_qt_version} | sed -e 's/^[0-9]*\\.//g' -e 's/\\.[0-9]*$//g'` + ac_gecode_qt_version=`${QMAKE} -query QT_VERSION 2>/dev/null` + ac_gecode_qt_major=`echo ${ac_gecode_qt_version} | sed -e 's/\\..*$//'` ac_gecode_qt_ok="yes" - if test ${ac_gecode_qt_major} -lt 4; then ac_gecode_qt_ok="no"; - else if test ${ac_gecode_qt_major} -eq 4 \ - -a ${ac_gecode_qt_minor} -lt 3; then ac_gecode_qt_ok="no"; - fi - fi + case ${ac_gecode_qt_major} in + ''|*[!0-9]*) ac_gecode_qt_ok="no" ;; + *) if test ${ac_gecode_qt_major} -lt 5; then ac_gecode_qt_ok="no"; fi ;; + esac if test "${ac_gecode_qt_ok}" != "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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Qt support requested but qmake did not report Qt 5/6. Disabling Qt support." >&5 +printf "%s\n" "$as_me: WARNING: Qt support requested but qmake did not report Qt 5/6. Disabling Qt support." >&2;} + enable_qt=no 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; } -$as_echo "#define GECODE_HAS_QT /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_QT /**/" >>confdefs.h ac_gecode_qt_tmpdir=`mktemp -d gistqt.XXXXXX` || exit 1 cd ${ac_gecode_qt_tmpdir} echo "CONFIG += release" > a.pro - if test ${ac_gecode_qt_major} -ge 5; then - echo "QT += widgets printsupport" >> a.pro - fi + echo "QT += core gui widgets printsupport" >> a.pro ${QMAKE} if test -d a.xcodeproj; then ac_gecode_qt_makefile=a.xcodeproj/qt_preprocess.mak @@ -12605,7 +13730,7 @@ $as_echo "#define GECODE_HAS_QT /**/" >>confdefs.h ac_gecode_qt_inc=`grep ${ac_gecode_qt_makefile} -e 'INCPATH.*=' | sed -e 's/.*=//' -e 's|\\\\|/|g' -e 's|-I\\("*\\)\\.\\./\\.\\.|-I\\1..|g'` ac_gecode_qt_libs=`grep ${ac_gecode_qt_makefile} -e 'LIBS.*=' | sed -e 's/.*=//' -e 's|\\\\|/|g' -e 's|-I\\("*\\)\\.\\./\\.\\.|-I\\1..|g'` if test -d a.xcodeproj -o -d a.pbproj; then - ac_gecode_qt_libs="-framework QtGui -framework QtCore" + ac_gecode_qt_libs="-framework QtWidgets -framework QtPrintSupport -framework QtGui -framework QtCore" fi cd .. rm -r ${ac_gecode_qt_tmpdir} @@ -12616,116 +13741,133 @@ $as_echo "#define GECODE_HAS_QT /**/" >>confdefs.h QTLIBS=${ac_gecode_qt_libs} enable_qt=yes - - enable_qt=yes; fi fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - enable_qt=no; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + enable_qt=no fi enable_qt=${enable_qt} # Check whether --enable-gist was given. -if test "${enable_gist+set}" = set; then : +if test ${enable_gist+y} +then : enableval=$enable_gist; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Gist" >&5 -$as_echo_n "checking whether to build Gist... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Gist" >&5 +printf %s "checking whether to build Gist... " >&6; } if test "${enable_gist:-yes}" = "yes" -a "${enable_qt}" = "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; } enable_gist=yes -$as_echo "#define GECODE_HAS_GIST /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_GIST /**/" >>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 # Check whether --enable-cbs was given. -if test "${enable_cbs+set}" = set; then : +if test ${enable_cbs+y} +then : enableval=$enable_cbs; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for cbs" >&5 -$as_echo_n "checking whether to build with support for cbs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with support for cbs" >&5 +printf %s "checking whether to build with support for cbs... " >&6; } if test "${enable_cbs:-no}" = "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; } enable_cbs=yes -$as_echo "#define GECODE_HAS_CBS /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_CBS /**/" >>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 # Check whether --enable-cpprofiler was given. -if test "${enable_cpprofiler+set}" = set; then : +if test ${enable_cpprofiler+y} +then : enableval=$enable_cpprofiler; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with support for CPProfiler" >&5 -$as_echo_n "checking whether to build with support for CPProfiler... " >&6; } - if test "${enable_cpprofiler:-no}" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with support for CPProfiler" >&5 +printf %s "checking whether to build with support for CPProfiler... " >&6; } + if test "${enable_cpprofiler:-yes}" = "yes"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + if test "${host_os}" = "windows"; then + if test "${ac_cv_cxx_compiler_vendor}" = "microsoft"; then + LINKCPPROFILER=ws2_32.lib + + else + LINKCPPROFILER=-lws2_32 + + fi + fi enable_cpprofiler=yes -$as_echo "#define GECODE_HAS_CPPROFILER /**/" >>confdefs.h +printf "%s\n" "#define GECODE_HAS_CPPROFILER /**/" >>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 -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}flex", so it can be a program name with args. set dummy ${ac_tool_prefix}flex; 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_HAVEFLEX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$HAVEFLEX"; 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_HAVEFLEX+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$HAVEFLEX"; then ac_cv_prog_HAVEFLEX="$HAVEFLEX" # 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_HAVEFLEX="${ac_tool_prefix}flex" - $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 HAVEFLEX=$ac_cv_prog_HAVEFLEX if test -n "$HAVEFLEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVEFLEX" >&5 -$as_echo "$HAVEFLEX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVEFLEX" >&5 +printf "%s\n" "$HAVEFLEX" >&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 @@ -12734,38 +13876,44 @@ if test -z "$ac_cv_prog_HAVEFLEX"; then ac_ct_HAVEFLEX=$HAVEFLEX # Extract the first word of "flex", so it can be a program name with args. set dummy flex; 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_HAVEFLEX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_HAVEFLEX"; 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_HAVEFLEX+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_HAVEFLEX"; then ac_cv_prog_ac_ct_HAVEFLEX="$ac_ct_HAVEFLEX" # 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_HAVEFLEX="flex" - $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_HAVEFLEX=$ac_cv_prog_ac_ct_HAVEFLEX if test -n "$ac_ct_HAVEFLEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVEFLEX" >&5 -$as_echo "$ac_ct_HAVEFLEX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVEFLEX" >&5 +printf "%s\n" "$ac_ct_HAVEFLEX" >&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_HAVEFLEX" = x; then @@ -12773,8 +13921,8 @@ fi 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 HAVEFLEX=$ac_ct_HAVEFLEX @@ -12783,11 +13931,11 @@ else HAVEFLEX="$ac_cv_prog_HAVEFLEX" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have at least flex 2.5.33" >&5 -$as_echo_n "checking whether we have at least flex 2.5.33... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have at least flex 2.5.33" >&5 +printf %s "checking whether we have at least flex 2.5.33... " >&6; } if test "${HAVEFLEX}x" = "x"; 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_FLEXBISON="no" else @@ -12795,43 +13943,49 @@ $as_echo "no" >&6; } flex --version | grep ' 2\.5\.4[0-9].*$' >/dev/null 2>&1 || flex --version | grep ' 2\.[6-9]\.[0-9]*$' >/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; } if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}bison", so it can be a program name with args. set dummy ${ac_tool_prefix}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_HAVEBISON+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$HAVEBISON"; 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_HAVEBISON+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$HAVEBISON"; then ac_cv_prog_HAVEBISON="$HAVEBISON" # 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_HAVEBISON="${ac_tool_prefix}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 HAVEBISON=$ac_cv_prog_HAVEBISON if test -n "$HAVEBISON"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVEBISON" >&5 -$as_echo "$HAVEBISON" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVEBISON" >&5 +printf "%s\n" "$HAVEBISON" >&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 @@ -12840,38 +13994,44 @@ if test -z "$ac_cv_prog_HAVEBISON"; then ac_ct_HAVEBISON=$HAVEBISON # 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_ac_ct_HAVEBISON+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_HAVEBISON"; 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_HAVEBISON+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_HAVEBISON"; then ac_cv_prog_ac_ct_HAVEBISON="$ac_ct_HAVEBISON" # 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_HAVEBISON="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 ac_ct_HAVEBISON=$ac_cv_prog_ac_ct_HAVEBISON if test -n "$ac_ct_HAVEBISON"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVEBISON" >&5 -$as_echo "$ac_ct_HAVEBISON" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVEBISON" >&5 +printf "%s\n" "$ac_ct_HAVEBISON" >&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_HAVEBISON" = x; then @@ -12879,8 +14039,8 @@ fi 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 HAVEBISON=$ac_ct_HAVEBISON @@ -12889,31 +14049,31 @@ else HAVEBISON="$ac_cv_prog_HAVEBISON" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have at least bison 2.3" >&5 -$as_echo_n "checking whether we have at least bison 2.3... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have at least bison 2.3" >&5 +printf %s "checking whether we have at least bison 2.3... " >&6; } if test "${HAVEBISON}x" = "x"; 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_FLEXBISON="no" else if bison --version | grep -e ' 2\.[3-9][0-9]*' >/dev/null 2>&1 || bison --version | grep -e ' 3\.*' >/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; } HAVE_FLEXBISON="yes" 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; } HAVE_FLEXBISON="no" fi 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; } HAVE_FLEXBISON="no" fi @@ -12921,47 +14081,113 @@ $as_echo "no" >&6; } - for ac_header in $ac_header_list -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_cxx_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 - + # 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"` +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 + ;; +esac fi - -done - - - - - - +{ 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;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ 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 +fi + ;; +esac +fi +{ 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;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -for ac_func in getpagesize -do : - ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" -if test "x$ac_cv_func_getpagesize" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETPAGESIZE 1 -_ACEOF -fi +ac_func= +for ac_item in $ac_func_cxx_list +do + if test $ac_func; then + ac_fn_cxx_check_func "$LINENO" $ac_func ac_cv_func_$ac_func + if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then + echo "#define $ac_item 1" >> confdefs.h + fi + ac_func= + else + ac_func=$ac_item + fi done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 -$as_echo_n "checking for working mmap... " >&6; } -if ${ac_cv_func_mmap_fixed_mapped+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_mmap_fixed_mapped=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +printf %s "checking for working mmap... " >&6; } +if test ${ac_cv_func_mmap_fixed_mapped+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "$cross_compiling" = yes +then : + case "$host_os" in # (( + # Guess yes on platforms where we know the result. + linux*) ac_cv_func_mmap_fixed_mapped=yes ;; + # If we don't know, assume the worst. + *) ac_cv_func_mmap_fixed_mapped=no ;; + esac +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default /* malloc might have been renamed as rpl_malloc. */ @@ -12982,25 +14208,21 @@ $ac_includes_default VM page cache was not coherent with the file system buffer cache like early versions of FreeBSD and possibly contemporary NetBSD.) For shared mappings, we should conversely verify that changes get - propagated back to all the places they're supposed to be. - - Grep wants private fixed already mapped. - The main things grep needs to know about mmap are: - * does it exist and is it safe to write into the mmap'd area - * how to use it (BSD variants) */ + propagated back to all the places they're supposed to be. */ #include #include -#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H -char *malloc (); -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE +#ifndef getpagesize +/* Prefer sysconf to the legacy getpagesize function, as getpagesize has + been removed from POSIX and is limited to page sizes that fit in 'int'. */ # ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ +# define getpagesize() sysconf (_SC_PAGESIZE) +# elif defined _SC_PAGE_SIZE +# define getpagesize() sysconf (_SC_PAGE_SIZE) +# elif HAVE_GETPAGESIZE +int getpagesize (); +# else # ifdef HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE @@ -13024,16 +14246,15 @@ char *malloc (); # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ +# endif +#endif int -main () +main (void) { char *data, *data2, *data3; const char *cdata2; - int i, pagesize; + long i, pagesize; int fd, fd2; pagesize = getpagesize (); @@ -13067,8 +14288,7 @@ main () if (*(data2 + i)) return 7; close (fd2); - if (munmap (data2, pagesize)) - return 8; + /* 'return 8;' not currently used. */ /* Next, try to mmap the file at a fixed address which already has something else allocated at it. If we can, also make sure that @@ -13097,24 +14317,30 @@ main () if (*(data + i) != *(data3 + i)) return 14; close (fd); + free (data); + free (data3); return 0; } _ACEOF -if ac_fn_cxx_try_run "$LINENO"; then : +if ac_fn_cxx_try_run "$LINENO" +then : ac_cv_func_mmap_fixed_mapped=yes -else - ac_cv_func_mmap_fixed_mapped=no +else case e in #( + e) ac_cv_func_mmap_fixed_mapped=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_mmap_fixed_mapped" >&5 -$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } if test $ac_cv_func_mmap_fixed_mapped = yes; then -$as_echo "#define HAVE_MMAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h fi rm -f conftest.mmap conftest.txt @@ -13122,169 +14348,146 @@ rm -f conftest.mmap conftest.txt # Check whether --enable-driver was given. -if test "${enable_driver+set}" = set; then : +if test ${enable_driver+y} +then : enableval=$enable_driver; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build driver" >&5 -$as_echo_n "checking whether to build driver... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build driver" >&5 +printf %s "checking whether to build driver... " >&6; } if test "${enable_driver:-yes}" = "yes"; then enable_driver="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; } enable_search="yes"; enable_int="yes"; else enable_driver="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; } fi enable_driver=${enable_driver} # Check whether --enable-flatzinc was given. -if test "${enable_flatzinc+set}" = set; then : +if test ${enable_flatzinc+y} +then : enableval=$enable_flatzinc; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build flatzinc" >&5 -$as_echo_n "checking whether to build flatzinc... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build flatzinc" >&5 +printf %s "checking whether to build flatzinc... " >&6; } if test "${enable_flatzinc:-yes}" = "yes"; then enable_flatzinc="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; } enable_search="yes"; enable_driver="yes"; enable_minimodel="yes"; else enable_flatzinc="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; } fi enable_flatzinc=${enable_flatzinc} # Check whether --enable-driver was given. -if test "${enable_driver+set}" = set; then : +if test ${enable_driver+y} +then : enableval=$enable_driver; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build driver" >&5 -$as_echo_n "checking whether to build driver... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build driver" >&5 +printf %s "checking whether to build driver... " >&6; } if test "${enable_driver:-yes}" = "yes"; then enable_driver="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; } enable_search="yes"; enable_int="yes"; else enable_driver="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; } fi enable_driver=${enable_driver} # Check whether --enable-examples was given. -if test "${enable_examples+set}" = set; then : +if test ${enable_examples+y} +then : enableval=$enable_examples; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build examples" >&5 -$as_echo_n "checking whether to build examples... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build examples" >&5 +printf %s "checking whether to build examples... " >&6; } if test "${enable_examples:-yes}" = "yes"; then enable_examples="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; } enable_search="yes"; enable_driver="yes"; enable_minimodel="yes"; else enable_examples="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; } fi enable_examples=${enable_examples} # Check whether --enable-minimodel was given. -if test "${enable_minimodel+set}" = set; then : +if test ${enable_minimodel+y} +then : enableval=$enable_minimodel; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build minimodel" >&5 -$as_echo_n "checking whether to build minimodel... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build minimodel" >&5 +printf %s "checking whether to build minimodel... " >&6; } if test "${enable_minimodel:-yes}" = "yes"; then enable_minimodel="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; } else enable_minimodel="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; } fi enable_minimodel=${enable_minimodel} # Check whether --enable-search was given. -if test "${enable_search+set}" = set; then : +if test ${enable_search+y} +then : enableval=$enable_search; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build search" >&5 -$as_echo_n "checking whether to build search... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build search" >&5 +printf %s "checking whether to build search... " >&6; } if test "${enable_search:-yes}" = "yes"; then enable_search="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; } else enable_search="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; } fi enable_search=${enable_search} -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; 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 \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$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. - - subdirs="$subdirs " @@ -13306,25 +14509,17 @@ VERSION_DASHES=`echo $PACKAGE_VERSION | sed -e s/\\\\./-/g` PACKAGE_VERSION_NUMBER=`echo $PACKAGE_VERSION | awk -F. '{print $1 * 100000 + $2 * 100 + $3}'` -cat >>confdefs.h <<_ACEOF -#define GECODE_VERSION "${PACKAGE_VERSION}" -_ACEOF +printf "%s\n" "#define GECODE_VERSION \"${PACKAGE_VERSION}\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define GECODE_LIBRARY_VERSION "${VERSION_DASHES}" -_ACEOF +printf "%s\n" "#define GECODE_LIBRARY_VERSION \"${VERSION_DASHES}\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define GECODE_VERSION_NUMBER ${PACKAGE_VERSION_NUMBER} -_ACEOF +printf "%s\n" "#define GECODE_VERSION_NUMBER ${PACKAGE_VERSION_NUMBER}" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define GECODE_FLATZINC_VERSION "${GECODE_FLATZINC_VERSION}" -_ACEOF +printf "%s\n" "#define GECODE_FLATZINC_VERSION \"${GECODE_FLATZINC_VERSION}\"" >>confdefs.h ac_gecode_library_architecture=-${VERSION_DASHES}${ac_gecode_library_architecture} @@ -13369,8 +14564,8 @@ cat >confcache <<\_ACEOF # 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 @@ -13386,8 +14581,8 @@ _ACEOF 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) ;; #( @@ -13400,14 +14595,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; (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 | @@ -13417,15 +14612,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; /^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 @@ -13439,8 +14634,8 @@ $as_echo "$as_me: updating cache $cache_file" >&6;} 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 @@ -13457,7 +14652,7 @@ U= 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" @@ -13473,8 +14668,8 @@ LTLIBOBJS=$ac_ltlibobjs 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 @@ -13497,63 +14692,65 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # 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 || @@ -13562,13 +14759,6 @@ if test "${PATH_SEPARATOR+set}" != set; then 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 #(( @@ -13577,43 +14767,27 @@ case $0 in #(( 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] @@ -13626,9 +14800,9 @@ as_fn_error () 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 @@ -13659,22 +14833,25 @@ as_fn_unset () { 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... @@ -13682,16 +14859,18 @@ fi # as_fn_append # 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 @@ -13718,7 +14897,7 @@ as_me=`$as_basename -- "$0" || $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 @@ -13740,6 +14919,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS 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*) @@ -13753,6 +14936,12 @@ case `echo -n x` in #((((( 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 @@ -13764,9 +14953,9 @@ if (echo >conf$$.file) 2>/dev/null; then 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 @@ -13794,7 +14983,7 @@ as_fn_mkdir_p () 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" @@ -13803,7 +14992,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 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 @@ -13847,10 +15036,12 @@ as_test_x='test -x' 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 @@ -13866,7 +15057,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by GECODE $as_me 6.3.0, which was -generated by GNU Autoconf 2.69. Invocation command line was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -13897,7 +15088,7 @@ _ACEOF 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. @@ -13924,14 +15115,16 @@ $config_headers Report bugs to ." _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="\\ GECODE config.status 6.3.0 -configured by $0, generated by GNU Autoconf 2.69, +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." @@ -13968,15 +15161,15 @@ do -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'" @@ -13984,23 +15177,23 @@ do --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 ;; @@ -14021,7 +15214,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 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 "\$@" @@ -14035,7 +15228,7 @@ exec 5>>config.log 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 @@ -14057,7 +15250,7 @@ do "doxygen.conf") CONFIG_FILES="$CONFIG_FILES doxygen.conf:doxygen/doxygen.conf.in" ;; "doxygen.hh") CONFIG_FILES="$CONFIG_FILES doxygen.hh:doxygen/doxygen.hh.in" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -14067,8 +15260,8 @@ done # 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_FILES+y} || CONFIG_FILES=$config_files + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree @@ -14076,7 +15269,7 @@ fi # 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= @@ -14100,7 +15293,7 @@ ac_tmp=$tmp # 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 @@ -14258,13 +15451,13 @@ fi # test -n "$CONFIG_FILES" # 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. @@ -14374,7 +15567,7 @@ do 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 @@ -14396,33 +15589,33 @@ do -) 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 @@ -14439,7 +15632,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 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 @@ -14463,9 +15656,9 @@ $as_echo X"$ac_file" | 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/ ;; @@ -14518,8 +15711,8 @@ ac_sed_dataroot=' 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=' @@ -14532,7 +15725,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 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 @@ -14561,9 +15754,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { 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" @@ -14579,20 +15772,20 @@ which seems to be undefined. Please make sure it is defined" >&2;} # 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 @@ -14678,7 +15871,7 @@ if test "$no_recursion" != yes; then ;; *) case $ac_arg in - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac @@ -14688,7 +15881,7 @@ if test "$no_recursion" != yes; then # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" @@ -14709,17 +15902,17 @@ if test "$no_recursion" != yes; then test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" - $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 - $as_echo "$ac_msg" >&6 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + printf "%s\n" "$ac_msg" >&6 as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. 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/ ;; @@ -14749,17 +15942,15 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" - # Check for guested configure; otherwise get Cygnus style 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 ac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then ac_sub_configure=$ac_srcdir/configure - elif test -f "$ac_srcdir/configure.in"; then - # This should be Cygnus configure. - ac_sub_configure=$ac_aux_dir/configure else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 -$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi @@ -14772,8 +15963,8 @@ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 -$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || @@ -14784,7 +15975,8 @@ $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cach done 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 --git a/configure.ac b/configure.ac index 09c73aa220..c8d2df803d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,3 @@ -dnl This file was generated by Makefile.contribs. -dnl Do not edit! Modifications will get lost! -dnl Edit configure.ac.in instead. - dnl dnl Main authors: dnl Guido Tack @@ -37,16 +33,17 @@ dnl OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION dnl WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. dnl dnl +m4_include([gecode-version.m4]) AC_REVISION([$Id$]) -AC_PREREQ(2.53) -AC_INIT(GECODE, 6.3.0, users@gecode.org) +AC_PREREQ([2.69]) +AC_INIT([GECODE], GECODE_M4_VERSION, [users@gecode.org]) AC_CONFIG_HEADERS([gecode/support/config.hpp]) AC_CONFIG_SRCDIR(gecode/kernel.hh) -ac_gecode_soversion=51 +ac_gecode_soversion=GECODE_M4_SOVERSION AC_SUBST(GECODE_SOVERSION, ${ac_gecode_soversion}) -ac_gecode_flatzincversion=1.6 +ac_gecode_flatzincversion=GECODE_M4_FLATZINC_VERSION AC_SUBST(GECODE_FLATZINC_VERSION, ${ac_gecode_flatzincversion}) # checks for programs @@ -90,9 +87,9 @@ AC_CHECK_PROG(PROG_SED, sed, [ok]) if test "${PROG_SED}x" = "x"; then AC_MSG_ERROR([In order to compile Gecode, you need the sed tool.]) fi -AC_CHECK_PROG(PROG_PERL, perl, [ok]) - if test "${PROG_PERL}x" = "x"; then - AC_MSG_ERROR([In order to compile Gecode, you need perl.]) +AC_CHECK_PROG(PROG_UV, uv, [uv]) + if test "${PROG_UV}x" = "x"; then + AC_MSG_ERROR([In order to compile Gecode, you need uv.]) fi dnl Check for environment to use when running programs in the Makefile @@ -159,9 +156,6 @@ AC_GECODE_CHECK_ARITH dnl checking for thread support AC_GECODE_THREADS -dnl checking for timer to use -AC_GECODE_TIMER - dnl checking for freelist sizes to use AC_GECODE_FREELIST_32_SIZE AC_GECODE_FREELIST_64_SIZE @@ -231,10 +225,6 @@ dnl find out what parts the user wants to build AC_GECODE_DOC_SWITCHES -dnl ------------------------------------------------------------------ -dnl Enabling of non-variable contribs -dnl @CONTRIBS@ - dnl ------------------------------------------------------------------ dnl Definition of variable types diff --git a/configure.ac.in b/configure.ac.in deleted file mode 100755 index 3420b4f699..0000000000 --- a/configure.ac.in +++ /dev/null @@ -1,368 +0,0 @@ -dnl -dnl Main authors: -dnl Guido Tack -dnl -dnl Contributing authors: -dnl Samuel Gagnon -dnl -dnl Copyright: -dnl Guido Tack, 2004, 2005 -dnl Samuel Gagnon, 2018 -dnl -dnl This file is part of Gecode, the generic constraint -dnl development environment: -dnl http://www.gecode.org -dnl -dnl Permission is hereby granted, free of charge, to any person obtaining -dnl a copy of this software and associated documentation files (the -dnl "Software"), to deal in the Software without restriction, including -dnl without limitation the rights to use, copy, modify, merge, publish, -dnl distribute, sublicense, and/or sell copies of the Software, and to -dnl permit persons to whom the Software is furnished to do so, subject to -dnl the following conditions: -dnl -dnl The above copyright notice and this permission notice shall be -dnl included in all copies or substantial portions of the Software. -dnl -dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -dnl EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -dnl NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -dnl LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -dnl OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -dnl WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -dnl -dnl - -AC_REVISION([$Id$]) -AC_PREREQ(2.53) -AC_INIT(GECODE, 6.3.0, users@gecode.org) -AC_CONFIG_HEADERS([gecode/support/config.hpp]) -AC_CONFIG_SRCDIR(gecode/kernel.hh) - -ac_gecode_soversion=51 -AC_SUBST(GECODE_SOVERSION, ${ac_gecode_soversion}) -ac_gecode_flatzincversion=1.6 -AC_SUBST(GECODE_FLATZINC_VERSION, ${ac_gecode_flatzincversion}) - -# checks for programs - -: ${CXXFLAGS=""} dnl we do not want autoconf's default -: ${CFLAGS=""} dnl we do not want autoconf's default -: ${DLLFLAGS=""} dnl we do not want autoconf's default -: ${GLDFLAGS=""} dnl we do not want autoconf's default - -dnl include Gecode specific macros -m4_include([gecode.m4]) - -dnl determine the operating system -AC_GECODE_GET_OS - -if test "${CXX}x" = "x" -a "${CC}x" = "x" -a "${host_os}" = "windows"; then - CC=cl - CXX=cl -fi - -AC_PROG_CXX -AC_PROG_CC -AC_LANG(C++) - -AC_PROG_RANLIB - -dnl check whether we have certain programs we need -AC_CHECK_PROG(PROG_DIFF, diff, [ok]) - if test "${PROG_DIFF}x" = "x"; then - AC_MSG_ERROR([In order to compile Gecode, you need the diff tool.]) - fi -AC_CHECK_PROG(PROG_TAR, tar, [ok]) - if test "${PROG_TAR}x" = "x"; then - AC_MSG_ERROR([In order to compile Gecode, you need the tar tool.]) - fi -AC_CHECK_PROG(PROG_MAKE, make, [ok]) - if test "${PROG_MAKE}x" = "x"; then - AC_MSG_ERROR([In order to compile Gecode, you need the make tool.]) - fi -AC_CHECK_PROG(PROG_SED, sed, [ok]) - if test "${PROG_SED}x" = "x"; then - AC_MSG_ERROR([In order to compile Gecode, you need the sed tool.]) - fi -AC_CHECK_PROG(PROG_PERL, perl, [ok]) - if test "${PROG_PERL}x" = "x"; then - AC_MSG_ERROR([In order to compile Gecode, you need perl.]) - fi - -dnl Check for environment to use when running programs in the Makefile -AC_GECODE_RUNENVIRONMENT - -dnl determine which compiler we are using -AC_CXX_COMPILER_VENDOR(ac_gecode_compiler_vendor) -case $ac_gecode_compiler_vendor in -gnu) - AC_CHECK_GCC_VERSION(4,2) - ;; -intel) - ;; -microsoft) - AC_CHECK_MSVC_VERSION(1800,2013) - ;; -*) - ;; -esac - -AC_GECODE_RESOURCE - -AC_LANG(C++) - -dnl check whether we want to build universal binaries on Mac OS X -AC_GECODE_UNIVERSAL - -dnl check whether the user wants a prefix or suffixes for the libraries -AC_GECODE_USER_SUFFIX - -dnl check whether we want to build a framework bundle on Mac OS X -AC_GECODE_FRAMEWORK - -dnl check whether we want to build static libraries -AC_GECODE_STATICLIBS - -dnl check whether we want to have assertions and debugging options -AC_GECODE_DEBUG - -dnl check whether we want to have peak heap size tracking -AC_GECODE_PEAKHEAP - -dnl check whether to optimize for code size -AC_GECODE_CODESIZE - -dnl check whether we want to have support for finding memory leaks -AC_GECODE_LEAK_DEBUG - -dnl check whether we want to use default memory allocator -AC_GECODE_ALLOCATOR - -dnl check whether we want audit code in our build -AC_GECODE_AUDIT - -dnl check whether we want to produce code suitable for profiling -AC_GECODE_PROFILE - -dnl check whether we want to produce code instrumented for gcov -AC_GECODE_GCOV - -dnl check platform specific behaviour of arithmetic -AC_GECODE_CHECK_ARITH - -dnl checking for thread support -AC_GECODE_THREADS - -dnl checking for timer to use -AC_GECODE_TIMER - -dnl checking for freelist sizes to use -AC_GECODE_FREELIST_32_SIZE -AC_GECODE_FREELIST_64_SIZE - -case $ac_gecode_compiler_vendor in -gnu) - dnl general compiler flags - AC_GECODE_UNIX_PATHS - AC_GECODE_GCC_GENERAL_SWITCHES - dnl check whether we want to use visibility attributes with gcc - AC_GECODE_GCC_VISIBILITY - - if test "${enable_debug:-no}" = "no" -a "${enable_gcov:-no}" = "no"; then - dnl compiler flags for an optimized build - AC_GECODE_GCC_OPTIMIZED_SWITCHES - dnl compiler flags for optimize float computings - dnl AC_GECODE_CHECK_COMPILERFLAG([-ffast-math]) - dnl ffast-math implies:-fno-math-errno -funsafe-math-optimizations -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fcx-limited-range - dnl but -funsafe-math-optimizations break IEEE float compatibility, so we have to avoid it - AC_GECODE_CHECK_COMPILERFLAG([-fno-math-errno]) - AC_GECODE_CHECK_COMPILERFLAG([-ffinite-math-only]) - AC_GECODE_CHECK_COMPILERFLAG([-fno-rounding-math]) - AC_GECODE_CHECK_COMPILERFLAG([-fno-signaling-nans]) - AC_GECODE_CHECK_COMPILERFLAG([-fcx-limited-range]) - AC_GECODE_CHECK_COMPILERFLAG([-mthreads]) - else - if test "${enable_debug:-no}" = "yes"; then - dnl compiler flags for a debug build - AC_GECODE_GCC_DEBUG_SWITCHES - fi - fi - AC_GECODE_CHECK_COMPILERFLAG([-Qunused-arguments]) - - ;; -intel) - dnl flags for creating dlls - case $host_os in - windows*) - AC_GECODE_MSVC_SWITCHES - ;; - *) - dnl check whether we want to use visibility attributes with gcc - AC_GECODE_GCC_VISIBILITY - dnl general compiler flags - AC_GECODE_UNIX_PATHS - AC_GECODE_GCC_GENERAL_SWITCHES - - if test "${enable_debug:-no}" = "no"; then - dnl compiler flags for an optimized build - AC_GECODE_GCC_OPTIMIZED_SWITCHES - else - dnl compiler flags for a debug build - AC_GECODE_GCC_DEBUG_SWITCHES - fi - ;; - esac - ;; -microsoft) - AC_GECODE_MSVC_SWITCHES - ;; -*) - AC_MSG_ERROR(Gecode currently only supports the GNU and Microsoft compilers.) - ;; -esac - -dnl find out what parts the user wants to build - -AC_GECODE_DOC_SWITCHES - -dnl ------------------------------------------------------------------ -dnl Enabling of non-variable contribs -dnl @CONTRIBS@ - -dnl ------------------------------------------------------------------ -dnl Definition of variable types - -dnl Include contributor's vtis -dnl @VTIS@ - -AC_GECODE_VIS - -AC_GECODE_VTI(float, - [float variable library (implies --enable-int-vars)], - yes, - [\$(top_srcdir)/gecode/float/var-imp/float.vis], - [enable_int_vars="yes"; - AC_SUBST(LINKFLOAT,[${LINKLIBDIR}${LINKPREFIX}${FLOAT}${DLL_ARCH}${LINKSUFFIX}]) - ], - [ - AC_SUBST(LINKFLOAT,[]) - ] - ) - -AC_GECODE_VTI(set, - [finite set library (implies --enable-int-vars)], - yes, - [\$(top_srcdir)/gecode/set/var-imp/set.vis], - [enable_int_vars="yes"; - AC_SUBST(LINKSET,[${LINKLIBDIR}${LINKPREFIX}${SET}${DLL_ARCH}${LINKSUFFIX}]) - ], - [ - AC_SUBST(LINKSET,[]) - ] - ) - -AC_GECODE_VTI(int, finite domain library, yes, - [\$(top_srcdir)/gecode/int/var-imp/int.vis \$(top_srcdir)/gecode/int/var-imp/bool.vis], - [ - AC_SUBST(LINKINT,[${LINKLIBDIR}${LINKPREFIX}${INT}${DLL_ARCH}${LINKSUFFIX}]) - ], - [ - AC_SUBST(LINKINT,[]) - ]) - -dnl End of definition of variable types -dnl ------------------------------------------------------------------ - -AC_GECODE_MPFR -AC_GECODE_QT -AC_GECODE_GIST -AC_GECODE_CBS -AC_GECODE_CPPROFILER -AC_GECODE_FLEXBISON -AC_FUNC_MMAP - -AC_GECODE_ENABLE_MODULE(driver, yes, - [build script commandline driver library], - [enable_search="yes"; - enable_int="yes"; - ]) - -AC_GECODE_ENABLE_MODULE(flatzinc, yes, - [build FlatZinc interpreter], - [enable_search="yes"; - enable_driver="yes"; - enable_minimodel="yes"; - ]) - -AC_GECODE_ENABLE_MODULE(driver, yes, - [build script commandline driver library], - [enable_search="yes"; - enable_int="yes"; - ]) - -AC_GECODE_ENABLE_MODULE(examples, yes, - [build examples for the enabled variable types], - [enable_search="yes"; - enable_driver="yes"; - enable_minimodel="yes"; - ]) - -AC_GECODE_ENABLE_MODULE(minimodel, yes, - [build modeling support library for the enabled variable types]) - -AC_GECODE_ENABLE_MODULE(search, yes, - [build search engines]) - -dnl Configure contributions -AC_CONFIG_SUBDIRS() -dnl @SUBDIRS@ - -AC_SUBST(VERSION, ${PACKAGE_VERSION}) -AC_SUBST(GECODE_VERSION, ${PACKAGE_VERSION}) -AC_SUBST(DLLFLAGS, ${DLLFLAGS}) -AC_SUBST(GLDFLAGS, ${GLDFLAGS}) -AC_SUBST(ALLVIS, ${ac_gecode_vis}) - -VERSION_DASHES=`echo $PACKAGE_VERSION | sed -e s/\\\\./-/g` - -PACKAGE_VERSION_NUMBER=`echo $PACKAGE_VERSION | awk -F. '{print $1 * 100000 + $2 * 100 + $3}'` - -AC_DEFINE_UNQUOTED(GECODE_VERSION, - "${PACKAGE_VERSION}", - [Gecode version]) -AC_DEFINE_UNQUOTED(GECODE_LIBRARY_VERSION, - "${VERSION_DASHES}", - [Gecode version]) -AC_DEFINE_UNQUOTED(GECODE_VERSION_NUMBER, - ${PACKAGE_VERSION_NUMBER}, - [Gecode version]) - -AC_DEFINE_UNQUOTED(GECODE_FLATZINC_VERSION, - "${GECODE_FLATZINC_VERSION}", - [Supported version of FlatZinc] -) - -ac_gecode_library_architecture=-${VERSION_DASHES}${ac_gecode_library_architecture} -if test "$ac_gecode_compiler_vendor" == "microsoft" \ - -o \( "$ac_gecode_compiler_vendor" == "intel" \ - -a "$host_os" == "windows" \) ; then - AC_SUBST(DLL_ARCH,[${ac_gecode_library_architecture}]) -else - AC_SUBST(DLL_ARCH,[""]) -fi - -AC_CONFIG_FILES([Makefile]) -if test "${host_os}" = "windows"; then - AC_SUBST(BATCHFILE, ".bat") - AC_CONFIG_FILES([tools/flatzinc/mzn-gecode.bat:tools/flatzinc/mzn-gecode.bat.in],[chmod +x tools/flatzinc/mzn-gecode.bat]) -else - AC_SUBST(BATCHFILE, "") - AC_CONFIG_FILES([tools/flatzinc/mzn-gecode:tools/flatzinc/mzn-gecode.in],[chmod +x tools/flatzinc/mzn-gecode]) -fi -AC_CONFIG_FILES([tools/flatzinc/gecode.msc:tools/flatzinc/gecode.msc.in]) -AC_CONFIG_FILES([tools/flatzinc/gecode-gist.msc:tools/flatzinc/gecode-gist.msc.in]) -AC_CONFIG_FILES([doxygen.conf:doxygen/doxygen.conf.in]) -AC_CONFIG_FILES([doxygen.hh:doxygen/doxygen.hh.in]) -AC_OUTPUT diff --git a/contribs/README b/contribs/README deleted file mode 100644 index 0a341c64ab..0000000000 --- a/contribs/README +++ /dev/null @@ -1,26 +0,0 @@ - GECODE CONTRIBUTIONS -====================================================================== - -1. External contributions -This directory contains external contributions to the Gecode -system. Please see our web pages for more information about the -contributors: - -http://www.gecode.org/contributions.html - -2. Installation -The contributions are distributed together with Gecode to ease -compilation and installation. They are not enabled by default. Please -refer to the installation instructions in the individual -subdirectories if you want to use these contributions. - -3. License issues -The external contributions may be distributed under a license that is -different from the Gecode license. Please see the individual LICENSE -files in the contributed subdirectories. - -4. Bugs -Please do not use the Gecode bugtracking system to report bugs in -external contributions. If you find bugs in contributed code, please -see the contributors' web pages for information on how to contact -them. diff --git a/contribs/qecode/AbstractWorker.hh b/contribs/qecode/AbstractWorker.hh deleted file mode 100755 index a3367df1cc..0000000000 --- a/contribs/qecode/AbstractWorker.hh +++ /dev/null @@ -1,42 +0,0 @@ - /**** , [ Worker.hh ], -Copyright (c) 2010 Universite de Caen Basse Normandie - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ - -#ifndef __QECODE_ABSTRACT_WORKER__ -#define __QECODE_ABSTRACT_WORKER__ -#include "qecode.hh" -#include -#include "gecode/support.hh" - -using namespace Gecode::Support; - -class QECODE_VTABLE_EXPORT AQWorker : public Runnable { - -public: - QECODE_EXPORT virtual void stopAndReturn()=0; - QECODE_EXPORT virtual void stopAndForget()=0; - QECODE_EXPORT virtual vector workPosition()=0; - QECODE_EXPORT virtual bool mustStop()=0; - QECODE_EXPORT virtual void wake()=0; -// QECODE_EXPORT Strategy solve(); -}; - -#endif diff --git a/contribs/qecode/Doxyfile b/contribs/qecode/Doxyfile deleted file mode 100644 index 8399f58a53..0000000000 --- a/contribs/qecode/Doxyfile +++ /dev/null @@ -1,263 +0,0 @@ -# Doxyfile 1.5.2 - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- -DOXYFILE_ENCODING = UTF-8 -PROJECT_NAME = qecode -PROJECT_NUMBER = 2.1.0 -OUTPUT_DIRECTORY = ./doc -CREATE_SUBDIRS = NO -OUTPUT_LANGUAGE = English -BRIEF_MEMBER_DESC = YES -REPEAT_BRIEF = YES -ABBREVIATE_BRIEF = "The $name class" \ - "The $name widget" \ - "The $name file" \ - is \ - provides \ - specifies \ - contains \ - represents \ - a \ - an \ - the -ALWAYS_DETAILED_SEC = NO -INLINE_INHERITED_MEMB = NO -FULL_PATH_NAMES = YES -STRIP_FROM_PATH = /Applications/ -STRIP_FROM_INC_PATH = -SHORT_NAMES = NO -JAVADOC_AUTOBRIEF = NO -MULTILINE_CPP_IS_BRIEF = NO -DETAILS_AT_TOP = NO -INHERIT_DOCS = YES -SEPARATE_MEMBER_PAGES = NO -TAB_SIZE = 9 -ALIASES = -OPTIMIZE_OUTPUT_FOR_C = NO -OPTIMIZE_OUTPUT_JAVA = NO -BUILTIN_STL_SUPPORT = NO -CPP_CLI_SUPPORT = NO -DISTRIBUTE_GROUP_DOC = NO -SUBGROUPING = YES -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- -EXTRACT_ALL = YES -EXTRACT_PRIVATE = YES -EXTRACT_STATIC = YES -EXTRACT_LOCAL_CLASSES = YES -EXTRACT_LOCAL_METHODS = NO -HIDE_UNDOC_MEMBERS = NO -HIDE_UNDOC_CLASSES = NO -HIDE_FRIEND_COMPOUNDS = NO -HIDE_IN_BODY_DOCS = NO -INTERNAL_DOCS = NO -CASE_SENSE_NAMES = NO -HIDE_SCOPE_NAMES = NO -SHOW_INCLUDE_FILES = YES -INLINE_INFO = YES -SORT_MEMBER_DOCS = YES -SORT_BRIEF_DOCS = NO -SORT_BY_SCOPE_NAME = NO -GENERATE_TODOLIST = YES -GENERATE_TESTLIST = YES -GENERATE_BUGLIST = YES -GENERATE_DEPRECATEDLIST= YES -ENABLED_SECTIONS = -MAX_INITIALIZER_LINES = 30 -SHOW_USED_FILES = YES -SHOW_DIRECTORIES = NO -FILE_VERSION_FILTER = -#--------------------------------------------------------------------------- -# configuration options related to warning and progress messages -#--------------------------------------------------------------------------- -QUIET = NO -WARNINGS = YES -WARN_IF_UNDOCUMENTED = YES -WARN_IF_DOC_ERROR = YES -WARN_NO_PARAMDOC = NO -WARN_FORMAT = "$file:$line: $text" -WARN_LOGFILE = -#--------------------------------------------------------------------------- -# configuration options related to the input files -#--------------------------------------------------------------------------- -INPUT = . -INPUT_ENCODING = UTF-8 -FILE_PATTERNS = *.c \ - *.cc \ - *.cxx \ - *.cpp \ - *.c++ \ - *.d \ - *.java \ - *.ii \ - *.ixx \ - *.ipp \ - *.i++ \ - *.inl \ - *.h \ - *.hh \ - *.hxx \ - *.hpp \ - *.h++ \ - *.idl \ - *.odl \ - *.cs \ - *.php \ - *.php3 \ - *.inc \ - *.m \ - *.mm \ - *.dox \ - *.py -RECURSIVE = YES -EXCLUDE = -EXCLUDE_SYMLINKS = NO -EXCLUDE_PATTERNS = -EXCLUDE_SYMBOLS = -EXAMPLE_PATH = -EXAMPLE_PATTERNS = * -EXAMPLE_RECURSIVE = NO -IMAGE_PATH = -INPUT_FILTER = -FILTER_PATTERNS = -FILTER_SOURCE_FILES = NO -#--------------------------------------------------------------------------- -# configuration options related to source browsing -#--------------------------------------------------------------------------- -SOURCE_BROWSER = YES -INLINE_SOURCES = NO -STRIP_CODE_COMMENTS = YES -REFERENCED_BY_RELATION = YES -REFERENCES_RELATION = YES -REFERENCES_LINK_SOURCE = YES -USE_HTAGS = NO -VERBATIM_HEADERS = YES -#--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- -ALPHABETICAL_INDEX = YES -COLS_IN_ALPHA_INDEX = 5 -IGNORE_PREFIX = -#--------------------------------------------------------------------------- -# configuration options related to the HTML output -#--------------------------------------------------------------------------- -GENERATE_HTML = YES -HTML_OUTPUT = html -HTML_FILE_EXTENSION = .html -HTML_HEADER = -HTML_FOOTER = -HTML_STYLESHEET = -HTML_ALIGN_MEMBERS = YES -GENERATE_HTMLHELP = NO -CHM_FILE = -HHC_LOCATION = -GENERATE_CHI = NO -BINARY_TOC = NO -TOC_EXPAND = NO -DISABLE_INDEX = NO -ENUM_VALUES_PER_LINE = 4 -GENERATE_TREEVIEW = NO -TREEVIEW_WIDTH = 250 -#--------------------------------------------------------------------------- -# configuration options related to the LaTeX output -#--------------------------------------------------------------------------- -GENERATE_LATEX = NO -LATEX_OUTPUT = latex -LATEX_CMD_NAME = latex -MAKEINDEX_CMD_NAME = makeindex -COMPACT_LATEX = NO -PAPER_TYPE = a4wide -EXTRA_PACKAGES = -LATEX_HEADER = -PDF_HYPERLINKS = NO -USE_PDFLATEX = NO -LATEX_BATCHMODE = NO -LATEX_HIDE_INDICES = NO -#--------------------------------------------------------------------------- -# configuration options related to the RTF output -#--------------------------------------------------------------------------- -GENERATE_RTF = NO -RTF_OUTPUT = rtf -COMPACT_RTF = NO -RTF_HYPERLINKS = NO -RTF_STYLESHEET_FILE = -RTF_EXTENSIONS_FILE = -#--------------------------------------------------------------------------- -# configuration options related to the man page output -#--------------------------------------------------------------------------- -GENERATE_MAN = NO -MAN_OUTPUT = man -MAN_EXTENSION = .3 -MAN_LINKS = NO -#--------------------------------------------------------------------------- -# configuration options related to the XML output -#--------------------------------------------------------------------------- -GENERATE_XML = NO -XML_OUTPUT = xml -XML_SCHEMA = -XML_DTD = -XML_PROGRAMLISTING = YES -#--------------------------------------------------------------------------- -# configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- -GENERATE_AUTOGEN_DEF = NO -#--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- -GENERATE_PERLMOD = NO -PERLMOD_LATEX = NO -PERLMOD_PRETTY = YES -PERLMOD_MAKEVAR_PREFIX = -#--------------------------------------------------------------------------- -# Configuration options related to the preprocessor -#--------------------------------------------------------------------------- -ENABLE_PREPROCESSING = YES -MACRO_EXPANSION = NO -EXPAND_ONLY_PREDEF = NO -SEARCH_INCLUDES = YES -INCLUDE_PATH = -INCLUDE_FILE_PATTERNS = -PREDEFINED = -EXPAND_AS_DEFINED = -SKIP_FUNCTION_MACROS = YES -#--------------------------------------------------------------------------- -# Configuration::additions related to external references -#--------------------------------------------------------------------------- -TAGFILES = -GENERATE_TAGFILE = -ALLEXTERNALS = NO -EXTERNAL_GROUPS = YES -PERL_PATH = /usr/bin/perl -#--------------------------------------------------------------------------- -# Configuration options related to the dot tool -#--------------------------------------------------------------------------- -CLASS_DIAGRAMS = NO -MSCGEN_PATH = /Applications/Doxygen.app/Contents/Resources/ -HIDE_UNDOC_RELATIONS = YES -HAVE_DOT = YES -CLASS_GRAPH = YES -COLLABORATION_GRAPH = YES -GROUP_GRAPHS = YES -UML_LOOK = NO -TEMPLATE_RELATIONS = NO -INCLUDE_GRAPH = YES -INCLUDED_BY_GRAPH = YES -CALL_GRAPH = NO -CALLER_GRAPH = NO -GRAPHICAL_HIERARCHY = YES -DIRECTORY_GRAPH = YES -DOT_IMAGE_FORMAT = png -DOT_PATH = /Applications/Doxygen.app/Contents/Resources/ -DOTFILE_DIRS = -DOT_GRAPH_MAX_NODES = 50 -DOT_TRANSPARENT = NO -DOT_MULTI_TARGETS = NO -GENERATE_LEGEND = YES -DOT_CLEANUP = YES -#--------------------------------------------------------------------------- -# Configuration::additions related to the search engine -#--------------------------------------------------------------------------- -SEARCHENGINE = NO diff --git a/contribs/qecode/Makefile.in.in b/contribs/qecode/Makefile.in.in deleted file mode 100644 index acd10dbb0e..0000000000 --- a/contribs/qecode/Makefile.in.in +++ /dev/null @@ -1,162 +0,0 @@ -# Qecode Makefile -# Largely inspired from the map makefile by Gregoire Dooms -# -# Jeremie Vautard, Universite d'Orleans - -# -gecode_top_srcdir = ../../$(top_srcdir) -gecode_top_builddir = ../.. - -qecode_top_srcdir = $(gecode_top_srcdir)/contribs/qecode -qecode_top_builddir = . - -KERNELDLL := $(KERNELDLL:%=../../%) -INTDLL := $(INTDLL:%=../../%) -MMDLL := $(MMDLL:%=../../%) -SEARCHDLL := $(SEARCHDLL:%=../../%) -SUPPORTDLL := $(SUPPORTDLL:%=../../%) -SUPPORTOBJ := $(SUPPORTOBJ:%=../../%) - - -ifeq "$(LIBPREFIX)" "$(LINKPREFIX)" -LINKSUPPORT:=../../$(LINKSUPPORT) -LINKKERNEL:=../../$(LINKKERNEL) -LINKINT:=../../$(LINKINT) -LINKMM:=../../$(LINKMM) -LINKSEARCH:=../../$(LINKSEARCH) -LINKALL := $(LINKMM) $(LINKINT) $(LINKSEARCH) $(LINKKERNEL) -else -EXTRALINKFLAGS := -L../.. -endif - -# -# QECODE COMPONENTS -# - -QECODESRC0 = QCOPPlus.cc myspace.cc OptVar.cc qsolver_qcop.cc qsolver_qcsp.cc Strategy.cc StrategyNode.cc QCSPPlusUnblockable.cc qsolver_unblockable.cc UnblockableViewValBranching.cc Work.cc Worker.cc WorkManager.cc qsolver_parallel.cc -QECODEHDR0 = - - -QECODESRC = $(QECODESRC0) -QECODEHDR = qecode.hh $(QECODEHDR0) -QECODEOBJ = $(QECODESRC:%.cc=%$(OBJSUFFIX)) -QECODEFLAGS = \ - -I$(gecode_top_srcdir) -I$(gecode_top_builddir) \ - -I$(qecode_top_srcdir) -I$(qecode_top_builddir) \ - -L$(gecode_top_builddir) -L$(qecode_top_builddir) -QECODEDLL = $(LIBPREFIX)@QECODE@$(DLLSUFFIX) -QECODESTATICLIB = $(LIBPREFIX)@QECODE@$(STATICLIBSUFFIX) -QECODELIB = $(LIBPREFIX)@QECODE@$(LIBSUFFIX) -LINKQECODE = $(LINKPREFIX)@QECODE@$(LINKSUFFIX) - -LINKALL := $(LINKALL) $(LINKQECODE) - -ALLLIB := $(ALLLIB) $(QECODELIB) - - -ifeq "@BUILDDLL@" "yes" -DLLTARGETS = $(QECODEDLL) -else -DLTARGETS= -endif - -ifeq "@BUILDSTATIC@" "yes" -STATICTARGETS = \ - $(QECODESTATICLIB) -else -STATICTARGETS= -endif - -LIBTARGETS= $(DLLTARGETS) $(STATICTARGETS) - - -all : $(LIBTARGETS) - -# -# Object targets -# - -%$(OBJSUFFIX): $(qecode_top_srcdir)/%.cc - $(CXX) $(CXXFLAGS) $(QECODEFLAGS) \ - @COMPILEOBJ@$@ @CXXIN@ $< -%$(SBJSUFFIX): $(qecode_top_srcdir)/%.cc - $(CXX) $(CXXFLAGS) $(QECODEFLAGS) \ - @COMPILESBJ@$@ @CXXIN@ $< - - - - -# -# DLL Targets -# - -ifeq "$(DLLSUFFIX)" "$(LIBSUFFIX)" -#linux -$(QECODEDLL): $(QECODEOBJ) $(KERNELDLL) $(INTDLL) $(SEARCHDLL) $(SUPPORTDLL) $(MMDLL) - $(CXX) $(DLLFLAGS) $(QECODEOBJ) $(QECODEFLAGS) \ - @DLLPATH@ $(LINKKERNEL) $(LINKSEARCH) $(LINKINT) $(LINKMM) $(LINKSUPPORT) \ - @LINKOUTPUT@$(QECODEDLL) - $(CREATELINK) $@ $(@:%$(DLLSUFFIX)=%$(SOLINKSUFFIX)) - $(CREATELINK) $@ $(@:%$(DLLSUFFIX)=%$(SOSUFFIX)) -else -#win -$(QECODEDLL) $(QECODELIB): $(QECODEOBJ) $(KERNELDLL) $(INTDLL) $(SEARCHDLL) $(SUPPORTDLL) $(MMDLL) - $(CXX) $(DLLFLAGS) $(QECODEOBJ) $(QECODEFLAGS)\ - @DLLPATH@ $(LINKKERNEL) $(LINKSEARCH) $(LINKINT) $(LINKMM) $(LINKSUPPORT) \ - @LINKOUTPUT@$(QECODEDLL) -endif - - -# -# Static libraries -# - -$(QECODESTATICLIB): $(QECODEOBJ) - $(AR) $(ARFLAGS) $@ $(QECODEOBJ) - $(RANLIB) $@ - -# -# EXE targets -# -# - - -#for linux: ? -CXXFLAGS := $(CXXFLAGS) $(QECODEFLAGS) - -# -# Autoconf -# - -$(qecode_top_srcdir)/configure: $(qecode_top_srcdir)/configure.ac - (cd $(qecode_top_srcdir) && autoconf) -config.status: $(qecode_top_srcdir)/configure - ../../config.status --recheck - ./config.status --recheck -# use the sustitutions from gecode to generate the Makefile.in -Makefile.in: $(qecode_top_srcdir)/Makefile.in.in ../../config.status - ../../config.status \ - --file Makefile.in:$(qecode_top_srcdir)/Makefile.in.in - -# use the sustitutions from configure to generate the Makefile -Makefile: Makefile.in ./config.status - ./config.status --file ./Makefile:./Makefile.in - - -.PHONY: clean veryclean distclean -clean: - $(RMF) $(QECODEOBJ) $(QECODESBJ) - -veryclean: clean - $(RMF) $(LIBTARGETS) - $(RMF) $(LIBTARGETS:%$(DLLSUFFIX)=%.exp) $(LIBTARGETS:%$(DLLSUFFIX)=%.lib) - $(RMF) $(LIBTARGETS:%$(DLLSUFFIX)=%.ilk) $(LIBTARGETS:%$(DLLSUFFIX)=%.pdb) - $(RMF) $(QECODEDLL) - -distclean: veryclean - $(RMF) config.log config.status - -.PHONY: doc -doc: $(QECODEHDR) $(QECODESRC) - mkdir -p doc/html - doxygen doxygen.conf diff --git a/contribs/qecode/OptVar.cc b/contribs/qecode/OptVar.cc deleted file mode 100644 index df4e1f9fcf..0000000000 --- a/contribs/qecode/OptVar.cc +++ /dev/null @@ -1,82 +0,0 @@ -/**** , [ OptVar.cc ], -Copyright (c) 2008 Universite d'Orleans - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ - -#include "OptVar.hh" - -ExistOptVar::ExistOptVar(int var,int scope) { - varId = var; - scopeId=scope; -} - -int ExistOptVar::getVal(Strategy s) { -// cout<<"getval on existoptvar "< scopeId) {cout<<"EOV "< values; values.clear(); - if (s.isFalse()) {cout<<"UOV Try to get opt value on FALSE"<eval(values); - if (s.isDummy()) { - for (int i=0;igetVal(s.getChild(i))); - } - return fct->eval(values); - } - - if (s.scope() == (scopeId-1)) { - for (int i=0;igetVal(s.getChild(i))); - } - return fct->eval(values); - } - - if (s.scope() < (scopeId-1) ) { - if (s.quantifier()) {cout<<"UOV universal scope too soon"< scope-1 -> too far away - cout<<"UOV try to get aggregate on a substrategy not containing required scope"< - -/** \brief Abstract class for an Aggregator -* -* An aggregator is defined as a function Multiset_of_int -> int. From an implementation -* point of view, this multiset is a vector of int. -*/ -class QECODE_VTABLE_EXPORT Aggregator { -public: - virtual int eval(vector values)=0; - virtual ~Aggregator() {} -}; - -/** \brief Sum aggregator -* -* This aggregator computes the sum of all elements of the multiset -*/ -class QECODE_VTABLE_EXPORT AggregatorSum : public Aggregator{ -public: - QECODE_EXPORT virtual int eval(vector values) { - int cpt=0; - for (int i=0;i values) { - int size=values.size(); - if (size == 0) return 0; - int cpt=0; - for (int i=0;invar = nv; - for (int i=0;iv[var] = new IntVar(*rules[i],min,max); - rules[i]->type_of_v[var] = VTYPE_INT; - } - goal->v[var] = new IntVar(*goal,min,max); - goal->type_of_v[var] = VTYPE_INT; - varInitialised[var]=true; - type_of_v[var]=VTYPE_INT; -} - - -void Qcop::QIntVar(int var,IntSet dom) { - if (varInitialised[var]) { - cout<<"Variable "<v[var] = new IntVar(*rules[i],dom); - rules[i]->type_of_v[var] = VTYPE_INT; - } - goal->v[var] = new IntVar(*goal,dom); - goal->type_of_v[var] = VTYPE_INT; - varInitialised[var]=true; - type_of_v[var]=VTYPE_INT; -} - - -void Qcop::QBoolVar(int var) { - if (varInitialised[var]) { - cout<<"Variable "<v[var] = new BoolVar(*rules[i],0,1); - rules[i]->type_of_v[var]=VTYPE_BOOL; - } - goal->v[var] = new BoolVar(*goal,0,1); - goal->type_of_v[var]=VTYPE_BOOL; - varInitialised[var]=true; - type_of_v[var]=VTYPE_BOOL; -} - -MySpace* Qcop::space() { - if (currentDeclareSpace(space()->v[n])); -} - - -BoolVar Qcop::bvar(int n) { - if (!varInitialised[n]) { - cout<<"Variable "<(space()->v[n])); -} - - -int Qcop::nextScope() { - if (currentDeclareSpace == -1) return -1; - currentDeclareSpace++; - if (currentDeclareSpace>nbSpaces) return -1; - return currentDeclareSpace; -} - -void Qcop::makeStructure() { - for (unsigned int i=0;inbSpaces;i++) { - if (rules[i]->status() == SS_FAILED) { - cout<<"MakeStructure : rule space "<status() == SS_FAILED) { - cout<<"MakeStructure : goal space is already failed."<getScope() < scope) {cout<<"aggregated variable out of aggregator scope"<getScope();i++) // Universelle entre aggregateur et variable aggrŽgŽe - if (Quantifiers[i]) - {cout<<"Universal scope between variable and aggregator"<getScope() < scope) {cout<<"optvar out of optimizing scope"<getScope();i++) { - if (Quantifiers[i]) // universelle entre variable et dŽcideur - { cout<<"universal scope between variable and optimizing scope"<nbSpaces) { - cout<<"I return NULL coz of bad scope value (<0)"<status() == SS_FAILED) { - cout<<"I return NULL coz goal is failed"<(goal->clone()); - } - if (rules[scope]->status() == SS_FAILED) { - cout<<"I return NULL coz scope "<(rules[scope]->clone())); -} - - -MySpace* Qcop::getGoal() { - if (goal->status() == SS_FAILED) return NULL; - return static_cast(goal->clone()); -} - - -int Qcop::getOptType(int scope) { - if (Quantifiers[scope]) {cout<<"Try to get OptType on universal scope"<(optim[scope].vars[0]); -} - -Qcop* Qcop::clone() { - bool* qt = new bool[nbSpaces]; - int* nvv = new int[nbSpaces]; - MySpace** zerulz = new MySpace*[nbSpaces]; - Opts* opop = new Opts[nbSpaces]; - int* nbvbs = new int[nbSpaces]; - for (unsigned int i=0;i < nbSpaces;i++) { - qt[i] = this->Quantifiers[i]; - nvv[i] = this->nvar[i]; - zerulz[i] = static_cast(this->rules[i]->clone(false)); - opop[i] = this->optim[i]; - nbvbs[i] = this->nbVarBySpace[i]; - } - - // void** v = new void*[this->n]; - VarType* typeofv = new VarType[n]; - int* wso = new int[n]; - for (unsigned int i=0;itype_of_v[i]; - wso[i] = this->whichSpaceOwns[i]; - } - - Qcop* ret = new Qcop(); - ret->nvar = nvv; - ret->n = this->n; - ret->nbSpaces = this->nbSpaces; - ret->type_of_v = typeofv; - ret->Quantifiers = qt; - ret->rules = zerulz; - ret->goal = static_cast(this->goal->clone(false)); - ret->optim = opop; - ret->nbVarBySpace = nbvbs; - ret->whichSpaceOwns = wso; - ret->varInitialised = this->varInitialised; - currentDeclareSpace = this->currentDeclareSpace; - -return ret; -} \ No newline at end of file diff --git a/contribs/qecode/QCOPPlus.hh b/contribs/qecode/QCOPPlus.hh deleted file mode 100755 index 882386e9d3..0000000000 --- a/contribs/qecode/QCOPPlus.hh +++ /dev/null @@ -1,166 +0,0 @@ -/**** , [ QCOPPlus.hh ], - Copyright (c) 2009 Universite d'Orleans - Jeremie Vautard - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - *************************************************************************/ - -#ifndef __QECODE_QCOP__ -#define __QECODE_QCOP__ - -#include "myspace.hh" -#include "vartype.hh" -#include "OptVar.hh" -#include - - -using namespace std; -using namespace Gecode; -class QECODE_VTABLE_EXPORT Qcop { -private: - struct Opts { - vector vars; // Several Optvars in universal scopes, one in existential ones - int opt_type; // Used in existential scopes : 0 for ANY, 1 for MIN, 2 for MAX. - }; - int* nvar; - int n; - int nbSpaces; -// void** v; - VarType* type_of_v; - - bool* Quantifiers; - MySpace** rules; - MySpace* goal; - Opts* optim; - int* nbVarBySpace; - int* whichSpaceOwns; - bool* varInitialised; - - int currentDeclareSpace; - Qcop() {} -public: - forceinline QECODE_EXPORT int nv() {return n;} - - /** \brief Default constructor for a restricted-quantified space - * - * This is the first step for building a QCSP+/QCOP+ problem. The prefix is defined here. - * @param ns The number of scopes in the prefix. - * @param quant Array of booleans which contains the quantifier of every scope (true for universal, false for existential). - * @param nv Array of integer which contains the number of variables by scope. - */ - QECODE_EXPORT Qcop(int ns, bool* quant,int* nv); - QECODE_EXPORT ~Qcop(); - - /** \brief Defines an integer variable in the quantified space - * - * Defines an integer variable in the quantifies space using a fully declared domain. - * @param var Number of the variable to be defined. - * @param dom The initial domain of the variable. - */ - QECODE_EXPORT void QIntVar(int var,int min,int max); - - /** \brief Defines an integer variable in the quantified space - * - * Defines an integer variable in the quantifies space using a fully declared domain. - * @param var Number of the variable to be defined. - * @param dom The initial domain of the variable. - */ - QECODE_EXPORT void QIntVar(int var,IntSet dom); - - /** \brief Defines a boolean variable in the quantified space - * - * Defines a boolean variable with a full initial domain in the quantified space. - * @param var Number of the variable to be defined. - */ - QECODE_EXPORT void QBoolVar(int var); - - /** \brief Returns the current declarating space - * - * Return the space we are currently declarating constraints in. nextScope() is used to set the nextspace as the current one. - */ - QECODE_EXPORT MySpace* space(); - - /** \brief Returns an integer variable from the space we are currently declaring - * - * Returns an integer variable from the cpace we are currently declaring. Will abort if the variable is not integer. - * @param n The number of the variable to return. - */ - QECODE_EXPORT IntVar var(int n); - - /** \brief Returns a boolean variable from the space we are currently declaring - * - * Returns a boolean variable from the space we are currently declaring. Will abort if the variable is not boolean. - * @param n The number of the variable to return. - */ - QECODE_EXPORT BoolVar bvar(int n); - - /** \brief Switch to the next space for constraint declaration - * - * Switches to the next space for constraint declaration. var, bvar and space methods will now refer to the next rule space (or to the goal space if the current space was the last rule one). - * Returns the new space number, or -1 if it was called while there was no next space to declare constraints in. - */ - QECODE_EXPORT int nextScope(); - - /** \brief Finalizes the object construction - * - * Finalizes the restricted-quantified space construction. Must be invoked once all the variable and all the constraints have been declared, and before the search is performed on this space. - * calling this method is not mandatory, although it is recommanded to besure that the problem have been well built. - * For the existential scopes on which an optimization condition have not been defined yet, this method will post a "Any" optimization condition (i.e. do not optimize). - */ - QECODE_EXPORT void makeStructure(); - - /** \brief returns an aggregate of the problem - * - * Creates an aggregate at a given universal scope. This aggregate is an optimization variable that an existential scope can use for optimizing. - * @param scope the scope where this aggregate will be defined. Must be an unversal scope - * @param opt The optimization variable we want to aggregate. There must not be any universal scope between an agregate and thisoptimization variable. - * @param agg The aggregator function that will be used for this aggregate. - */ - QECODE_EXPORT OptVar* getAggregate(int scope, OptVar* opt, Aggregator* agg); - - /** returns an existential optimization variable - * - * Creates an optimization variable that will have the value of an existential variable defined in the problem. - * @param var the number of the existential variable that must be considered - */ - QECODE_EXPORT OptVar* getExistential(int var); - - /** set an optimization condition on an existential scope - * - * set an optimization condition on a given existential scope of the problem. An optimizaiton condition is composed of an optimization variable (aggregate or existential variable), and of an - * optimization type. - * @param scope the scope on which the optimization condition is posted. Must be existential. - * @param optType the optimization type of the condision we post. 0 is for ANY, 1 is for MIN, 2 is for MAX. - * @param var the optimization variable to be minimized/maximized - */ - QECODE_EXPORT void optimize(int scope, int optType, OptVar* var); - // QECODE_EXPORT void print(); - - QECODE_EXPORT forceinline bool qt_of_var(int v) { return Quantifiers[whichSpaceOwns[v]];} ///< returns uantifier of variable 'v' - QECODE_EXPORT forceinline bool quantification(int scope) {return Quantifiers[scope];} ///< returns quantifier of scope 'scope' - QECODE_EXPORT int spaces(); ///< returns the number of scopes of the problem - QECODE_EXPORT forceinline int nbVarInScope(int scope) {return nbVarBySpace[scope];}///< returns the number of variables present in scope 'scope' - QECODE_EXPORT MySpace* getSpace(int scope);///< returns a copy of the Gecode::Space corresponding to the 'scope'-th restricted quantifier of the problem - QECODE_EXPORT MySpace* getGoal(); - QECODE_EXPORT int getOptType(int scope); ///< returns the optimization type of the 'scope'-th scope of the problem - QECODE_EXPORT OptVar* getOptVar(int scope);///< returns the optimization variable of the 'scope'-th scope of the problem - QECODE_EXPORT Qcop* clone(); ///< makes a copy of the quantified problem - QECODE_EXPORT forceinline int whoOwns(int var) {return whichSpaceOwns[var];} -}; - -#endif diff --git a/contribs/qecode/QCSPPlusUnblockable.cc b/contribs/qecode/QCSPPlusUnblockable.cc deleted file mode 100755 index 7e83c12e53..0000000000 --- a/contribs/qecode/QCSPPlusUnblockable.cc +++ /dev/null @@ -1,239 +0,0 @@ -/**** , [ QCSPPlusUnblockable.cc ], -Copyright (c) 2009 Universite d'Orleans - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ - -#include "QCSPPlusUnblockable.hh" - -QcspUnblockable::QcspUnblockable(int ns,bool* quant,int* nv) { - n=0; - for (int i=0;i[nbSpaces]; - bvars = new vector[nbSpaces]; -} - - -QcspUnblockable::~QcspUnblockable() { - delete arul; - delete goal; -} - -int QcspUnblockable::spaces() { - return nbSpaces; -} - -void QcspUnblockable::QIntVar(int var,int min,int max) { - if (varInitialised[var]) { - cout<<"Variable "<v[var] = new IntVar(*arul,dom); - arul->type_of_v[var] = VTYPE_INT; - goal->v[var] = new IntVar(*goal,dom); - goal->type_of_v[var] = VTYPE_INT; - varInitialised[var]=true; - type_of_v[var]=VTYPE_INT; -} - - -void QcspUnblockable::QBoolVar(int var) { - if (varInitialised[var]) { - cout<<"Variable "<v[var] = new BoolVar(*arul,0,1); - arul->type_of_v[var]=VTYPE_BOOL; - goal->v[var] = new BoolVar(*goal,0,1); - goal->type_of_v[var]=VTYPE_BOOL; - varInitialised[var]=true; - type_of_v[var]=VTYPE_BOOL; -} - -MySpace* QcspUnblockable::space() { - if (currentDeclareSpace(space()->v[n])); -} - -BoolVar QcspUnblockable::bvar(int n) { - if (!varInitialised[n]) { - cout<<"Variable "<(space()->v[n])); -} - -int QcspUnblockable::nextScope() { - if (currentDeclareSpace == -1) return -1; - currentDeclareSpace++; - if (currentDeclareSpace>nbSpaces) return -1; - return currentDeclareSpace; -} - -void QcspUnblockable::makeStructure() { - for (unsigned int i=0;inbSpaces) { - cout<<"I return NULL coz of bad scope value (<0)"<status() == SS_FAILED) { - cout<<"I return NULL coz goal is failed"<(goal->clone()); - } - if (arul->status() == SS_FAILED) { - cout<<"I return NULL coz scope "<(arul->clone())); - IntVarArgs iva(vars[scope].size()); - BoolVarArgs bva(bvars[scope].size()); - // cout << "sizes : " <(ret->v[idx]) ); - } - for (int i=0;i(ret->v[idx]) ); - } - br->branch(ret,iva,bva); - - return ret; -} - - -MySpace* QcspUnblockable::getGoal() { - if (goal->status() == SS_FAILED) return NULL; - return static_cast(goal->clone()); -} - - -void QcspUnblockable::branch(UnblockableBranching* b) { - br=b; -} diff --git a/contribs/qecode/QCSPPlusUnblockable.hh b/contribs/qecode/QCSPPlusUnblockable.hh deleted file mode 100755 index 8f11e25abd..0000000000 --- a/contribs/qecode/QCSPPlusUnblockable.hh +++ /dev/null @@ -1,140 +0,0 @@ -/**** , [ QCSPPlusUnblockable.hh ], -Copyright (c) 2009 Universite d'Orleans - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ - -#ifndef __QECODE_UNBLOCKABLE__ -#define __QECODE_UNBLOCKABLE__ - -#include -#include -#include "qecode.hh" -#include "vartype.hh" -#include "UnblockableBranching.hh" -#include "myspace.hh" - - -using namespace std; -using namespace Gecode; - -class QECODE_VTABLE_EXPORT QcspUnblockable { -private : - - int n; - int nbSpaces; - void** v; - VarType* type_of_v; - int* whichSpaceOwns; - unsigned int currentDeclareSpace; - bool* Quantifiers; - MySpace* goal; - int* nbVarBySpace; - bool* varInitialised; - UnblockableBranching* br; - vector* vars; - vector* bvars; - MySpace* arul; - -public: - QECODE_EXPORT int nv() {return n;} - - /** \brief Default constructor for a restricted-quantified space - * - * This is the first step for building a QCSP+/QCOP+ problem. The prefix is defined here. - * @param ns The number of scopes in the prefix. - * @param quant Array of booleans which contains the quantifier of every scope (true for universal, false for existential). - * @param nv Array of integer which contains the number of variables by scope. - */ - QECODE_EXPORT QcspUnblockable(int ns, bool* quant,int* nv); - QECODE_EXPORT ~QcspUnblockable(); - - /** \brief Defines an integer variable in the quantified space - * - * Defines an integer variable in the quantifies space using a fully declared domain. - * @param var Number of the variable to be defined. - * @param dom The initial domain of the variable. - */ - QECODE_EXPORT void QIntVar(int var,int min,int max); - - /** \brief Defines an integer variable in the quantified space - * - * Defines an integer variable in the quantifies space using a fully declared domain. - * @param var Number of the variable to be defined. - * @param dom The initial domain of the variable. - */ - QECODE_EXPORT void QIntVar(int var,IntSet dom); - - /** \brief Defines a boolean variable in the quantified space - * - * Defines a boolean variable with a full initial domain in the quantified space. - * @param var Number of the variable to be defined. - */ - QECODE_EXPORT void QBoolVar(int var); - - /** \brief Returns the current declarating space - * - * Return the space we are currently declarating constraints in. nextScope() is used to set the nextspace as the current one. - */ - QECODE_EXPORT MySpace* space(); - - /** \brief Returns an integer variable from the space we are currently declaring - * - * Returns an integer variable from the cpace we are currently declaring. Will abort if the variable is not integer. - * @param n The number of the variable to return. - */ - QECODE_EXPORT IntVar var(int n); - - /** \brief Returns a boolean variable from the space we are currently declaring - * - * Returns a boolean variable from the space we are currently declaring. Will abort if the variable is not boolean. - * @param n The number of the variable to return. - */ - QECODE_EXPORT BoolVar bvar(int n); - - /** \brief Switch to the next space for constraint declaration - * - * Switches to the next space for constraint declaration. var, bvar and space methods will now refer to the next rule space (or to the goal space if the current space was the last rule one). - * Returns the new space number, or -1 if it was called while there was no next space to declare constraints in. - */ - QECODE_EXPORT int nextScope(); - - /** \brief Finalizes the object construction - * - * Finalizes the restricted-quantified space construction. Must be invoked once all the variable and all the constraints have been declared, and before the search is performed on this space. - * calling this method is not mandatory, although it is recommanded to besure that the problem have been well built. - * For the existential scopes on which an optimization condition have not been defined yet, this method will post a "Any" optimization condition (i.e. do not optimize). - */ - QECODE_EXPORT void makeStructure(); - - QECODE_EXPORT bool qt_of_var(int v); ///< returns uantifier of variable 'v' - QECODE_EXPORT bool quantification(int scope) {return Quantifiers[scope];} ///< returns quantifier of scope 'scope' - QECODE_EXPORT int spaces(); ///< returns the number of scopes of the problem - QECODE_EXPORT int nbVarInScope(int scope) {return nbVarBySpace[scope];}///< returns the number of variables present in scope 'scope' - QECODE_EXPORT MySpace* getSpace(int scope);///< returns a copy of the Gecode::Space corresponding to the scope-th restricted quantifier of the problem - QECODE_EXPORT MySpace* getGoal(); - - /** \brief sets the branching heuristic - * - * Declares the branching heuristic that will be used to solve this problem. - */ - QECODE_EXPORT void branch(UnblockableBranching* b); -}; - -#endif diff --git a/contribs/qecode/README b/contribs/qecode/README deleted file mode 100644 index aa701aa22d..0000000000 --- a/contribs/qecode/README +++ /dev/null @@ -1,6 +0,0 @@ -QeCode is a quantified constraint satisfaction problems (QCSP) solver based on Gecode. -It can also solve QCSP+, an extension of QCSP where quantifiers can be restricted and QCOP+, a quantified optimizaion problem formalism which scopes multi-level programming problems. - -QeCode have been developped at Universite d'Orleans by Jeremie Vautard, Arnaud Lallouet and Marco Benedetti. More info is available on -http://www.univ-orleans.fr/lifo/software/qecode/ - diff --git a/contribs/qecode/Strategy.cc b/contribs/qecode/Strategy.cc deleted file mode 100644 index 697ec1db1e..0000000000 --- a/contribs/qecode/Strategy.cc +++ /dev/null @@ -1,253 +0,0 @@ -/**** , [ bobocheTree.cc ], - Copyright (c) 2008 Universite d'Orleans - Jeremie Vautard - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - *************************************************************************/ - -#include "Strategy.hh" - -StrategyImp::StrategyImp() { - cout<<"Default constructor of StrategyImp should not be called !"<todosUpdate(i); -} - -StrategyImp::StrategyImp(StrategyNode tag) { - // cout<<"Strategy imp constructor"<::iterator i = nodes.begin();i != nodes.end();i++) { - if (((*i).imp->father) == this) { - (*i).imp->father = NULL; - } - } -} - - -Strategy::Strategy() { - // cout<<"strategy default"<imp = imp; - this->imp->pointers++; -} - -Strategy::Strategy(bool qt,int VMin, int VMax, int scope, vector values) { - // cout<<"strategy with values"<pointers)++; -} - - -Strategy& Strategy::operator = (const Strategy& rvalue) { - // cout<<"Strategy = "<pointers)--; - if ( (imp->pointers) == 0) { - // cout<<"no more references for the imp. Delete"<pointers)++; - return *this; -} - - -Strategy::~Strategy() { - // cout<<"strategy destructor"<pointers)--; - if ( (imp->pointers) == 0) { - // cout<<"no more references for the imp. Delete"<zetag; -} - -Strategy Strategy::getFather() { - if (hasFather()) return Strategy(imp->father); - return Dummy(); -} - -bool Strategy::hasFather() { - if (imp->father != NULL) { - for (int i=0;i< imp->father->nodes.size();i++) { - if ((imp->father->nodes[i].imp) == imp) - return true; - } - } - return false; -} - -Strategy Strategy::getChild(int i) { - if (i<0 || i>=degree() ) {cout<<"Child "<nodes[i]; -} - -Strategy Strategy::getSubStrategy(vector position) { - if (position.empty()) return *this; - int deg = degree(); - if (deg == 0) { - cout<<"Did not find substrategy"<attach(child.getChild(i)); - } - } - else { - imp->nodes.push_back(child); - todosUpdate(child.imp->todos); - (child.imp)->father = this->imp; - } -} - -void Strategy::detach(Strategy son) { - - vector::iterator it = imp->nodes.begin(); - while (it != (imp->nodes.end()) && ( (*it).id() != son.id())) { - it++;} - if ( it != imp->nodes.end()) { - todosUpdate(0-((*it).imp->todos)); - (*it).imp->father=NULL; - imp->nodes.erase(it); - } -} - - -void Strategy::detach(unsigned int i) { - if (imp->nodes.size() < i) return; - - vector::iterator it = imp->nodes.begin()+i; - todosUpdate(0-((*it).imp->todos)); - (*it).imp->father=NULL; - imp->nodes.erase(it); -} - -Strategy Strategy::STrue() { - Strategy ret(StrategyNode::STrue()); - return ret; -} - -Strategy Strategy::SFalse() { - Strategy ret(StrategyNode::SFalse()); - return ret; -} - -Strategy Strategy::Dummy() { - Strategy ret(StrategyNode::Dummy()); - return ret; -} - -Strategy Strategy::Stodo() { - Strategy ret(StrategyNode::Todo()); - ret.imp->todos=1; - return ret; -} - -vector Strategy::getPosition() { - vector ret; - Strategy asc = *this; - while (!asc.isDummy()) { -// cout<<"GetPosition adding "< ret2; - ret2.reserve(ret.size() + asc.values().size() +1); - for (int i=0;idegree());i++) { - if ( (((imp->nodes[i]).imp)->father) != imp) { - ret++; - cout<< (((imp->nodes[i]).imp)->father) << " should be " << imp < -#include -#include -#include "StrategyNode.hh" -#include "qecode.hh" - -using namespace std; -class Strategy; - -class StrategyImp { - friend class Strategy; -private: - unsigned int pointers; // number of Strategy objects pointing to this - StrategyNode zetag; // Node information - vector nodes; // children of this node - unsigned int todos; // number of todo nodes recursively present in the children - StrategyImp* father; - void todosUpdate(int i); - StrategyImp(); - -public: - StrategyImp(StrategyNode tag); - ~StrategyImp(); -}; - -/** \brief Strategy of a QCSP+ problem - * - * This class represents a solution of a QCSP+. Basically it consists in the tree-representation of the winning strategy. - * 3 spacial cases exists : the trivially true strategy, the trivially false strategy (used for the UNSAT answer), - * and the "Dummy" node, used to link together each tree of a strategy which first player is universal (such a strategy is not a tree but a forest) - */ -class QECODE_VTABLE_EXPORT Strategy { - friend class StrategyImp; -private: - StrategyImp* imp; - void todosUpdate(int i) {imp->todosUpdate(i);} - Strategy(StrategyImp* imp); -public: - QECODE_EXPORT Strategy(); ///< default constructor - QECODE_EXPORT Strategy(StrategyNode tag); ///< builds a strategy on a given strategy node (deprecated) - - /* \brief builds a one node (sub)strategy - * - * this method builds a one-node strategy that will typically be attached as child of another strategy. A strategy node embeds informations about quantification, - * scope and values of variables that must be provided - * @param qt quantifier of the scope this node represents - * @param VMin index of the first variable of the scope this node represents - * @param VMax index of the last variable of the scope this node represents - * @param values values taken by the variables between VMin and VMax in this part of the strategy - */ - QECODE_EXPORT Strategy(bool qt,int VMin, int VMax, int scope,vector values); - QECODE_EXPORT Strategy(const Strategy& tree); ///< copy constructor - QECODE_EXPORT Strategy& operator = (const Strategy& rvalue); - QECODE_EXPORT ~Strategy(); - QECODE_EXPORT StrategyNode getTag();///< DEPRECATED returns the StrategyNode object corresponding to the root of this strategy - QECODE_EXPORT forceinline unsigned int degree() {return imp->nodes.size();}///< returns this strategy's number of children - QECODE_EXPORT Strategy getChild(int i); ///< returns the i-th child of this strategy - QECODE_EXPORT Strategy getFather(); - QECODE_EXPORT bool hasFather(); - QECODE_EXPORT Strategy getSubStrategy(vector position); ///< returns the substrategy at given position, dummy if does not exists - QECODE_EXPORT void attach(Strategy child);///< attach the strategy given in parameter as a child of the current strategy - QECODE_EXPORT void detach(unsigned int i); ///< detach the i-th child of this strategy (provided it exists) - QECODE_EXPORT void detach(Strategy son); - QECODE_EXPORT forceinline bool isFalse() {return imp->zetag.isFalse();} ///< returns wether this strategy represents the UNSAT answer - QECODE_EXPORT forceinline bool isTrue() {return imp->zetag.isTrue();} ///< returns wether this strategy is trivially true - QECODE_EXPORT forceinline bool isComplete() {return ((imp->todos) == 0);} ///< returns wether this is a complete sub-strategy (without todo nodes) - QECODE_EXPORT forceinline bool isDummy() {return imp->zetag.isDummy();} ///< returns wether this strategy is a set of - QECODE_EXPORT forceinline bool isTodo() {return imp->zetag.isTodo();} ///< return wether this strategy is a "ToDo" marker or not - - QECODE_EXPORT static Strategy STrue(); ///< returns the trivially true strategy - QECODE_EXPORT static Strategy SFalse(); ///< returns the trivially false strategy - QECODE_EXPORT static Strategy Dummy(); ///< returns a "dummy" node - QECODE_EXPORT static Strategy Stodo(); ///< returns a "todo" node - QECODE_EXPORT forceinline bool quantifier() {return imp->zetag.quantifier;} ///< returns the quantifier of the root (true for universal, false for existential) - QECODE_EXPORT forceinline int VMin() {return imp->zetag.Vmin;} ///< returns the index of the first variable of the scope of the root - QECODE_EXPORT forceinline int VMax() {return imp->zetag.Vmax;} ///< returns the index of the last variable of the scope of the root - QECODE_EXPORT forceinline int scope() {return imp->zetag.scope;} ///< returns the scope of the root - QECODE_EXPORT forceinline vector values() {return imp->zetag.valeurs;} ///< returns the values taken by the variables of the scope of the root in this (sub)strategy - QECODE_EXPORT forceinline int value(int var) {return imp->zetag.valeurs[var];} - QECODE_EXPORT forceinline void* id() {return imp;} ///< Return an identifier for this strategy (this identifier is shared among multiples instances of this strategy) - QECODE_EXPORT vector getPosition(); - QECODE_EXPORT forceinline int nbTodos() {return imp->todos;} - - QECODE_EXPORT int checkIntegrity(); -}; - - -#endif diff --git a/contribs/qecode/StrategyNode.cc b/contribs/qecode/StrategyNode.cc deleted file mode 100644 index 922d64dc79..0000000000 --- a/contribs/qecode/StrategyNode.cc +++ /dev/null @@ -1,59 +0,0 @@ -/**** , [ StrategyNode.cc ], -Copyright (c) 2008 Universite d'Orleans - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ - -#include "StrategyNode.hh" - -StrategyNode::StrategyNode() { - type=0; - quantifier=true; - Vmin=-1; - Vmax=-1; - scope=-1; -} - -StrategyNode::StrategyNode(int typ,bool qt,int min, int max, int sco) { - type=typ; - quantifier=qt; - Vmin=min; - Vmax=max; - scope=sco; -} - -/* -StrategyNode::StrategyNode(const StrategyNode& st) { - cout<<"Strategynode copy constructor"< -using namespace std; -class QECODE_VTABLE_EXPORT StrategyNode { -public: - int type; // 0 = dummy, 1 = empty, 2 = normal, 3 = Todo. - bool quantifier; - int Vmin; - int Vmax; - int scope; - vector valeurs; - - QECODE_EXPORT StrategyNode(); - QECODE_EXPORT StrategyNode(int type,bool qt,int Vmin, int Vmax, int scope); - QECODE_EXPORT ~StrategyNode(); - QECODE_EXPORT static StrategyNode STrue() { return StrategyNode(1,true,-1,-1,-1);} - QECODE_EXPORT static StrategyNode SFalse() { return StrategyNode(1,false,-1,-1,-1);} - QECODE_EXPORT static StrategyNode Dummy() { return StrategyNode(0,true,-1,-1,-1);} - QECODE_EXPORT static StrategyNode Todo() { return StrategyNode(3,false,-1,-1,-1);} - QECODE_EXPORT forceinline bool isFalse() { return ( (type==1) && (quantifier == false) );} - QECODE_EXPORT forceinline bool isTrue() { return ( (type==1) && (quantifier == true) );} - QECODE_EXPORT forceinline bool isDummy() { return (type==0);} - QECODE_EXPORT forceinline bool isTodo() { return (type==3);} -}; -#endif - diff --git a/contribs/qecode/UnblockableBranching.hh b/contribs/qecode/UnblockableBranching.hh deleted file mode 100755 index b9548fde18..0000000000 --- a/contribs/qecode/UnblockableBranching.hh +++ /dev/null @@ -1,34 +0,0 @@ -/**** , [ UnblockableBranching.hh ], -Copyright (c) 2009 Universite d'Orleans - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ -#ifndef __QECODE_UNBLOCKABLE_BRANCHING__ -#define __QECODE_UNBLOCKABLE_BRANCHING__ - -#include "myspace.hh" - -class UnblockableBranching { -public: - virtual ~UnblockableBranching() {} - virtual void branch(MySpace* s,IntVarArgs ivars, BoolVarArgs bvars)=0; -}; - -#endif - diff --git a/contribs/qecode/UnblockableViewValBranching.cc b/contribs/qecode/UnblockableViewValBranching.cc deleted file mode 100755 index af63201c9b..0000000000 --- a/contribs/qecode/UnblockableViewValBranching.cc +++ /dev/null @@ -1,61 +0,0 @@ -/**** , [ UnblockableViewValBranching.cc ], -Copyright (c) 2009 Universite d'Orleans - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ - -#include "UnblockableViewValBranching.hh" -#include - -using namespace std; - -UnblockableViewValBranching::UnblockableViewValBranching(IntVarBranch vrb,IntValBranch vlb,bool booleans_before) { - ivrb=vrb; - bvrb=vrb; - ivlb=vlb; - bvlb=vlb; - before=booleans_before; -} - -UnblockableViewValBranching::UnblockableViewValBranching(IntVarBranch Ivrb,IntValBranch Ivlb,IntVarBranch Bvrb,IntValBranch Bvlb,bool booleans_before) { - ivrb=Ivrb; - ivlb=Ivlb; - bvrb=Bvrb; - bvlb=Bvlb; - before=booleans_before; -} - -void UnblockableViewValBranching::branch(MySpace* s,IntVarArgs ivars, BoolVarArgs bvars) { - if (before) { - if (bvars.size() != 0) { - Gecode::branch(*s,bvars,bvrb,bvlb); - } - if (ivars.size() != 0) { - Gecode::branch(*s,ivars,ivrb,ivlb); - } - } - else { - if (ivars.size() != 0) { - Gecode::branch(*s,ivars,ivrb,ivlb); - } - if (bvars.size() != 0) { - Gecode::branch(*s,bvars,bvrb,bvlb); - } - } -} diff --git a/contribs/qecode/UnblockableViewValBranching.hh b/contribs/qecode/UnblockableViewValBranching.hh deleted file mode 100755 index 819ca729aa..0000000000 --- a/contribs/qecode/UnblockableViewValBranching.hh +++ /dev/null @@ -1,45 +0,0 @@ -/**** , [ UnblockableViewValBranching.hh ], -Copyright (c) 2009 Universite d'Orleans - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ -#ifndef __QECODE_UNBLOK_VIEWVAL_BRANCH__ -#define __QECODE_UNBLOK_VIEWVAL_BRANCH__ - -#include "qecode.hh" -#include "gecode/minimodel.hh" -#include "qecode.hh" -#include "UnblockableBranching.hh" - -class QECODE_VTABLE_EXPORT UnblockableViewValBranching : public UnblockableBranching { -private : - IntVarBranch ivrb; - IntVarBranch bvrb; - IntValBranch ivlb; - IntValBranch bvlb; - bool before; - -public : - QECODE_EXPORT UnblockableViewValBranching(IntVarBranch vrb,IntValBranch vlb,bool booleans_before); - QECODE_EXPORT UnblockableViewValBranching(IntVarBranch Ivrb,IntValBranch Ivlb,IntVarBranch Bvrb,IntValBranch Bvlb,bool booleans_before); - QECODE_EXPORT virtual void branch(MySpace* s,IntVarArgs ivars, BoolVarArgs bvars); -}; - -#endif - diff --git a/contribs/qecode/Work.cc b/contribs/qecode/Work.cc deleted file mode 100644 index acb12b96b5..0000000000 --- a/contribs/qecode/Work.cc +++ /dev/null @@ -1,48 +0,0 @@ -/************************************************************ Work.cc - Copyright (c) 2010 Universite de Caen Basse Normandie - Jeremie Vautard - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - *************************************************************************/ - -#include "Work.hh" -QWork::QWork(int scope,vector root,Gecode::Search::Engine* todo){ - this->theRoot = root; - this->remaining = todo; - this->scope = scope; - this->wait = this->stop = false; -} - -QWork::~QWork() {} - -QWork QWork::Wait() { - QWork ret; - ret.wait=true; - ret.stop=false; - ret.remaining=NULL; - return ret; -} - -QWork QWork::Stop() { - QWork ret; - ret.wait=false; - ret.stop=true; - ret.remaining=NULL; - return ret; -} - diff --git a/contribs/qecode/Work.hh b/contribs/qecode/Work.hh deleted file mode 100644 index 6a2183321c..0000000000 --- a/contribs/qecode/Work.hh +++ /dev/null @@ -1,64 +0,0 @@ -/************************************************************ Work.hh -Copyright (c) 2010 Universite de Caen Basse Normandie - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ -#ifndef __QECODE_QWORK__ -#define __QECODE_QWORK__ -#include -#include "Strategy.hh" -#include "qecode.hh" -#include "gecode/support.hh" -#include "gecode/search.hh" -#include "gecode/search/support.hh" -#include "gecode/search/sequential/dfs.hh" - -using namespace std; -using namespace Gecode; -using namespace Gecode::Support; - -class QECODE_VTABLE_EXPORT QWork { -private: - bool wait; - bool stop; - vector theRoot; - Gecode::Search::Engine* remaining; - int scope; -public: - QECODE_EXPORT QWork(){wait=stop=0; remaining=NULL; scope=-1;} ///< creates a dummy work. Don't try to solve it. - QECODE_EXPORT QWork(int scope,vector root,Gecode::Search::Engine* todo); - QECODE_EXPORT ~QWork(); - - QECODE_EXPORT static QWork Wait(); - QECODE_EXPORT static QWork Stop(); - - QECODE_EXPORT forceinline bool isWait() {return wait;} - QECODE_EXPORT forceinline bool isStop() {return stop;} - - QECODE_EXPORT forceinline Gecode::Search::Engine* getRemaining() {return this->remaining;} - QECODE_EXPORT vector root() { - vector ret=this->theRoot; - return ret; - } - QECODE_EXPORT forceinline int getScope() {return this->scope;} - QECODE_EXPORT forceinline void clean() {if (!wait && !stop) delete remaining;} -}; - - -#endif diff --git a/contribs/qecode/WorkComparators.hh b/contribs/qecode/WorkComparators.hh deleted file mode 100644 index f85760f4d5..0000000000 --- a/contribs/qecode/WorkComparators.hh +++ /dev/null @@ -1,67 +0,0 @@ -/* - * WorkComparators.hh - * - * - * Created by Jérémie Vautard on 31/03/10. - * Copyright 2010 Université d'Orléans. All rights reserved. - * - */ - -#include "WorkManager.hh" -#include "QCOPPlus.hh" - -class BidonComparator : public WorkComparator { - public : - virtual bool cmp(QWork a,QWork b) { - return false; - } -}; - -class DeepFirstComparator : public WorkComparator { - public : - virtual bool cmp(QWork a,QWork b) { - if (a.root().size() > b.root().size()) return true; - if (a.root().size() < b.root().size()) return false; - return ((a.getRemaining()) < (b.getRemaining())); - } -}; - -class QuantifierThenDepthComparator : public WorkComparator { - private : - Qcop* problem; - bool existsFirst; - bool deepestFirst; - - public : - QuantifierThenDepthComparator(Qcop* p,bool existsFirst,bool deepestFirst) { - this->problem = p; - this->existsFirst = existsFirst; - this->deepestFirst = deepestFirst; - } - virtual bool cmp(QWork a,QWork b) { - bool q1 = (problem->qt_of_var(a.root().size()) != existsFirst); - bool q2 = (problem->qt_of_var(b.root().size()) != existsFirst); - if (q1 && !q2) return true; - if (!q1 && q2) return false; - int d1 = a.root().size(); - int d2 = b.root().size(); - if ( (d1 < d2) != deepestFirst) return true; - return false; - } -}; - -class DepthComparator : public WorkComparator { - private : - bool deepestFirst; - public : - DepthComparator(bool deepestFirst) { - this->deepestfirst = deepestFirst; - } - - virtual bool cmp(QWork a,QWork b) { - int d1 = a.root().size(); - int d2 = b.root().size(); - if ( (d1 < d2) != deepestFirst) return true; - return false; - } -}; diff --git a/contribs/qecode/WorkManager.cc b/contribs/qecode/WorkManager.cc deleted file mode 100644 index 6c0dd71075..0000000000 --- a/contribs/qecode/WorkManager.cc +++ /dev/null @@ -1,376 +0,0 @@ -/************************************************************ WorkManager.cc - Copyright (c) 2010 Universite d'Orleans - Jeremie Vautard - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. -*************************************************************************/ - -#include "WorkManager.hh" -bool isPrefix(vector prefix,vector a) { - if (a.size() < prefix.size()) - return false; - else - for (unsigned int i=0;i::iterator i = l.begin(); - while (i != l.end() && cmp->cmp((*i),q)) i++; - l.insert(i,q); -} - -QWork WorkPool::pop() { - QWork ret=l.front(); - l.pop_front(); - return ret; -} - -void WorkPool::trash(vector prefix) { - // cout<<" WPT called on "; - //if (prefix.empty()) cout<<"empty"; - //for (int i=0;i< prefix.size();i++) cout<::iterator i=l.begin(); - while (!(i == l.end())) { - // cout<<"| "; - // cout.flush(); - bool avance=true; - vector root = (*i).root(); - if (isPrefix(prefix,root)) { - (*i).clean(); - i=l.erase(i); - avance = false; - // cout<<"erased"; - } - if (avance) i++; - } - //cout<::iterator i=l.begin();i != l.end();i++) { - //vector root = (*i).root(); - //if (isPrefix(prefix,root)) { - // cout<<" trashing "; - // if (root.empty()) cout<<"empty"; - // for (int j=0;j< root.size();j++) cout<stopAndReturn(); -} - -WorkManager::WorkManager(Qcop* p,WorkComparator* c) : Todos(c) { - problem=p; - vector v; - MySpace* espace=p->getSpace(0); - Options o; - Engine* solutions = new WorkerToEngine(espace,/*sizeof(MySpace),*/o); - QWork first(0,v,solutions); - Todos.push(first); - finished=false; - S = Strategy::Dummy(); - S.attach(Strategy::Stodo()); -} - -QWork WorkManager::getWork(AQWorker* worker) { - // clock_t start = clock(); - // cout< todo,vector position) { - // If the worker is not among the actives ones, ignore his job. Else, withdraw it from the active workers - // and process its result - - // clock_t start = clock(); - // cout<::iterator i = actives.begin(); - while (!(i == actives.end()) && !ok) { - bool avance=true; - if ((*i) == worker) { - // cout<<"RW Worker found in actives. Deleting"<::iterator j = todo.begin();j != todo.end();j++) { - (*j).clean(); - } - // cout<<"RW release"< checkPosition = father.getPosition(); - // if (checkPosition.empty()) cout<<"empty"; - // for (int i=0;i< checkPosition.size();i++) cout<::iterator j = todo.begin();j != todo.end();j++) { - // cout<<"WM todo + 1"<wake(); - } - // cout<<"RW Adding work in Todos : "; - // if ((*j).root().empty()) cout<<"empty"; - // for (int i=0;i< (*j).root().size();i++) cout<<(*j).root()[i]<<" "; - // cout<qt_of_var(position.size() + 1); - if (myscope) { // if ret was a forall node, the father itself is false - // cout<<"RW work is A -> father is false"<::iterator j = todo.begin();j != todo.end();j++) { - (*j).clean(); - } - } - - // cout<<"RW release"< hihi = s.getPosition(); - // if (hihi.empty()) cout<<"empty"; - // for (int i=0;i< hihi.size();i++) cout< hihi = s.getPosition(); - // if (hihi.empty()) cout<<"empty"; - // for (int i=0;i< hihi.size();i++) cout< prefix) { - // cout<<" TW called on "; - // if (prefix.empty()) cout<<"empty"; - // for (int i=0;i< prefix.size();i++) cout<::iterator i=actives.begin();i!=actives.end();i++) { - if (isPrefix(prefix,(*i)->workPosition())) { - // cout<<" TW stopping worker on"; - // vector plop = (*i)->workPosition(); - // if (plop.empty()) cout<<"empty"; - // for (int j=0;j< plop.size();j++) cout<stopAndForget(); - i=actives.erase(i); - i--; - } - } -} - -void WorkManager::printStatus() { - mex.acquire(); - cout<<(finished?"Problem solved":"Problem not solved")< -#include -#include -#include -#include "Strategy.hh" -#include "qecode.hh" -#include "AbstractWorker.hh" -#include "Work.hh" -#include "QCOPPlus.hh" -#include "gecode/minimodel.hh" -#include "gecode/support.hh" -#include "gecode/search.hh" -#include "gecode/search/support.hh" - - -using namespace Gecode; -using namespace std; -using namespace Gecode::Support; -using namespace Gecode::Search; - -class QECODE_VTABLE_EXPORT WorkComparator { - public : - virtual bool cmp(QWork a,QWork b)=0; -}; - -class QECODE_VTABLE_EXPORT WorkPool { -private: - list l; - WorkComparator* cmp; -public: - QECODE_EXPORT WorkPool(WorkComparator* a); - QECODE_EXPORT void push(QWork q); - QECODE_EXPORT QWork pop(); - QECODE_EXPORT bool empty() {return l.empty();} - QECODE_EXPORT QWork top() {return l.front();} - QECODE_EXPORT int size() {return l.size();} - - QECODE_EXPORT void trash(vector prefix); -}; - - -class QECODE_VTABLE_EXPORT WorkManager { -private: - bool finished; - Strategy S; - WorkPool Todos; - list actives; - list idles; - void getNewWorks(); - void updateTrue(Strategy s); - void updateFalse(Strategy s); - void trashWorks(vector prefix); - Strategy result; - Gecode::Support::Mutex mex; // = PTHREAD_MUTEX_INITIALIZER; -public: - Qcop* problem; - - QECODE_EXPORT WorkManager(Qcop* p,WorkComparator* c); - - QECODE_EXPORT QWork getWork(AQWorker* worker); - - QECODE_EXPORT void returnWork(AQWorker* worker,Strategy ret,list todo,vector position); - - QECODE_EXPORT forceinline Strategy getResult() {return S;} - - QECODE_EXPORT forceinline bool isFinished() {mex.acquire();bool ret=finished;mex.release();return ret;} - - QECODE_EXPORT void printStatus(); -}; - -#endif diff --git a/contribs/qecode/Worker.cc b/contribs/qecode/Worker.cc deleted file mode 100644 index 9334a31f58..0000000000 --- a/contribs/qecode/Worker.cc +++ /dev/null @@ -1,285 +0,0 @@ -/**** , [ Worker.cc ], - Copyright (c) 2010 Universite de Caen Basse Normandie- Jeremie Vautard - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - *************************************************************************/ - -#include "Worker.hh" - - -inline vector getTheValues(MySpace* sol,int vmin,int vmax){ - vector zevalues; -// cout< (sol->nbVars())) cout<<"getTheValues mal appele"<type_of_v[i]) { - case VTYPE_INT : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"4Unknown variable type"< 0); -} - -void QWorker::wake() { - // cout<<"Awaking "< QWorker::workPosition() { - // access.acquire(); - // vector ret = currentWork.root(); - // access.release(); - return currentWork.root(); -} - -void QWorker::run() { - - while(true) { - access.acquire(); - stopandforget=0; - finished=false; - todo.clear(); - access.release(); - // cout<<"QWorker "<getWork(this); - // cout<<"QWorker "<returnWork(this,ret,todo,cur.root()); - } - else { - // cout<<"QWorker "<::iterator i(todo.begin());i != todo.end();i++) { - (*i).clean(); - } - todo.clear(); - } - } - } -} - -Strategy QWorker::solve() { - return rsolve(currentWork.getScope(),currentWork.getRemaining()); -} - - -Strategy QWorker::rsolve(int scope,/*vector assignments,*/Engine* L) { - access.acquire(); - bool forget = (stopandforget==2); - access.release(); - if (forget) { - delete L; - return Strategy::Dummy(); - } - - MySpace* sol = static_cast(L->next()); - Strategy ret=Strategy::Dummy(); - bool LwasEmpty = true; - - - while ((sol != NULL) ) { - LwasEmpty=false; - vector assignments = getTheValues(sol,0,sol->nbVars()-1); - Strategy result; - - if (scope == (problem->spaces() - 1) ) { // last scope reached. Verify the goal... - MySpace* g = problem->getGoal(); - for (int i=0;inbVars();i++) { - switch (g->type_of_v[i]) { - case VTYPE_INT : - rel(*g,*(static_cast(g->v[i])) == assignments[i]); - break; - case VTYPE_BOOL : - rel(*g,*(static_cast(g->v[i])) == assignments[i]); - break; - default : - cout<<"Unknown variable type"< solutions(g); - MySpace* goalsol = solutions.next(); - if (goalsol == NULL) { - delete g; - delete L; - result = Strategy::SFalse(); - } - else { - int vmin = ( (scope==0)? 0 : (problem->nbVarInScope(scope-1)) ); - int vmax = (problem->nbVarInScope(scope))-1; - vector zevalues=getTheValues(sol,vmin,vmax); - result=Strategy(problem->quantification(scope),vmin,vmax,scope,zevalues); - result.attach(Strategy::STrue()); - delete g; - // delete sol; - delete goalsol; - } - } - - else { // This is not the last scope... - MySpace* espace = problem->getSpace(scope+1); - for (int i=0;itype_of_v[i]) { - case VTYPE_INT : - rel(*espace,*(static_cast(espace->v[i])) == assignments[i]); - break; - case VTYPE_BOOL : - rel(*espace,*(static_cast(espace->v[i])) == assignments[i]); - break; - default : - cout<<"Unknown variable type"<(espace,/*sizeof(MySpace),*/o); - delete espace; - - access.acquire(); - forget=(stopandforget == 2); - bool stop=(stopandforget==1); - access.release(); - if (forget) { - delete sol; - delete solutions; - return Strategy::Dummy(); - } - if (stop) { - vector root1; - if (scope!=0) {root1= getTheValues(sol,0,problem->nbVarInScope(scope-1)-1);} - QWork current(scope,root1,L); - vector root2 = getTheValues(sol,0,problem->nbVarInScope(scope)-1); - QWork onemore(scope+1,root2,solutions); - todo.push_back(current); - todo.push_back(onemore); - int vmin = ( (scope==0)? 0 : (problem->nbVarInScope(scope-1)) ); - int vmax = (problem->nbVarInScope(scope))-1; - vector zevalues=getTheValues(sol,vmin,vmax); - Strategy toAttach(problem->quantification(scope),vmin,vmax,scope,zevalues); - toAttach.attach(Strategy::Stodo()); - ret.attach(toAttach); - ret.attach(Strategy::Stodo()); - return ret; - } - - result=rsolve(scope+1,solutions); - } - - int vmin = ( (scope == 0) ? 0 : (problem->nbVarInScope(scope-1)) ); - int vmax = (problem->nbVarInScope(scope))-1; - vector zevalues=getTheValues(sol,vmin,vmax); - delete sol; - access.acquire(); - forget=(stopandforget == 2); - access.release(); - if (forget) { - delete L; - return Strategy::Dummy(); - } - if (problem->quantification(scope)) { // current scope is universal - if (result.isFalse()) // one branch fails - { - delete L; - return Strategy::SFalse(); - } - else { - Strategy toAttach(true,vmin,vmax,scope,zevalues); - - toAttach.attach(result); - ret.attach(toAttach); - } - } - else { //current scope is existential - if (!result.isFalse()) { // result not the truivilally false strategy... - if (result.isComplete()) { // ...and has no todo nodes. So... - ret = Strategy(problem->quantification(scope),vmin,vmax,scope,zevalues); - ret.attach(result); - delete L; - return ret; // we return it immediately - } - else { // If result is not false, but still has todo nodes... - Strategy toAttach(problem->quantification(scope),vmin,vmax,scope,zevalues); - toAttach.attach(result); // the node corresponding to the current scope iis added... - ret.attach(toAttach); // and the corresponding strategy is attached to a Dummy node. Next loop in the outer while will need it... - } - } - } - sol = static_cast(L->next()); - } - delete L; - if (problem->quantification(scope)) //universal scope - return (LwasEmpty ? Strategy::STrue() : ret); - else { - if (ret.isComplete()) - return Strategy::SFalse(); - else - return ret; - } -} diff --git a/contribs/qecode/Worker.hh b/contribs/qecode/Worker.hh deleted file mode 100755 index a10adbf60f..0000000000 --- a/contribs/qecode/Worker.hh +++ /dev/null @@ -1,70 +0,0 @@ -/**** , [ Worker.hh ], - Copyright (c) 2010 Universite de Caen Basse Normandie - Jeremie Vautard - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. -*************************************************************************/ - -#ifndef __QECODE_WORKER__ -#define __QECODE_WORKER__ -#include "qecode.hh" -#include -#include -#include -#include "QCOPPlus.hh" -#include "myspace.hh" -#include "Strategy.hh" -#include "AbstractWorker.hh" -#include "gecode/support.hh" -#include "gecode/search.hh" -#include "gecode/search/support.hh" -#include "gecode/search/sequential/dfs.hh" -#include "WorkManager.hh" - -using namespace Gecode::Support; -using namespace Gecode::Search; -using namespace Gecode::Search::Sequential; - - -class QECODE_VTABLE_EXPORT QWorker : public AQWorker { - - private: - WorkManager* wm; - Gecode::Support::Event goToWork; - Gecode::Support::Mutex access; - int stopandforget; // 0 : continue, 1 : stop and return, 2 : stop and forget. - Qcop* problem; - QWork currentWork; - list todo; - bool finished; - Strategy rsolve(int scope,/*vector assignments,*/Engine* L); - - - public: - QECODE_EXPORT QWorker(WorkManager* wm) {this->wm=wm; this->problem = wm->problem->clone();} - QECODE_EXPORT ~QWorker(); - QECODE_EXPORT virtual void run(); - QECODE_EXPORT void stopAndReturn(); - QECODE_EXPORT void stopAndForget(); - QECODE_EXPORT vector workPosition(); - QECODE_EXPORT bool mustStop(); - QECODE_EXPORT void wake(); - QECODE_EXPORT Strategy solve(); -}; - -#endif diff --git a/contribs/qecode/clean b/contribs/qecode/clean deleted file mode 100755 index b08bd439c2..0000000000 --- a/contribs/qecode/clean +++ /dev/null @@ -1,5 +0,0 @@ -rm -rf *.o -rm -rf lib* -rm -f Makefile -rm -f Makefile.in - diff --git a/contribs/qecode/configure b/contribs/qecode/configure deleted file mode 100755 index a260c122b4..0000000000 --- a/contribs/qecode/configure +++ /dev/null @@ -1,2843 +0,0 @@ -#! /bin/sh -# From configure.ac Revision. -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for QECODE 1.2. -# -# Report bugs to . -# -# -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. -# -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (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 #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -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 - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; 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 || - PATH_SEPARATOR=';' - } -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 #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -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 - done -IFS=$as_save_IFS - - ;; -esac -# 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 - 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. - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then - _as_can_reexec=no; export _as_can_reexec; - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -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 - 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 : - 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 #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi -" - as_required="as_fn_return () { (exit \$1); } -as_fn_success () { as_fn_return 0; } -as_fn_failure () { as_fn_return 1; } -as_fn_ret_success () { return 0; } -as_fn_ret_failure () { return 1; } - -exitcode=0 -as_fn_success || { exitcode=1; echo as_fn_success failed.; } -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 : - -else - exitcode=1; echo positional parameters were not saved. -fi -test x\$exitcode = x0 || 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" - if (eval "$as_required") 2>/dev/null; then : - as_have_required=yes -else - as_have_required=no -fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : - -else - 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=. - 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 - 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 : - 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 : - break 2 -fi -fi - done;; - 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 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 -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -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 -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." - else - $as_echo "$0: Please tell bug-autoconf@gnu.org and -$0: jeremie.vautard@univ-orleans.fr about your system, -$0: 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 -fi -SHELL=${CONFIG_SHELL-/bin/sh} -export SHELL -# Unset more variables known to interfere with behavior of common tools. -CLICOLOR_FORCE= GREP_OPTIONS= -unset CLICOLOR_FORCE GREP_OPTIONS - -## --------------------- ## -## M4sh Shell Functions. ## -## --------------------- ## -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { eval $1=; unset $1;} -} -as_unset=as_fn_unset - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -# 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 : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# 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 : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -# as_fn_error STATUS ERROR [LINENO LOG_FD] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - 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 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - - - as_lineno_1=$LINENO as_lineno_1a=$LINENO - as_lineno_2=$LINENO 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'"' || { - # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - 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; } - - # 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 - # in an infinite loop. This has already happened in practice. - _as_can_reexec=no; export _as_can_reexec - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - 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'. - 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 - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_test_x='test -x' -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'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -test -n "$DJDIR" || exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= - -# Identity of this package. -PACKAGE_NAME='QECODE' -PACKAGE_TARNAME='qecode' -PACKAGE_VERSION='1.2' -PACKAGE_STRING='QECODE 1.2' -PACKAGE_BUGREPORT='jeremie.vautard@univ-orleans.fr' -PACKAGE_URL='' - -ac_unique_file="qecode.hh" -ac_subst_vars='LTLIBOBJS -LIBOBJS -QECODE -target_alias -host_alias -build_alias -LIBS -ECHO_T -ECHO_N -ECHO_C -DEFS -mandir -localedir -libdir -psdir -pdfdir -dvidir -htmldir -infodir -docdir -oldincludedir -includedir -localstatedir -sharedstatedir -sysconfdir -datadir -datarootdir -libexecdir -sbindir -bindir -program_transform_name -prefix -exec_prefix -PACKAGE_URL -PACKAGE_BUGREPORT -PACKAGE_STRING -PACKAGE_VERSION -PACKAGE_TARNAME -PACKAGE_NAME -PATH_SEPARATOR -SHELL' -ac_subst_files='' -ac_user_opts=' -enable_option_checking -' - ac_precious_vars='build_alias -host_alias -target_alias' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -ac_unrecognized_opts= -ac_unrecognized_sep= -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *=) ac_optarg= ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - 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" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - 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" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - 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" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=\$ac_optarg ;; - - -without-* | --without-*) - 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" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --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" - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # 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'" ;; - 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 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - as_fn_error $? "missing argument to $ac_option" -fi - -if test -n "$ac_unrecognized_opts"; then - 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 ;; - esac -fi - -# Check all directory arguments for consistency. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - # Remove trailing slashes. - case $ac_val in - */ ) - ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` - eval $ac_var=\$ac_val;; - esac - # Be sure to have absolute directory names. - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - 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' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - as_fn_error $? "working directory cannot be determined" -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - as_fn_error $? "pwd does not report name of working directory" - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$as_myself" || -$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_myself" : 'X\(//\)[^/]' \| \ - X"$as_myself" : 'X\(//\)$' \| \ - X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - 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_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # 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 QECODE 1.2 to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --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 - --cache-file=FILE cache test results in FILE [disabled] - -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 \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --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'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/qecode] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of QECODE 1.2:";; - esac - cat <<\_ACEOF - -Report bugs to . -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || - { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || - continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$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|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -QECODE configure 1.2 -generated by GNU Autoconf 2.69 - -Copyright (C) 2012 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi - -## ------------------------ ## -## Autoconf initialization. ## -## ------------------------ ## -cat >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 QECODE $as_me 1.2, which was -generated by GNU Autoconf 2.69. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" - done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; - 2) - as_fn_append ac_configure_args1 " '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - as_fn_append ac_configure_args " '$ac_arg'" - ;; - esac - done -done -{ ac_configure_args0=; unset ac_configure_args0;} -{ ac_configure_args1=; unset ac_configure_args1;} - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# 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=$? - # Save into config.log some information that might help in debugging. - { - echo - - $as_echo "## ---------------- ## -## Cache variables. ## -## ---------------- ##" - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - 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;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - $as_echo "## ----------------- ## -## Output variables. ## -## ----------------- ##" - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## -## File substitutions. ## -## ------------------- ##" - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - $as_echo "## ----------- ## -## confdefs.h. ## -## ----------- ##" - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -$as_echo "/* confdefs.h */" > confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF - - -# 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 -elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site -else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site -fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" -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;} - 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;} -as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } - fi -done - -if test -r "$cache_file"; then - # 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;} - 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;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - 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;} - 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;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - 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;} - 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;} - 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;} - 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=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - 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 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## - -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 - - - - -QECODE="qecode" - - -../../config.status --file Makefile.in:Makefile.in.in - -ac_config_commands="$ac_config_commands Makefile.in" - -ac_config_files="$ac_config_files Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# 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 -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - 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;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - - (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 - # 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. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - 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;} - if test ! -f "$cache_file" || test -h "$cache_file"; then - cat confcache >"$cache_file" - else - case $cache_file in #( - */* | ?:*) - mv -f confcache "$cache_file"$$ && - mv -f "$cache_file"$$ "$cache_file" ;; #( - *) - mv -f confcache "$cache_file" ;; - esac - 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;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -:mline -/\\$/{ - N - s,\\\n,, - b mline -} -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -U= -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"` - # 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" - as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - - -: "${CONFIG_STATUS=./config.status}" -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;} -as_write_fail=0 -cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false - -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (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 #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -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 - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; 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 || - PATH_SEPARATOR=';' - } -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 #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -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 - done -IFS=$as_save_IFS - - ;; -esac -# 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 - 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] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - 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 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { 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 : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# 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 : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - 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'. - 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 - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -as_test_x='test -x' -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'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 -## ----------------------------------- ## -## Main body of $CONFIG_STATUS script. ## -## ----------------------------------- ## -_ASEOF -test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# Save the log message, to keep $0 and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by QECODE $as_me 1.2, which was -generated by GNU Autoconf 2.69. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -case $ac_config_files in *" -"*) set x $ac_config_files; shift; ac_config_files=$*;; -esac - - - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# Files that config.status was made for. -config_files="$ac_config_files" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -ac_cs_usage="\ -\`$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. - -Usage: $0 [OPTION]... [TAG]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - --config print configuration, then exit - -q, --quiet, --silent - do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" -ac_cs_version="\\ -QECODE config.status 1.2 -configured by $0, generated by GNU Autoconf 2.69, - with options \\"\$ac_cs_config\\" - -Copyright (C) 2012 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -test -n "\$AWK" || AWK=awk -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# The default lists apply if the user does not specify any file. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=?*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - --*=) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg= - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -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 ;; - --config | --confi | --conf | --con | --co | --c ) - $as_echo "$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"` ;; - '') as_fn_error $? "missing file argument" ;; - esac - as_fn_append CONFIG_FILES " '$ac_optarg'" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - $as_echo "$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_append ac_config_targets " $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -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 - CONFIG_SHELL='$SHELL' - export CONFIG_SHELL - exec "\$@" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - $as_echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "Makefile.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.in" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# 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_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# 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'. -$debug || -{ - tmp= ac_tmp= - trap 'exit_status=$? - : "${ac_tmp:=$tmp}" - { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status -' 0 - trap 'as_fn_exit 1' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 -ac_tmp=$tmp - -# 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'. -if test -n "$CONFIG_FILES"; then - - -ac_cr=`echo X | tr X '\015'` -# On cygwin, bash can eat \r inside `` if the user requested igncr. -# But we know of no other shell where ac_cr would be empty at this -# point, so we can use a bashism as a fallback. -if test "x$ac_cr" = x; then - eval ac_cr=\$\'\\r\' -fi -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then - ac_cs_awk_cr='\\r' -else - ac_cs_awk_cr=$ac_cr -fi - -echo 'BEGIN {' >"$ac_tmp/subs1.awk" && -_ACEOF - - -{ - echo "cat >conf$$subs.awk <<_ACEOF" && - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && - echo "_ACEOF" -} >conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 -ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - . ./conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - - ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` - if test $ac_delim_n = $ac_delim_num; then - break - elif $ac_last_try; then - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done -rm -f conf$$subs.sh - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && -_ACEOF -sed -n ' -h -s/^/S["/; s/!.*/"]=/ -p -g -s/^[^!]*!// -:repl -t repl -s/'"$ac_delim"'$// -t delim -:nl -h -s/\(.\{148\}\)..*/\1/ -t more1 -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ -p -n -b repl -:more1 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t nl -:delim -h -s/\(.\{148\}\)..*/\1/ -t more2 -s/["\\]/\\&/g; s/^/"/; s/$/"/ -p -b -:more2 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t delim -' >$CONFIG_STATUS || ac_write_fail=1 -rm -f conf$$subs.awk -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -_ACAWK -cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && - for (key in S) S_is_set[key] = 1 - FS = "" - -} -{ - line = $ 0 - nfields = split(line, field, "@") - substed = 0 - len = length(field[1]) - for (i = 2; i < nfields; i++) { - key = field[i] - keylen = length(key) - if (S_is_set[key]) { - value = S[key] - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) - len += length(value) + length(field[++i]) - substed = 1 - } else - len += 1 + keylen - } - - print line -} - -_ACAWK -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" -else - cat -fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ - || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 -_ACEOF - -# VPATH may cause trouble with some makes, so we remove sole $(srcdir), -# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ -h -s/// -s/^/:/ -s/[ ]*$/:/ -s/:\$(srcdir):/:/g -s/:\${srcdir}:/:/g -s/:@srcdir@:/:/g -s/^:*// -s/:*$// -x -s/\(=[ ]*\).*/\1/ -G -s/\n// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -fi # test -n "$CONFIG_FILES" - - -eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" -shift -for ac_tag -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) 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 `:'. - 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;; - esac - case $ac_f in *\'*) ac_f=`$as_echo "$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 - # 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' - `' 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;} - fi - # Neutralize special characters interpreted by sed in replacement strings. - case $configure_input in #( - *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | - sed 's/[\\\\&|]/\\\\&/g'`;; #( - *) ac_sed_conf_input=$configure_input;; - esac - - case $ac_tag in - *:-:* | *:-) cat >"$ac_tmp/stdin" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - as_dir="$ac_dir"; as_fn_mkdir_p - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$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|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= -ac_sed_dataroot=' -/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p' -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;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# 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 -ac_sed_extra="$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s|@configure_input@|$ac_sed_conf_input|;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@top_build_prefix@&$ac_top_build_prefix&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -$ac_datarootdir_hack -" -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ - >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { 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' -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' -which seems to be undefined. Please make sure it is defined" >&2;} - - rm -f "$ac_tmp/stdin" - case $ac_file in - -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; - *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; - esac \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - ;; - - - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - -done # for ac_tag - - -as_fn_exit 0 -_ACEOF -ac_clean_files=$ac_clean_files_save - -test $ac_write_fail = 0 || - as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $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;} -fi - diff --git a/contribs/qecode/configure.ac b/contribs/qecode/configure.ac deleted file mode 100644 index 18e4f9c28c..0000000000 --- a/contribs/qecode/configure.ac +++ /dev/null @@ -1,44 +0,0 @@ -dnl -dnl Author: -dnl Jeremie Vautard -dnl -dnl Copyright: -dnl UniversitÂŽ d'Orleans, 2005 -dnl -dnl Largely inspired from the map configure.ac file by GrÂŽgoire Dooms -dnl ***********************************************************[configure.ac] -dnl Copyright (c) 2007, Universite d'Orleans - Jeremie Vautard. -dnl -dnl Permission is hereby granted, free of charge, to any person obtaining a copy -dnl of this software and associated documentation files (the "Software"), to deal -dnl in the Software without restriction, including without limitation the rights -dnl to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -dnl copies of the Software, and to permit persons to whom the Software is -dnl furnished to do so, subject to the following conditions: -dnl -dnl The above copyright notice and this permission notice shall be included in -dnl all copies or substantial portions of the Software. -dnl -dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -dnl AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -dnl OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -dnl THE SOFTWARE. -dnl ************************************************************************* - - -AC_REVISION([$Revision$]) -AC_PREREQ(2.53) -AC_INIT(QECODE, 1.2, jeremie.vautard@univ-orleans.fr) -AC_CONFIG_SRCDIR(qecode.hh) - -dnl the names of the generated dlls -AC_SUBST(QECODE, "qecode") - -../../config.status --file Makefile.in:Makefile.in.in - -AC_CONFIG_COMMANDS([Makefile.in]) -AC_CONFIG_FILES([Makefile]) -AC_OUTPUT diff --git a/contribs/qecode/examples/COMPILING b/contribs/qecode/examples/COMPILING deleted file mode 100644 index 1c9e3de73f..0000000000 --- a/contribs/qecode/examples/COMPILING +++ /dev/null @@ -1,13 +0,0 @@ -To compile the examples, you must add the qecode folder and the gecode folder (i.e. .. and ../../.. from this examples folder) to your include and library paths. These examples have to been linked against the gecodeint, gecodekernel, gecodeminimodel, gecodesupport, and gecodeqecode libraries. If you built the dynamic version of the gecode/qecode libraries, you will also have to add these folders to the dynamic libraries search path. - -Example (with dynamic libs) : - For Linux, using gcc : - $ g++ stress_test.cpp -I.. -I../../.. -L.. -L../../.. -lgecodeqecode -lgecodeminimodel -lgecodesearch -lgecodeint -lgecodekernel -lgecodesupport -lpthread -o stress_test - $ export LD_LIBRARY_PATH="..:../../.." # only if using shared libraries - $ ./stress_test - - For MacOS, using gcc : - $ g++ stress_test.cpp -I.. -I../../.. -L.. -L../../.. -lgecodeqecode -lgecodeminimodel -lgecodesearch -lgecodeint -lgecodekernel -lgecodesupport -lpthread -o stress_test - $ export DYLD_LIBRARY_PATH="..:../../.." # only if using shared libraries - $ ./stress_test - diff --git a/contribs/qecode/examples/MatrixGame.cpp b/contribs/qecode/examples/MatrixGame.cpp deleted file mode 100644 index 07bbdbac3f..0000000000 --- a/contribs/qecode/examples/MatrixGame.cpp +++ /dev/null @@ -1,142 +0,0 @@ -/**** , [ MatrixGame.cpp ], -Copyright (c) 2007 Universite d'Orleans - Arnaud Lallouet - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ - -#include /* for srand, rand et RAND_MAX */ -#include /* for time */ -#include /* for pow */ - -#include - -#include -#include - -#include "qsolver_qcsp.hh" -#include "QCOPPlus.hh" - -#define UNIVERSAL true -#define EXISTENTIAL false - -// The Matrix game consists in a square boolean matrix of size 2^depth. First player cuts it vertically in two parts and removes one half, -// while secodn player do the same, but cutting the matrix horizontally. The game ends when there are only one cell left in the matrix. -// If this last cell has value 1, the first player wins. If it has value 0, the second player wins. - -// The present model of this game is pure QBF, that QeCode can handle (though not as fast as QBF solvers...) - -using namespace MiniModel; - -int main (int argc, char * const argv[]) { - - int depth = 5; // Size of the matrix is 2^depth. Larger values may take long to solve... - int nbDecisionVar = 2*depth; - int nbScope = nbDecisionVar+1; - bool* qtScopes = new bool[nbScope]; - for (int i=0;i=0; i--) - access[i]=access[i+2]*2; - - // debug - for (int i=0; i - -/////////////////////////////////////////////////////////////////////////////////////////// -// This is a model of the nim-fibonacci game. We have a N matches set. First player may // -// take between 1 and N-1 matches. Then, each player may take at most twice the number of// -// matches taken by the last player. Take the last match to win ! // -/////////////////////////////////////////////////////////////////////////////////////////// - -int main() { - for (int N = 10; N<=22;N++) // Initial number of matches - { - clock_t start, finish; - start=clock(); - - int* scopeSize = new int[N+2]; - bool* qtScope = new bool[N+2]; - for (int i=0;i -#include -#include "QCOPPlus.hh" -#include "qsolver_qcop.hh" -#include - -using namespace std; -using namespace Gecode; -using namespace Gecode::Int; - -void printStr(Strategy s,int depth) { - StrategyNode plop = s.getTag(); - for (int glou=0;glou -#include -#include "QCOPPlus.hh" -#include "qsolver_qcop.hh" -#include -#include - -using namespace std; -using namespace Gecode; -using namespace Gecode::Int; - -void printStr(Strategy s,int depth) { - StrategyNode plop = s.getTag(); - for (int glou=0;glou assignment; -void listAssignments(Strategy s) { - StrategyNode tag = s.getTag(); - if (s.isTrue()) { - // We are at the end of a branch : we print the assignment) - for (int i=0;i - -using namespace std; -using namespace Gecode; -using namespace Gecode::Int; - -// This function prints a winning strategy. -void printStr(Strategy s,int depth=0) { - StrategyNode plop = s.getTag(); - for (int glou=0;glou - -using namespace std; - -// This function prints a winning strategy. -void printStr(Strategy s,int depth=0) { - StrategyNode plop = s.getTag(); - for (int glou=0;glou x=1 - int sc1[] = {1}; - bool q1[] = {QECODE_UNIVERSAL}; - Qcop test1(1,q1,sc1); - test1.QIntVar(0,1,3); - IntVarArgs b1(1); - b1[0] = test1.var(0); - branch(*(test1.space()),b1,INT_VAR_SIZE_MIN(),INT_VAL_MIN()); - test1.nextScope(); - rel(*(test1.space()),test1.var(0) == 1); - test1.makeStructure(); - QCSP_Solver s1(&test1); - nodes=0; - Strategy ret1=s1.solve(nodes,INT_MAX,true); - cout<<"Problem 1 : result = "<<(ret1.isFalse()?"FALSE":"TRUE")<<", sould be FALSE."< x=2 - int sc3[] = {1}; - bool q3[] = {QECODE_UNIVERSAL}; - Qcop test3(1,q3,sc3); - test3.QIntVar(0,1,3); - rel(*(test3.space()),test3.var(0) == 1); - - IntVarArgs b3(1); - b3[0] = test3.var(0); - branch(*(test3.space()),b3,INT_VAR_SIZE_MIN(),INT_VAL_MIN()); - - test3.nextScope(); - rel(*(test3.space()),test3.var(0) == 2); - test3.makeStructure();; - QCSP_Solver s3(&test3); - nodes=0; - steps=0; - Strategy ret3=s3.solve(nodes,INT_MAX,true); - cout<<"Problem 3 : result = "<<(ret3.isFalse()?"FALSE":"TRUE")<<", sould be FALSE."< Ey in 1..3 [x=2] -> y=1 - int sc5[] = {1,1}; - bool q5[] = {QECODE_UNIVERSAL,QECODE_EXISTENTIAL}; - Qcop test5(2,q5,sc5); - test5.QIntVar(0,1,3); - test5.QIntVar(1,1,3); - rel(*(test5.space()),test5.var(0) == 1); - - IntVarArgs b5(1); - b5[0] = test5.var(0); - branch(*(test5.space()),b5,INT_VAR_SIZE_MIN(),INT_VAL_MIN()); - - test5.nextScope(); - rel(*(test5.space()),test5.var(0) == 2); - - IntVarArgs b52(2); - b52[0] = test5.var(0); - b52[1] = test5.var(1); - branch(*(test5.space()),b52,INT_VAR_SIZE_MIN(),INT_VAL_MIN()); - - test5.nextScope(); - rel(*(test5.space()),test5.var(1) == 1); - test5.makeStructure(); - QCSP_Solver s5(&test5); - nodes=0; - steps=0; - Strategy ret5=s5.solve(nodes,INT_MAX,true); - cout<<"Problem 5 : result = "<<(ret5.isFalse()?"FALSE":"TRUE")<<", sould be FALSE."< Ey in 1..3 [x=1] -> x=2 - int sc6[] = {1,1}; - bool q6[] = {QECODE_UNIVERSAL,QECODE_EXISTENTIAL}; - Qcop test6(2,q6,sc6); - test6.QIntVar(0,1,3); - test6.QIntVar(1,1,3); - rel(*(test6.space()),test6.var(0) == 1); - - IntVarArgs b6(1); - b6[0] = test6.var(0); - branch(*(test6.space()),b6,INT_VAR_SIZE_MIN(),INT_VAL_MIN()); - - test6.nextScope(); - rel(*(test6.space()),test6.var(0) == 1); - - IntVarArgs b62(2); - b62[0] = test6.var(0); - b62[1] = test6.var(1); - branch(*(test6.space()),b62,INT_VAR_SIZE_MIN(),INT_VAL_MIN()); - - test6.nextScope(); - rel(*(test6.space()),test6.var(0) == 2); - test6.makeStructure(); - QCSP_Solver s6(&test6); - nodes=0; - steps=0; - Strategy ret6=s6.solve(nodes,INT_MAX,true); - cout<<"Problem 6 : result = "<<(ret6.isFalse()?"FALSE":"TRUE")<<", sould be FALSE."< y=0 - int sc7[] = {1,1}; - bool q7[] = {QECODE_EXISTENTIAL,QECODE_UNIVERSAL}; - Qcop test7(2,q7,sc7); - test7.QIntVar(0,1,3); - test7.QIntVar(1,0,3); - - IntVarArgs b7(1); - b7[0] = test7.var(0); - branch(*(test7.space()),b7,INT_VAR_SIZE_MIN(),INT_VAL_MIN()); - - test7.nextScope(); - rel(*(test7.space()),test7.var(1) <= 2); - - IntVarArgs b72(2); - b72[0] = test7.var(0); - b72[1] = test7.var(1); - branch(*(test7.space()),b72,INT_VAR_SIZE_MIN(),INT_VAL_MIN()); - - test7.nextScope(); - rel(*(test7.space()),test7.var(1) == 0); - test7.makeStructure(); - QCSP_Solver s7(&test7); - nodes=0; - steps=0; - Strategy ret7=s7.solve(nodes,INT_MAX,true); - cout<<"Problem 7 : result = "<<(ret7.isFalse()?"FALSE":"TRUE")<<", sould be FALSE."< y=0 - int sc8[] = {1,1}; - bool q8[] = {QECODE_EXISTENTIAL,QECODE_UNIVERSAL}; - Qcop test8(2,q8,sc8); - test8.QIntVar(0,1,3); - test8.QIntVar(1,0,3); - - IntVarArgs b8(1); - b8[0] = test8.var(0); - branch(*(test8.space()),b8,INT_VAR_SIZE_MIN(),INT_VAL_MIN()); - - test8.nextScope(); - rel(*(test8.space()),test8.var(1) == 0); - - IntVarArgs b82(2); - b82[0] = test8.var(0); - b82[1] = test8.var(1); - branch(*(test8.space()),b82,INT_VAR_SIZE_MIN(),INT_VAL_MIN()); - - test8.nextScope(); - rel(*(test8.space()),test8.var(1) == 0); - test8.makeStructure(); - QCSP_Solver s8(&test8); - nodes=0; - steps=0; - Strategy ret8=s8.solve(nodes,INT_MAX,true); - cout<<"Problem 8 : result = "<<(ret8.isFalse()?"FALSE":"TRUE")<<", sould be TRUE."<failed()) return; - IntView xv(x); - IntSetRanges ris(is); - GECODE_ME_FAIL(home,xv.minus_r(home,ris)); -} - -void myAntidom_bool(Space* home, BoolVar x, const IntSet& is, IntConLevel) { - if (home->failed()) return; - BoolView xv(x); - IntSetRanges ris(is); - GECODE_ME_FAIL(home,xv.minus_r(home,ris)); -} - -/* -void myDom_int(Space* home, IntVar x, const IntSet& is, IntConLevel) { - if (home->failed()) return; - IntView xv(x); - IntSetRanges ris(is); - GECODE_ME_FAIL(home,xv.inter_r(home,ris)); -} - -void myDom_bool(Space* home, BoolVar x, const IntSet& is, IntConLevel) { - if (home->failed()) return; - BoolView xv(x); - IntSetRanges ris(is); - GECODE_ME_FAIL(home,xv.inter_r(home,ris)); -} -*/ - -#endif diff --git a/contribs/qecode/myspace.cc b/contribs/qecode/myspace.cc deleted file mode 100755 index 05d6e7c452..0000000000 --- a/contribs/qecode/myspace.cc +++ /dev/null @@ -1,119 +0,0 @@ -/*****************************************************************[myspace.cc] -Copyright (c) 2007, Universite d'Orleans - Jeremie Vautard, Marco Benedetti, -Arnaud Lallouet. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*****************************************************************************/ -#include "./myspace.hh" -#include - - -using namespace std; - -MySpace::MySpace(unsigned int nv) : Space() { - // cout <<"Space with "<(v[i]); - break; - case VTYPE_BOOL : - delete static_cast(v[i]); - break; - default : - cout<<"Unsupported variable type"<(ms.v[i]))); - (static_cast(v[i]))->update(*this,share,*(static_cast(ms.v[i]))); - break; - case VTYPE_BOOL : - v[i] = new BoolVar(*(static_cast(ms.v[i]))); - (static_cast(v[i]))->update(*this,share,*(static_cast(ms.v[i]))); - break; - default: - cout<<"Unsupported variable type"<(v[i])); - cpt++; - } - } - - return ret; -} - -BoolVarArgs MySpace::getBoolVars(unsigned int idMax) { - int cpt=0; - int i=0; - if (n(v[i])); - cpt++; - } - } - - return ret; -} diff --git a/contribs/qecode/myspace.hh b/contribs/qecode/myspace.hh deleted file mode 100755 index f850756bfe..0000000000 --- a/contribs/qecode/myspace.hh +++ /dev/null @@ -1,79 +0,0 @@ -/*****************************************************************[myspace.hh] - Copyright (c) 2007, Universite d'Orleans - Jeremie Vautard, Marco Benedetti, - Arnaud Lallouet. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - *****************************************************************************/ -#ifndef __QECODE_MYSPACE__ -#define __QECODE_MYSPACE__ - -#include "qecode.hh" -#include -#include "gecode/minimodel.hh" -#include "vartype.hh" - -using namespace Gecode; -using namespace Gecode::Int; - -/** \brief A simple extension of Gecode::Space class - * - * A simple extension of the Space class from Gecode, in order to have access to the variables it contains. - */ - -class QECODE_VTABLE_EXPORT MySpace : public Space { - - protected : - unsigned int n; - -public: - /** \brief This array contains all the variables this space contains. - */ - void** v; - - /** \brief This array indicates the type of each variable - */ - VarType* type_of_v; - - /** \brief Constructor of a space with a fixed number of variables - * - * Builds a space which will contain nv variables (the variables themselves are however not declared). - * @param nv the number of variable the space must contain. - */ - QECODE_EXPORT MySpace(unsigned int nv); - QECODE_EXPORT int nbVars() {return n;} - QECODE_EXPORT MySpace(bool share,MySpace& ms); - QECODE_EXPORT virtual MySpace* copy(bool share); - QECODE_EXPORT virtual ~MySpace(); - QECODE_EXPORT int getValue(unsigned int i); ///< returns the value of variable i. If boolean : 0 or 1 (false / true). - - /** \brief Returns the integer variables before idMax - * - * Returns an IntVarArgs containing all the integer variables of index inferior than parameter idMax - */ - QECODE_EXPORT IntVarArgs getIntVars(unsigned int idMax); - - /** \brief Returns the boolean variables before idMax - * - * Returns a BoolVarArgs containing all the boolean variables of index inferior than parameter idMax - */ - QECODE_EXPORT BoolVarArgs getBoolVars(unsigned int idMax); - -}; - -#endif diff --git a/contribs/qecode/qecode.hh b/contribs/qecode/qecode.hh deleted file mode 100644 index 8d77bb7dc1..0000000000 --- a/contribs/qecode/qecode.hh +++ /dev/null @@ -1,56 +0,0 @@ -/**** , [ qecode.hh ], -Copyright (c) 2007 Universite d'Orleans - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ - -#ifndef __QECODE_HH__ -#define __QECODE_HH__ - -#include "gecode/kernel.hh" - -#if !defined(GECODE_STATIC_LIBS) && \ -(defined(__CYGWIN__) || defined(__MINGW32__) || defined(_MSC_VER)) - -#define QECODE_VTABLE_EXPORT - -#ifdef GECODE_BUILD_QECODE -#define QECODE_EXPORT __declspec( dllexport ) -#else -#define QECODE_EXPORT __declspec( dllimport ) -#endif - -#else - -#ifdef GECODE_GCC_HAS_CLASS_VISIBILITY - -#define QECODE_VTABLE_EXPORT __attribute__ ((visibility("default"))) -#define QECODE_EXPORT __attribute__ ((visibility("default"))) - -#else -#define QECODE_VTABLE_EXPORT -#define QECODE_EXPORT - -#endif -#endif - -#define QECODE_EXISTENTIAL false -#define QECODE_UNIVERSAL true - -#endif diff --git a/contribs/qecode/qsolver_parallel.cc b/contribs/qecode/qsolver_parallel.cc deleted file mode 100644 index 9dc44b201a..0000000000 --- a/contribs/qecode/qsolver_parallel.cc +++ /dev/null @@ -1,41 +0,0 @@ -/************************************************************ qsolver_parallel.cc - Copyright (c) 2010 Universite d'Orleans - Jeremie Vautard - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - *************************************************************************/ - -#include "qsolver_parallel.hh" - -QCSP_Parallel_Solver::QCSP_Parallel_Solver(Qcop* sp,WorkComparator* c,unsigned int nbWorkers) : wm(sp,c) { - workers = new QWorker*[nbWorkers]; - nw = nbWorkers; - for (unsigned int i=0;i -#include -#include "Strategy.hh" -#include "qecode.hh" - - -class QECODE_VTABLE_EXPORT QCSP_Parallel_Solver { - - private : - WorkManager wm; - QWorker** workers; - unsigned int nw; - - public : - - QECODE_EXPORT QCSP_Parallel_Solver(Qcop* sp,WorkComparator* c,unsigned int nbWorkers); - QECODE_EXPORT Strategy solve(); -}; \ No newline at end of file diff --git a/contribs/qecode/qsolver_qcop.cc b/contribs/qecode/qsolver_qcop.cc deleted file mode 100644 index 0cb8706b90..0000000000 --- a/contribs/qecode/qsolver_qcop.cc +++ /dev/null @@ -1,268 +0,0 @@ -/**** , [ qsolver_qcop.cc ], -Copyright (c) 2010 Universite de Caen Basse Normandie - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ - -#include "qsolver_qcop.hh" -#include - -QCOP_solver::QCOP_solver(Qcop* sp) { - this->sp = sp; - nbRanges=new int; -} - -Strategy QCOP_solver::solve(unsigned long int& nodes) { - vector plop; - plop.clear(); - return rSolve(sp,0,plop,nodes); -} - -Strategy QCOP_solver::rSolve(Qcop* qs,int scope, vector assignments, unsigned long int& nodes) { - nodes++; -// cout<<"rSolve for scope "<spaces()) { -// cout<<"First case"<getGoal(); - if (g == NULL) {/*cout<<"the goal was null"<nbVars();i++) { - switch (g->type_of_v[i]) { - case VTYPE_INT : - rel(*g,*(static_cast(g->v[i])) == assignments[i]); - break; - case VTYPE_BOOL : - rel(*g,*(static_cast(g->v[i])) == assignments[i]); - break; - default : - cout<<"1Unknown variable type"<status() == SS_FAILED) { -// cout<<"goal failed after assignments"<getSpace(scope); - if (espace == NULL) cout<<"I caught a NULL for scope "<type_of_v[i]) { - case VTYPE_INT : - rel(*espace,*(static_cast(espace->v[i])) == assignments[i]); - break; - case VTYPE_BOOL : - rel(*espace,*(static_cast(espace->v[i])) == assignments[i]); - break; - default : - cout<<"2Unknown variable type"<quantification(scope)) { -// cout<<"universal"<status() == SS_FAILED) { -// cout<<"the scope is failed"< solutions(espace); - MySpace* sol = solutions.next(); - if (sol == NULL) { -// cout<<"first sol is null"< assign; - for (int i = 0; inbVars();i++) { - switch (sol->type_of_v[i]) { - case VTYPE_INT : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"3Unknown variable type"<nbVarInScope(scope-1)) ); - int vmax = (qs->nbVarInScope(scope))-1; - vector zevalues; - for (int i = vmin; i<=vmax;i++) { - switch (sol->type_of_v[i]) { - case VTYPE_INT : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"4Unknown variable type"<status()) == SS_FAILED) { -// cout<<"the Espace is failed"< solutions(espace); - MySpace* sol =solutions.next(); - if (sol == NULL) { -// cout<<"the first sol is null"<getOptVar(scope); - int opttype = qs->getOptType(scope); - Strategy retour(StrategyNode::SFalse()); - int score= ( (opttype == 1) ? INT_MAX : INT_MIN ); - while (sol != NULL) { -// cout<<"une solution"< assign; - for (int i = 0; inbVars();i++) { - switch (sol->type_of_v[i]) { - case VTYPE_INT : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"5Unknown variable type"<nbVarInScope(scope-1) ); - int vmax = qs->nbVarInScope(scope)-1; - vector zevalues; - for (int i = vmin; i<=vmax;i++) { - switch (sol->type_of_v[i]) { - case VTYPE_INT : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"6unknown Variable type"<getVal(candidate); -// cout<<"score of candidate is "< score) { - retour=candidate; - score=score_of_candidate; - } - break; - default : - cout<<"Unknown opt type : "< -#include -#include "gecode/minimodel.hh" -#include "gecode/search.hh" -#include "Strategy.hh" -#include "qecode.hh" - -using namespace Gecode; -/** General QCSP+ / QCOP+ Solver. - * This class is the search engine for Qcop objects. -*/ -class QECODE_VTABLE_EXPORT QCOP_solver { - -private: - int n; - Qcop* sp; - int* nbRanges; - Strategy rSolve(Qcop* qs,int scope,vector assignments,unsigned long int& nodes); -public: - /** Public constructor. - @param sp The problem to solve - */ - QECODE_EXPORT QCOP_solver(Qcop* sp); - - /** Solves the problem and returns a corresponding winning strategy. - @param nodes A reference that is increased by the number of nodes encountered in the search tree. - */ - QECODE_EXPORT Strategy solve(unsigned long int& nodes); -}; - -#endif diff --git a/contribs/qecode/qsolver_qcsp.cc b/contribs/qecode/qsolver_qcsp.cc deleted file mode 100644 index 23db6dba59..0000000000 --- a/contribs/qecode/qsolver_qcsp.cc +++ /dev/null @@ -1,178 +0,0 @@ -/**** , [ QCSP_Solver.cc ], - Copyright (c) 2008 Universite d'Orleans - Jeremie Vautard - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - *************************************************************************/ - -#include "qsolver_qcsp.hh" -#include - -inline vector getTheValues(MySpace* sol,int vmin,int vmax) -{ - vector zevalues; - // cout< (sol->nbVars())) cout<<"getTheValues mal appele"<type_of_v[i]) { - case VTYPE_INT : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"4Unknown variable type"<sp = sp; - nbRanges=new int; -} - -Strategy QCSP_Solver::solve(unsigned long int& nodes, unsigned int limit,bool allStrategies) -{ - this->limit=limit; - MySpace* espace=sp->getSpace(0); - Options o; - Engine* solutions = new WorkerToEngine(espace,/*sizeof(MySpace),*/o); - return rSolve(sp,0,solutions,nodes,allStrategies); -} - - - -Strategy QCSP_Solver::rSolve(Qcop* qs,int scope,Engine* L, unsigned long int& nodes,bool allStrategies) -{ - nodes++; - MySpace* sol = static_cast(L->next()); - Strategy ret=Strategy::Dummy(); - bool LwasEmpty = true; - bool atLeastOneExistential = false; - while ((sol != NULL) ) { - LwasEmpty=false; - vector assignments = getTheValues(sol,0,sol->nbVars()-1); - Strategy result; - - if (scope == (qs->spaces() - 1) ) { // last scope reached. Verify the goal... - MySpace* g = qs->getGoal(); - for (int i=0; inbVars(); i++) { - switch (g->type_of_v[i]) { - case VTYPE_INT : - rel(*g,*(static_cast(g->v[i])) == assignments[i]); - break; - case VTYPE_BOOL : - rel(*g,*(static_cast(g->v[i])) == assignments[i]); - break; - default : - cout<<"Unknown variable type"< solutions(g); - MySpace* goalsol = solutions.next(); - if (goalsol == NULL) { - delete g; - result = Strategy::SFalse(); - } else { - int vmin = ( (scope==0)? 0 : (qs->nbVarInScope(scope-1)) ); - int vmax = (qs->nbVarInScope(scope))-1; - vector zevalues=getTheValues(sol,vmin,vmax); - result = Strategy::STrue(); -// result=Strategy(qs->quantification(scope),vmin,vmax,scope,zevalues); -// result.attach(Strategy::STrue()); - delete g; - // delete sol; - delete goalsol; - } - } - - else { // This is not the last scope... - MySpace* espace = qs->getSpace(scope+1); - for (int i=0; itype_of_v[i]) { - case VTYPE_INT : - rel(*espace,*(static_cast(espace->v[i])) == assignments[i]); - break; - case VTYPE_BOOL : - rel(*espace,*(static_cast(espace->v[i])) == assignments[i]); - break; - default : - cout<<"Unknown variable type"<(espace,/*sizeof(MySpace),*/o); - delete espace; - result=rSolve(qs,scope+1,solutions,nodes,allStrategies); - } - - int vmin = ( (scope == 0) ? 0 : (qs->nbVarInScope(scope-1)) ); - int vmax = (qs->nbVarInScope(scope))-1; - vector zevalues=getTheValues(sol,vmin,vmax); - delete sol; - if (qs->quantification(scope)) { // current scope is universal - if (result.isFalse()) { // one branch fails - delete L; - return Strategy::SFalse(); - } else { - Strategy toAttach(true,vmin,vmax,scope,zevalues); - toAttach.attach(result); - ret.attach(toAttach); - } - } else { //current scope is existential - if (!result.isFalse()) { // result is not the trivially false strategy... - atLeastOneExistential =true; - Strategy toAttach; - if (allStrategies) { - // We want to save every possible strategies. Each correct existential branch will be saved - if (scope >= limit) toAttach = Strategy::STrue(); - else { - toAttach = Strategy(qs->quantification(scope),vmin,vmax,scope,zevalues); - toAttach.attach(result); - } - ret.attach(toAttach); - } else { - //We want only one possible strategy. We found an assignment which leads to a valid substrategy. So, we return it immediately - delete L; - if (scope >= limit) return Strategy::STrue(); - ret = Strategy(qs->quantification(scope),vmin,vmax,scope,zevalues); - ret.attach(result); - return ret; - } - } - } - sol = static_cast(L->next()); - } - delete L; - if (scope>limit) - ret = Strategy::STrue(); - if (qs->quantification(scope)) //universal scope - return (LwasEmpty ? Strategy::STrue() : ret); - else // existnetial Scope - return (atLeastOneExistential ? ret : Strategy::SFalse()); -} diff --git a/contribs/qecode/qsolver_qcsp.hh b/contribs/qecode/qsolver_qcsp.hh deleted file mode 100644 index 6239d55e95..0000000000 --- a/contribs/qecode/qsolver_qcsp.hh +++ /dev/null @@ -1,66 +0,0 @@ -/**** , [ qsolver.hh ], -Copyright (c) 2010 Universite de Caen-Basse Normandie - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ -#ifndef __QECODE_QSOLVER_QCSP__ -#define __QECODE_QSOLVER_QCSP__ - -#include "QCOPPlus.hh" -#include -#include -#include "gecode/minimodel.hh" -#include "gecode/search.hh" -#include "gecode/search/support.hh" -#include "gecode/search/sequential/dfs.hh" -#include -#include "Strategy.hh" -#include "qecode.hh" - -using namespace std; -using namespace Gecode::Support; -using namespace Gecode::Search; -using namespace Gecode::Search::Sequential; - -/** General QCSP+ / QCOP+ Solver. - * This class is the search engine for Qcop objects. -*/ -class QECODE_VTABLE_EXPORT QCSP_Solver { - -private: - unsigned int limit; - int n; - Qcop* sp; - int* nbRanges; - Strategy rSolve(Qcop* qs,int scope,Engine* L,unsigned long int& nodes,bool allStrategies); -public: - /** Public constructor. - @param sp The problem to solve - */ - QECODE_EXPORT QCSP_Solver(Qcop* sp); - - /** Solves the problem and returns a corresponding winning strategy. - @param nodes : A reference that is increased by the number of nodes encountered in the search tree. - @param limit : limit of the depth of the Strategy object returned. Any branch longer than this limit will be truncated. - @param allStrategies : indicate if the solver should return only one winning strategy, or all of them (condensed in one Strategy object, where existential nodes will not be unique) - */ - QECODE_EXPORT Strategy solve(unsigned long int& nodes,unsigned int limit=INT_MAX,bool allStrategies=false); -}; - -#endif diff --git a/contribs/qecode/qsolver_unblockable.cc b/contribs/qecode/qsolver_unblockable.cc deleted file mode 100755 index 1b9649f0ac..0000000000 --- a/contribs/qecode/qsolver_unblockable.cc +++ /dev/null @@ -1,423 +0,0 @@ -/**** , [ QSolverUnblockable.cc ], -Copyright (c) 2008 Universite d'Orleans - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*************************************************************************/ - -#include "qsolver_unblockable.hh" -#include - -QSolverUnblockable::QSolverUnblockable(QcspUnblockable* sp) { - this->sp = sp; - nbRanges=new int; -} - -Strategy QSolverUnblockable::solve(unsigned long int& nodes) { - vector plop; - plop.clear(); - return rSolve(sp,0,plop,nodes); -} - -Strategy QSolverUnblockable::rSolve(QcspUnblockable* qs,int scope, vector assignments, unsigned long int& nodes) { - nodes++; - //cout<<"rSolve for scope "<getGoal(); - if (g == NULL) {return Strategy(StrategyNode::SFalse());} - for (int i=0;itype_of_v[i]) { - case VTYPE_INT : - rel(*g,*(static_cast(g->v[i])) == assignments[i]); - break; - case VTYPE_BOOL : - rel(*g,*(static_cast(g->v[i])) == assignments[i]); - break; - default : - cout<<"1Unknown variable type"<status() == SS_FAILED) { - delete g; - return Strategy(StrategyNode::SFalse()); - } - delete g; - - if (scope == qs->spaces()) { - return Strategy(StrategyNode::STrue()); - } - - ///////////////////////////////////////////////////////////////////////////////////////// - // Second case : we are in the middle of the problem... // - ///////////////////////////////////////////////////////////////////////////////////////// - else { - MySpace* espace = qs->getSpace(scope); - if (espace == NULL) cout<<"I caught a NULL for scope "<type_of_v[i]) { - case VTYPE_INT : - rel(*espace,*(static_cast(espace->v[i])) == assignments[i]); - break; - case VTYPE_BOOL : - rel(*espace,*(static_cast(espace->v[i])) == assignments[i]); - break; - default : - cout<<"2Unknown variable type"<quantification(scope)) { - if (espace->status() == SS_FAILED) { - delete espace; - return Strategy(StrategyNode::STrue()); - } - - DFS solutions(espace); - MySpace* sol = solutions.next(); - if (sol == NULL) { - delete espace; - return Strategy(StrategyNode::STrue()); - } - - Strategy retour = StrategyNode::Dummy(); - while (sol != NULL) { - vector assign; - for (int i = 0; inbVarInScope(scope);i++) { - switch (sol->type_of_v[i]) { - case VTYPE_INT : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"3Unknown variable type"<nbVarInScope(scope-1)) ); - int vmax = (qs->nbVarInScope(scope))-1; - vector zevalues; - for (int i = vmin; i<=vmax;i++) { - switch (sol->type_of_v[i]) { - case VTYPE_INT : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"4Unknown variable type"<status()) == SS_FAILED) { - delete espace; - return Strategy(StrategyNode::SFalse()); - } - - DFS solutions(espace); - MySpace* sol =solutions.next(); - if (sol == NULL) { - delete espace; - return Strategy(StrategyNode::SFalse()); - } - while (sol != NULL) { - vector assign; - for (int i = 0; inbVarInScope(scope);i++) { - // cout << "i = "<type_of_v[i]) { - case VTYPE_INT : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"5Unknown variable type"<nbVarInScope(scope-1) ); - int vmax = qs->nbVarInScope(scope)-1; - vector zevalues; - for (int i = vmin; i<=vmax;i++) { - switch (sol->type_of_v[i]) { - case VTYPE_INT : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"6unknown Variable type"<sp = sp; - nbRanges=new int; -} - -Strategy QSolverUnblockable2::solve(unsigned long int& nodes) { - vector plop; - plop.clear(); - return rSolve(sp,0,plop,nodes); -} - -Strategy QSolverUnblockable2::rSolve(Qcop* qs,int scope, vector assignments, unsigned long int& nodes) { - nodes++; - //cout<<"rSolve for scope "<getGoal(); - if (g == NULL) {return Strategy(StrategyNode::SFalse());} - for (int i=0;itype_of_v[i]) { - case VTYPE_INT : - rel(*g,*(static_cast(g->v[i])) == assignments[i]); - break; - case VTYPE_BOOL : - rel(*g,*(static_cast(g->v[i])) == assignments[i]); - break; - default : - cout<<"1Unknown variable type"<status() == SS_FAILED) { - delete g; - return Strategy(StrategyNode::SFalse()); - } - delete g; - - if (scope == qs->spaces()) { - return Strategy(StrategyNode::STrue()); - } - - ///////////////////////////////////////////////////////////////////////////////////////// - // Second case : we are in the middle of the problem... // - ///////////////////////////////////////////////////////////////////////////////////////// - else { - MySpace* espace = qs->getSpace(scope); - if (espace == NULL) cout<<"I caught a NULL for scope "<type_of_v[i]) { - case VTYPE_INT : - rel(*espace,*(static_cast(espace->v[i])) == assignments[i]); - break; - case VTYPE_BOOL : - rel(*espace,*(static_cast(espace->v[i])) == assignments[i]); - break; - default : - cout<<"2Unknown variable type"<quantification(scope)) { - if (espace->status() == SS_FAILED) { - delete espace; - return Strategy(StrategyNode::STrue()); - } - - DFS solutions(espace); - MySpace* sol = solutions.next(); - if (sol == NULL) { - delete espace; - return Strategy(StrategyNode::STrue()); - } - - Strategy retour = StrategyNode::Dummy(); - while (sol != NULL) { - vector assign; - for (int i = 0; inbVarInScope(scope);i++) { - switch (sol->type_of_v[i]) { - case VTYPE_INT : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"3Unknown variable type"<nbVarInScope(scope-1)) ); - int vmax = (qs->nbVarInScope(scope))-1; - vector zevalues; - for (int i = vmin; i<=vmax;i++) { - switch (sol->type_of_v[i]) { - case VTYPE_INT : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"4Unknown variable type"<status()) == SS_FAILED) { - delete espace; - return Strategy(StrategyNode::SFalse()); - } - - DFS solutions(espace); - MySpace* sol =solutions.next(); - if (sol == NULL) { - delete espace; - return Strategy(StrategyNode::SFalse()); - } - while (sol != NULL) { - vector assign; - for (int i = 0; inbVarInScope(scope);i++) { - // cout << "i = "<type_of_v[i]) { - case VTYPE_INT : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - assign.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"5Unknown variable type"<nbVarInScope(scope-1) ); - int vmax = qs->nbVarInScope(scope)-1; - vector zevalues; - for (int i = vmin; i<=vmax;i++) { - switch (sol->type_of_v[i]) { - case VTYPE_INT : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - case VTYPE_BOOL : - zevalues.push_back( (static_cast(sol->v[i]))->val() ); - break; - default : - cout<<"6unknown Variable type"< -#include -#include "gecode/minimodel.hh" -#include "gecode/search.hh" -#include "Strategy.hh" -#include "qecode.hh" - -using namespace Gecode; - -/** Unblockable QCSP+ Solver. -* This class is the search engine for unblockable QCSP+ defined with the qpecial QcspUnblockable class. -*/ -class QECODE_VTABLE_EXPORT QSolverUnblockable { - -private: - int n; - QcspUnblockable* sp; - int* nbRanges; - Strategy rSolve(QcspUnblockable* qs,int scope,vector assignments,unsigned long int& nodes); - -public: - /** Public constructor. - @param sp The problem to solve - */ - QECODE_EXPORT QSolverUnblockable(QcspUnblockable* sp); - - /** Solves the problem and returns a corresponding winning strategy. - @param nodes A reference that is increased by the number of nodes encountered in the search tree. - */ - QECODE_EXPORT Strategy solve(unsigned long int& nodes); -}; - - -/** Unblockable QCSP+ Solver. -* This class is the search engine for unblockable QCSP+ defined with the general Qcop class. -*/ -class QECODE_VTABLE_EXPORT QSolverUnblockable2 { - -private: - int n; - Qcop* sp; - int* nbRanges; - Strategy rSolve(Qcop* qs,int scope,vector assignments,unsigned long int& nodes); - -public: - /** Public constructor. - @param sp The problem to solve - */ - QECODE_EXPORT QSolverUnblockable2(Qcop* sp); - - /** Solves the problem and returns a corresponding winning strategy. - WARNING : Defined optimization conditions and aggregates are NOT taken into account. - @param nodes A reference that is increased by the number of nodes encountered in the search tree. - */ - QECODE_EXPORT Strategy solve(unsigned long int& nodes); -}; - -#endif diff --git a/contribs/qecode/shortdesc.ac b/contribs/qecode/shortdesc.ac deleted file mode 100644 index 9d96dacfab..0000000000 --- a/contribs/qecode/shortdesc.ac +++ /dev/null @@ -1 +0,0 @@ -Qecode - A quantified constraint solver \ No newline at end of file diff --git a/contribs/qecode/vartype.hh b/contribs/qecode/vartype.hh deleted file mode 100644 index fa51ba97c1..0000000000 --- a/contribs/qecode/vartype.hh +++ /dev/null @@ -1,31 +0,0 @@ -/**** qecode2, [ vartype.hh ], -Copyright (c) 2007 Universite d'Orleans - Jeremie Vautard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - *************************************************************************/ - -#ifndef QECODE_VARTYPE -#define QECODE_VARTYPE - -enum VarType { - VTYPE_INT, - VTYPE_BOOL -}; - -#endif diff --git a/contribs/quacode/CMakeLists.txt b/contribs/quacode/CMakeLists.txt deleted file mode 100644 index 47c58b73a9..0000000000 --- a/contribs/quacode/CMakeLists.txt +++ /dev/null @@ -1,200 +0,0 @@ -# -# Main authors: -# Vincent Barichard -# -# Copyright: -# Vincent Barichard, 2013 -# -# Last modified: -# $Date$ by $Author$ -# $Revision$ -# -# This file is part of Quacode: -# http://quacode.barichard.com -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# - -CMAKE_MINIMUM_REQUIRED(VERSION 2.8) - -SET(GECODE_SRC "${CMAKE_SOURCE_DIR}/../.." CACHE PATH "Path where GeCode source is installed") -SET(GECODE_BIN "${GECODE_SRC}" CACHE PATH "Path where GeCode libs and binaries are installed") -SET(BUILD_EXAMPLES ON CACHE BOOL "Build examples or not") - -# If the user specifies -DCMAKE_BUILD_TYPE on the command line, take their definition -# and dump it in the cache along with proper documentation, otherwise set CMAKE_BUILD_TYPE -# to Debug prior to calling PROJECT() -# -IF(NOT DEFINED CMAKE_BUILD_TYPE) - # Check if Gecode is configured with --enable-debug - FILE(STRINGS ${GECODE_BIN}/config.status GECODE_DEBUG_BUILD REGEX "S\\[\"DEBUG_BUILD\"\\]=") - IF(GECODE_DEBUG_BUILD MATCHES "yes") - SET(QUACODE_BUILD_TYPE "Debug") - ELSE() - SET(QUACODE_BUILD_TYPE "Release") - ENDIF() - - SET(CMAKE_BUILD_TYPE "${QUACODE_BUILD_TYPE}" CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.") -ENDIF() - -PROJECT(Quacode) -SET(CMAKE_CXX_FLAGS "-std=c++11") - -SET(CMAKE_VERBOSE_MAKEFILE TRUE) - -# Check if Gecode is configured with --enable-audit -FILE(STRINGS ${GECODE_BIN}/config.status GECODE_AUDIT REGEX "D\\[\"GECODE_AUDIT\"\\]=") -IF(GECODE_AUDIT) - SET(QUACODE_AUDIT TRUE) -ELSE() - SET(QUACODE_AUDIT FALSE) -ENDIF() -SET(LOG_AUDIT ${QUACODE_AUDIT} CACHE BOOL "Set to true to generate log output.") - -IF(UNIX) - # determine, whether we want a static binary - SET(STATIC_LINKING FALSE CACHE BOOL "Build a static binary?") - # do we want static libraries? - IF(STATIC_LINKING) - SET(BUILD_SHARED_LIBS OFF) - # To know in source file that we compil static - ADD_DEFINITIONS(-DQUACODE_STATIC_LIBS) - # When STATIC_LINKING is TRUE, than cmake looks for libraries ending - # with .a. This is for linux only! - SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a") - SET(CMAKE_EXE_LINKER_FLAGS "-static") - # Remove flags to get rid off all the -Wl,Bydnamic - SET(CMAKE_EXE_LINK_DYNAMIC_C_FLAGS) - SET(CMAKE_EXE_LINK_DYNAMIC_CXX_FLAGS) - # Use static libs for Boost - SET(Boost_USE_STATIC_LIBS ON) - SET(Boost_USE_STATIC_RUNTIME ON) - ELSE(STATIC_LINKING) - SET(BUILD_SHARED_LIBS ON) - ENDIF(STATIC_LINKING) -ELSE(UNIX) - SET(BUILD_SHARED_LIBS ON) -ENDIF(UNIX) - -SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_MODULE_PATH}) -FIND_PACKAGE(Gecode) - -IF(NOT GECODE_FOUND) - MESSAGE(FATAL_ERROR "Gecode is needed, consider to install it") -ELSE (NOT GECODE_FOUND) - INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) - INCLUDE_DIRECTORIES(${GECODE_BIN}) - INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) - INCLUDE_DIRECTORIES(${GECODE_SRC}) - - LINK_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) - LINK_DIRECTORIES(${GECODE_BIN}) - - IF (CMAKE_COMPILER_IS_GNUCXX) - ADD_DEFINITIONS(-Wall) - ADD_DEFINITIONS(-Wextra) - ADD_DEFINITIONS(-Wno-unused-local-typedefs) - ADD_DEFINITIONS(-fimplement-inlines) - ADD_DEFINITIONS(-fno-inline-functions) - ADD_DEFINITIONS(-pipe) - ADD_DEFINITIONS(-fPIC) - SET(CMAKE_CXX_FLAGS_DEBUG "-ggdb") - ENDIF () - - IF (LOG_AUDIT) - ADD_DEFINITIONS(-DLOG_AUDIT) - ENDIF() - - INCLUDE(CheckCXXCompilerFlag) - check_cxx_compiler_flag(-fvisibility=hidden HAVE_VISIBILITY_HIDDEN_FLAG) - IF (HAVE_VISIBILITY_HIDDEN_FLAG) - ADD_DEFINITIONS(-fvisibility=hidden) - ADD_DEFINITIONS(-DQUACODE_GCC_HAS_CLASS_VISIBILITY) - ENDIF() - - FIND_PACKAGE(Threads) - - SET(QUACODE_HEADERS - quacode/qcsp.hh - quacode/qspaceinfo.hh - quacode/support/dynamic-list.hh - quacode/support/log.hh - quacode/search/sequential/qpath.hh - quacode/search/sequential/qdfs.hh - quacode/qint/qbool.hh - ) - SET(QUACODE_HPP - quacode/qspaceinfo.hpp - quacode/search/qdfs.hpp - quacode/qint/watch.hpp - quacode/qint/qbool/clause.hpp - quacode/qint/qbool/eq.hpp - quacode/qint/qbool/eqv.hpp - quacode/qint/qbool/or.hpp - quacode/qint/qbool/xor.hpp - quacode/qint/qbool/xorv.hpp - ) - SET(QUACODE_SRCS - quacode/qspaceinfo.cpp - quacode/support/log.cpp - quacode/search/qdfs.cpp - quacode/search/sequential/qpath.cpp - quacode/qint/qbool/qbool.cpp - ${GECODE_SRC}/gecode/search/meta/nogoods.cpp - ) - SET(QUACODE_EXAMPLES_SRCS - examples/qbf.cpp - examples/qdimacs.cpp - examples/nim-fibo.cpp - examples/matrix-game.cpp - examples/connect-four.cpp - examples/baker.cpp - examples/rndQCSP.cpp - ) - - SOURCE_GROUP("Hpp Files" REGULAR_EXPRESSION ".hpp") - - SET_SOURCE_FILES_PROPERTIES(${ALL_HEADERS} PROPERTIES HEADER_FILE_ONLY TRUE) - SET_SOURCE_FILES_PROPERTIES(${ALL_HPP} PROPERTIES HEADER_FILE_ONLY TRUE) - - ADD_LIBRARY(quacode ${QUACODE_SRCS} ${QUACODE_HEADERS} ${QUACODE_HPP}) - TARGET_LINK_LIBRARIES(quacode ${GECODE_LIBRARIES}) - SET_TARGET_PROPERTIES(quacode PROPERTIES COMPILE_DEFINITIONS "BUILD_QUACODE_LIB") - INSTALL(TARGETS quacode LIBRARY DESTINATION lib ARCHIVE DESTINATION lib/static) - SET(QUACODE_LIBRARIES quacode) - - IF(BUILD_EXAMPLES) - # Add targets for examples - FOREACH (example ${QUACODE_EXAMPLES_SRCS}) - GET_FILENAME_COMPONENT(exampleBin ${example} NAME_WE) - ADD_EXECUTABLE(${exampleBin} ${example}) - TARGET_LINK_LIBRARIES(${exampleBin} ${QUACODE_LIBRARIES} ${GECODE_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) - INSTALL(TARGETS ${exampleBin} RUNTIME DESTINATION bin) - - # set -static, when STATIC_LINKING is TRUE and set LINK_SEARCH_END_STATIC - # to remove the additional -bdynamic from the linker line. - IF(UNIX AND STATIC_LINKING) - SET(CMAKE_EXE_LINKER_FLAGS "-static") - SET_TARGET_PROPERTIES(${exampleBin} PROPERTIES LINK_SEARCH_END_STATIC 1) - ENDIF(UNIX AND STATIC_LINKING) - ENDFOREACH () - ENDIF(BUILD_EXAMPLES) - -ENDIF(NOT GECODE_FOUND) diff --git a/contribs/quacode/FindGecode.cmake b/contribs/quacode/FindGecode.cmake deleted file mode 100644 index b2453e2846..0000000000 --- a/contribs/quacode/FindGecode.cmake +++ /dev/null @@ -1,94 +0,0 @@ -# -# Main authors: -# Vincent Barichard -# -# Copyright: -# Vincent Barichard, 2013 -# -# Last modified: -# $Date$ by $Author$ -# $Revision$ -# -# This file is part of Quacode: -# http://quacode.barichard.com -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# CMake package to find Gecode libraries and set usefull variables - -SET(GECODE_SEARCH_PATH ${GECODE_BIN} /usr/lib /usr/local/lib) - -FILE(STRINGS ${GECODE_BIN}/config.status GECODE_DLL_ARCH LIMIT_COUNT 1 REGEX "S\\[\"DLL_ARCH\"\\]=") -STRING(REGEX MATCH "=\"[^\"]*" GECODE_DLL_ARCH "${GECODE_DLL_ARCH}") -STRING(SUBSTRING "${GECODE_DLL_ARCH}" 2 -1 GECODE_DLL_ARCH) - -FIND_LIBRARY(GECODE_KERNEL_LIBRARIES gecodekernel${GECODE_DLL_ARCH} ${GECODE_SEARCH_PATH}) - -IF(GECODE_KERNEL_LIBRARIES) - SET(GECODE_FOUND TRUE) - SET(GECODE_LIBRARIES ${GECODE_KERNEL_LIBRARIES}) - - FIND_LIBRARY(GECODE_SUPPORT_LIBRARIES gecodesupport${GECODE_DLL_ARCH} ${GECODE_SEARCH_PATH}) - IF(GECODE_SUPPORT_LIBRARIES) - SET(GECODE_LIBRARIES ${GECODE_SUPPORT_LIBRARIES} ${GECODE_LIBRARIES}) - ENDIF(GECODE_SUPPORT_LIBRARIES) - - FIND_LIBRARY(GECODE_INT_LIBRARIES gecodeint${GECODE_DLL_ARCH} ${GECODE_SEARCH_PATH}) - IF(GECODE_INT_LIBRARIES) - SET(GECODE_LIBRARIES ${GECODE_INT_LIBRARIES} ${GECODE_LIBRARIES}) - ENDIF(GECODE_INT_LIBRARIES) - - FIND_LIBRARY(GECODE_FLOAT_LIBRARIES gecodefloat${GECODE_DLL_ARCH} ${GECODE_SEARCH_PATH}) - IF(GECODE_FLOAT_LIBRARIES) - SET(GECODE_LIBRARIES ${GECODE_FLOAT_LIBRARIES} ${GECODE_LIBRARIES}) - ENDIF(GECODE_FLOAT_LIBRARIES) - - FIND_LIBRARY(GECODE_SET_LIBRARIES gecodeset${GECODE_DLL_ARCH} ${GECODE_SEARCH_PATH}) - IF(GECODE_SET_LIBRARIES) - SET(GECODE_LIBRARIES ${GECODE_SET_LIBRARIES} ${GECODE_LIBRARIES}) - ENDIF(GECODE_SET_LIBRARIES) - - FIND_LIBRARY(GECODE_SEARCH_LIBRARIES gecodesearch${GECODE_DLL_ARCH} ${GECODE_SEARCH_PATH}) - IF(GECODE_SEARCH_LIBRARIES) - SET(GECODE_LIBRARIES ${GECODE_SEARCH_LIBRARIES} ${GECODE_LIBRARIES}) - ENDIF(GECODE_SEARCH_LIBRARIES) - - FIND_LIBRARY(GECODE_MINIMODEL_LIBRARIES gecodeminimodel${GECODE_DLL_ARCH} ${GECODE_SEARCH_PATH}) - IF(GECODE_MINIMODEL_LIBRARIES) - SET(GECODE_LIBRARIES ${GECODE_MINIMODEL_LIBRARIES} ${GECODE_LIBRARIES}) - ENDIF(GECODE_MINIMODEL_LIBRARIES) - - FIND_LIBRARY(GECODE_DRIVER_LIBRARIES gecodedriver${GECODE_DLL_ARCH} ${GECODE_SEARCH_PATH}) - IF(GECODE_DRIVER_LIBRARIES) - SET(GECODE_LIBRARIES ${GECODE_DRIVER_LIBRARIES} ${GECODE_LIBRARIES}) - ENDIF(GECODE_DRIVER_LIBRARIES) - - FIND_LIBRARY(GECODE_GIST_LIBRARIES gecodegist${GECODE_DLL_ARCH} ${GECODE_SEARCH_PATH}) - IF(GECODE_GIST_LIBRARIES) - SET(GECODE_LIBRARIES ${GECODE_GIST_LIBRARIES} ${GECODE_LIBRARIES}) - ENDIF(GECODE_GIST_LIBRARIES) - -ENDIF(GECODE_KERNEL_LIBRARIES) - -IF(GECODE_FOUND) - MESSAGE(STATUS "Found GECODE: ${GECODE_LIBRARIES}") -ELSE (GECODE_FOUND) - MESSAGE(STATUS "Could not find GECODE") -ENDIF(GECODE_FOUND) diff --git a/contribs/quacode/LICENSE b/contribs/quacode/LICENSE deleted file mode 100644 index b7d21f7ee9..0000000000 --- a/contribs/quacode/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ - QUACODE LICENSE AGREEMENT - -This software and its documentation are copyrighted by the -individual authors as listed in each file. The following -terms apply to all files associated with the software unless -explicitly disclaimed in individual files. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/contribs/quacode/README b/contribs/quacode/README deleted file mode 100644 index 69d838c4c1..0000000000 --- a/contribs/quacode/README +++ /dev/null @@ -1,26 +0,0 @@ -Quacode is a quantified constraint satisfaction -problems (QCSP) solver based on Gecode. - -Quacode have been developped by Vincent Barichard. -More info is available on http://quacode.barichard.com - -To compile Quacode, you have to install cmake. To setup the -compilation process for your environment, you can launch -cmake by invoking - cmake . -in the toplevel Quacode directory. - -By default, 'make install' will install all the files in -'/usr/local/bin', '/usr/local/lib' etc. You can specify -an installation prefix other than '/usr/local' setting the -'CMAKE_INSTALL_PREFIX' option, -for instance 'cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME .' - -Then you can compile the code by invoking - make -in the toplevel Quacode directory. - -After a successful compilation, you can install Quacode -library and examples by invoking - make install -in the build directory. diff --git a/contribs/quacode/doxygen/Doxyfile.conf b/contribs/quacode/doxygen/Doxyfile.conf deleted file mode 100644 index 6d2bd82f90..0000000000 --- a/contribs/quacode/doxygen/Doxyfile.conf +++ /dev/null @@ -1,2362 +0,0 @@ -# -# Main authors: -# Vincent Barichard -# -# Copyright: -# Vincent Barichard, 2014 -# -# Last modified: -# $Date$ by $Author$ -# $Revision$ -# -# This file is part of Quacode: -# http://quacode.barichard.com -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Doxyfile 1.8.7 - -# This file describes the settings to be used by the documentation system -# doxygen (www.doxygen.org) for a project. -# -# All text after a double hash (##) is considered a comment and is placed in -# front of the TAG it is preceding. -# -# All text after a single hash (#) is considered a comment and will be ignored. -# The format is: -# TAG = value [value, ...] -# For lists, items can also be appended using: -# TAG += value [value, ...] -# Values that contain spaces should be placed between quotes (\" \"). - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- - -# This tag specifies the encoding used for all characters in the config file -# that follow. The default is UTF-8 which is also the encoding used for all text -# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv -# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv -# for the list of possible encodings. -# The default value is: UTF-8. - -DOXYFILE_ENCODING = UTF-8 - -# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by -# double-quotes, unless you are using Doxywizard) that should identify the -# project for which the documentation is generated. This name is used in the -# title of most generated pages and in a few other places. -# The default value is: My Project. - -PROJECT_NAME = Quacode - -# The PROJECT_NUMBER tag can be used to enter a project or revision number. This -# could be handy for archiving the generated documentation or if some version -# control system is used. - -PROJECT_NUMBER = 1.0.0 - -# Using the PROJECT_BRIEF tag one can provide an optional one line description -# for a project that appears at the top of each page and should give viewer a -# quick idea about the purpose of the project. Keep the description short. - -PROJECT_BRIEF = "Quantified Constraint Satisfaction Problems Solver" - -# With the PROJECT_LOGO tag one can specify an logo or icon that is included in -# the documentation. The maximum height of the logo should not exceed 55 pixels -# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo -# to the output directory. - -PROJECT_LOGO = /home/vincent/Sources/quacode/privateMisc/logo_quacode.png - -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path -# into which the generated documentation will be written. If a relative path is -# entered, it will be relative to the location where doxygen was started. If -# left blank the current directory will be used. - -OUTPUT_DIRECTORY = ../../builds/doxygen - -# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub- -# directories (in 2 levels) under the output directory of each output format and -# will distribute the generated files over these directories. Enabling this -# option can be useful when feeding doxygen a huge amount of source files, where -# putting all generated files in the same directory would otherwise causes -# performance problems for the file system. -# The default value is: NO. - -CREATE_SUBDIRS = NO - -# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII -# characters to appear in the names of generated files. If set to NO, non-ASCII -# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode -# U+3044. -# The default value is: NO. - -ALLOW_UNICODE_NAMES = YES - -# The OUTPUT_LANGUAGE tag is used to specify the language in which all -# documentation generated by doxygen is written. Doxygen will use this -# information to generate all constant output in the proper language. -# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, -# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), -# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, -# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), -# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, -# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, -# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, -# Ukrainian and Vietnamese. -# The default value is: English. - -OUTPUT_LANGUAGE = English - -# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member -# descriptions after the members that are listed in the file and class -# documentation (similar to Javadoc). Set to NO to disable this. -# The default value is: YES. - -BRIEF_MEMBER_DESC = YES - -# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief -# description of a member or function before the detailed description -# -# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the -# brief descriptions will be completely suppressed. -# The default value is: YES. - -REPEAT_BRIEF = YES - -# This tag implements a quasi-intelligent brief description abbreviator that is -# used to form the text in various listings. Each string in this list, if found -# as the leading text of the brief description, will be stripped from the text -# and the result, after processing the whole list, is used as the annotated -# text. Otherwise, the brief description is used as-is. If left blank, the -# following values are used ($name is automatically replaced with the name of -# the entity):The $name class, The $name widget, The $name file, is, provides, -# specifies, contains, represents, a, an and the. - -ABBREVIATE_BRIEF = "The $name class" \ - "The $name widget" \ - "The $name file" \ - is \ - provides \ - specifies \ - contains \ - represents \ - a \ - an \ - the - -# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# doxygen will generate a detailed section even if there is only a brief -# description. -# The default value is: NO. - -ALWAYS_DETAILED_SEC = NO - -# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all -# inherited members of a class in the documentation of that class as if those -# members were ordinary class members. Constructors, destructors and assignment -# operators of the base classes will not be shown. -# The default value is: NO. - -INLINE_INHERITED_MEMB = NO - -# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path -# before files name in the file list and in the header files. If set to NO the -# shortest path that makes the file name unique will be used -# The default value is: YES. - -FULL_PATH_NAMES = YES - -# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. -# Stripping is only done if one of the specified strings matches the left-hand -# part of the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the path to -# strip. -# -# Note that you can specify absolute paths here, but also relative paths, which -# will be relative from the directory where doxygen is started. -# This tag requires that the tag FULL_PATH_NAMES is set to YES. - -STRIP_FROM_PATH = - -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the -# path mentioned in the documentation of a class, which tells the reader which -# header file to include in order to use a class. If left blank only the name of -# the header file containing the class definition is used. Otherwise one should -# specify the list of include paths that are normally passed to the compiler -# using the -I flag. - -STRIP_FROM_INC_PATH = - -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but -# less readable) file names. This can be useful is your file systems doesn't -# support long names like on DOS, Mac, or CD-ROM. -# The default value is: NO. - -SHORT_NAMES = NO - -# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the -# first line (until the first dot) of a Javadoc-style comment as the brief -# description. If set to NO, the Javadoc-style will behave just like regular Qt- -# style comments (thus requiring an explicit @brief command for a brief -# description.) -# The default value is: NO. - -JAVADOC_AUTOBRIEF = NO - -# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first -# line (until the first dot) of a Qt-style comment as the brief description. If -# set to NO, the Qt-style will behave just like regular Qt-style comments (thus -# requiring an explicit \brief command for a brief description.) -# The default value is: NO. - -QT_AUTOBRIEF = NO - -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a -# multi-line C++ special comment block (i.e. a block of //! or /// comments) as -# a brief description. This used to be the default behavior. The new default is -# to treat a multi-line C++ comment block as a detailed description. Set this -# tag to YES if you prefer the old behavior instead. -# -# Note that setting this tag to YES also means that rational rose comments are -# not recognized any more. -# The default value is: NO. - -MULTILINE_CPP_IS_BRIEF = YES - -# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the -# documentation from any documented member that it re-implements. -# The default value is: YES. - -INHERIT_DOCS = YES - -# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce a -# new page for each member. If set to NO, the documentation of a member will be -# part of the file/class/namespace that contains it. -# The default value is: NO. - -SEPARATE_MEMBER_PAGES = NO - -# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen -# uses this value to replace tabs by spaces in code fragments. -# Minimum value: 1, maximum value: 16, default value: 4. - -TAB_SIZE = 4 - -# This tag can be used to specify a number of aliases that act as commands in -# the documentation. An alias has the form: -# name=value -# For example adding -# "sideeffect=@par Side Effects:\n" -# will allow you to put the command \sideeffect (or @sideeffect) in the -# documentation, which will result in a user-defined paragraph with heading -# "Side Effects:". You can put \n's in the value part of an alias to insert -# newlines. - -ALIASES = - -# This tag can be used to specify a number of word-keyword mappings (TCL only). -# A mapping has the form "name=value". For example adding "class=itcl::class" -# will allow you to use the command class in the itcl::class meaning. - -TCL_SUBST = - -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources -# only. Doxygen will then generate output that is more tailored for C. For -# instance, some of the names that are used will be different. The list of all -# members will be omitted, etc. -# The default value is: NO. - -OPTIMIZE_OUTPUT_FOR_C = NO - -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or -# Python sources only. Doxygen will then generate output that is more tailored -# for that language. For instance, namespaces will be presented as packages, -# qualified scopes will look different, etc. -# The default value is: NO. - -OPTIMIZE_OUTPUT_JAVA = NO - -# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran -# sources. Doxygen will then generate output that is tailored for Fortran. -# The default value is: NO. - -OPTIMIZE_FOR_FORTRAN = NO - -# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL -# sources. Doxygen will then generate output that is tailored for VHDL. -# The default value is: NO. - -OPTIMIZE_OUTPUT_VHDL = NO - -# Doxygen selects the parser to use depending on the extension of the files it -# parses. With this tag you can assign which parser to use for a given -# extension. Doxygen has a built-in mapping, but you can override or extend it -# using this tag. The format is ext=language, where ext is a file extension, and -# language is one of the parsers supported by doxygen: IDL, Java, Javascript, -# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran: -# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran: -# Fortran. In the later case the parser tries to guess whether the code is fixed -# or free formatted code, this is the default for Fortran type files), VHDL. For -# instance to make doxygen treat .inc files as Fortran files (default is PHP), -# and .f files as C (default is Fortran), use: inc=Fortran f=C. -# -# Note For files without extension you can use no_extension as a placeholder. -# -# Note that for custom extensions you also need to set FILE_PATTERNS otherwise -# the files are not read by doxygen. - -EXTENSION_MAPPING = - -# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments -# according to the Markdown format, which allows for more readable -# documentation. See http://daringfireball.net/projects/markdown/ for details. -# The output of markdown processing is further processed by doxygen, so you can -# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in -# case of backward compatibilities issues. -# The default value is: YES. - -MARKDOWN_SUPPORT = YES - -# When enabled doxygen tries to link words that correspond to documented -# classes, or namespaces to their corresponding documentation. Such a link can -# be prevented in individual cases by by putting a % sign in front of the word -# or globally by setting AUTOLINK_SUPPORT to NO. -# The default value is: YES. - -AUTOLINK_SUPPORT = YES - -# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want -# to include (a tag file for) the STL sources as input, then you should set this -# tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); -# versus func(std::string) {}). This also make the inheritance and collaboration -# diagrams that involve STL classes more complete and accurate. -# The default value is: NO. - -BUILTIN_STL_SUPPORT = NO - -# If you use Microsoft's C++/CLI language, you should set this option to YES to -# enable parsing support. -# The default value is: NO. - -CPP_CLI_SUPPORT = NO - -# Set the SIP_SUPPORT tag to YES if your project consists of sip (see: -# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen -# will parse them like normal C++ but will assume all classes use public instead -# of private inheritance when no explicit protection keyword is present. -# The default value is: NO. - -SIP_SUPPORT = NO - -# For Microsoft's IDL there are propget and propput attributes to indicate -# getter and setter methods for a property. Setting this option to YES will make -# doxygen to replace the get and set methods by a property in the documentation. -# This will only work if the methods are indeed getting or setting a simple -# type. If this is not the case, or you want to show the methods anyway, you -# should set this option to NO. -# The default value is: YES. - -IDL_PROPERTY_SUPPORT = YES - -# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC -# tag is set to YES, then doxygen will reuse the documentation of the first -# member in the group (if any) for the other members of the group. By default -# all members of a group must be documented explicitly. -# The default value is: NO. - -DISTRIBUTE_GROUP_DOC = NO - -# Set the SUBGROUPING tag to YES to allow class member groups of the same type -# (for instance a group of public functions) to be put as a subgroup of that -# type (e.g. under the Public Functions section). Set it to NO to prevent -# subgrouping. Alternatively, this can be done per class using the -# \nosubgrouping command. -# The default value is: YES. - -SUBGROUPING = NO - -# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions -# are shown inside the group in which they are included (e.g. using \ingroup) -# instead of on a separate page (for HTML and Man pages) or section (for LaTeX -# and RTF). -# -# Note that this feature does not work in combination with -# SEPARATE_MEMBER_PAGES. -# The default value is: NO. - -INLINE_GROUPED_CLASSES = NO - -# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions -# with only public data fields or simple typedef fields will be shown inline in -# the documentation of the scope in which they are defined (i.e. file, -# namespace, or group documentation), provided this scope is documented. If set -# to NO, structs, classes, and unions are shown on a separate page (for HTML and -# Man pages) or section (for LaTeX and RTF). -# The default value is: NO. - -INLINE_SIMPLE_STRUCTS = NO - -# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or -# enum is documented as struct, union, or enum with the name of the typedef. So -# typedef struct TypeS {} TypeT, will appear in the documentation as a struct -# with name TypeT. When disabled the typedef will appear as a member of a file, -# namespace, or class. And the struct will be named TypeS. This can typically be -# useful for C code in case the coding convention dictates that all compound -# types are typedef'ed and only the typedef is referenced, never the tag name. -# The default value is: NO. - -TYPEDEF_HIDES_STRUCT = NO - -# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This -# cache is used to resolve symbols given their name and scope. Since this can be -# an expensive process and often the same symbol appears multiple times in the -# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small -# doxygen will become slower. If the cache is too large, memory is wasted. The -# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range -# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 -# symbols. At the end of a run doxygen will report the cache usage and suggest -# the optimal cache size from a speed point of view. -# Minimum value: 0, maximum value: 9, default value: 0. - -LOOKUP_CACHE_SIZE = 0 - -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- - -# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in -# documentation are documented, even if no documentation was available. Private -# class members and static file members will be hidden unless the -# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. -# Note: This will also disable the warnings about undocumented members that are -# normally produced when WARNINGS is set to YES. -# The default value is: NO. - -EXTRACT_ALL = YES - -# If the EXTRACT_PRIVATE tag is set to YES all private members of a class will -# be included in the documentation. -# The default value is: NO. - -EXTRACT_PRIVATE = NO - -# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal -# scope will be included in the documentation. -# The default value is: NO. - -EXTRACT_PACKAGE = NO - -# If the EXTRACT_STATIC tag is set to YES all static members of a file will be -# included in the documentation. -# The default value is: NO. - -EXTRACT_STATIC = NO - -# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) defined -# locally in source files will be included in the documentation. If set to NO -# only classes defined in header files are included. Does not have any effect -# for Java sources. -# The default value is: YES. - -EXTRACT_LOCAL_CLASSES = YES - -# This flag is only useful for Objective-C code. When set to YES local methods, -# which are defined in the implementation section but not in the interface are -# included in the documentation. If set to NO only methods in the interface are -# included. -# The default value is: NO. - -EXTRACT_LOCAL_METHODS = YES - -# If this flag is set to YES, the members of anonymous namespaces will be -# extracted and appear in the documentation as a namespace called -# 'anonymous_namespace{file}', where file will be replaced with the base name of -# the file that contains the anonymous namespace. By default anonymous namespace -# are hidden. -# The default value is: NO. - -EXTRACT_ANON_NSPACES = NO - -# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all -# undocumented members inside documented classes or files. If set to NO these -# members will be included in the various overviews, but no documentation -# section is generated. This option has no effect if EXTRACT_ALL is enabled. -# The default value is: NO. - -HIDE_UNDOC_MEMBERS = YES - -# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. If set -# to NO these classes will be included in the various overviews. This option has -# no effect if EXTRACT_ALL is enabled. -# The default value is: NO. - -HIDE_UNDOC_CLASSES = YES - -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend -# (class|struct|union) declarations. If set to NO these declarations will be -# included in the documentation. -# The default value is: NO. - -HIDE_FRIEND_COMPOUNDS = YES - -# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any -# documentation blocks found inside the body of a function. If set to NO these -# blocks will be appended to the function's detailed documentation block. -# The default value is: NO. - -HIDE_IN_BODY_DOCS = NO - -# The INTERNAL_DOCS tag determines if documentation that is typed after a -# \internal command is included. If the tag is set to NO then the documentation -# will be excluded. Set it to YES to include the internal documentation. -# The default value is: NO. - -INTERNAL_DOCS = NO - -# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file -# names in lower-case letters. If set to YES upper-case letters are also -# allowed. This is useful if you have classes or files whose names only differ -# in case and if your file system supports case sensitive file names. Windows -# and Mac users are advised to set this option to NO. -# The default value is: system dependent. - -CASE_SENSE_NAMES = YES - -# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with -# their full class and namespace scopes in the documentation. If set to YES the -# scope will be hidden. -# The default value is: NO. - -HIDE_SCOPE_NAMES = NO - -# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of -# the files that are included by a file in the documentation of that file. -# The default value is: YES. - -SHOW_INCLUDE_FILES = YES - -# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each -# grouped member an include statement to the documentation, telling the reader -# which file to include in order to use the member. -# The default value is: NO. - -SHOW_GROUPED_MEMB_INC = NO - -# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include -# files with double quotes in the documentation rather than with sharp brackets. -# The default value is: NO. - -FORCE_LOCAL_INCLUDES = NO - -# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the -# documentation for inline members. -# The default value is: YES. - -INLINE_INFO = YES - -# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the -# (detailed) documentation of file and class members alphabetically by member -# name. If set to NO the members will appear in declaration order. -# The default value is: YES. - -SORT_MEMBER_DOCS = YES - -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief -# descriptions of file, namespace and class members alphabetically by member -# name. If set to NO the members will appear in declaration order. Note that -# this will also influence the order of the classes in the class list. -# The default value is: NO. - -SORT_BRIEF_DOCS = NO - -# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the -# (brief and detailed) documentation of class members so that constructors and -# destructors are listed first. If set to NO the constructors will appear in the -# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. -# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief -# member documentation. -# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting -# detailed member documentation. -# The default value is: NO. - -SORT_MEMBERS_CTORS_1ST = NO - -# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy -# of group names into alphabetical order. If set to NO the group names will -# appear in their defined order. -# The default value is: NO. - -SORT_GROUP_NAMES = NO - -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by -# fully-qualified names, including namespaces. If set to NO, the class list will -# be sorted only by class name, not including the namespace part. -# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the alphabetical -# list. -# The default value is: NO. - -SORT_BY_SCOPE_NAME = YES - -# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper -# type resolution of all parameters of a function it will reject a match between -# the prototype and the implementation of a member function even if there is -# only one candidate or it is obvious which candidate to choose by doing a -# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still -# accept a match between prototype and implementation in such cases. -# The default value is: NO. - -STRICT_PROTO_MATCHING = NO - -# The GENERATE_TODOLIST tag can be used to enable ( YES) or disable ( NO) the -# todo list. This list is created by putting \todo commands in the -# documentation. -# The default value is: YES. - -GENERATE_TODOLIST = NO - -# The GENERATE_TESTLIST tag can be used to enable ( YES) or disable ( NO) the -# test list. This list is created by putting \test commands in the -# documentation. -# The default value is: YES. - -GENERATE_TESTLIST = YES - -# The GENERATE_BUGLIST tag can be used to enable ( YES) or disable ( NO) the bug -# list. This list is created by putting \bug commands in the documentation. -# The default value is: YES. - -GENERATE_BUGLIST = YES - -# The GENERATE_DEPRECATEDLIST tag can be used to enable ( YES) or disable ( NO) -# the deprecated list. This list is created by putting \deprecated commands in -# the documentation. -# The default value is: YES. - -GENERATE_DEPRECATEDLIST= YES - -# The ENABLED_SECTIONS tag can be used to enable conditional documentation -# sections, marked by \if ... \endif and \cond -# ... \endcond blocks. - -ENABLED_SECTIONS = - -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the -# initial value of a variable or macro / define can have for it to appear in the -# documentation. If the initializer consists of more lines than specified here -# it will be hidden. Use a value of 0 to hide initializers completely. The -# appearance of the value of individual variables and macros / defines can be -# controlled using \showinitializer or \hideinitializer command in the -# documentation regardless of this setting. -# Minimum value: 0, maximum value: 10000, default value: 30. - -MAX_INITIALIZER_LINES = 30 - -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at -# the bottom of the documentation of classes and structs. If set to YES the list -# will mention the files that were used to generate the documentation. -# The default value is: YES. - -SHOW_USED_FILES = YES - -# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This -# will remove the Files entry from the Quick Index and from the Folder Tree View -# (if specified). -# The default value is: YES. - -SHOW_FILES = YES - -# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces -# page. This will remove the Namespaces entry from the Quick Index and from the -# Folder Tree View (if specified). -# The default value is: YES. - -SHOW_NAMESPACES = YES - -# The FILE_VERSION_FILTER tag can be used to specify a program or script that -# doxygen should invoke to get the current version for each file (typically from -# the version control system). Doxygen will invoke the program by executing (via -# popen()) the command command input-file, where command is the value of the -# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided -# by doxygen. Whatever the program writes to standard output is used as the file -# version. For an example see the documentation. - -FILE_VERSION_FILTER = "doxygen/getrevision.sh" - -# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed -# by doxygen. The layout file controls the global structure of the generated -# output files in an output format independent way. To create the layout file -# that represents doxygen's defaults, run doxygen with the -l option. You can -# optionally specify a file name after the option, if omitted DoxygenLayout.xml -# will be used as the name of the layout file. -# -# Note that if you run doxygen from a directory containing a file called -# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE -# tag is left empty. - -LAYOUT_FILE = - -# The CITE_BIB_FILES tag can be used to specify one or more bib files containing -# the reference definitions. This must be a list of .bib files. The .bib -# extension is automatically appended if omitted. This requires the bibtex tool -# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. -# For LaTeX the style of the bibliography can be controlled using -# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the -# search path. Do not use file names with spaces, bibtex cannot handle them. See -# also \cite for info how to create references. - -CITE_BIB_FILES = - -#--------------------------------------------------------------------------- -# Configuration options related to warning and progress messages -#--------------------------------------------------------------------------- - -# The QUIET tag can be used to turn on/off the messages that are generated to -# standard output by doxygen. If QUIET is set to YES this implies that the -# messages are off. -# The default value is: NO. - -QUIET = NO - -# The WARNINGS tag can be used to turn on/off the warning messages that are -# generated to standard error ( stderr) by doxygen. If WARNINGS is set to YES -# this implies that the warnings are on. -# -# Tip: Turn warnings on while writing the documentation. -# The default value is: YES. - -WARNINGS = YES - -# If the WARN_IF_UNDOCUMENTED tag is set to YES, then doxygen will generate -# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag -# will automatically be disabled. -# The default value is: YES. - -WARN_IF_UNDOCUMENTED = YES - -# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some parameters -# in a documented function, or documenting parameters that don't exist or using -# markup commands wrongly. -# The default value is: YES. - -WARN_IF_DOC_ERROR = YES - -# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that -# are documented, but have no documentation for their parameters or return -# value. If set to NO doxygen will only warn about wrong or incomplete parameter -# documentation, but not about the absence of documentation. -# The default value is: NO. - -WARN_NO_PARAMDOC = NO - -# The WARN_FORMAT tag determines the format of the warning messages that doxygen -# can produce. The string should contain the $file, $line, and $text tags, which -# will be replaced by the file and line number from which the warning originated -# and the warning text. Optionally the format may contain $version, which will -# be replaced by the version of the file (if it could be obtained via -# FILE_VERSION_FILTER) -# The default value is: $file:$line: $text. - -WARN_FORMAT = "$file:$line: $text" - -# The WARN_LOGFILE tag can be used to specify a file to which warning and error -# messages should be written. If left blank the output is written to standard -# error (stderr). - -WARN_LOGFILE = - -#--------------------------------------------------------------------------- -# Configuration options related to the input files -#--------------------------------------------------------------------------- - -# The INPUT tag is used to specify the files and/or directories that contain -# documented source files. You may enter file names like myfile.cpp or -# directories like /usr/src/myproject. Separate the files or directories with -# spaces. -# Note: If this tag is empty the current directory is searched. - -INPUT = - -# This tag can be used to specify the character encoding of the source files -# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses -# libiconv (or the iconv built into libc) for the transcoding. See the libiconv -# documentation (see: http://www.gnu.org/software/libiconv) for the list of -# possible encodings. -# The default value is: UTF-8. - -INPUT_ENCODING = UTF-8 - -# If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and -# *.h) to filter out the source-files in the directories. If left blank the -# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii, -# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp, -# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown, -# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, -# *.qsf, *.as and *.js. - -FILE_PATTERNS = *.c \ - *.cc \ - *.cpp \ - *.h \ - *.hh \ - *.hpp \ - *.md - -# The RECURSIVE tag can be used to specify whether or not subdirectories should -# be searched for input files as well. -# The default value is: NO. - -RECURSIVE = YES - -# The EXCLUDE tag can be used to specify files and/or directories that should be -# excluded from the INPUT source files. This way you can easily exclude a -# subdirectory from a directory tree whose root is specified with the INPUT tag. -# -# Note that relative paths are relative to the directory from which doxygen is -# run. - -EXCLUDE = - -# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or -# directories that are symbolic links (a Unix file system feature) are excluded -# from the input. -# The default value is: NO. - -EXCLUDE_SYMLINKS = NO - -# If the value of the INPUT tag contains directories, you can use the -# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. -# -# Note that the wildcards are matched against the file with absolute path, so to -# exclude all test directories for example use the pattern */test/* - -EXCLUDE_PATTERNS = *privateMisc/* - -# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names -# (namespaces, classes, functions, etc.) that should be excluded from the -# output. The symbol name can be a fully qualified name, a word, or if the -# wildcard * is used, a substring. Examples: ANamespace, AClass, -# AClass::ANamespace, ANamespace::*Test -# -# Note that the wildcards are matched against the file with absolute path, so to -# exclude all test directories use the pattern */test/* - -EXCLUDE_SYMBOLS = - -# The EXAMPLE_PATH tag can be used to specify one or more files or directories -# that contain example code fragments that are included (see the \include -# command). - -EXAMPLE_PATH = - -# If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and -# *.h) to filter out the source-files in the directories. If left blank all -# files are included. - -EXAMPLE_PATTERNS = * - -# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude commands -# irrespective of the value of the RECURSIVE tag. -# The default value is: NO. - -EXAMPLE_RECURSIVE = NO - -# The IMAGE_PATH tag can be used to specify one or more files or directories -# that contain images that are to be included in the documentation (see the -# \image command). - -IMAGE_PATH = - -# The INPUT_FILTER tag can be used to specify a program that doxygen should -# invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command: -# -# -# -# where is the value of the INPUT_FILTER tag, and is the -# name of an input file. Doxygen will then use the output that the filter -# program writes to standard output. If FILTER_PATTERNS is specified, this tag -# will be ignored. -# -# Note that the filter must not add or remove lines; it is applied before the -# code is scanned, but not when the output code is generated. If lines are added -# or removed, the anchors will not be placed correctly. - -INPUT_FILTER = - -# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. The filters are a list of the form: pattern=filter -# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how -# filters are used. If the FILTER_PATTERNS tag is empty or if none of the -# patterns match the file name, INPUT_FILTER is applied. - -FILTER_PATTERNS = - -# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER ) will also be used to filter the input files that are used for -# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). -# The default value is: NO. - -FILTER_SOURCE_FILES = NO - -# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file -# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and -# it is also possible to disable source filtering for a specific pattern using -# *.ext= (so without naming a filter). -# This tag requires that the tag FILTER_SOURCE_FILES is set to YES. - -FILTER_SOURCE_PATTERNS = - -# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that -# is part of the input, its contents will be placed on the main page -# (index.html). This can be useful if you have a project on for instance GitHub -# and want to reuse the introduction page also for the doxygen output. - -USE_MDFILE_AS_MAINPAGE = - -#--------------------------------------------------------------------------- -# Configuration options related to source browsing -#--------------------------------------------------------------------------- - -# If the SOURCE_BROWSER tag is set to YES then a list of source files will be -# generated. Documented entities will be cross-referenced with these sources. -# -# Note: To get rid of all source code in the generated output, make sure that -# also VERBATIM_HEADERS is set to NO. -# The default value is: NO. - -SOURCE_BROWSER = YES - -# Setting the INLINE_SOURCES tag to YES will include the body of functions, -# classes and enums directly into the documentation. -# The default value is: NO. - -INLINE_SOURCES = NO - -# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any -# special comment blocks from generated source code fragments. Normal C, C++ and -# Fortran comments will always remain visible. -# The default value is: YES. - -STRIP_CODE_COMMENTS = YES - -# If the REFERENCED_BY_RELATION tag is set to YES then for each documented -# function all documented functions referencing it will be listed. -# The default value is: NO. - -REFERENCED_BY_RELATION = NO - -# If the REFERENCES_RELATION tag is set to YES then for each documented function -# all documented entities called/used by that function will be listed. -# The default value is: NO. - -REFERENCES_RELATION = NO - -# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set -# to YES, then the hyperlinks from functions in REFERENCES_RELATION and -# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will -# link to the documentation. -# The default value is: YES. - -REFERENCES_LINK_SOURCE = YES - -# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the -# source code will show a tooltip with additional information such as prototype, -# brief description and links to the definition and documentation. Since this -# will make the HTML file larger and loading of large files a bit slower, you -# can opt to disable this feature. -# The default value is: YES. -# This tag requires that the tag SOURCE_BROWSER is set to YES. - -SOURCE_TOOLTIPS = YES - -# If the USE_HTAGS tag is set to YES then the references to source code will -# point to the HTML generated by the htags(1) tool instead of doxygen built-in -# source browser. The htags tool is part of GNU's global source tagging system -# (see http://www.gnu.org/software/global/global.html). You will need version -# 4.8.6 or higher. -# -# To use it do the following: -# - Install the latest version of global -# - Enable SOURCE_BROWSER and USE_HTAGS in the config file -# - Make sure the INPUT points to the root of the source tree -# - Run doxygen as normal -# -# Doxygen will invoke htags (and that will in turn invoke gtags), so these -# tools must be available from the command line (i.e. in the search path). -# -# The result: instead of the source browser generated by doxygen, the links to -# source code will now point to the output of htags. -# The default value is: NO. -# This tag requires that the tag SOURCE_BROWSER is set to YES. - -USE_HTAGS = NO - -# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a -# verbatim copy of the header file for each class for which an include is -# specified. Set to NO to disable this. -# See also: Section \class. -# The default value is: YES. - -VERBATIM_HEADERS = YES - -#--------------------------------------------------------------------------- -# Configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- - -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all -# compounds will be generated. Enable this if the project contains a lot of -# classes, structs, unions or interfaces. -# The default value is: YES. - -ALPHABETICAL_INDEX = YES - -# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in -# which the alphabetical index list will be split. -# Minimum value: 1, maximum value: 20, default value: 5. -# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. - -COLS_IN_ALPHA_INDEX = 5 - -# In case all classes in a project start with a common prefix, all classes will -# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag -# can be used to specify a prefix (or a list of prefixes) that should be ignored -# while generating the index headers. -# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. - -IGNORE_PREFIX = - -#--------------------------------------------------------------------------- -# Configuration options related to the HTML output -#--------------------------------------------------------------------------- - -# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output -# The default value is: YES. - -GENERATE_HTML = YES - -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a -# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of -# it. -# The default directory is: html. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_OUTPUT = html - -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each -# generated HTML page (for example: .htm, .php, .asp). -# The default value is: .html. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_FILE_EXTENSION = .html - -# The HTML_HEADER tag can be used to specify a user-defined HTML header file for -# each generated HTML page. If the tag is left blank doxygen will generate a -# standard header. -# -# To get valid HTML the header file that includes any scripts and style sheets -# that doxygen needs, which is dependent on the configuration options used (e.g. -# the setting GENERATE_TREEVIEW). It is highly recommended to start with a -# default header using -# doxygen -w html new_header.html new_footer.html new_stylesheet.css -# YourConfigFile -# and then modify the file new_header.html. See also section "Doxygen usage" -# for information on how to generate the default header that doxygen normally -# uses. -# Note: The header is subject to change so you typically have to regenerate the -# default header when upgrading to a newer version of doxygen. For a description -# of the possible markers and block names see the documentation. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_HEADER = - -# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each -# generated HTML page. If the tag is left blank doxygen will generate a standard -# footer. See HTML_HEADER for more information on how to generate a default -# footer and what special commands can be used inside the footer. See also -# section "Doxygen usage" for information on how to generate the default footer -# that doxygen normally uses. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_FOOTER = - -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style -# sheet that is used by each HTML page. It can be used to fine-tune the look of -# the HTML output. If left blank doxygen will generate a default style sheet. -# See also section "Doxygen usage" for information on how to generate the style -# sheet that doxygen normally uses. -# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as -# it is more robust and this tag (HTML_STYLESHEET) will in the future become -# obsolete. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_STYLESHEET = - -# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional user- -# defined cascading style sheet that is included after the standard style sheets -# created by doxygen. Using this option one can overrule certain style aspects. -# This is preferred over using HTML_STYLESHEET since it does not replace the -# standard style sheet and is therefor more robust against future updates. -# Doxygen will copy the style sheet file to the output directory. For an example -# see the documentation. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_EXTRA_STYLESHEET = - -# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or -# other source files which should be copied to the HTML output directory. Note -# that these files will be copied to the base HTML output directory. Use the -# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these -# files. In the HTML_STYLESHEET file, use the file name only. Also note that the -# files will be copied as-is; there are no commands or markers available. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_EXTRA_FILES = - -# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen -# will adjust the colors in the stylesheet and background images according to -# this color. Hue is specified as an angle on a colorwheel, see -# http://en.wikipedia.org/wiki/Hue for more information. For instance the value -# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 -# purple, and 360 is red again. -# Minimum value: 0, maximum value: 359, default value: 220. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_HUE = 220 - -# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors -# in the HTML output. For a value of 0 the output will use grayscales only. A -# value of 255 will produce the most vivid colors. -# Minimum value: 0, maximum value: 255, default value: 100. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_SAT = 100 - -# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the -# luminance component of the colors in the HTML output. Values below 100 -# gradually make the output lighter, whereas values above 100 make the output -# darker. The value divided by 100 is the actual gamma applied, so 80 represents -# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not -# change the gamma. -# Minimum value: 40, maximum value: 240, default value: 80. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_GAMMA = 80 - -# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML -# page will contain the date and time when the page was generated. Setting this -# to NO can help when comparing the output of multiple runs. -# The default value is: YES. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_TIMESTAMP = YES - -# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML -# documentation will contain sections that can be hidden and shown after the -# page has loaded. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_DYNAMIC_SECTIONS = NO - -# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries -# shown in the various tree structured indices initially; the user can expand -# and collapse entries dynamically later on. Doxygen will expand the tree to -# such a level that at most the specified number of entries are visible (unless -# a fully collapsed tree already exceeds this amount). So setting the number of -# entries 1 will produce a full collapsed tree by default. 0 is a special value -# representing an infinite number of entries and will result in a full expanded -# tree by default. -# Minimum value: 0, maximum value: 9999, default value: 100. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_INDEX_NUM_ENTRIES = 100 - -# If the GENERATE_DOCSET tag is set to YES, additional index files will be -# generated that can be used as input for Apple's Xcode 3 integrated development -# environment (see: http://developer.apple.com/tools/xcode/), introduced with -# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a -# Makefile in the HTML output directory. Running make will produce the docset in -# that directory and running make install will install the docset in -# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at -# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html -# for more information. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_DOCSET = NO - -# This tag determines the name of the docset feed. A documentation feed provides -# an umbrella under which multiple documentation sets from a single provider -# (such as a company or product suite) can be grouped. -# The default value is: Doxygen generated docs. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_FEEDNAME = "Doxygen generated docs" - -# This tag specifies a string that should uniquely identify the documentation -# set bundle. This should be a reverse domain-name style string, e.g. -# com.mycompany.MyDocSet. Doxygen will append .docset to the name. -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_BUNDLE_ID = org.doxygen.Project - -# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify -# the documentation publisher. This should be a reverse domain-name style -# string, e.g. com.mycompany.MyDocSet.documentation. -# The default value is: org.doxygen.Publisher. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_PUBLISHER_ID = org.doxygen.Publisher - -# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. -# The default value is: Publisher. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_PUBLISHER_NAME = Publisher - -# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three -# additional HTML index files: index.hhp, index.hhc, and index.hhk. The -# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop -# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on -# Windows. -# -# The HTML Help Workshop contains a compiler that can convert all HTML output -# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML -# files are now used as the Windows 98 help format, and will replace the old -# Windows help format (.hlp) on all Windows platforms in the future. Compressed -# HTML files also contain an index, a table of contents, and you can search for -# words in the documentation. The HTML workshop also contains a viewer for -# compressed HTML files. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_HTMLHELP = NO - -# The CHM_FILE tag can be used to specify the file name of the resulting .chm -# file. You can add a path in front of the file if the result should not be -# written to the html output directory. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -CHM_FILE = - -# The HHC_LOCATION tag can be used to specify the location (absolute path -# including file name) of the HTML help compiler ( hhc.exe). If non-empty -# doxygen will try to run the HTML help compiler on the generated index.hhp. -# The file has to be specified with full path. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -HHC_LOCATION = - -# The GENERATE_CHI flag controls if a separate .chi index file is generated ( -# YES) or that it should be included in the master .chm file ( NO). -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -GENERATE_CHI = NO - -# The CHM_INDEX_ENCODING is used to encode HtmlHelp index ( hhk), content ( hhc) -# and project file content. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -CHM_INDEX_ENCODING = - -# The BINARY_TOC flag controls whether a binary table of contents is generated ( -# YES) or a normal table of contents ( NO) in the .chm file. Furthermore it -# enables the Previous and Next buttons. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -BINARY_TOC = NO - -# The TOC_EXPAND flag can be set to YES to add extra items for group members to -# the table of contents of the HTML help documentation and to the tree view. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -TOC_EXPAND = NO - -# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and -# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that -# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help -# (.qch) of the generated HTML documentation. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_QHP = NO - -# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify -# the file name of the resulting .qch file. The path specified is relative to -# the HTML output folder. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QCH_FILE = - -# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help -# Project output. For more information please see Qt Help Project / Namespace -# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_NAMESPACE = org.doxygen.Project - -# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt -# Help Project output. For more information please see Qt Help Project / Virtual -# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- -# folders). -# The default value is: doc. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_VIRTUAL_FOLDER = doc - -# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom -# filter to add. For more information please see Qt Help Project / Custom -# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- -# filters). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_CUST_FILTER_NAME = - -# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the -# custom filter to add. For more information please see Qt Help Project / Custom -# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- -# filters). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_CUST_FILTER_ATTRS = - -# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this -# project's filter section matches. Qt Help Project / Filter Attributes (see: -# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_SECT_FILTER_ATTRS = - -# The QHG_LOCATION tag can be used to specify the location of Qt's -# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the -# generated .qhp file. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHG_LOCATION = - -# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be -# generated, together with the HTML files, they form an Eclipse help plugin. To -# install this plugin and make it available under the help contents menu in -# Eclipse, the contents of the directory containing the HTML and XML files needs -# to be copied into the plugins directory of eclipse. The name of the directory -# within the plugins directory should be the same as the ECLIPSE_DOC_ID value. -# After copying Eclipse needs to be restarted before the help appears. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_ECLIPSEHELP = NO - -# A unique identifier for the Eclipse help plugin. When installing the plugin -# the directory name containing the HTML and XML files should also have this -# name. Each documentation set should have its own identifier. -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. - -ECLIPSE_DOC_ID = org.doxygen.Project - -# If you want full control over the layout of the generated HTML pages it might -# be necessary to disable the index and replace it with your own. The -# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top -# of each HTML page. A value of NO enables the index and the value YES disables -# it. Since the tabs in the index contain the same information as the navigation -# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -DISABLE_INDEX = NO - -# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index -# structure should be generated to display hierarchical information. If the tag -# value is set to YES, a side panel will be generated containing a tree-like -# index structure (just like the one that is generated for HTML Help). For this -# to work a browser that supports JavaScript, DHTML, CSS and frames is required -# (i.e. any modern browser). Windows users are probably better off using the -# HTML help feature. Via custom stylesheets (see HTML_EXTRA_STYLESHEET) one can -# further fine-tune the look of the index. As an example, the default style -# sheet generated by doxygen has an example that shows how to put an image at -# the root of the tree instead of the PROJECT_NAME. Since the tree basically has -# the same information as the tab index, you could consider setting -# DISABLE_INDEX to YES when enabling this option. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_TREEVIEW = NO - -# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that -# doxygen will group on one line in the generated HTML documentation. -# -# Note that a value of 0 will completely suppress the enum values from appearing -# in the overview section. -# Minimum value: 0, maximum value: 20, default value: 4. -# This tag requires that the tag GENERATE_HTML is set to YES. - -ENUM_VALUES_PER_LINE = 4 - -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used -# to set the initial width (in pixels) of the frame in which the tree is shown. -# Minimum value: 0, maximum value: 1500, default value: 250. -# This tag requires that the tag GENERATE_HTML is set to YES. - -TREEVIEW_WIDTH = 250 - -# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open links to -# external symbols imported via tag files in a separate window. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -EXT_LINKS_IN_WINDOW = NO - -# Use this tag to change the font size of LaTeX formulas included as images in -# the HTML documentation. When you change the font size after a successful -# doxygen run you need to manually remove any form_*.png images from the HTML -# output directory to force them to be regenerated. -# Minimum value: 8, maximum value: 50, default value: 10. -# This tag requires that the tag GENERATE_HTML is set to YES. - -FORMULA_FONTSIZE = 10 - -# Use the FORMULA_TRANPARENT tag to determine whether or not the images -# generated for formulas are transparent PNGs. Transparent PNGs are not -# supported properly for IE 6.0, but are supported on all modern browsers. -# -# Note that when changing this option you need to delete any form_*.png files in -# the HTML output directory before the changes have effect. -# The default value is: YES. -# This tag requires that the tag GENERATE_HTML is set to YES. - -FORMULA_TRANSPARENT = YES - -# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see -# http://www.mathjax.org) which uses client side Javascript for the rendering -# instead of using prerendered bitmaps. Use this if you do not have LaTeX -# installed or if you want to formulas look prettier in the HTML output. When -# enabled you may also need to install MathJax separately and configure the path -# to it using the MATHJAX_RELPATH option. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -USE_MATHJAX = NO - -# When MathJax is enabled you can set the default output format to be used for -# the MathJax output. See the MathJax site (see: -# http://docs.mathjax.org/en/latest/output.html) for more details. -# Possible values are: HTML-CSS (which is slower, but has the best -# compatibility), NativeMML (i.e. MathML) and SVG. -# The default value is: HTML-CSS. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_FORMAT = HTML-CSS - -# When MathJax is enabled you need to specify the location relative to the HTML -# output directory using the MATHJAX_RELPATH option. The destination directory -# should contain the MathJax.js script. For instance, if the mathjax directory -# is located at the same level as the HTML output directory, then -# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax -# Content Delivery Network so you can quickly see the result without installing -# MathJax. However, it is strongly recommended to install a local copy of -# MathJax from http://www.mathjax.org before deployment. -# The default value is: http://cdn.mathjax.org/mathjax/latest. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest - -# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax -# extension names that should be enabled during MathJax rendering. For example -# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_EXTENSIONS = - -# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces -# of code that will be used on startup of the MathJax code. See the MathJax site -# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an -# example see the documentation. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_CODEFILE = - -# When the SEARCHENGINE tag is enabled doxygen will generate a search box for -# the HTML output. The underlying search engine uses javascript and DHTML and -# should work on any modern browser. Note that when using HTML help -# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) -# there is already a search function so this one should typically be disabled. -# For large projects the javascript based search engine can be slow, then -# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to -# search using the keyboard; to jump to the search box use + S -# (what the is depends on the OS and browser, but it is typically -# , /