diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..333e96f5 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,11 @@ +## Description + +Brief explanation of the goal, link issues covered (partially or fully resolved) by this pull request + +## Lib changes + +If vendored libraries are getting changed, please list new version, old version, and what kind of dependencies or restrictions it may introduce + +## Testing + +Mention smoke testing done or extra QA instructions \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..e628e617 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,141 @@ +name: build + +on: + push: + branches: + - develop + - main + workflow_dispatch: + +jobs: + build-windows: + uses: ./.github/workflows/windows.yml + + build-linux: + uses: ./.github/workflows/linux.yml + + build-osx: + uses: ./.github/workflows/osx.yml + + build-synology: + uses: ./.github/workflows/synology.yml + + build-qnap: + uses: ./.github/workflows/qnap.yml + + repack-qnap: + uses: ./.github/workflows/qnap-repack.yml + with: + external_call: true + needs: [build-linux] + permissions: + actions: write + + generate-signatures: + env: + PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} + runs-on: ubuntu-latest + needs: [build-windows, build-linux, build-osx, build-synology, build-qnap, repack-qnap] + permissions: + actions: write + steps: + + - name: Download build artifacts + uses: actions/download-artifact@v4 + + - name: Generate signatures + run: | + mkdir -p builds + mv nzbget-windows-installers/* builds || true + mv nzbget-linux-installers/* builds || true + mv nzbget-osx-installers/* builds || true + mv nzbget-synology-packages/* builds || true + mv nzbget-qnap-packages/* builds || true + mv nzbget-qnap-native-packages/* builds || true + cd builds + VERSION=$(ls | grep bin-windows-setup | cut -d - -f 2) + if [ "$GITHUB_REF_NAME" != "main" ]; then VERSION="$VERSION-testing"; fi + SIGS_FILE="nzbget-$VERSION.sig.txt" + + echo "Generating $SIGS_FILE ..." + echo + + echo "nzbget_signatures({" | tee $SIGS_FILE + echo | tee -a $SIGS_FILE + + for FILE in *.exe *.run *.zip *.spk *.qpkg; do + [ -f $FILE ] || continue + + MD5=$(openssl dgst -md5 $FILE | cut -d ' ' -f 2) + SHA1=$(openssl dgst -sha1 $FILE | cut -d ' ' -f 2) + SHA256=$(openssl dgst -rsa-sha256 $FILE | cut -d ' ' -f 2) + RSASHA256=$(openssl dgst -rsa-sha256 -sign <(echo "$PRIVATE_KEY") $FILE | hexdump -ve '1/1 "%.2x"') + + echo "\"MD5($FILE)\" : \"$MD5\"," | tee -a $SIGS_FILE + echo "\"SHA1($FILE)\" : \"$SHA1\"," | tee -a $SIGS_FILE + echo "\"SHA256($FILE)\" : \"$SHA256\"," | tee -a $SIGS_FILE + echo "\"RSA-SHA256($FILE)\" : \"$RSASHA256\"," | tee -a $SIGS_FILE + + echo | tee -a $SIGS_FILE + done + + echo "\"\" : \"\"});" | tee -a $SIGS_FILE + + cd .. + echo + echo "Done." + + - name: Upload build artifacts with signatures + uses: actions/upload-artifact@v4 + with: + name: nzbget-installers + path: builds/* + retention-days: 5 + + - name: Delete unneded platform-specific artifacts + uses: geekyeggo/delete-artifact@v4 + with: + name: | + nzbget-windows-installers + nzbget-linux-installers + nzbget-osx-installers + nzbget-synology-packages + nzbget-qnap-packages + nzbget-qnap-native-packages + + make-testing-release: + runs-on: [self-hosted, linux] + needs: [generate-signatures] + permissions: + contents: write + if: github.ref_name == 'develop' + steps: + + - name: Delete tag and release + uses: dev-drprasad/delete-tag-and-release@v0.2.1 + with: + delete_release: true + tag_name: testing + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Download build artifacts + uses: actions/download-artifact@v4 + + - name: Create latest artifacts + run: | + cp $(find nzbget-installers/ -name *linux.run) nzbget-installers/nzbget-latest-testing-bin-linux.run + cp $(find nzbget-installers/ -name *windows-setup.exe) nzbget-installers/nzbget-latest-testing-bin-windows-setup.exe + + - name: Make release + uses: ncipollo/release-action@v1 + with: + artifacts: "nzbget-installers/*" + generateReleaseNotes: true + tag: testing + allowUpdates: true + prerelease: true + + - name: Update website info + run: | + bash /build/update-release-info.sh diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 00000000..6092c0ab --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,89 @@ +name: docker build + +on: + push: + branches: + - develop + workflow_dispatch: + +env: + REGISTRY_IMAGE: nzbgetcom/nzbget + +jobs: + build: + runs-on: ubuntu-latest + permissions: + packages: write + + steps: + + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Generate image tags + id: gen_tags + run: | + if [[ "$GITHUB_REF_NAME" == "develop" ]]; then + TAG="testing" + fi + if [[ "$GITHUB_REF_NAME" == "main" ]]; then + TAG="latest" + fi + if [[ $GITHUB_REF == 'refs/tags/'* ]]; then + TAG="${GITHUB_REF/refs\/tags\//}" + fi + if [[ "$TAG" == "" ]]; then + TAG="${GITHUB_REF_NAME/\//-}" + fi + TAGS="${{ env.REGISTRY_IMAGE }}:$TAG,ghcr.io/${{ env.REGISTRY_IMAGE }}:$TAG" + echo "tags=$TAGS" >> $GITHUB_OUTPUT + echo "version=$TAG" >> $GITHUB_OUTPUT + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: docker + platforms: linux/amd64,linux/arm64,linux/arm/v7 + provenance: false + push: true + tags: ${{ steps.gen_tags.outputs.tags }} + outputs: "type=image,oci-mediatypes=false,name=${{ env.REGISTRY_IMAGE }}" + build-args: | + "NZBGET_RELEASE=${{ github.ref_name }}" + "MAKE_JOBS=2" + + - name: Update Docker Hub Description + uses: peter-evans/dockerhub-description@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + repository: ${{ env.REGISTRY_IMAGE }} + readme-filepath: ./docker/README.md + + - name: Cleanup ghcr.io from outdated images + uses: miklinux/ghcr-cleanup-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + package-owner: nzbgetcom + package-name: nzbget + delete-orphans: true + dry-run: false diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index bdde1152..9e618da2 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,10 +1,7 @@ name: linux build on: - push: - branches: - - develop - - main + workflow_call: workflow_dispatch: jobs: @@ -14,19 +11,39 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Change version for non-release + if: github.ref_name != 'main' + run: | + VERSION=$(cat configure.ac | grep AC_INIT | cut -d , -f 2 | xargs) + NEW_VERSION="$VERSION-testing-$(date '+%Y%m%d')" + sed -e "s|AC_INIT(nzbget.*|AC_INIT(nzbget, $NEW_VERSION, https://github.com/nzbgetcom/nzbget/issues)|g" -i configure.ac + echo NEW_VERSION=$NEW_VERSION >> $GITHUB_ENV + - name: Build run: | rm -rf /build/nzbget + rm -rf /build/output cp -r . /build/nzbget cd /build - docker run -e ALL_ARCHS="i686 x86_64 armhf armel" -v /build:/build nzbget-build /build/scripts/build-nzbget-ci.sh + docker run -e ALL_ARCHS="i686 x86_64 aarch64 armhf armel mipseb mipsel ppc6xx ppc500" -v /build:/build nzbget-build /build/scripts/build-nzbget-ci.sh + + - name: Rename build artifacts + if: github.ref_name != 'main' && github.ref_name != 'develop' + run: | + cd /build/output + NEW_VERSION_FEATURE="$NEW_VERSION-${GITHUB_REF_NAME/\//-}" + for FILE in *.run; do + [ -f $FILE ] || continue + NEW_FILE=${FILE/$NEW_VERSION/$NEW_VERSION_FEATURE} + mv $FILE $NEW_FILE + done - name: Upload build artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: nzbget-linux-installers path: /build/output/*.run diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index 10104686..f4f1c490 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -1,10 +1,7 @@ name: osx build on: - push: - branches: - - develop - - main + workflow_call: workflow_dispatch: jobs: @@ -14,16 +11,35 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + + - name: Change version for non-release + if: github.ref_name != 'main' + run: | + VERSION=$(cat configure.ac | grep AC_INIT | cut -d , -f 2 | xargs) + NEW_VERSION="$VERSION-testing-$(date '+%Y%m%d')" + sed -e "s|AC_INIT(nzbget.*|AC_INIT(nzbget, $NEW_VERSION, https://github.com/nzbgetcom/nzbget/issues)|g" -i '' configure.ac + echo NEW_VERSION=$NEW_VERSION >> $GITHUB_ENV - name: Build run: | - bash osx/build-nzbget.sh + bash osx/build-nzbget.sh + + - name: Rename build artifacts + if: github.ref_name != 'main' && github.ref_name != 'develop' + run: | + cd osx/build/Release + NEW_VERSION_FEATURE="$NEW_VERSION-${GITHUB_REF_NAME/\//-}" + for FILE in *.zip; do + [ -f $FILE ] || continue + NEW_FILE=${FILE/$NEW_VERSION/$NEW_VERSION_FEATURE} + mv $FILE $NEW_FILE + done - name: Upload build artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: nzbget-osx-installers path: osx/build/Release/*.zip diff --git a/.github/workflows/qnap-repack.yml b/.github/workflows/qnap-repack.yml new file mode 100644 index 00000000..a628e9fd --- /dev/null +++ b/.github/workflows/qnap-repack.yml @@ -0,0 +1,64 @@ +name: qnap repack + +on: + workflow_call: + inputs: + external_call: + description: 'To distinguish workflow_call from regular push / workflow_dispatch' + type: boolean + required: false + default: false + workflow_dispatch: + +jobs: + build-linux: + uses: ./.github/workflows/linux.yml + if: ${{ inputs.external_call == false }} + + repack: + runs-on: [self-hosted, linux] + needs: [build-linux] + if: always() + permissions: + actions: write + + steps: + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Download build artifacts + uses: actions/download-artifact@v4 + + - name: Repack linux installer for QNAP + run: | + export PATH="$PATH:/usr/share/QDK/bin" + bash qnap/repack-nzbget.sh + + - name: Rename build artifacts + if: github.ref_name != 'main' + run: | + VERSION=$(cat configure.ac | grep AC_INIT | cut -d , -f 2 | xargs) + NEW_VERSION="$VERSION-testing-$(date '+%Y%m%d')" + cd /qnap/nzbget/build/ + for FILE in *.qpkg; do + [ -f $FILE ] || continue + NEW_FILE=${FILE/$VERSION/$NEW_VERSION} + sudo mv $FILE $NEW_FILE + done + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: nzbget-qnap-packages + path: /qnap/nzbget/build/*.qpkg + retention-days: 5 + + - name: Delete unneded linux artifacts + if: ${{ inputs.external_call == false }} + uses: geekyeggo/delete-artifact@v4 + with: + name: | + nzbget-linux-installers diff --git a/.github/workflows/qnap.yml b/.github/workflows/qnap.yml new file mode 100644 index 00000000..89679459 --- /dev/null +++ b/.github/workflows/qnap.yml @@ -0,0 +1,49 @@ +name: qnap build + +on: + workflow_call: + workflow_dispatch: + +jobs: + build: + runs-on: [self-hosted, linux] + + steps: + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Save version for non-release to env + if: github.ref_name != 'main' + run: | + VERSION=$(cat configure.ac | grep AC_INIT | cut -d , -f 2 | xargs) + echo VERSION=$VERSION >> $GITHUB_ENV + + - name: Build + run: | + export PATH="$PATH:/usr/share/QDK/bin" + bash qnap/build-nzbget.sh + + - name: Rename build artifacts + if: github.ref_name != 'main' + run: | + cd /qnap/nzbget/build/ + NEW_VERSION="$VERSION-testing-$(date '+%Y%m%d')" + for FILE in *.qpkg; do + [ -f $FILE ] || continue + NEW_FILE=${FILE/$VERSION/$NEW_VERSION} + sudo mv $FILE $NEW_FILE + done + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: nzbget-qnap-native-packages + path: /qnap/nzbget/build/*.qpkg + retention-days: 5 + + - name: Cleanup + run: | + rm -rf /qnap/nzbget/ diff --git a/.github/workflows/synology.yml b/.github/workflows/synology.yml new file mode 100644 index 00000000..78b98b08 --- /dev/null +++ b/.github/workflows/synology.yml @@ -0,0 +1,43 @@ +name: synology build + +on: + workflow_call: + workflow_dispatch: + +jobs: + build: + runs-on: [self-hosted, linux] + + steps: + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Build + run: | + sudo -E bash synology/build-nzbget.sh + + - name: Rename build artifacts + if: github.ref_name != 'main' + run: | + cd /toolkit/result_spk/nzbget/ + VERSION=$(date '+%Y%m%d') + NEW_VERSION="$VERSION-testing" + for FILE in *.spk; do + [ -f $FILE ] || continue + NEW_FILE=${FILE/$VERSION/$NEW_VERSION} + sudo mv $FILE $NEW_FILE + done + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: nzbget-synology-packages + path: /toolkit/result_spk/nzbget/*.spk + retention-days: 5 + + - name: Cleanup + run: | + sudo rm /toolkit/result_spk/nzbget/*.spk diff --git a/.github/workflows/windows-tests.yml b/.github/workflows/windows-tests.yml new file mode 100644 index 00000000..a449de7e --- /dev/null +++ b/.github/workflows/windows-tests.yml @@ -0,0 +1,48 @@ +name: windows tests + +on: + push: + branches: + - feature/* + - develop + - main + pull_request: + branches: + - develop + - main + workflow_call: + workflow_dispatch: + +jobs: + test: + runs-on: [self-hosted, windows] + + steps: + + - name: Prepare environment + run: | + "C:\Program Files\CMake\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + + - name: Checkout + uses: actions/checkout@v4 + + - name: Build + run: | + cmake --version + mkdir build + cd build + cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static + cmake --build . --config Release -j 2 + + - name: Test + run: | + cd build + ctest -C Release + + - name: Upload test artifacts + uses: actions/upload-artifact@v4 + if: failure() + with: + name: nzbget-windows-test-log + path: build/Testing/Temporary/LastTest.log + retention-days: 5 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 0db0e720..97b91e6d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,10 +1,7 @@ name: windows build on: - push: - branches: - - develop - - main + workflow_call: workflow_dispatch: jobs: @@ -14,14 +11,34 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: Change version for non-release + if: github.ref_name != 'main' + run: | + $Version = ((((Select-String -Path nzbget.vcxproj -Pattern ";VERSION=")[0] -split(';'))[2] -split('='))[1]) -replace '"', '' + $Date=Get-Date -Format "yyyyMMdd" + $NewVersion = "$Version-testing-$Date" + (Get-Content nzbget.vcxproj) | ForEach-Object {$_ -replace "VERSION=`"$Version`"", "VERSION=`"$NewVersion`""} | Set-Content nzbget.vcxproj + (Get-Content windows\nzbget-setup.nsi) | ForEach-Object {$_ -replace "`"DisplayVersion`" `"$Version`"", "`"DisplayVersion`" `"$NewVersion`""} | Set-Content windows\nzbget-setup.nsi + "NEW_VERSION=$NewVersion" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - name: Build run: | .\windows\build-nzbget-vs22.bat + - name: Rename build artifacts + if: github.ref_name != 'main' && github.ref_name != 'develop' + run: | + $Output="c:\nzbget\build\output" + $NewVersion=$env:NEW_VERSION + $Suffix = $env:GITHUB_REF_NAME.Replace("/","-") + ForEach ($File In Get-ChildItem -Path $Output -Filter "*.exe") { + Rename-Item -Path "$Output\$($File.Name)" -NewName $File.Name.Replace($NewVersion, "$NewVersion-$Suffix") + } + - name: Upload build artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: nzbget-windows-installers path: C:\nzbget\build\output\*.exe diff --git a/.gitignore b/.gitignore index 3bd6a5cb..a5d1eec1 100644 --- a/.gitignore +++ b/.gitignore @@ -26,10 +26,21 @@ # GNU Autotools .deps/ config.h +config.h.in config.h.in~ +configure +configure~ config.log config.status Makefile +Makefile.in +aclocal.m4 +posix/config.guess +posix/config.sub +posix/depcomp +posix/install-sh +posix/missing +posix/compile stamp-h1 autom4te.cache/ .dirstamp @@ -67,9 +78,12 @@ ipch/ # NZBGet specific nzbget -code_revision.cpp +build +!synology/package/SynoBuildConf/build *.temp *.pyc pytest.ini .cache /.idea +docker/downloads +docker/config diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..f7fed97c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,57 @@ +cmake_minimum_required(VERSION 3.22) + +set(VERSION "23.0") + +project( + nzbget + VERSION ${VERSION} + DESCRIPTION "NZBGet is a binary downloader, which downloads files from Usenet" + LANGUAGES C CXX +) + +option(ENABLE_TESTS "Enable tests" ON) + +set(PACKAGE "nzbget") +add_compile_definitions(HAVE_CONFIG_H=1) + +configure_file( + ${CMAKE_SOURCE_DIR}/cmake_config.h.in + ${CMAKE_BINARY_DIR}/config.h +) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_C_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_C_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_C_EXTENSIONS OFF) +set(BUILD_SHARED_LIBS OFF) +set(OPENSSL_USE_STATIC_LIBS ON) +set(ZLIB_USE_STATIC_LIBS ON) +set(Boost_USE_STATIC_LIBS ON) +set(Boost_USE_MULTITHREADED ON) +set(Boost_USE_STATIC_RUNTIME OFF) +set(CMAKE_BUILD_TYPE "Release" CACHE STRING "") + +find_package(OpenSSL REQUIRED) +find_package(ZLIB REQUIRED) +find_package(LibXml2 REQUIRED) +find_package(Boost REQUIRED COMPONENTS json) + +if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -Weverything") +elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -Wall") +elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /O2 /W4") + set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} winmm.lib /NODEFAULTLIB:msvcrt.lib;libcmt.lib;msvcrtd.lib") +endif() + +include_directories(lib/regex) +include_directories(${CMAKE_BINARY_DIR}) +add_subdirectory(lib) + +if(ENABLE_TESTS) + include(CTest) + add_subdirectory(tests) +endif() diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..38ebc023 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,50 @@ +# How to Contribute # + +While we are working on NZBGet project all the time, we still would really like and need help on many areas: + +- Major - code contributions on features and bugs +- Improvements in tests +- Improvements on documentation + +We entice our users to participate in the project, please don't hesitate to get involved - create a [new issue](https://github.com/nzbgetcom/nzbget/issues/new) or [pull request](https://github.com/nzbgetcom/nzbget/compare) - that would also greatly help if you'll share your usage experience. + +## Documentation ## + +Main documentation is available on the NZBGet.com website - [https://nzbget.com/documentation/](https://nzbget.com/documentation/) + +## Development ## + +NZBGet natively supports for multiple platforms and build options, so each platform has their own development documenation, including: + +- [General documentation, including Posix](https://github.com/nzbgetcom/nzbget/blob/develop/INSTALLATION.md) +- [Windows](https://github.com/nzbgetcom/nzbget/blob/develop/windows/README-WINDOWS.txt) +- [Docker](https://github.com/nzbgetcom/nzbget/blob/develop/docker/README.md) + +### Branches naming policy ### + +- `main` is a protected branch that contains only release code +- `develop` is a protected branch for development +- new branches should follow the following convention: + - `hotfix/brief-description` for any small hotfixes + - `feature/brief-description` for any new developments + - `bugfix/brief-description` for bugs + +### Pull requests flow for `develop` and `main` branches ### + +1. For PRs targeting `develop` branch `Squash and merge` mode must be used. +2. After merging branch to `develop`, branch must be deleted. +3. For release PR (`develop` -> `main`) `Create a merge commit` mode must be used. +4. After merging `develop` -> `main`, must be back merge `main` -> `develop` before any changes in `develop` branch. + +This flow results to the fact that in the PR to master branch we see only the squashed commits that correspond to the PRs in the develop branch in current release cycle. + +### Version changes in release cycle + +After the release has been published (from the `main` branch), the minor version in the `develop` branch should be increased so that subsequent test builds are a higher version than the release. + +List of files to change version: + +1. configure.ac - "AC_INIT" macro +2. CMakeLists.txt - "project" block +3. nzbget.vcxproj - "PreprocessorDefinitions" blocks - 4 matches +4. windows/nzbget-setup.nsi - WriteRegStr - "DisplayVersion" diff --git a/ChangeLog b/ChangeLog index 1fca0489..2b7bf2a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,73 @@ +nzbget-23.0 + - Features: + - Extension Manager + [#76](https://github.com/nzbgetcom/nzbget/commit/7348b19cf8a81739922303e3f9047d06e59670d0); + * The new nzbget extension system, which makes it easy to download/update/delete + extensions with backward compatibility with the old system; + * extensions + [master list](https://github.com/nzbgetcom/nzbget-extensions/); + * changed: + - RPC request "configtemplates" - no longer returns script templates, but only the config template; + * added: + - new RPC requests: + - "loadextensions" - + loads all extensions from {ScriptDIR} and returns an array of structures in JSON/XML formats; + - "updateextension" - + downloads by url and name and installs the extension. Returns 'true' or error response in JSON/XML formats; + - "deleteextension" - + deletes extension by name. Returns 'true' or error response in JSON/XML formats; + - "downloadextension" - + downloads by url and installs the extension. Returns 'true' or error response in JSON/XML formats; + - "testextension" - + tries to find the right executor program for the extension, e.g. Python. + Returns 'true' or error response in JSON/XML formats; + - "EXTENSION MANAGER" section in webui to download/delete/update extensions; + - Boost.Json library to work with JSON; + - more unit tests; + * refactored: + - replaced raw pointers with smart pointers and const refs where possible for memory safty reasons; + * removed: + - testdata_FILES from Makefile.am; + - EMail and Logger scripts; + - Docker support + [#55](https://github.com/nzbgetcom/nzbget/commit/1913e331bb87cdd592048b37fd57507f82a17144); + - Synology support (spk) + [#72](https://github.com/nzbgetcom/nzbget/commit/3f8fd6d433b38ed9f18ab7ffe25fd7a4a0c5c246); + - QNAP support + [#158](https://github.com/nzbgetcom/nzbget/commit/9676c77dc8f9e9498a99a6e774e7bf23ca4be537); + - aarch64 mipseb mipsel ppc6xx ppc500 architectures to linux build + [#61](https://github.com/nzbgetcom/nzbget/commit/959985473cdfcf51d88e6a49770650b4edced043) + [#146](https://github.com/nzbgetcom/nzbget/commit/fcc104dc294a905155f65e93483de4a1f40d843e); + - article read chunk size + [#52](https://github.com/nzbgetcom/nzbget/commit/1aa42f2df9a9148d3a79e17694381de873557fce); + * Added ArticleReadChunkSize config option which allows to adjust + the buffer size for customization on different platforms, which can lead to increased performance; + - increased the number of default connections to 8 + [#54](https://github.com/nzbgetcom/nzbget/commit/55eca4ce57cc119b51acc2e6915f6c0547dd8123); + - automatic search for a suitable interpreter on POSIX + [#74](https://github.com/nzbgetcom/nzbget/commit/ec0756d5f63137d879f56a6bc60cab6b81238eaf); + - certificate verification levels + [#150](https://github.com/nzbgetcom/nzbget/commit/5956a17e2618480dbbc423e6a515313165f817db); + * levels: + - None: NO certificate signing check, NO certificate hostname check; + - Minimal: certificate signing check, NO certificate hostname check; + - Strict: certificate signing check, certificate hostname check; + * tested on a mock nzbget NNTP nserv server with self-signed certificate and got expected results: + - "Strict" -> test failed; + - "Minimal" -> test failed; + - "None" -> test passed"; + - Bug fixies: + - possible memory corruption + [#148](https://github.com/nzbgetcom/nzbget/commit/16ab25d5780c8100309c44eb60d505afe5c528db); + - For developers: + - fixed unit tests (Windows only for now) and started migration to CMake + [#64](https://github.com/nzbgetcom/nzbget/commit/73e8c00d29f21a44de8fd3d979e4f74628d99e1e); + * We are going to completely migrate to CMake as a more universal one for cross-platform development and drop autotools and MSBuild; + - using libxml2 on Windows and vcpkg package manager to install dependencies + [#70](https://github.com/nzbgetcom/nzbget/commit/f8cb2bda415fb6167e8aa7e9d596bb583dc0b1c1); + * libxml2 library is now used on Windows to work with xml in the same way we already do on Linux and macOS; + * removed platform-dependent code for working with xml on Windows; + nzbget-22.0 - Add NZBGet version to Windows registry during installation so version displays in programm list. https://github.com/nzbgetcom/nzbget/pull/14 diff --git a/README b/INSTALLATION.md similarity index 83% rename from README rename to INSTALLATION.md index 64c26363..2dd0fdef 100644 --- a/README +++ b/INSTALLATION.md @@ -1,6 +1,4 @@ -===================================== - NZBGet ReadMe -===================================== +# NZBGet installation This is a short documentation. For more information please visit NZBGet home page at @@ -19,9 +17,8 @@ Contents 9. Copyright 10. Contact -===================================== -1. About NZBGet -===================================== + +## 1. About NZBGet NZBGet is a binary newsgrabber, which downloads files from usenet based on information given in nzb-files. NZBGet can be used in @@ -40,9 +37,7 @@ Standalone-tool, server and client are all contained in only one executable file "nzbget". The mode in which the program works depends on command-line parameters passed to the program. -===================================== -2. Supported OS -===================================== +## 2. Supported OS NZBGet is written in C++ and works on Windows, OS X, Linux and most POSIX-conform OS'es. @@ -58,9 +53,7 @@ the program yourself. If you have downloaded binaries you can just jump to section "Configuration". -===================================== -3. Prerequisites on POSIX -===================================== +## 3. Prerequisites on POSIX NZBGet is developed on a linux-system, but it runs on other POSIX platforms. @@ -68,22 +61,35 @@ POSIX platforms. NZBGet absolutely needs the following libraries: - libstdc++ (usually part of compiler) - - libxml2 (http://www.xmlsoft.org) + - [libxml2](https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home) + - [Boost.JSON](https://www.boost.org/doc/libs/1_84_0/libs/json/doc/html/index.html) + - [Boost.Optional](https://www.boost.org/doc/libs/1_84_0/libs/optional/doc/html/index.html) And the following libraries are optional: - - for curses-output-mode (enabled by default): + For curses-output-mode (enabled by default): - libcurses (usually part of commercial systems) or (better) - - libncurses (http://invisible-island.net/ncurses) + - [libncurses](https://invisible-island.net/ncurses) - - for encrypted connections (TLS/SSL): - - OpenSSL (http://www.openssl.org) + For encrypted connections (TLS/SSL): + - [OpenSSL](https://www.openssl.org) + or - - GnuTLS (http://www.gnu.org/software/gnutls) + - [GnuTLS](https://gnutls.org) - - for gzip support in web-server and web-client (enabled by default): - - zlib (http://www.zlib.net) + For gzip support in web-server and web-client (enabled by default): + - [zlib](https://www.zlib.net/) + + For configuration: + - [autotools](https://www.gnu.org/software/automake/manual/html_node/Autotools-Introduction.html) + - [autoconf](https://www.gnu.org/software/autoconf/) + + For managing package dependencies: + - [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/) + + For tests: + - [Boost.Test](https://www.boost.org/doc/libs/1_84_0/libs/test/doc/html/index.html) All these libraries are included in modern POSIX distributions and should be available as installable packages. Please note that you also @@ -91,9 +97,7 @@ need the developer packages for these libraries too, they package names have often suffix "dev" or "devel". On other systems you may need to download the libraries at the given URLs and compile them (see hints below). -===================================== -4. Installation on POSIX -===================================== +## 4. Installation on POSIX Installation from the source distribution archive (nzbget-VERSION.tar.gz): @@ -104,6 +108,9 @@ Installation from the source distribution archive (nzbget-VERSION.tar.gz): cd nzbget-VERSION - configure it via + + autoreconf --install + ./configure (maybe you have to tell configure, where to find some libraries. @@ -130,8 +137,8 @@ Installation from the source distribution archive (nzbget-VERSION.tar.gz): (you can skip this step if you intend to store configuration files in a non-standard location) -Configure-options ------------------ +### Configure-options +--------------------- You may run configure with additional arguments: --disable-curses - to make without curses-support. Use this option @@ -152,8 +159,8 @@ You may run configure with additional arguments: --enable-debug - to build in debug-mode, if you want to see and log debug-messages. -Optional package: par-check ---------------------------- +### Optional package: par-check +------------------------------- NZBGet can check and repair downloaded files for you. For this purpose it uses library par2. @@ -165,8 +172,8 @@ can be disabled using configure option "--disable-parcheck": ./configure --disable-parcheck -Optional package: curses -------------------------- +### Optional package: curses +---------------------------- For curses-outputmode you need ncurses or curses on your system. If you do not have one of them you can download and compile ncurses yourself. Following configure-parameters may be useful: @@ -179,7 +186,7 @@ make the program without support for curses using option "--disable-curses": ./configure --disable-curses -Optional package: TLS +### Optional package: TLS ------------------------- To enable encrypted server connections (TLS/SSL) you need to build the program with TLS/SSL support. NZBGet can use two libraries: OpenSSL or GnuTLS. @@ -202,25 +209,30 @@ TLS/SSL support using option "--disable-tls": ./configure --disable-tls -===================================== -5. Compiling on Windows -===================================== +## 5. Compiling on Windows NZBGet is developed using MS Visual Studio 2015 (Community Edition). The project file is provided. To compile the program with TLS/SSL support you need either OpenSSL or GnuTLS: - - OpenSSL (http://www.openssl.org) - or - - GnuTLS (http://www.gnu.org/software/gnutls) + - [OpenSSL](https://www.openssl.org) + + or + - [GnuTLS](https://gnutls.org/) Also required are: - - Regex (http://gnuwin32.sourceforge.net/packages/regex.htm) - - Zlib (http://gnuwin32.sourceforge.net/packages/zlib.htm) + - [Regex](https://regexlib.com/) + - [Zlib](https://gnuwin32.sourceforge.net/packages/zlib.htm) + - [libxml2](https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home) + - [Boost.JSON](https://www.boost.org/doc/libs/1_84_0/libs/json/doc/html/index.html) + - [Boost.Optional](https://www.boost.org/doc/libs/1_84_0/libs/optional/doc/html/index.html) -===================================== -6. Configuration -===================================== +For tests: + - [Boost.Test](https://www.boost.org/doc/libs/1_84_0/libs/test/doc/html/index.html) + +We recommend using [vcpkg](https://vcpkg.io/) to install dependencies. + +## 6. Configuration NZBGet needs a configuration file. @@ -260,9 +272,7 @@ In special cases you can run program without configuration file using switch "-n". You need to use switch "-o" to pass required configuration options via command-line. -===================================== -7. Usage -===================================== +## 7. Usage NZBGet can be used in either standalone mode which downloads a single file or as a server which is able to queue up numerous download requests. @@ -273,13 +283,13 @@ in "nzbget-shell.bat". Start this script from Windows Explorer and you will be running a command shell with PATH adjusted to find NZBGet executable. Then you can type all commands without full path to nzbget.exe. -Standalone mode: ----------------- +### Standalone mode: +-------------------- nzbget -Server mode: ------------- +### Server mode: +---------------- First start the nzbget-server: @@ -374,8 +384,8 @@ or: nzbget -o createlog=no -C -Running client & server on seperate machines: ---------------------------------------------- +### Running client & server on seperate machines: +------------------------------------------------- Since nzbget communicates via TCP/IP it's possible to have a server running on one computer and adding downloads via a client on another computer. @@ -384,8 +394,8 @@ Do this by setting the "ControlIP" option in the nzbget.conf file to point to th IP of the server (default is localhost which means client and server runs on same computer) -Security warning ----------------- +### Security warning +-------------------- NZBGet communicates via unsecured socket connections. This makes it vulnerable. Although server checks the password passed by client, this password is still @@ -396,8 +406,8 @@ If you need to control server from WAN it is better to connect to server's terminal via SSH (POSIX) or remote desktop (Windows) and then run nzbget-client-commands in this terminal. -Post processing scripts ------------------------ +### Post processing scripts +--------------------------- After the download of nzb-file is completed nzbget can call post-processing scripts, defined in configuration file. @@ -410,8 +420,8 @@ To use the scripts copy them into your local directory and set options For information on writing your own post-processing scripts please visit NZBGet web site. -Web-interface -------------- +### Web-interface +----------------- NZBGet has a built-in web-server providing the access to the program functions via web-interface. @@ -440,9 +450,7 @@ Please note, that in this case the password is saved in a bookmark or in browser history in plain text and is easy to find by persons having access to your computer. -===================================== -8. Authors -===================================== +## 8. Authors NZBGet is developed and maintained by Andrey Prygunkov (hugbug@users.sourceforge.net). @@ -462,15 +470,12 @@ Par2: Par2 library API: Francois Lesueur -Catch: - Two Blue Cubes Ltd - jQuery: - John Resig - The Dojo Foundation + John Resig + The Dojo Foundation Bootstrap: - Twitter, Inc + Twitter, Inc RaphaĆ«l: Dmitry Baranovskiy @@ -480,11 +485,13 @@ Elycharts: Void Labs s.n.c. iconSweets: - Yummygum + Yummygum -===================================== -9. Copyright -===================================== +Boost: + Boost organization and wider Boost community + + +## 9. Copyright This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -495,14 +502,7 @@ The complete content of license is provided in file COPYING. Additional exemption: compiling, linking, and/or using OpenSSL is allowed. -===================================== -10. Contact -===================================== - -If you encounter any problem, feel free to use the forum - - nzbget.com/forum - -or contact me at +## 10. Contact - hugbug@users.sourceforge.net +If you encounter any problem, feel free to contact us + https://nzbget.com/contact/ diff --git a/Makefile.am b/Makefile.am index e325a1fc..b853f8f8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -42,6 +42,14 @@ nzbget_SOURCES = \ daemon/extension/SchedulerScript.h \ daemon/extension/ScriptConfig.cpp \ daemon/extension/ScriptConfig.h \ + daemon/extension/Extension.cpp \ + daemon/extension/Extension.h \ + daemon/extension/ExtensionManager.cpp \ + daemon/extension/ExtensionManager.h \ + daemon/extension/ExtensionLoader.cpp \ + daemon/extension/ExtensionLoader.h \ + daemon/extension/ManifestFile.cpp \ + daemon/extension/ManifestFile.h \ daemon/feed/FeedCoordinator.cpp \ daemon/feed/FeedCoordinator.h \ daemon/feed/FeedFile.cpp \ @@ -150,14 +158,18 @@ nzbget_SOURCES = \ daemon/util/Container.h \ daemon/util/Observer.cpp \ daemon/util/Observer.h \ - daemon/util/Script.cpp \ - daemon/util/Script.h \ + daemon/util/ScriptController.cpp \ + daemon/util/ScriptController.h \ daemon/util/Thread.cpp \ daemon/util/Thread.h \ daemon/util/Service.cpp \ daemon/util/Service.h \ daemon/util/FileSystem.cpp \ daemon/util/FileSystem.h \ + daemon/util/Json.cpp \ + daemon/util/Json.h \ + daemon/util/Xml.cpp \ + daemon/util/Xml.h \ daemon/util/Util.cpp \ daemon/util/Util.h \ daemon/nserv/NServMain.h \ @@ -169,8 +181,7 @@ nzbget_SOURCES = \ daemon/nserv/NzbGenerator.h \ daemon/nserv/NzbGenerator.cpp \ daemon/nserv/YEncoder.h \ - daemon/nserv/YEncoder.cpp \ - code_revision.cpp + daemon/nserv/YEncoder.cpp if WITH_PAR2 nzbget_SOURCES += \ @@ -250,37 +261,6 @@ AM_CPPFLAGS = \ -I$(srcdir)/lib/par2 \ -I$(srcdir)/lib/yencode -if WITH_TESTS -nzbget_SOURCES += \ - lib/catch/catch.h \ - tests/suite/TestMain.cpp \ - tests/suite/TestMain.h \ - tests/suite/TestUtil.cpp \ - tests/suite/TestUtil.h \ - tests/main/CommandLineParserTest.cpp \ - tests/main/OptionsTest.cpp \ - tests/feed/FeedFilterTest.cpp \ - tests/postprocess/DupeMatcherTest.cpp \ - tests/postprocess/RarRenamerTest.cpp \ - tests/postprocess/RarReaderTest.cpp \ - tests/postprocess/DirectUnpackTest.cpp \ - tests/queue/NzbFileTest.cpp \ - tests/nntp/ServerPoolTest.cpp \ - tests/util/FileSystemTest.cpp \ - tests/util/NStringTest.cpp \ - tests/util/UtilTest.cpp - -if WITH_PAR2 -nzbget_SOURCES += \ - tests/postprocess/ParCheckerTest.cpp \ - tests/postprocess/ParRenamerTest.cpp -endif - -AM_CPPFLAGS += \ - -I$(srcdir)/lib/catch \ - -I$(srcdir)/tests/suite -endif - EXTRA_DIST = \ $(windows_FILES) \ $(osx_FILES) \ @@ -351,7 +331,7 @@ linux_FILES = \ linux/build-toolchain-freebsd doc_FILES = \ - README \ + INSTALLATION.md \ ChangeLog \ COPYING @@ -385,6 +365,8 @@ webui_FILES = \ webui/lib/raphael.min.js \ webui/lib/elycharts.js \ webui/lib/elycharts.min.js \ + webui/img/house-16.ico \ + webui/img/download-16.ico \ webui/img/icons.png \ webui/img/icons-2x.png \ webui/img/transmit.gif \ @@ -396,64 +378,13 @@ webui_FILES = \ webui/img/favicon-256x256-opaque.png \ webui/img/favicon-256x256.png -scripts_FILES = \ - scripts/EMail.py \ - scripts/Logger.py - -testdata_FILES = \ - tests/testdata/dupematcher1/testfile.part01.rar \ - tests/testdata/dupematcher1/testfile.part24.rar \ - tests/testdata/dupematcher2/testfile.part04.rar \ - tests/testdata/dupematcher2/testfile.part43.rar \ - tests/testdata/nzbfile/dotless.nzb \ - tests/testdata/nzbfile/dotless.txt \ - tests/testdata/nzbfile/plain.nzb \ - tests/testdata/nzbfile/plain.txt \ - tests/testdata/parchecker/crc.txt \ - tests/testdata/parchecker/testfile.dat \ - tests/testdata/parchecker/testfile.nfo \ - tests/testdata/parchecker/testfile.par2 \ - tests/testdata/parchecker/testfile.vol00+1.PAR2 \ - tests/testdata/parchecker/testfile.vol01+2.PAR2 \ - tests/testdata/parchecker/testfile.vol03+3.PAR2 \ - tests/testdata/parchecker2/crc.txt \ - tests/testdata/parchecker2/testfile.7z.001 \ - tests/testdata/parchecker2/testfile.7z.002 \ - tests/testdata/parchecker2/testfile.7z.003 \ - tests/testdata/parchecker2/testfile.7z.par2 \ - tests/testdata/parchecker2/testfile.7z.vol0+1.PAR2 \ - tests/testdata/parchecker2/testfile.7z.vol1+2.PAR2 \ - tests/testdata/parchecker2/testfile.7z.vol3+3.PAR2 \ - tests/testdata/rarrenamer/testfile3.part01.rar \ - tests/testdata/rarrenamer/testfile3.part02.rar \ - tests/testdata/rarrenamer/testfile3.part03.rar \ - tests/testdata/rarrenamer/testfile5.part01.rar \ - tests/testdata/rarrenamer/testfile5.part02.rar \ - tests/testdata/rarrenamer/testfile5.part03.rar \ - tests/testdata/rarrenamer/testfile3oldnam.rar \ - tests/testdata/rarrenamer/testfile3oldnam.r00 \ - tests/testdata/rarrenamer/testfile3oldnam.r01 \ - tests/testdata/rarrenamer/testfile3encdata.part01.rar \ - tests/testdata/rarrenamer/testfile3encdata.part02.rar \ - tests/testdata/rarrenamer/testfile3encdata.part03.rar \ - tests/testdata/rarrenamer/testfile3encnam.part01.rar \ - tests/testdata/rarrenamer/testfile3encnam.part02.rar \ - tests/testdata/rarrenamer/testfile3encnam.part03.rar \ - tests/testdata/rarrenamer/testfile5encdata.part01.rar \ - tests/testdata/rarrenamer/testfile5encdata.part02.rar \ - tests/testdata/rarrenamer/testfile5encdata.part03.rar \ - tests/testdata/rarrenamer/testfile5encnam.part01.rar \ - tests/testdata/rarrenamer/testfile5encnam.part02.rar \ - tests/testdata/rarrenamer/testfile5encnam.part03.rar - # Install dist_doc_DATA = $(doc_FILES) exampleconfdir = $(datadir)/nzbget dist_exampleconf_DATA = $(exampleconf_FILES) webuidir = $(datadir)/nzbget nobase_dist_webui_DATA = $(webui_FILES) -scriptsdir = $(datadir)/nzbget -nobase_dist_scripts_SCRIPTS = $(scripts_FILES) +scriptsdir = $(datadir)/nzbget/scripts # Note about "sed": # We need to make some changes in installed files. @@ -466,6 +397,7 @@ nobase_dist_scripts_SCRIPTS = $(scripts_FILES) # Prepare example configuration file install-data-hook: + mkdir -p "$(DESTDIR)$(scriptsdir)" rm -f "$(DESTDIR)$(exampleconfdir)/nzbget.conf.temp" cp "$(DESTDIR)$(exampleconfdir)/nzbget.conf" "$(DESTDIR)$(exampleconfdir)/nzbget.conf.temp" sed 's:^ConfigTemplate=:ConfigTemplate=$(exampleconfdir)/nzbget.conf:' < "$(DESTDIR)$(exampleconfdir)/nzbget.conf.temp" > "$(DESTDIR)$(exampleconfdir)/nzbget.conf" @@ -486,59 +418,6 @@ install-conf: uninstall-conf: rm -f "$(DESTDIR)$(sysconfdir)/nzbget.conf" -# Determining git revision: -# 1) If directory ".git" exists we take revision from git log. -# File is recreated only if revision number was changed. -# 2) If directory ".git" doesn't exists we keep and reuse file "code_revision.cpp", -# which was possibly created early. -# 3) If neither directory ".git" nor file "code_revision.cpp" are available -# we create new file "code_revision.c" with empty revision number. -code_revision.cpp: FORCE - @ if test -d ./.git ; then \ - B=`git branch | sed -n -e 's/^\* \(.*\)/\1/p'`; \ - M=`git status --porcelain` ; \ - if test "$$M" != "" ; then \ - M="M" ; \ - fi ; \ - if test "$$B" = "master" ; then \ - V="$$M" ; \ - elif test "$$B" = "develop" ; then \ - V=`git rev-list HEAD | wc -l | xargs` ; \ - V="$${V}$$M" ; \ - else \ - V=`git rev-list HEAD | wc -l | xargs` ; \ - V="$${V}$$M ($$B)" ; \ - fi ; \ - H=`test -f ./code_revision.cpp && head -n 1 code_revision.cpp`; \ - if test "/* $$V */" != "$$H" ; then \ - ( \ - echo "/* $$V */" ;\ - echo "/* This file is automatically regenerated on each build. Do not edit it. */" ;\ - echo "#include \"nzbget.h\"" ;\ - echo "const char* code_revision(void)" ;\ - echo "{" ;\ - echo " const char* revision = \"$$V\";" ;\ - echo " return revision;" ;\ - echo "}" ;\ - ) > code_revision.cpp ; \ - fi \ - elif test -f ./code_revision.cpp ; then \ - test "ok, reuse existing file"; \ - else \ - ( \ - echo "/* */" ;\ - echo "/* This file is automatically regenerated on each build. Do not edit it. */" ;\ - echo "#include \"nzbget.h\"" ;\ - echo "const char* code_revision(void)" ;\ - echo "{" ;\ - echo " const char* revision = \"\";" ;\ - echo " return revision;" ;\ - echo "}" ;\ - ) > code_revision.cpp ; \ - fi -FORCE: - -# Ignore "code_revision.cpp" in distcleancheck distcleancheck_listfiles = \ find . -type f -exec sh -c 'test -f $(srcdir)/$$1 || echo $$1' \ sh '{}' ';' diff --git a/Makefile.in b/Makefile.in deleted file mode 100644 index 4c9e6760..00000000 --- a/Makefile.in +++ /dev/null @@ -1,2245 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# -# This file is part of nzbget. See . -# -# Copyright (C) 2008-2019 Andrey Prygunkov -# -# This program 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 2 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 . -# - - - -VPATH = @srcdir@ -am__is_gnu_make = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=yes;; \ - -[JT]) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -target_triplet = @target@ -bin_PROGRAMS = nzbget$(EXEEXT) -@WITH_PAR2_TRUE@am__append_1 = \ -@WITH_PAR2_TRUE@ lib/par2/commandline.cpp \ -@WITH_PAR2_TRUE@ lib/par2/commandline.h \ -@WITH_PAR2_TRUE@ lib/par2/crc.cpp \ -@WITH_PAR2_TRUE@ lib/par2/crc.h \ -@WITH_PAR2_TRUE@ lib/par2/creatorpacket.cpp \ -@WITH_PAR2_TRUE@ lib/par2/creatorpacket.h \ -@WITH_PAR2_TRUE@ lib/par2/criticalpacket.cpp \ -@WITH_PAR2_TRUE@ lib/par2/criticalpacket.h \ -@WITH_PAR2_TRUE@ lib/par2/datablock.cpp \ -@WITH_PAR2_TRUE@ lib/par2/datablock.h \ -@WITH_PAR2_TRUE@ lib/par2/descriptionpacket.cpp \ -@WITH_PAR2_TRUE@ lib/par2/descriptionpacket.h \ -@WITH_PAR2_TRUE@ lib/par2/diskfile.cpp \ -@WITH_PAR2_TRUE@ lib/par2/diskfile.h \ -@WITH_PAR2_TRUE@ lib/par2/filechecksummer.cpp \ -@WITH_PAR2_TRUE@ lib/par2/filechecksummer.h \ -@WITH_PAR2_TRUE@ lib/par2/galois.cpp \ -@WITH_PAR2_TRUE@ lib/par2/galois.h \ -@WITH_PAR2_TRUE@ lib/par2/letype.h \ -@WITH_PAR2_TRUE@ lib/par2/mainpacket.cpp \ -@WITH_PAR2_TRUE@ lib/par2/mainpacket.h \ -@WITH_PAR2_TRUE@ lib/par2/md5.cpp \ -@WITH_PAR2_TRUE@ lib/par2/md5.h \ -@WITH_PAR2_TRUE@ lib/par2/par2cmdline.h \ -@WITH_PAR2_TRUE@ lib/par2/par2fileformat.cpp \ -@WITH_PAR2_TRUE@ lib/par2/par2fileformat.h \ -@WITH_PAR2_TRUE@ lib/par2/par2repairer.cpp \ -@WITH_PAR2_TRUE@ lib/par2/par2repairer.h \ -@WITH_PAR2_TRUE@ lib/par2/par2repairersourcefile.cpp \ -@WITH_PAR2_TRUE@ lib/par2/par2repairersourcefile.h \ -@WITH_PAR2_TRUE@ lib/par2/parheaders.cpp \ -@WITH_PAR2_TRUE@ lib/par2/parheaders.h \ -@WITH_PAR2_TRUE@ lib/par2/recoverypacket.cpp \ -@WITH_PAR2_TRUE@ lib/par2/recoverypacket.h \ -@WITH_PAR2_TRUE@ lib/par2/reedsolomon.cpp \ -@WITH_PAR2_TRUE@ lib/par2/reedsolomon.h \ -@WITH_PAR2_TRUE@ lib/par2/verificationhashtable.cpp \ -@WITH_PAR2_TRUE@ lib/par2/verificationhashtable.h \ -@WITH_PAR2_TRUE@ lib/par2/verificationpacket.cpp \ -@WITH_PAR2_TRUE@ lib/par2/verificationpacket.h - -@WITH_TESTS_TRUE@am__append_2 = \ -@WITH_TESTS_TRUE@ lib/catch/catch.h \ -@WITH_TESTS_TRUE@ tests/suite/TestMain.cpp \ -@WITH_TESTS_TRUE@ tests/suite/TestMain.h \ -@WITH_TESTS_TRUE@ tests/suite/TestUtil.cpp \ -@WITH_TESTS_TRUE@ tests/suite/TestUtil.h \ -@WITH_TESTS_TRUE@ tests/main/CommandLineParserTest.cpp \ -@WITH_TESTS_TRUE@ tests/main/OptionsTest.cpp \ -@WITH_TESTS_TRUE@ tests/feed/FeedFilterTest.cpp \ -@WITH_TESTS_TRUE@ tests/postprocess/DupeMatcherTest.cpp \ -@WITH_TESTS_TRUE@ tests/postprocess/RarRenamerTest.cpp \ -@WITH_TESTS_TRUE@ tests/postprocess/RarReaderTest.cpp \ -@WITH_TESTS_TRUE@ tests/postprocess/DirectUnpackTest.cpp \ -@WITH_TESTS_TRUE@ tests/queue/NzbFileTest.cpp \ -@WITH_TESTS_TRUE@ tests/nntp/ServerPoolTest.cpp \ -@WITH_TESTS_TRUE@ tests/util/FileSystemTest.cpp \ -@WITH_TESTS_TRUE@ tests/util/NStringTest.cpp \ -@WITH_TESTS_TRUE@ tests/util/UtilTest.cpp - -@WITH_PAR2_TRUE@@WITH_TESTS_TRUE@am__append_3 = \ -@WITH_PAR2_TRUE@@WITH_TESTS_TRUE@ tests/postprocess/ParCheckerTest.cpp \ -@WITH_PAR2_TRUE@@WITH_TESTS_TRUE@ tests/postprocess/ParRenamerTest.cpp - -@WITH_TESTS_TRUE@am__append_4 = \ -@WITH_TESTS_TRUE@ -I$(srcdir)/lib/catch \ -@WITH_TESTS_TRUE@ -I$(srcdir)/tests/suite - -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/posix/ax_cxx_compile_stdcxx.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ - $(am__configure_deps) $(nobase_dist_scripts_SCRIPTS) \ - $(dist_doc_DATA) $(dist_exampleconf_DATA) \ - $(nobase_dist_webui_DATA) $(am__DIST_COMMON) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(scriptsdir)" \ - "$(DESTDIR)$(docdir)" "$(DESTDIR)$(exampleconfdir)" \ - "$(DESTDIR)$(webuidir)" -PROGRAMS = $(bin_PROGRAMS) -am__nzbget_SOURCES_DIST = daemon/connect/Connection.cpp \ - daemon/connect/Connection.h daemon/connect/TlsSocket.cpp \ - daemon/connect/TlsSocket.h daemon/connect/WebDownloader.cpp \ - daemon/connect/WebDownloader.h daemon/extension/FeedScript.cpp \ - daemon/extension/FeedScript.h \ - daemon/extension/CommandScript.cpp \ - daemon/extension/CommandScript.h \ - daemon/extension/NzbScript.cpp daemon/extension/NzbScript.h \ - daemon/extension/PostScript.cpp daemon/extension/PostScript.h \ - daemon/extension/QueueScript.cpp \ - daemon/extension/QueueScript.h daemon/extension/ScanScript.cpp \ - daemon/extension/ScanScript.h \ - daemon/extension/SchedulerScript.cpp \ - daemon/extension/SchedulerScript.h \ - daemon/extension/ScriptConfig.cpp \ - daemon/extension/ScriptConfig.h \ - daemon/feed/FeedCoordinator.cpp daemon/feed/FeedCoordinator.h \ - daemon/feed/FeedFile.cpp daemon/feed/FeedFile.h \ - daemon/feed/FeedFilter.cpp daemon/feed/FeedFilter.h \ - daemon/feed/FeedInfo.cpp daemon/feed/FeedInfo.h \ - daemon/frontend/ColoredFrontend.cpp \ - daemon/frontend/ColoredFrontend.h daemon/frontend/Frontend.cpp \ - daemon/frontend/Frontend.h \ - daemon/frontend/LoggableFrontend.cpp \ - daemon/frontend/LoggableFrontend.h \ - daemon/frontend/NCursesFrontend.cpp \ - daemon/frontend/NCursesFrontend.h \ - daemon/main/CommandLineParser.cpp \ - daemon/main/CommandLineParser.h daemon/main/DiskService.cpp \ - daemon/main/DiskService.h daemon/main/Maintenance.cpp \ - daemon/main/Maintenance.h daemon/main/nzbget.cpp \ - daemon/main/nzbget.h daemon/main/Options.cpp \ - daemon/main/Options.h daemon/main/WorkState.cpp \ - daemon/main/WorkState.h daemon/main/Scheduler.cpp \ - daemon/main/Scheduler.h daemon/main/StackTrace.cpp \ - daemon/main/StackTrace.h daemon/nntp/ArticleDownloader.cpp \ - daemon/nntp/ArticleDownloader.h daemon/nntp/ArticleWriter.cpp \ - daemon/nntp/ArticleWriter.h daemon/nntp/Decoder.cpp \ - daemon/nntp/Decoder.h daemon/nntp/NewsServer.cpp \ - daemon/nntp/NewsServer.h daemon/nntp/NntpConnection.cpp \ - daemon/nntp/NntpConnection.h daemon/nntp/ServerPool.cpp \ - daemon/nntp/ServerPool.h daemon/nntp/StatMeter.cpp \ - daemon/nntp/StatMeter.h daemon/postprocess/Cleanup.cpp \ - daemon/postprocess/Cleanup.h \ - daemon/postprocess/DupeMatcher.cpp \ - daemon/postprocess/DupeMatcher.h \ - daemon/postprocess/ParChecker.cpp \ - daemon/postprocess/ParChecker.h \ - daemon/postprocess/ParParser.cpp \ - daemon/postprocess/ParParser.h \ - daemon/postprocess/ParRenamer.cpp \ - daemon/postprocess/ParRenamer.h \ - daemon/postprocess/PrePostProcessor.cpp \ - daemon/postprocess/PrePostProcessor.h \ - daemon/postprocess/RarRenamer.cpp \ - daemon/postprocess/RarRenamer.h \ - daemon/postprocess/RarReader.cpp \ - daemon/postprocess/RarReader.h daemon/postprocess/Rename.cpp \ - daemon/postprocess/Rename.h daemon/postprocess/Repair.cpp \ - daemon/postprocess/Repair.h daemon/postprocess/Unpack.cpp \ - daemon/postprocess/Unpack.h \ - daemon/postprocess/DirectUnpack.cpp \ - daemon/postprocess/DirectUnpack.h \ - daemon/queue/DirectRenamer.cpp daemon/queue/DirectRenamer.h \ - daemon/queue/DiskState.cpp daemon/queue/DiskState.h \ - daemon/queue/DownloadInfo.cpp daemon/queue/DownloadInfo.h \ - daemon/queue/DupeCoordinator.cpp \ - daemon/queue/DupeCoordinator.h \ - daemon/queue/HistoryCoordinator.cpp \ - daemon/queue/HistoryCoordinator.h daemon/queue/NzbFile.cpp \ - daemon/queue/NzbFile.h daemon/queue/QueueCoordinator.cpp \ - daemon/queue/QueueCoordinator.h daemon/queue/QueueEditor.cpp \ - daemon/queue/QueueEditor.h daemon/queue/Scanner.cpp \ - daemon/queue/Scanner.h daemon/queue/UrlCoordinator.cpp \ - daemon/queue/UrlCoordinator.h daemon/remote/BinRpc.cpp \ - daemon/remote/BinRpc.h daemon/remote/MessageBase.h \ - daemon/remote/RemoteClient.cpp daemon/remote/RemoteClient.h \ - daemon/remote/RemoteServer.cpp daemon/remote/RemoteServer.h \ - daemon/remote/WebServer.cpp daemon/remote/WebServer.h \ - daemon/remote/XmlRpc.cpp daemon/remote/XmlRpc.h \ - daemon/util/Log.cpp daemon/util/Log.h daemon/util/NString.cpp \ - daemon/util/NString.h daemon/util/Container.h \ - daemon/util/Observer.cpp daemon/util/Observer.h \ - daemon/util/Script.cpp daemon/util/Script.h \ - daemon/util/Thread.cpp daemon/util/Thread.h \ - daemon/util/Service.cpp daemon/util/Service.h \ - daemon/util/FileSystem.cpp daemon/util/FileSystem.h \ - daemon/util/Util.cpp daemon/util/Util.h \ - daemon/nserv/NServMain.h daemon/nserv/NServMain.cpp \ - daemon/nserv/NServFrontend.h daemon/nserv/NServFrontend.cpp \ - daemon/nserv/NntpServer.h daemon/nserv/NntpServer.cpp \ - daemon/nserv/NzbGenerator.h daemon/nserv/NzbGenerator.cpp \ - daemon/nserv/YEncoder.h daemon/nserv/YEncoder.cpp \ - code_revision.cpp lib/par2/commandline.cpp \ - lib/par2/commandline.h lib/par2/crc.cpp lib/par2/crc.h \ - lib/par2/creatorpacket.cpp lib/par2/creatorpacket.h \ - lib/par2/criticalpacket.cpp lib/par2/criticalpacket.h \ - lib/par2/datablock.cpp lib/par2/datablock.h \ - lib/par2/descriptionpacket.cpp lib/par2/descriptionpacket.h \ - lib/par2/diskfile.cpp lib/par2/diskfile.h \ - lib/par2/filechecksummer.cpp lib/par2/filechecksummer.h \ - lib/par2/galois.cpp lib/par2/galois.h lib/par2/letype.h \ - lib/par2/mainpacket.cpp lib/par2/mainpacket.h lib/par2/md5.cpp \ - lib/par2/md5.h lib/par2/par2cmdline.h \ - lib/par2/par2fileformat.cpp lib/par2/par2fileformat.h \ - lib/par2/par2repairer.cpp lib/par2/par2repairer.h \ - lib/par2/par2repairersourcefile.cpp \ - lib/par2/par2repairersourcefile.h lib/par2/parheaders.cpp \ - lib/par2/parheaders.h lib/par2/recoverypacket.cpp \ - lib/par2/recoverypacket.h lib/par2/reedsolomon.cpp \ - lib/par2/reedsolomon.h lib/par2/verificationhashtable.cpp \ - lib/par2/verificationhashtable.h \ - lib/par2/verificationpacket.cpp lib/par2/verificationpacket.h \ - lib/yencode/YEncode.h lib/yencode/SimdInit.cpp \ - lib/yencode/SimdDecoder.cpp lib/yencode/ScalarDecoder.cpp \ - lib/yencode/Sse2Decoder.cpp lib/yencode/Ssse3Decoder.cpp \ - lib/yencode/PclmulCrc.cpp lib/yencode/NeonDecoder.cpp \ - lib/yencode/AcleCrc.cpp lib/yencode/SliceCrc.cpp \ - lib/catch/catch.h tests/suite/TestMain.cpp \ - tests/suite/TestMain.h tests/suite/TestUtil.cpp \ - tests/suite/TestUtil.h tests/main/CommandLineParserTest.cpp \ - tests/main/OptionsTest.cpp tests/feed/FeedFilterTest.cpp \ - tests/postprocess/DupeMatcherTest.cpp \ - tests/postprocess/RarRenamerTest.cpp \ - tests/postprocess/RarReaderTest.cpp \ - tests/postprocess/DirectUnpackTest.cpp \ - tests/queue/NzbFileTest.cpp tests/nntp/ServerPoolTest.cpp \ - tests/util/FileSystemTest.cpp tests/util/NStringTest.cpp \ - tests/util/UtilTest.cpp tests/postprocess/ParCheckerTest.cpp \ - tests/postprocess/ParRenamerTest.cpp -am__dirstamp = $(am__leading_dot)dirstamp -@WITH_PAR2_TRUE@am__objects_1 = lib/par2/commandline.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/crc.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/creatorpacket.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/criticalpacket.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/datablock.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/descriptionpacket.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/diskfile.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/filechecksummer.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/galois.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/mainpacket.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/md5.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/par2fileformat.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/par2repairer.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/par2repairersourcefile.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/parheaders.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/recoverypacket.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/reedsolomon.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/verificationhashtable.$(OBJEXT) \ -@WITH_PAR2_TRUE@ lib/par2/verificationpacket.$(OBJEXT) -@WITH_TESTS_TRUE@am__objects_2 = tests/suite/TestMain.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/suite/TestUtil.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/main/CommandLineParserTest.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/main/OptionsTest.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/feed/FeedFilterTest.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/postprocess/DupeMatcherTest.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/postprocess/RarRenamerTest.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/postprocess/RarReaderTest.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/postprocess/DirectUnpackTest.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/queue/NzbFileTest.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/nntp/ServerPoolTest.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/util/FileSystemTest.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/util/NStringTest.$(OBJEXT) \ -@WITH_TESTS_TRUE@ tests/util/UtilTest.$(OBJEXT) -@WITH_PAR2_TRUE@@WITH_TESTS_TRUE@am__objects_3 = tests/postprocess/ParCheckerTest.$(OBJEXT) \ -@WITH_PAR2_TRUE@@WITH_TESTS_TRUE@ tests/postprocess/ParRenamerTest.$(OBJEXT) -am_nzbget_OBJECTS = daemon/connect/Connection.$(OBJEXT) \ - daemon/connect/TlsSocket.$(OBJEXT) \ - daemon/connect/WebDownloader.$(OBJEXT) \ - daemon/extension/FeedScript.$(OBJEXT) \ - daemon/extension/CommandScript.$(OBJEXT) \ - daemon/extension/NzbScript.$(OBJEXT) \ - daemon/extension/PostScript.$(OBJEXT) \ - daemon/extension/QueueScript.$(OBJEXT) \ - daemon/extension/ScanScript.$(OBJEXT) \ - daemon/extension/SchedulerScript.$(OBJEXT) \ - daemon/extension/ScriptConfig.$(OBJEXT) \ - daemon/feed/FeedCoordinator.$(OBJEXT) \ - daemon/feed/FeedFile.$(OBJEXT) \ - daemon/feed/FeedFilter.$(OBJEXT) \ - daemon/feed/FeedInfo.$(OBJEXT) \ - daemon/frontend/ColoredFrontend.$(OBJEXT) \ - daemon/frontend/Frontend.$(OBJEXT) \ - daemon/frontend/LoggableFrontend.$(OBJEXT) \ - daemon/frontend/NCursesFrontend.$(OBJEXT) \ - daemon/main/CommandLineParser.$(OBJEXT) \ - daemon/main/DiskService.$(OBJEXT) \ - daemon/main/Maintenance.$(OBJEXT) daemon/main/nzbget.$(OBJEXT) \ - daemon/main/Options.$(OBJEXT) daemon/main/WorkState.$(OBJEXT) \ - daemon/main/Scheduler.$(OBJEXT) \ - daemon/main/StackTrace.$(OBJEXT) \ - daemon/nntp/ArticleDownloader.$(OBJEXT) \ - daemon/nntp/ArticleWriter.$(OBJEXT) \ - daemon/nntp/Decoder.$(OBJEXT) daemon/nntp/NewsServer.$(OBJEXT) \ - daemon/nntp/NntpConnection.$(OBJEXT) \ - daemon/nntp/ServerPool.$(OBJEXT) \ - daemon/nntp/StatMeter.$(OBJEXT) \ - daemon/postprocess/Cleanup.$(OBJEXT) \ - daemon/postprocess/DupeMatcher.$(OBJEXT) \ - daemon/postprocess/ParChecker.$(OBJEXT) \ - daemon/postprocess/ParParser.$(OBJEXT) \ - daemon/postprocess/ParRenamer.$(OBJEXT) \ - daemon/postprocess/PrePostProcessor.$(OBJEXT) \ - daemon/postprocess/RarRenamer.$(OBJEXT) \ - daemon/postprocess/RarReader.$(OBJEXT) \ - daemon/postprocess/Rename.$(OBJEXT) \ - daemon/postprocess/Repair.$(OBJEXT) \ - daemon/postprocess/Unpack.$(OBJEXT) \ - daemon/postprocess/DirectUnpack.$(OBJEXT) \ - daemon/queue/DirectRenamer.$(OBJEXT) \ - daemon/queue/DiskState.$(OBJEXT) \ - daemon/queue/DownloadInfo.$(OBJEXT) \ - daemon/queue/DupeCoordinator.$(OBJEXT) \ - daemon/queue/HistoryCoordinator.$(OBJEXT) \ - daemon/queue/NzbFile.$(OBJEXT) \ - daemon/queue/QueueCoordinator.$(OBJEXT) \ - daemon/queue/QueueEditor.$(OBJEXT) \ - daemon/queue/Scanner.$(OBJEXT) \ - daemon/queue/UrlCoordinator.$(OBJEXT) \ - daemon/remote/BinRpc.$(OBJEXT) \ - daemon/remote/RemoteClient.$(OBJEXT) \ - daemon/remote/RemoteServer.$(OBJEXT) \ - daemon/remote/WebServer.$(OBJEXT) \ - daemon/remote/XmlRpc.$(OBJEXT) daemon/util/Log.$(OBJEXT) \ - daemon/util/NString.$(OBJEXT) daemon/util/Observer.$(OBJEXT) \ - daemon/util/Script.$(OBJEXT) daemon/util/Thread.$(OBJEXT) \ - daemon/util/Service.$(OBJEXT) daemon/util/FileSystem.$(OBJEXT) \ - daemon/util/Util.$(OBJEXT) daemon/nserv/NServMain.$(OBJEXT) \ - daemon/nserv/NServFrontend.$(OBJEXT) \ - daemon/nserv/NntpServer.$(OBJEXT) \ - daemon/nserv/NzbGenerator.$(OBJEXT) \ - daemon/nserv/YEncoder.$(OBJEXT) code_revision.$(OBJEXT) \ - $(am__objects_1) lib/yencode/SimdInit.$(OBJEXT) \ - lib/yencode/SimdDecoder.$(OBJEXT) \ - lib/yencode/ScalarDecoder.$(OBJEXT) \ - lib/yencode/Sse2Decoder.$(OBJEXT) \ - lib/yencode/Ssse3Decoder.$(OBJEXT) \ - lib/yencode/PclmulCrc.$(OBJEXT) \ - lib/yencode/NeonDecoder.$(OBJEXT) \ - lib/yencode/AcleCrc.$(OBJEXT) lib/yencode/SliceCrc.$(OBJEXT) \ - $(am__objects_2) $(am__objects_3) -nzbget_OBJECTS = $(am_nzbget_OBJECTS) -nzbget_LDADD = $(LDADD) -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -SCRIPTS = $(nobase_dist_scripts_SCRIPTS) -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -depcomp = $(SHELL) $(top_srcdir)/posix/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -AM_V_CXX = $(am__v_CXX_@AM_V@) -am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) -am__v_CXX_0 = @echo " CXX " $@; -am__v_CXX_1 = -CXXLD = $(CXX) -CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ - -o $@ -AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) -am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) -am__v_CXXLD_0 = @echo " CXXLD " $@; -am__v_CXXLD_1 = -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(nzbget_SOURCES) -DIST_SOURCES = $(am__nzbget_SOURCES_DIST) -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(dist_doc_DATA) $(dist_exampleconf_DATA) \ - $(nobase_dist_webui_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ - $(LISP)config.h.in -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input = $(AWK) '\ - BEGIN { nonempty = 0; } \ - { items[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files = \ - list='$(am__tagged_files)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -CSCOPE = cscope -AM_RECURSIVE_TARGETS = cscope -am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ - $(top_srcdir)/posix/config.guess \ - $(top_srcdir)/posix/config.sub $(top_srcdir)/posix/depcomp \ - $(top_srcdir)/posix/install-sh $(top_srcdir)/posix/missing \ - COPYING ChangeLog README posix/config.guess posix/config.sub \ - posix/depcomp posix/install-sh posix/missing -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - if test -d "$(distdir)"; then \ - find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -rf "$(distdir)" \ - || { sleep 5 && rm -rf "$(distdir)"; }; \ - else :; fi -am__post_remove_distdir = $(am__remove_distdir) -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -DIST_TARGETS = dist-gzip -distuninstallcheck_listfiles = find . -type f -print -am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ - | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' -ACLECRC_CXXFLAGS = @ACLECRC_CXXFLAGS@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -GREP = @GREP@ -HAVE_CXX14 = @HAVE_CXX14@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -MAINT = @MAINT@ -MAKE = @MAKE@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -NEON_CXXFLAGS = @NEON_CXXFLAGS@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCLMUL_CXXFLAGS = @PCLMUL_CXXFLAGS@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SSE2_CXXFLAGS = @SSE2_CXXFLAGS@ -SSSE3_CXXFLAGS = @SSSE3_CXXFLAGS@ -STRIP = @STRIP@ -TAR = @TAR@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CXX = @ac_ct_CXX@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -gnutls_CFLAGS = @gnutls_CFLAGS@ -gnutls_LIBS = @gnutls_LIBS@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -libxml2_CFLAGS = @libxml2_CFLAGS@ -libxml2_LIBS = @libxml2_LIBS@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -ncurses_CFLAGS = @ncurses_CFLAGS@ -ncurses_LIBS = @ncurses_LIBS@ -nettle_CFLAGS = @nettle_CFLAGS@ -nettle_LIBS = @nettle_LIBS@ -oldincludedir = @oldincludedir@ -openssl_CFLAGS = @openssl_CFLAGS@ -openssl_LIBS = @openssl_LIBS@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target = @target@ -target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -zlib_CFLAGS = @zlib_CFLAGS@ -zlib_LIBS = @zlib_LIBS@ - -# Simd decoder and Crc32 -nzbget_SOURCES = daemon/connect/Connection.cpp \ - daemon/connect/Connection.h daemon/connect/TlsSocket.cpp \ - daemon/connect/TlsSocket.h daemon/connect/WebDownloader.cpp \ - daemon/connect/WebDownloader.h daemon/extension/FeedScript.cpp \ - daemon/extension/FeedScript.h \ - daemon/extension/CommandScript.cpp \ - daemon/extension/CommandScript.h \ - daemon/extension/NzbScript.cpp daemon/extension/NzbScript.h \ - daemon/extension/PostScript.cpp daemon/extension/PostScript.h \ - daemon/extension/QueueScript.cpp \ - daemon/extension/QueueScript.h daemon/extension/ScanScript.cpp \ - daemon/extension/ScanScript.h \ - daemon/extension/SchedulerScript.cpp \ - daemon/extension/SchedulerScript.h \ - daemon/extension/ScriptConfig.cpp \ - daemon/extension/ScriptConfig.h \ - daemon/feed/FeedCoordinator.cpp daemon/feed/FeedCoordinator.h \ - daemon/feed/FeedFile.cpp daemon/feed/FeedFile.h \ - daemon/feed/FeedFilter.cpp daemon/feed/FeedFilter.h \ - daemon/feed/FeedInfo.cpp daemon/feed/FeedInfo.h \ - daemon/frontend/ColoredFrontend.cpp \ - daemon/frontend/ColoredFrontend.h daemon/frontend/Frontend.cpp \ - daemon/frontend/Frontend.h \ - daemon/frontend/LoggableFrontend.cpp \ - daemon/frontend/LoggableFrontend.h \ - daemon/frontend/NCursesFrontend.cpp \ - daemon/frontend/NCursesFrontend.h \ - daemon/main/CommandLineParser.cpp \ - daemon/main/CommandLineParser.h daemon/main/DiskService.cpp \ - daemon/main/DiskService.h daemon/main/Maintenance.cpp \ - daemon/main/Maintenance.h daemon/main/nzbget.cpp \ - daemon/main/nzbget.h daemon/main/Options.cpp \ - daemon/main/Options.h daemon/main/WorkState.cpp \ - daemon/main/WorkState.h daemon/main/Scheduler.cpp \ - daemon/main/Scheduler.h daemon/main/StackTrace.cpp \ - daemon/main/StackTrace.h daemon/nntp/ArticleDownloader.cpp \ - daemon/nntp/ArticleDownloader.h daemon/nntp/ArticleWriter.cpp \ - daemon/nntp/ArticleWriter.h daemon/nntp/Decoder.cpp \ - daemon/nntp/Decoder.h daemon/nntp/NewsServer.cpp \ - daemon/nntp/NewsServer.h daemon/nntp/NntpConnection.cpp \ - daemon/nntp/NntpConnection.h daemon/nntp/ServerPool.cpp \ - daemon/nntp/ServerPool.h daemon/nntp/StatMeter.cpp \ - daemon/nntp/StatMeter.h daemon/postprocess/Cleanup.cpp \ - daemon/postprocess/Cleanup.h \ - daemon/postprocess/DupeMatcher.cpp \ - daemon/postprocess/DupeMatcher.h \ - daemon/postprocess/ParChecker.cpp \ - daemon/postprocess/ParChecker.h \ - daemon/postprocess/ParParser.cpp \ - daemon/postprocess/ParParser.h \ - daemon/postprocess/ParRenamer.cpp \ - daemon/postprocess/ParRenamer.h \ - daemon/postprocess/PrePostProcessor.cpp \ - daemon/postprocess/PrePostProcessor.h \ - daemon/postprocess/RarRenamer.cpp \ - daemon/postprocess/RarRenamer.h \ - daemon/postprocess/RarReader.cpp \ - daemon/postprocess/RarReader.h daemon/postprocess/Rename.cpp \ - daemon/postprocess/Rename.h daemon/postprocess/Repair.cpp \ - daemon/postprocess/Repair.h daemon/postprocess/Unpack.cpp \ - daemon/postprocess/Unpack.h \ - daemon/postprocess/DirectUnpack.cpp \ - daemon/postprocess/DirectUnpack.h \ - daemon/queue/DirectRenamer.cpp daemon/queue/DirectRenamer.h \ - daemon/queue/DiskState.cpp daemon/queue/DiskState.h \ - daemon/queue/DownloadInfo.cpp daemon/queue/DownloadInfo.h \ - daemon/queue/DupeCoordinator.cpp \ - daemon/queue/DupeCoordinator.h \ - daemon/queue/HistoryCoordinator.cpp \ - daemon/queue/HistoryCoordinator.h daemon/queue/NzbFile.cpp \ - daemon/queue/NzbFile.h daemon/queue/QueueCoordinator.cpp \ - daemon/queue/QueueCoordinator.h daemon/queue/QueueEditor.cpp \ - daemon/queue/QueueEditor.h daemon/queue/Scanner.cpp \ - daemon/queue/Scanner.h daemon/queue/UrlCoordinator.cpp \ - daemon/queue/UrlCoordinator.h daemon/remote/BinRpc.cpp \ - daemon/remote/BinRpc.h daemon/remote/MessageBase.h \ - daemon/remote/RemoteClient.cpp daemon/remote/RemoteClient.h \ - daemon/remote/RemoteServer.cpp daemon/remote/RemoteServer.h \ - daemon/remote/WebServer.cpp daemon/remote/WebServer.h \ - daemon/remote/XmlRpc.cpp daemon/remote/XmlRpc.h \ - daemon/util/Log.cpp daemon/util/Log.h daemon/util/NString.cpp \ - daemon/util/NString.h daemon/util/Container.h \ - daemon/util/Observer.cpp daemon/util/Observer.h \ - daemon/util/Script.cpp daemon/util/Script.h \ - daemon/util/Thread.cpp daemon/util/Thread.h \ - daemon/util/Service.cpp daemon/util/Service.h \ - daemon/util/FileSystem.cpp daemon/util/FileSystem.h \ - daemon/util/Util.cpp daemon/util/Util.h \ - daemon/nserv/NServMain.h daemon/nserv/NServMain.cpp \ - daemon/nserv/NServFrontend.h daemon/nserv/NServFrontend.cpp \ - daemon/nserv/NntpServer.h daemon/nserv/NntpServer.cpp \ - daemon/nserv/NzbGenerator.h daemon/nserv/NzbGenerator.cpp \ - daemon/nserv/YEncoder.h daemon/nserv/YEncoder.cpp \ - code_revision.cpp $(am__append_1) lib/yencode/YEncode.h \ - lib/yencode/SimdInit.cpp lib/yencode/SimdDecoder.cpp \ - lib/yencode/ScalarDecoder.cpp lib/yencode/Sse2Decoder.cpp \ - lib/yencode/Ssse3Decoder.cpp lib/yencode/PclmulCrc.cpp \ - lib/yencode/NeonDecoder.cpp lib/yencode/AcleCrc.cpp \ - lib/yencode/SliceCrc.cpp $(am__append_2) $(am__append_3) -AM_CPPFLAGS = -I$(srcdir)/daemon/connect -I$(srcdir)/daemon/extension \ - -I$(srcdir)/daemon/feed -I$(srcdir)/daemon/frontend \ - -I$(srcdir)/daemon/main -I$(srcdir)/daemon/nntp \ - -I$(srcdir)/daemon/postprocess -I$(srcdir)/daemon/queue \ - -I$(srcdir)/daemon/remote -I$(srcdir)/daemon/util \ - -I$(srcdir)/daemon/nserv -I$(srcdir)/lib/par2 \ - -I$(srcdir)/lib/yencode $(am__append_4) -EXTRA_DIST = \ - $(windows_FILES) \ - $(osx_FILES) \ - $(linux_FILES) \ - $(testdata_FILES) \ - $(par2doc_FILES) - -windows_FILES = \ - daemon/windows/StdAfx.cpp \ - daemon/windows/WinService.cpp \ - daemon/windows/WinService.h \ - daemon/windows/WinConsole.cpp \ - daemon/windows/WinConsole.h \ - nzbget.vcxproj \ - windows/nzbget-command-shell.bat \ - windows/install-update.bat \ - windows/README-WINDOWS.txt \ - windows/package-info.json \ - windows/resources/mainicon.ico \ - windows/resources/nzbget.rc \ - windows/resources/resource.h \ - windows/resources/trayicon_idle.ico \ - windows/resources/trayicon_paused.ico \ - windows/resources/trayicon_working.ico \ - windows/resources/install.bmp \ - windows/resources/uninstall.bmp \ - windows/nzbget-setup.nsi - -osx_FILES = \ - osx/App_Prefix.pch \ - osx/NZBGet-Info.plist \ - osx/DaemonController.h \ - osx/DaemonController.m \ - osx/MainApp.h \ - osx/MainApp.m \ - osx/MainApp.xib \ - osx/PFMoveApplication.h \ - osx/PFMoveApplication.m \ - osx/PreferencesDialog.h \ - osx/PreferencesDialog.m \ - osx/PreferencesDialog.xib \ - osx/RPC.h \ - osx/RPC.m \ - osx/WebClient.h \ - osx/WebClient.m \ - osx/WelcomeDialog.h \ - osx/WelcomeDialog.m \ - osx/WelcomeDialog.xib \ - osx/NZBGet.xcodeproj/project.pbxproj \ - osx/Resources/Images/mainicon.icns \ - osx/Resources/Images/statusicon.png \ - osx/Resources/Images/statusicon@2x.png \ - osx/Resources/licenses/license-bootstrap.txt \ - osx/Resources/licenses/license-jquery-GPL.txt \ - osx/Resources/licenses/license-jquery-MIT.txt \ - osx/Resources/Credits.rtf \ - osx/Resources/Localizable.strings \ - osx/Resources/Welcome.rtf - -linux_FILES = \ - linux/installer.sh \ - linux/install-update.sh \ - linux/package-info.json \ - linux/build-info.txt \ - linux/build-nzbget \ - linux/build-unpack \ - linux/build-toolchain-android \ - linux/build-toolchain-freebsd - -doc_FILES = \ - README \ - ChangeLog \ - COPYING - -par2doc_FILES = \ - lib/par2/AUTHORS \ - lib/par2/README - -exampleconf_FILES = \ - nzbget.conf - -webui_FILES = \ - webui/index.html \ - webui/index.js \ - webui/downloads.js \ - webui/edit.js \ - webui/fasttable.js \ - webui/history.js \ - webui/messages.js \ - webui/status.js \ - webui/style.css \ - webui/upload.js \ - webui/util.js \ - webui/config.js \ - webui/feed.js \ - webui/lib/bootstrap.js \ - webui/lib/bootstrap.min.js \ - webui/lib/bootstrap.css \ - webui/lib/jquery.js \ - webui/lib/jquery.min.js \ - webui/lib/raphael.js \ - webui/lib/raphael.min.js \ - webui/lib/elycharts.js \ - webui/lib/elycharts.min.js \ - webui/img/icons.png \ - webui/img/icons-2x.png \ - webui/img/transmit.gif \ - webui/img/transmit-file.gif \ - webui/img/favicon.ico \ - webui/img/download-anim-green-2x.png \ - webui/img/download-anim-orange-2x.png \ - webui/img/transmit-reload-2x.gif \ - webui/img/favicon-256x256-opaque.png \ - webui/img/favicon-256x256.png - -scripts_FILES = \ - scripts/EMail.py \ - scripts/Logger.py - -testdata_FILES = \ - tests/testdata/dupematcher1/testfile.part01.rar \ - tests/testdata/dupematcher1/testfile.part24.rar \ - tests/testdata/dupematcher2/testfile.part04.rar \ - tests/testdata/dupematcher2/testfile.part43.rar \ - tests/testdata/nzbfile/dotless.nzb \ - tests/testdata/nzbfile/dotless.txt \ - tests/testdata/nzbfile/plain.nzb \ - tests/testdata/nzbfile/plain.txt \ - tests/testdata/parchecker/crc.txt \ - tests/testdata/parchecker/testfile.dat \ - tests/testdata/parchecker/testfile.nfo \ - tests/testdata/parchecker/testfile.par2 \ - tests/testdata/parchecker/testfile.vol00+1.PAR2 \ - tests/testdata/parchecker/testfile.vol01+2.PAR2 \ - tests/testdata/parchecker/testfile.vol03+3.PAR2 \ - tests/testdata/parchecker2/crc.txt \ - tests/testdata/parchecker2/testfile.7z.001 \ - tests/testdata/parchecker2/testfile.7z.002 \ - tests/testdata/parchecker2/testfile.7z.003 \ - tests/testdata/parchecker2/testfile.7z.par2 \ - tests/testdata/parchecker2/testfile.7z.vol0+1.PAR2 \ - tests/testdata/parchecker2/testfile.7z.vol1+2.PAR2 \ - tests/testdata/parchecker2/testfile.7z.vol3+3.PAR2 \ - tests/testdata/rarrenamer/testfile3.part01.rar \ - tests/testdata/rarrenamer/testfile3.part02.rar \ - tests/testdata/rarrenamer/testfile3.part03.rar \ - tests/testdata/rarrenamer/testfile5.part01.rar \ - tests/testdata/rarrenamer/testfile5.part02.rar \ - tests/testdata/rarrenamer/testfile5.part03.rar \ - tests/testdata/rarrenamer/testfile3oldnam.rar \ - tests/testdata/rarrenamer/testfile3oldnam.r00 \ - tests/testdata/rarrenamer/testfile3oldnam.r01 \ - tests/testdata/rarrenamer/testfile3encdata.part01.rar \ - tests/testdata/rarrenamer/testfile3encdata.part02.rar \ - tests/testdata/rarrenamer/testfile3encdata.part03.rar \ - tests/testdata/rarrenamer/testfile3encnam.part01.rar \ - tests/testdata/rarrenamer/testfile3encnam.part02.rar \ - tests/testdata/rarrenamer/testfile3encnam.part03.rar \ - tests/testdata/rarrenamer/testfile5encdata.part01.rar \ - tests/testdata/rarrenamer/testfile5encdata.part02.rar \ - tests/testdata/rarrenamer/testfile5encdata.part03.rar \ - tests/testdata/rarrenamer/testfile5encnam.part01.rar \ - tests/testdata/rarrenamer/testfile5encnam.part02.rar \ - tests/testdata/rarrenamer/testfile5encnam.part03.rar - - -# Install -dist_doc_DATA = $(doc_FILES) -exampleconfdir = $(datadir)/nzbget -dist_exampleconf_DATA = $(exampleconf_FILES) -webuidir = $(datadir)/nzbget -nobase_dist_webui_DATA = $(webui_FILES) -scriptsdir = $(datadir)/nzbget -nobase_dist_scripts_SCRIPTS = $(scripts_FILES) - -# Ignore "code_revision.cpp" in distcleancheck -distcleancheck_listfiles = \ - find . -type f -exec sh -c 'test -f $(srcdir)/$$1 || echo $$1' \ - sh '{}' ';' - -all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-am - -.SUFFIXES: -.SUFFIXES: .cpp .o .obj -am--refresh: Makefile - @: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ - $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - $(am__cd) $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -$(am__aclocal_m4_deps): - -config.h: stamp-h1 - @test -f $@ || rm -f stamp-h1 - @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 - -stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status config.h -$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) - rm -f stamp-h1 - touch $@ - -distclean-hdr: - -rm -f config.h stamp-h1 -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ - fi; \ - for p in $$list; do echo "$$p $$p"; done | \ - sed 's/$(EXEEXT)$$//' | \ - while read p p1; do if test -f $$p \ - ; then echo "$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n;h' \ - -e 's|.*|.|' \ - -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ - sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) files[d] = files[d] " " $$1; \ - else { print "f", $$3 "/" $$4, $$1; } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ - $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ - -e 's/$$/$(EXEEXT)/' \ - `; \ - test -n "$$list" || exit 0; \ - echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(bindir)" && rm -f $$files - -clean-binPROGRAMS: - -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) -daemon/connect/$(am__dirstamp): - @$(MKDIR_P) daemon/connect - @: > daemon/connect/$(am__dirstamp) -daemon/connect/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) daemon/connect/$(DEPDIR) - @: > daemon/connect/$(DEPDIR)/$(am__dirstamp) -daemon/connect/Connection.$(OBJEXT): daemon/connect/$(am__dirstamp) \ - daemon/connect/$(DEPDIR)/$(am__dirstamp) -daemon/connect/TlsSocket.$(OBJEXT): daemon/connect/$(am__dirstamp) \ - daemon/connect/$(DEPDIR)/$(am__dirstamp) -daemon/connect/WebDownloader.$(OBJEXT): \ - daemon/connect/$(am__dirstamp) \ - daemon/connect/$(DEPDIR)/$(am__dirstamp) -daemon/extension/$(am__dirstamp): - @$(MKDIR_P) daemon/extension - @: > daemon/extension/$(am__dirstamp) -daemon/extension/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) daemon/extension/$(DEPDIR) - @: > daemon/extension/$(DEPDIR)/$(am__dirstamp) -daemon/extension/FeedScript.$(OBJEXT): \ - daemon/extension/$(am__dirstamp) \ - daemon/extension/$(DEPDIR)/$(am__dirstamp) -daemon/extension/CommandScript.$(OBJEXT): \ - daemon/extension/$(am__dirstamp) \ - daemon/extension/$(DEPDIR)/$(am__dirstamp) -daemon/extension/NzbScript.$(OBJEXT): \ - daemon/extension/$(am__dirstamp) \ - daemon/extension/$(DEPDIR)/$(am__dirstamp) -daemon/extension/PostScript.$(OBJEXT): \ - daemon/extension/$(am__dirstamp) \ - daemon/extension/$(DEPDIR)/$(am__dirstamp) -daemon/extension/QueueScript.$(OBJEXT): \ - daemon/extension/$(am__dirstamp) \ - daemon/extension/$(DEPDIR)/$(am__dirstamp) -daemon/extension/ScanScript.$(OBJEXT): \ - daemon/extension/$(am__dirstamp) \ - daemon/extension/$(DEPDIR)/$(am__dirstamp) -daemon/extension/SchedulerScript.$(OBJEXT): \ - daemon/extension/$(am__dirstamp) \ - daemon/extension/$(DEPDIR)/$(am__dirstamp) -daemon/extension/ScriptConfig.$(OBJEXT): \ - daemon/extension/$(am__dirstamp) \ - daemon/extension/$(DEPDIR)/$(am__dirstamp) -daemon/feed/$(am__dirstamp): - @$(MKDIR_P) daemon/feed - @: > daemon/feed/$(am__dirstamp) -daemon/feed/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) daemon/feed/$(DEPDIR) - @: > daemon/feed/$(DEPDIR)/$(am__dirstamp) -daemon/feed/FeedCoordinator.$(OBJEXT): daemon/feed/$(am__dirstamp) \ - daemon/feed/$(DEPDIR)/$(am__dirstamp) -daemon/feed/FeedFile.$(OBJEXT): daemon/feed/$(am__dirstamp) \ - daemon/feed/$(DEPDIR)/$(am__dirstamp) -daemon/feed/FeedFilter.$(OBJEXT): daemon/feed/$(am__dirstamp) \ - daemon/feed/$(DEPDIR)/$(am__dirstamp) -daemon/feed/FeedInfo.$(OBJEXT): daemon/feed/$(am__dirstamp) \ - daemon/feed/$(DEPDIR)/$(am__dirstamp) -daemon/frontend/$(am__dirstamp): - @$(MKDIR_P) daemon/frontend - @: > daemon/frontend/$(am__dirstamp) -daemon/frontend/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) daemon/frontend/$(DEPDIR) - @: > daemon/frontend/$(DEPDIR)/$(am__dirstamp) -daemon/frontend/ColoredFrontend.$(OBJEXT): \ - daemon/frontend/$(am__dirstamp) \ - daemon/frontend/$(DEPDIR)/$(am__dirstamp) -daemon/frontend/Frontend.$(OBJEXT): daemon/frontend/$(am__dirstamp) \ - daemon/frontend/$(DEPDIR)/$(am__dirstamp) -daemon/frontend/LoggableFrontend.$(OBJEXT): \ - daemon/frontend/$(am__dirstamp) \ - daemon/frontend/$(DEPDIR)/$(am__dirstamp) -daemon/frontend/NCursesFrontend.$(OBJEXT): \ - daemon/frontend/$(am__dirstamp) \ - daemon/frontend/$(DEPDIR)/$(am__dirstamp) -daemon/main/$(am__dirstamp): - @$(MKDIR_P) daemon/main - @: > daemon/main/$(am__dirstamp) -daemon/main/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) daemon/main/$(DEPDIR) - @: > daemon/main/$(DEPDIR)/$(am__dirstamp) -daemon/main/CommandLineParser.$(OBJEXT): daemon/main/$(am__dirstamp) \ - daemon/main/$(DEPDIR)/$(am__dirstamp) -daemon/main/DiskService.$(OBJEXT): daemon/main/$(am__dirstamp) \ - daemon/main/$(DEPDIR)/$(am__dirstamp) -daemon/main/Maintenance.$(OBJEXT): daemon/main/$(am__dirstamp) \ - daemon/main/$(DEPDIR)/$(am__dirstamp) -daemon/main/nzbget.$(OBJEXT): daemon/main/$(am__dirstamp) \ - daemon/main/$(DEPDIR)/$(am__dirstamp) -daemon/main/Options.$(OBJEXT): daemon/main/$(am__dirstamp) \ - daemon/main/$(DEPDIR)/$(am__dirstamp) -daemon/main/WorkState.$(OBJEXT): daemon/main/$(am__dirstamp) \ - daemon/main/$(DEPDIR)/$(am__dirstamp) -daemon/main/Scheduler.$(OBJEXT): daemon/main/$(am__dirstamp) \ - daemon/main/$(DEPDIR)/$(am__dirstamp) -daemon/main/StackTrace.$(OBJEXT): daemon/main/$(am__dirstamp) \ - daemon/main/$(DEPDIR)/$(am__dirstamp) -daemon/nntp/$(am__dirstamp): - @$(MKDIR_P) daemon/nntp - @: > daemon/nntp/$(am__dirstamp) -daemon/nntp/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) daemon/nntp/$(DEPDIR) - @: > daemon/nntp/$(DEPDIR)/$(am__dirstamp) -daemon/nntp/ArticleDownloader.$(OBJEXT): daemon/nntp/$(am__dirstamp) \ - daemon/nntp/$(DEPDIR)/$(am__dirstamp) -daemon/nntp/ArticleWriter.$(OBJEXT): daemon/nntp/$(am__dirstamp) \ - daemon/nntp/$(DEPDIR)/$(am__dirstamp) -daemon/nntp/Decoder.$(OBJEXT): daemon/nntp/$(am__dirstamp) \ - daemon/nntp/$(DEPDIR)/$(am__dirstamp) -daemon/nntp/NewsServer.$(OBJEXT): daemon/nntp/$(am__dirstamp) \ - daemon/nntp/$(DEPDIR)/$(am__dirstamp) -daemon/nntp/NntpConnection.$(OBJEXT): daemon/nntp/$(am__dirstamp) \ - daemon/nntp/$(DEPDIR)/$(am__dirstamp) -daemon/nntp/ServerPool.$(OBJEXT): daemon/nntp/$(am__dirstamp) \ - daemon/nntp/$(DEPDIR)/$(am__dirstamp) -daemon/nntp/StatMeter.$(OBJEXT): daemon/nntp/$(am__dirstamp) \ - daemon/nntp/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/$(am__dirstamp): - @$(MKDIR_P) daemon/postprocess - @: > daemon/postprocess/$(am__dirstamp) -daemon/postprocess/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) daemon/postprocess/$(DEPDIR) - @: > daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/Cleanup.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/DupeMatcher.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/ParChecker.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/ParParser.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/ParRenamer.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/PrePostProcessor.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/RarRenamer.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/RarReader.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/Rename.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/Repair.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/Unpack.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/postprocess/DirectUnpack.$(OBJEXT): \ - daemon/postprocess/$(am__dirstamp) \ - daemon/postprocess/$(DEPDIR)/$(am__dirstamp) -daemon/queue/$(am__dirstamp): - @$(MKDIR_P) daemon/queue - @: > daemon/queue/$(am__dirstamp) -daemon/queue/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) daemon/queue/$(DEPDIR) - @: > daemon/queue/$(DEPDIR)/$(am__dirstamp) -daemon/queue/DirectRenamer.$(OBJEXT): daemon/queue/$(am__dirstamp) \ - daemon/queue/$(DEPDIR)/$(am__dirstamp) -daemon/queue/DiskState.$(OBJEXT): daemon/queue/$(am__dirstamp) \ - daemon/queue/$(DEPDIR)/$(am__dirstamp) -daemon/queue/DownloadInfo.$(OBJEXT): daemon/queue/$(am__dirstamp) \ - daemon/queue/$(DEPDIR)/$(am__dirstamp) -daemon/queue/DupeCoordinator.$(OBJEXT): daemon/queue/$(am__dirstamp) \ - daemon/queue/$(DEPDIR)/$(am__dirstamp) -daemon/queue/HistoryCoordinator.$(OBJEXT): \ - daemon/queue/$(am__dirstamp) \ - daemon/queue/$(DEPDIR)/$(am__dirstamp) -daemon/queue/NzbFile.$(OBJEXT): daemon/queue/$(am__dirstamp) \ - daemon/queue/$(DEPDIR)/$(am__dirstamp) -daemon/queue/QueueCoordinator.$(OBJEXT): daemon/queue/$(am__dirstamp) \ - daemon/queue/$(DEPDIR)/$(am__dirstamp) -daemon/queue/QueueEditor.$(OBJEXT): daemon/queue/$(am__dirstamp) \ - daemon/queue/$(DEPDIR)/$(am__dirstamp) -daemon/queue/Scanner.$(OBJEXT): daemon/queue/$(am__dirstamp) \ - daemon/queue/$(DEPDIR)/$(am__dirstamp) -daemon/queue/UrlCoordinator.$(OBJEXT): daemon/queue/$(am__dirstamp) \ - daemon/queue/$(DEPDIR)/$(am__dirstamp) -daemon/remote/$(am__dirstamp): - @$(MKDIR_P) daemon/remote - @: > daemon/remote/$(am__dirstamp) -daemon/remote/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) daemon/remote/$(DEPDIR) - @: > daemon/remote/$(DEPDIR)/$(am__dirstamp) -daemon/remote/BinRpc.$(OBJEXT): daemon/remote/$(am__dirstamp) \ - daemon/remote/$(DEPDIR)/$(am__dirstamp) -daemon/remote/RemoteClient.$(OBJEXT): daemon/remote/$(am__dirstamp) \ - daemon/remote/$(DEPDIR)/$(am__dirstamp) -daemon/remote/RemoteServer.$(OBJEXT): daemon/remote/$(am__dirstamp) \ - daemon/remote/$(DEPDIR)/$(am__dirstamp) -daemon/remote/WebServer.$(OBJEXT): daemon/remote/$(am__dirstamp) \ - daemon/remote/$(DEPDIR)/$(am__dirstamp) -daemon/remote/XmlRpc.$(OBJEXT): daemon/remote/$(am__dirstamp) \ - daemon/remote/$(DEPDIR)/$(am__dirstamp) -daemon/util/$(am__dirstamp): - @$(MKDIR_P) daemon/util - @: > daemon/util/$(am__dirstamp) -daemon/util/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) daemon/util/$(DEPDIR) - @: > daemon/util/$(DEPDIR)/$(am__dirstamp) -daemon/util/Log.$(OBJEXT): daemon/util/$(am__dirstamp) \ - daemon/util/$(DEPDIR)/$(am__dirstamp) -daemon/util/NString.$(OBJEXT): daemon/util/$(am__dirstamp) \ - daemon/util/$(DEPDIR)/$(am__dirstamp) -daemon/util/Observer.$(OBJEXT): daemon/util/$(am__dirstamp) \ - daemon/util/$(DEPDIR)/$(am__dirstamp) -daemon/util/Script.$(OBJEXT): daemon/util/$(am__dirstamp) \ - daemon/util/$(DEPDIR)/$(am__dirstamp) -daemon/util/Thread.$(OBJEXT): daemon/util/$(am__dirstamp) \ - daemon/util/$(DEPDIR)/$(am__dirstamp) -daemon/util/Service.$(OBJEXT): daemon/util/$(am__dirstamp) \ - daemon/util/$(DEPDIR)/$(am__dirstamp) -daemon/util/FileSystem.$(OBJEXT): daemon/util/$(am__dirstamp) \ - daemon/util/$(DEPDIR)/$(am__dirstamp) -daemon/util/Util.$(OBJEXT): daemon/util/$(am__dirstamp) \ - daemon/util/$(DEPDIR)/$(am__dirstamp) -daemon/nserv/$(am__dirstamp): - @$(MKDIR_P) daemon/nserv - @: > daemon/nserv/$(am__dirstamp) -daemon/nserv/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) daemon/nserv/$(DEPDIR) - @: > daemon/nserv/$(DEPDIR)/$(am__dirstamp) -daemon/nserv/NServMain.$(OBJEXT): daemon/nserv/$(am__dirstamp) \ - daemon/nserv/$(DEPDIR)/$(am__dirstamp) -daemon/nserv/NServFrontend.$(OBJEXT): daemon/nserv/$(am__dirstamp) \ - daemon/nserv/$(DEPDIR)/$(am__dirstamp) -daemon/nserv/NntpServer.$(OBJEXT): daemon/nserv/$(am__dirstamp) \ - daemon/nserv/$(DEPDIR)/$(am__dirstamp) -daemon/nserv/NzbGenerator.$(OBJEXT): daemon/nserv/$(am__dirstamp) \ - daemon/nserv/$(DEPDIR)/$(am__dirstamp) -daemon/nserv/YEncoder.$(OBJEXT): daemon/nserv/$(am__dirstamp) \ - daemon/nserv/$(DEPDIR)/$(am__dirstamp) -lib/par2/$(am__dirstamp): - @$(MKDIR_P) lib/par2 - @: > lib/par2/$(am__dirstamp) -lib/par2/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/par2/$(DEPDIR) - @: > lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/commandline.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/crc.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/creatorpacket.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/criticalpacket.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/datablock.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/descriptionpacket.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/diskfile.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/filechecksummer.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/galois.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/mainpacket.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/md5.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/par2fileformat.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/par2repairer.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/par2repairersourcefile.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/parheaders.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/recoverypacket.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/reedsolomon.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/verificationhashtable.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/par2/verificationpacket.$(OBJEXT): lib/par2/$(am__dirstamp) \ - lib/par2/$(DEPDIR)/$(am__dirstamp) -lib/yencode/$(am__dirstamp): - @$(MKDIR_P) lib/yencode - @: > lib/yencode/$(am__dirstamp) -lib/yencode/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) lib/yencode/$(DEPDIR) - @: > lib/yencode/$(DEPDIR)/$(am__dirstamp) -lib/yencode/SimdInit.$(OBJEXT): lib/yencode/$(am__dirstamp) \ - lib/yencode/$(DEPDIR)/$(am__dirstamp) -lib/yencode/SimdDecoder.$(OBJEXT): lib/yencode/$(am__dirstamp) \ - lib/yencode/$(DEPDIR)/$(am__dirstamp) -lib/yencode/ScalarDecoder.$(OBJEXT): lib/yencode/$(am__dirstamp) \ - lib/yencode/$(DEPDIR)/$(am__dirstamp) -lib/yencode/Sse2Decoder.$(OBJEXT): lib/yencode/$(am__dirstamp) \ - lib/yencode/$(DEPDIR)/$(am__dirstamp) -lib/yencode/Ssse3Decoder.$(OBJEXT): lib/yencode/$(am__dirstamp) \ - lib/yencode/$(DEPDIR)/$(am__dirstamp) -lib/yencode/PclmulCrc.$(OBJEXT): lib/yencode/$(am__dirstamp) \ - lib/yencode/$(DEPDIR)/$(am__dirstamp) -lib/yencode/NeonDecoder.$(OBJEXT): lib/yencode/$(am__dirstamp) \ - lib/yencode/$(DEPDIR)/$(am__dirstamp) -lib/yencode/AcleCrc.$(OBJEXT): lib/yencode/$(am__dirstamp) \ - lib/yencode/$(DEPDIR)/$(am__dirstamp) -lib/yencode/SliceCrc.$(OBJEXT): lib/yencode/$(am__dirstamp) \ - lib/yencode/$(DEPDIR)/$(am__dirstamp) -tests/suite/$(am__dirstamp): - @$(MKDIR_P) tests/suite - @: > tests/suite/$(am__dirstamp) -tests/suite/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) tests/suite/$(DEPDIR) - @: > tests/suite/$(DEPDIR)/$(am__dirstamp) -tests/suite/TestMain.$(OBJEXT): tests/suite/$(am__dirstamp) \ - tests/suite/$(DEPDIR)/$(am__dirstamp) -tests/suite/TestUtil.$(OBJEXT): tests/suite/$(am__dirstamp) \ - tests/suite/$(DEPDIR)/$(am__dirstamp) -tests/main/$(am__dirstamp): - @$(MKDIR_P) tests/main - @: > tests/main/$(am__dirstamp) -tests/main/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) tests/main/$(DEPDIR) - @: > tests/main/$(DEPDIR)/$(am__dirstamp) -tests/main/CommandLineParserTest.$(OBJEXT): \ - tests/main/$(am__dirstamp) \ - tests/main/$(DEPDIR)/$(am__dirstamp) -tests/main/OptionsTest.$(OBJEXT): tests/main/$(am__dirstamp) \ - tests/main/$(DEPDIR)/$(am__dirstamp) -tests/feed/$(am__dirstamp): - @$(MKDIR_P) tests/feed - @: > tests/feed/$(am__dirstamp) -tests/feed/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) tests/feed/$(DEPDIR) - @: > tests/feed/$(DEPDIR)/$(am__dirstamp) -tests/feed/FeedFilterTest.$(OBJEXT): tests/feed/$(am__dirstamp) \ - tests/feed/$(DEPDIR)/$(am__dirstamp) -tests/postprocess/$(am__dirstamp): - @$(MKDIR_P) tests/postprocess - @: > tests/postprocess/$(am__dirstamp) -tests/postprocess/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) tests/postprocess/$(DEPDIR) - @: > tests/postprocess/$(DEPDIR)/$(am__dirstamp) -tests/postprocess/DupeMatcherTest.$(OBJEXT): \ - tests/postprocess/$(am__dirstamp) \ - tests/postprocess/$(DEPDIR)/$(am__dirstamp) -tests/postprocess/RarRenamerTest.$(OBJEXT): \ - tests/postprocess/$(am__dirstamp) \ - tests/postprocess/$(DEPDIR)/$(am__dirstamp) -tests/postprocess/RarReaderTest.$(OBJEXT): \ - tests/postprocess/$(am__dirstamp) \ - tests/postprocess/$(DEPDIR)/$(am__dirstamp) -tests/postprocess/DirectUnpackTest.$(OBJEXT): \ - tests/postprocess/$(am__dirstamp) \ - tests/postprocess/$(DEPDIR)/$(am__dirstamp) -tests/queue/$(am__dirstamp): - @$(MKDIR_P) tests/queue - @: > tests/queue/$(am__dirstamp) -tests/queue/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) tests/queue/$(DEPDIR) - @: > tests/queue/$(DEPDIR)/$(am__dirstamp) -tests/queue/NzbFileTest.$(OBJEXT): tests/queue/$(am__dirstamp) \ - tests/queue/$(DEPDIR)/$(am__dirstamp) -tests/nntp/$(am__dirstamp): - @$(MKDIR_P) tests/nntp - @: > tests/nntp/$(am__dirstamp) -tests/nntp/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) tests/nntp/$(DEPDIR) - @: > tests/nntp/$(DEPDIR)/$(am__dirstamp) -tests/nntp/ServerPoolTest.$(OBJEXT): tests/nntp/$(am__dirstamp) \ - tests/nntp/$(DEPDIR)/$(am__dirstamp) -tests/util/$(am__dirstamp): - @$(MKDIR_P) tests/util - @: > tests/util/$(am__dirstamp) -tests/util/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) tests/util/$(DEPDIR) - @: > tests/util/$(DEPDIR)/$(am__dirstamp) -tests/util/FileSystemTest.$(OBJEXT): tests/util/$(am__dirstamp) \ - tests/util/$(DEPDIR)/$(am__dirstamp) -tests/util/NStringTest.$(OBJEXT): tests/util/$(am__dirstamp) \ - tests/util/$(DEPDIR)/$(am__dirstamp) -tests/util/UtilTest.$(OBJEXT): tests/util/$(am__dirstamp) \ - tests/util/$(DEPDIR)/$(am__dirstamp) -tests/postprocess/ParCheckerTest.$(OBJEXT): \ - tests/postprocess/$(am__dirstamp) \ - tests/postprocess/$(DEPDIR)/$(am__dirstamp) -tests/postprocess/ParRenamerTest.$(OBJEXT): \ - tests/postprocess/$(am__dirstamp) \ - tests/postprocess/$(DEPDIR)/$(am__dirstamp) - -nzbget$(EXEEXT): $(nzbget_OBJECTS) $(nzbget_DEPENDENCIES) $(EXTRA_nzbget_DEPENDENCIES) - @rm -f nzbget$(EXEEXT) - $(AM_V_CXXLD)$(CXXLINK) $(nzbget_OBJECTS) $(nzbget_LDADD) $(LIBS) -install-nobase_dist_scriptsSCRIPTS: $(nobase_dist_scripts_SCRIPTS) - @$(NORMAL_INSTALL) - @list='$(nobase_dist_scripts_SCRIPTS)'; test -n "$(scriptsdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(scriptsdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(scriptsdir)" || exit 1; \ - fi; \ - $(am__nobase_strip_setup); \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n' \ - -e "s|$$srcdirstrip/||" -e 'h;s|[^/]*$$||; s|^$$|.|' \ - -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) { files[d] = files[d] " " $$1; \ - if (++n[d] == $(am__install_max)) { \ - print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ - else { print "f", d "/" $$4, $$1 } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - case $$type in \ - d) echo " $(MKDIR_P) '$(DESTDIR)$(scriptsdir)/$$dir'"; \ - $(MKDIR_P) "$(DESTDIR)$(scriptsdir)/$$dir" || exit $$?;; \ - f) \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(scriptsdir)$$dir'"; \ - $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(scriptsdir)$$dir" || exit $$?; \ - } \ - ;; esac \ - ; done - -uninstall-nobase_dist_scriptsSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(nobase_dist_scripts_SCRIPTS)'; test -n "$(scriptsdir)" || exit 0; \ - $(am__nobase_strip_setup); \ - files=`$(am__nobase_strip) \ - -e 'h;s,.*/,,;$(transform);x;s|[^/]*$$||;G;s,\n,,'`; \ - dir='$(DESTDIR)$(scriptsdir)'; $(am__uninstall_files_from_dir) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -rm -f daemon/connect/*.$(OBJEXT) - -rm -f daemon/extension/*.$(OBJEXT) - -rm -f daemon/feed/*.$(OBJEXT) - -rm -f daemon/frontend/*.$(OBJEXT) - -rm -f daemon/main/*.$(OBJEXT) - -rm -f daemon/nntp/*.$(OBJEXT) - -rm -f daemon/nserv/*.$(OBJEXT) - -rm -f daemon/postprocess/*.$(OBJEXT) - -rm -f daemon/queue/*.$(OBJEXT) - -rm -f daemon/remote/*.$(OBJEXT) - -rm -f daemon/util/*.$(OBJEXT) - -rm -f lib/par2/*.$(OBJEXT) - -rm -f lib/yencode/*.$(OBJEXT) - -rm -f tests/feed/*.$(OBJEXT) - -rm -f tests/main/*.$(OBJEXT) - -rm -f tests/nntp/*.$(OBJEXT) - -rm -f tests/postprocess/*.$(OBJEXT) - -rm -f tests/queue/*.$(OBJEXT) - -rm -f tests/suite/*.$(OBJEXT) - -rm -f tests/util/*.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/code_revision.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/connect/$(DEPDIR)/Connection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/connect/$(DEPDIR)/TlsSocket.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/connect/$(DEPDIR)/WebDownloader.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/extension/$(DEPDIR)/CommandScript.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/extension/$(DEPDIR)/FeedScript.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/extension/$(DEPDIR)/NzbScript.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/extension/$(DEPDIR)/PostScript.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/extension/$(DEPDIR)/QueueScript.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/extension/$(DEPDIR)/ScanScript.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/extension/$(DEPDIR)/SchedulerScript.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/extension/$(DEPDIR)/ScriptConfig.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/feed/$(DEPDIR)/FeedCoordinator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/feed/$(DEPDIR)/FeedFile.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/feed/$(DEPDIR)/FeedFilter.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/feed/$(DEPDIR)/FeedInfo.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/frontend/$(DEPDIR)/ColoredFrontend.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/frontend/$(DEPDIR)/Frontend.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/frontend/$(DEPDIR)/LoggableFrontend.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/frontend/$(DEPDIR)/NCursesFrontend.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/main/$(DEPDIR)/CommandLineParser.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/main/$(DEPDIR)/DiskService.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/main/$(DEPDIR)/Maintenance.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/main/$(DEPDIR)/Options.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/main/$(DEPDIR)/Scheduler.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/main/$(DEPDIR)/StackTrace.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/main/$(DEPDIR)/WorkState.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/main/$(DEPDIR)/nzbget.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nntp/$(DEPDIR)/ArticleDownloader.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nntp/$(DEPDIR)/ArticleWriter.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nntp/$(DEPDIR)/Decoder.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nntp/$(DEPDIR)/NewsServer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nntp/$(DEPDIR)/NntpConnection.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nntp/$(DEPDIR)/ServerPool.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nntp/$(DEPDIR)/StatMeter.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nserv/$(DEPDIR)/NServFrontend.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nserv/$(DEPDIR)/NServMain.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nserv/$(DEPDIR)/NntpServer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nserv/$(DEPDIR)/NzbGenerator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/nserv/$(DEPDIR)/YEncoder.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/Cleanup.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/DirectUnpack.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/DupeMatcher.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/ParChecker.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/ParParser.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/ParRenamer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/PrePostProcessor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/RarReader.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/RarRenamer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/Rename.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/Repair.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/postprocess/$(DEPDIR)/Unpack.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/queue/$(DEPDIR)/DirectRenamer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/queue/$(DEPDIR)/DiskState.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/queue/$(DEPDIR)/DownloadInfo.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/queue/$(DEPDIR)/DupeCoordinator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/queue/$(DEPDIR)/HistoryCoordinator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/queue/$(DEPDIR)/NzbFile.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/queue/$(DEPDIR)/QueueCoordinator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/queue/$(DEPDIR)/QueueEditor.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/queue/$(DEPDIR)/Scanner.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/queue/$(DEPDIR)/UrlCoordinator.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/remote/$(DEPDIR)/BinRpc.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/remote/$(DEPDIR)/RemoteClient.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/remote/$(DEPDIR)/RemoteServer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/remote/$(DEPDIR)/WebServer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/remote/$(DEPDIR)/XmlRpc.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/util/$(DEPDIR)/FileSystem.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/util/$(DEPDIR)/Log.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/util/$(DEPDIR)/NString.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/util/$(DEPDIR)/Observer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/util/$(DEPDIR)/Script.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/util/$(DEPDIR)/Service.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/util/$(DEPDIR)/Thread.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@daemon/util/$(DEPDIR)/Util.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/commandline.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/crc.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/creatorpacket.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/criticalpacket.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/datablock.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/descriptionpacket.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/diskfile.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/filechecksummer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/galois.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/mainpacket.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/md5.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/par2fileformat.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/par2repairer.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/par2repairersourcefile.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/parheaders.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/recoverypacket.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/reedsolomon.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/verificationhashtable.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/par2/$(DEPDIR)/verificationpacket.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/yencode/$(DEPDIR)/AcleCrc.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/yencode/$(DEPDIR)/NeonDecoder.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/yencode/$(DEPDIR)/PclmulCrc.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/yencode/$(DEPDIR)/ScalarDecoder.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/yencode/$(DEPDIR)/SimdDecoder.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/yencode/$(DEPDIR)/SimdInit.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/yencode/$(DEPDIR)/SliceCrc.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/yencode/$(DEPDIR)/Sse2Decoder.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@lib/yencode/$(DEPDIR)/Ssse3Decoder.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/feed/$(DEPDIR)/FeedFilterTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/main/$(DEPDIR)/CommandLineParserTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/main/$(DEPDIR)/OptionsTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/nntp/$(DEPDIR)/ServerPoolTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/postprocess/$(DEPDIR)/DirectUnpackTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/postprocess/$(DEPDIR)/DupeMatcherTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/postprocess/$(DEPDIR)/ParCheckerTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/postprocess/$(DEPDIR)/ParRenamerTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/postprocess/$(DEPDIR)/RarReaderTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/postprocess/$(DEPDIR)/RarRenamerTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/queue/$(DEPDIR)/NzbFileTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/suite/$(DEPDIR)/TestMain.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/suite/$(DEPDIR)/TestUtil.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/util/$(DEPDIR)/FileSystemTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/util/$(DEPDIR)/NStringTest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@tests/util/$(DEPDIR)/UtilTest.Po@am__quote@ - -.cpp.o: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< - -.cpp.obj: -@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` -install-dist_docDATA: $(dist_doc_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \ - done - -uninstall-dist_docDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir) -install-dist_exampleconfDATA: $(dist_exampleconf_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_exampleconf_DATA)'; test -n "$(exampleconfdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(exampleconfdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(exampleconfdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(exampleconfdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(exampleconfdir)" || exit $$?; \ - done - -uninstall-dist_exampleconfDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_exampleconf_DATA)'; test -n "$(exampleconfdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(exampleconfdir)'; $(am__uninstall_files_from_dir) -install-nobase_dist_webuiDATA: $(nobase_dist_webui_DATA) - @$(NORMAL_INSTALL) - @list='$(nobase_dist_webui_DATA)'; test -n "$(webuidir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(webuidir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(webuidir)" || exit 1; \ - fi; \ - $(am__nobase_list) | while read dir files; do \ - xfiles=; for file in $$files; do \ - if test -f "$$file"; then xfiles="$$xfiles $$file"; \ - else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \ - test -z "$$xfiles" || { \ - test "x$$dir" = x. || { \ - echo " $(MKDIR_P) '$(DESTDIR)$(webuidir)/$$dir'"; \ - $(MKDIR_P) "$(DESTDIR)$(webuidir)/$$dir"; }; \ - echo " $(INSTALL_DATA) $$xfiles '$(DESTDIR)$(webuidir)/$$dir'"; \ - $(INSTALL_DATA) $$xfiles "$(DESTDIR)$(webuidir)/$$dir" || exit $$?; }; \ - done - -uninstall-nobase_dist_webuiDATA: - @$(NORMAL_UNINSTALL) - @list='$(nobase_dist_webui_DATA)'; test -n "$(webuidir)" || list=; \ - $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \ - dir='$(DESTDIR)$(webuidir)'; $(am__uninstall_files_from_dir) - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=`pwd`; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscope: cscope.files - test ! -s cscope.files \ - || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) -clean-cscope: - -rm -f cscope.files -cscope.files: clean-cscope cscopelist -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list='$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -rm -f cscope.out cscope.in.out cscope.po.out cscope.files - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d "$(distdir)" || mkdir "$(distdir)" - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" distdir="$(distdir)" \ - dist-hook - -test -n "$(am__skip_mode_fix)" \ - || find "$(distdir)" -type d ! -perm -755 \ - -exec chmod u+rwx,go+rx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r "$(distdir)" -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__post_remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 - $(am__post_remove_distdir) - -dist-lzip: distdir - tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz - $(am__post_remove_distdir) - -dist-xz: distdir - tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz - $(am__post_remove_distdir) - -dist-tarZ: distdir - @echo WARNING: "Support for distribution archives compressed with" \ - "legacy program 'compress' is deprecated." >&2 - @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__post_remove_distdir) - -dist-shar: distdir - @echo WARNING: "Support for shar distribution archives is" \ - "deprecated." >&2 - @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__post_remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__post_remove_distdir) - -dist dist-all: - $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' - $(am__post_remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.lz*) \ - lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ - *.tar.xz*) \ - xz -dc $(distdir).tar.xz | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir) - chmod u+w $(distdir) - mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst - chmod a-w $(distdir) - test -d $(distdir)/_build || exit 0; \ - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && am__cwd=`pwd` \ - && $(am__cd) $(distdir)/_build/sub \ - && ../../configure \ - $(AM_DISTCHECK_CONFIGURE_FLAGS) \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - --srcdir=../.. --prefix="$$dc_install_base" \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ - && cd "$$am__cwd" \ - || exit 1 - $(am__post_remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @test -n '$(distuninstallcheck_dir)' || { \ - echo 'ERROR: trying to run $@ with an empty' \ - '$$(distuninstallcheck_dir)' >&2; \ - exit 1; \ - }; \ - $(am__cd) '$(distuninstallcheck_dir)' || { \ - echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ - exit 1; \ - }; \ - test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(DATA) config.h -installdirs: - for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(exampleconfdir)" "$(DESTDIR)$(webuidir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -rm -f daemon/connect/$(DEPDIR)/$(am__dirstamp) - -rm -f daemon/connect/$(am__dirstamp) - -rm -f daemon/extension/$(DEPDIR)/$(am__dirstamp) - -rm -f daemon/extension/$(am__dirstamp) - -rm -f daemon/feed/$(DEPDIR)/$(am__dirstamp) - -rm -f daemon/feed/$(am__dirstamp) - -rm -f daemon/frontend/$(DEPDIR)/$(am__dirstamp) - -rm -f daemon/frontend/$(am__dirstamp) - -rm -f daemon/main/$(DEPDIR)/$(am__dirstamp) - -rm -f daemon/main/$(am__dirstamp) - -rm -f daemon/nntp/$(DEPDIR)/$(am__dirstamp) - -rm -f daemon/nntp/$(am__dirstamp) - -rm -f daemon/nserv/$(DEPDIR)/$(am__dirstamp) - -rm -f daemon/nserv/$(am__dirstamp) - -rm -f daemon/postprocess/$(DEPDIR)/$(am__dirstamp) - -rm -f daemon/postprocess/$(am__dirstamp) - -rm -f daemon/queue/$(DEPDIR)/$(am__dirstamp) - -rm -f daemon/queue/$(am__dirstamp) - -rm -f daemon/remote/$(DEPDIR)/$(am__dirstamp) - -rm -f daemon/remote/$(am__dirstamp) - -rm -f daemon/util/$(DEPDIR)/$(am__dirstamp) - -rm -f daemon/util/$(am__dirstamp) - -rm -f lib/par2/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/par2/$(am__dirstamp) - -rm -f lib/yencode/$(DEPDIR)/$(am__dirstamp) - -rm -f lib/yencode/$(am__dirstamp) - -rm -f tests/feed/$(DEPDIR)/$(am__dirstamp) - -rm -f tests/feed/$(am__dirstamp) - -rm -f tests/main/$(DEPDIR)/$(am__dirstamp) - -rm -f tests/main/$(am__dirstamp) - -rm -f tests/nntp/$(DEPDIR)/$(am__dirstamp) - -rm -f tests/nntp/$(am__dirstamp) - -rm -f tests/postprocess/$(DEPDIR)/$(am__dirstamp) - -rm -f tests/postprocess/$(am__dirstamp) - -rm -f tests/queue/$(DEPDIR)/$(am__dirstamp) - -rm -f tests/queue/$(am__dirstamp) - -rm -f tests/suite/$(DEPDIR)/$(am__dirstamp) - -rm -f tests/suite/$(am__dirstamp) - -rm -f tests/util/$(DEPDIR)/$(am__dirstamp) - -rm -f tests/util/$(am__dirstamp) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf ./$(DEPDIR) daemon/connect/$(DEPDIR) daemon/extension/$(DEPDIR) daemon/feed/$(DEPDIR) daemon/frontend/$(DEPDIR) daemon/main/$(DEPDIR) daemon/nntp/$(DEPDIR) daemon/nserv/$(DEPDIR) daemon/postprocess/$(DEPDIR) daemon/queue/$(DEPDIR) daemon/remote/$(DEPDIR) daemon/util/$(DEPDIR) lib/par2/$(DEPDIR) lib/yencode/$(DEPDIR) tests/feed/$(DEPDIR) tests/main/$(DEPDIR) tests/nntp/$(DEPDIR) tests/postprocess/$(DEPDIR) tests/queue/$(DEPDIR) tests/suite/$(DEPDIR) tests/util/$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-hdr distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-dist_docDATA install-dist_exampleconfDATA \ - install-nobase_dist_scriptsSCRIPTS \ - install-nobase_dist_webuiDATA - @$(NORMAL_INSTALL) - $(MAKE) $(AM_MAKEFLAGS) install-data-hook -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-binPROGRAMS - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -rf ./$(DEPDIR) daemon/connect/$(DEPDIR) daemon/extension/$(DEPDIR) daemon/feed/$(DEPDIR) daemon/frontend/$(DEPDIR) daemon/main/$(DEPDIR) daemon/nntp/$(DEPDIR) daemon/nserv/$(DEPDIR) daemon/postprocess/$(DEPDIR) daemon/queue/$(DEPDIR) daemon/remote/$(DEPDIR) daemon/util/$(DEPDIR) lib/par2/$(DEPDIR) lib/yencode/$(DEPDIR) tests/feed/$(DEPDIR) tests/main/$(DEPDIR) tests/nntp/$(DEPDIR) tests/postprocess/$(DEPDIR) tests/queue/$(DEPDIR) tests/suite/$(DEPDIR) tests/util/$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-binPROGRAMS uninstall-dist_docDATA \ - uninstall-dist_exampleconfDATA \ - uninstall-nobase_dist_scriptsSCRIPTS \ - uninstall-nobase_dist_webuiDATA - -.MAKE: all install-am install-data-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \ - clean-binPROGRAMS clean-cscope clean-generic cscope \ - cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ - dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \ - dist-zip distcheck distclean distclean-compile \ - distclean-generic distclean-hdr distclean-tags distcleancheck \ - distdir distuninstallcheck dvi dvi-am html html-am info \ - info-am install install-am install-binPROGRAMS install-data \ - install-data-am install-data-hook install-dist_docDATA \ - install-dist_exampleconfDATA install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man \ - install-nobase_dist_scriptsSCRIPTS \ - install-nobase_dist_webuiDATA install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ - uninstall-am uninstall-binPROGRAMS uninstall-dist_docDATA \ - uninstall-dist_exampleconfDATA \ - uninstall-nobase_dist_scriptsSCRIPTS \ - uninstall-nobase_dist_webuiDATA - -.PRECIOUS: Makefile - - -lib/yencode/Sse2Decoder.$(OBJEXT) : CXXFLAGS+=$(SSE2_CXXFLAGS) -lib/yencode/Ssse3Decoder.$(OBJEXT) : CXXFLAGS+=$(SSSE3_CXXFLAGS) -lib/yencode/PclmulCrc.$(OBJEXT) : CXXFLAGS+=$(PCLMUL_CXXFLAGS) -lib/yencode/NeonDecoder.$(OBJEXT) : CXXFLAGS+=$(NEON_CXXFLAGS) -lib/yencode/AcleCrc.$(OBJEXT) : CXXFLAGS+=$(ACLECRC_CXXFLAGS) - -# Note about "sed": -# We need to make some changes in installed files. -# On Linux "sed" has option "-i" for in-place-edit. Unfortunateley the BSD version of "sed" -# has incompatible syntax. To solve the problem we perform in-place-edit in three steps: -# 1) copy the original file to original.temp (delete existing original.temp, if any); -# 2) sed < original.temp > original -# 3) delete original.temp -# These steps ensure that the output file has the same permissions as the original file. - -# Prepare example configuration file -install-data-hook: - rm -f "$(DESTDIR)$(exampleconfdir)/nzbget.conf.temp" - cp "$(DESTDIR)$(exampleconfdir)/nzbget.conf" "$(DESTDIR)$(exampleconfdir)/nzbget.conf.temp" - sed 's:^ConfigTemplate=:ConfigTemplate=$(exampleconfdir)/nzbget.conf:' < "$(DESTDIR)$(exampleconfdir)/nzbget.conf.temp" > "$(DESTDIR)$(exampleconfdir)/nzbget.conf" - sed 's:configuration file (typically installed:configuration file (installed:' < "$(DESTDIR)$(exampleconfdir)/nzbget.conf" > "$(DESTDIR)$(exampleconfdir)/nzbget.conf.temp" - sed 's:/usr/local/share/nzbget/nzbget.conf):$(exampleconfdir)/nzbget.conf):' < "$(DESTDIR)$(exampleconfdir)/nzbget.conf.temp" > "$(DESTDIR)$(exampleconfdir)/nzbget.conf" - sed 's:^WebDir=:WebDir=$(webuidir)/webui:' < "$(DESTDIR)$(exampleconfdir)/nzbget.conf" > "$(DESTDIR)$(exampleconfdir)/nzbget.conf.temp" - sed 's:typically installed to /usr/local/share/nzbget/scripts:installed to $(scriptsdir)/scripts:' < "$(DESTDIR)$(exampleconfdir)/nzbget.conf.temp" > "$(DESTDIR)$(exampleconfdir)/nzbget.conf" - rm "$(DESTDIR)$(exampleconfdir)/nzbget.conf.temp" - -# Install configuration files into /etc -# (only if they do not exist there to prevent override by update) -install-conf: - if test ! -f "$(DESTDIR)$(sysconfdir)/nzbget.conf" ; then \ - $(mkinstalldirs) "$(DESTDIR)$(sysconfdir)" ; \ - cp "$(DESTDIR)$(exampleconfdir)/nzbget.conf" "$(DESTDIR)$(sysconfdir)/nzbget.conf" ; \ - fi - -uninstall-conf: - rm -f "$(DESTDIR)$(sysconfdir)/nzbget.conf" - -# Determining git revision: -# 1) If directory ".git" exists we take revision from git log. -# File is recreated only if revision number was changed. -# 2) If directory ".git" doesn't exists we keep and reuse file "code_revision.cpp", -# which was possibly created early. -# 3) If neither directory ".git" nor file "code_revision.cpp" are available -# we create new file "code_revision.c" with empty revision number. -code_revision.cpp: FORCE - @ if test -d ./.git ; then \ - B=`git branch | sed -n -e 's/^\* \(.*\)/\1/p'`; \ - M=`git status --porcelain` ; \ - if test "$$M" != "" ; then \ - M="M" ; \ - fi ; \ - if test "$$B" = "master" ; then \ - V="$$M" ; \ - elif test "$$B" = "develop" ; then \ - V=`git rev-list HEAD | wc -l | xargs` ; \ - V="$${V}$$M" ; \ - else \ - V=`git rev-list HEAD | wc -l | xargs` ; \ - V="$${V}$$M ($$B)" ; \ - fi ; \ - H=`test -f ./code_revision.cpp && head -n 1 code_revision.cpp`; \ - if test "/* $$V */" != "$$H" ; then \ - ( \ - echo "/* $$V */" ;\ - echo "/* This file is automatically regenerated on each build. Do not edit it. */" ;\ - echo "#include \"nzbget.h\"" ;\ - echo "const char* code_revision(void)" ;\ - echo "{" ;\ - echo " const char* revision = \"$$V\";" ;\ - echo " return revision;" ;\ - echo "}" ;\ - ) > code_revision.cpp ; \ - fi \ - elif test -f ./code_revision.cpp ; then \ - test "ok, reuse existing file"; \ - else \ - ( \ - echo "/* */" ;\ - echo "/* This file is automatically regenerated on each build. Do not edit it. */" ;\ - echo "#include \"nzbget.h\"" ;\ - echo "const char* code_revision(void)" ;\ - echo "{" ;\ - echo " const char* revision = \"\";" ;\ - echo " return revision;" ;\ - echo "}" ;\ - ) > code_revision.cpp ; \ - fi -FORCE: - -clean-bak: rm *~ - -# Fix premissions -dist-hook: - find $(distdir)/daemon -type f -print -exec chmod -x {} \; - find $(distdir)/webui -type f -print -exec chmod -x {} \; - find $(distdir)/lib -type f -print -exec chmod -x {} \; - find $(distdir)/tests -type f -print -exec chmod -x {} \; - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/README.md b/README.md index 03294e88..6a4356d9 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,15 @@ [![License](https://img.shields.io/badge/license-GPL-blue.svg)](http://www.gnu.org/licenses/) ![GitHub release (by tag)](https://img.shields.io/github/downloads/nzbgetcom/nzbget/v22.0/total?label=v22.0) +![GitHub release (by tag)](https://img.shields.io/github/downloads/nzbgetcom/nzbget/v23.0/total?label=v23.0) +![docker pulls](https://img.shields.io/docker/pulls/nzbgetcom/nzbget.svg) + [![linux build](https://github.com/nzbgetcom/nzbget/actions/workflows/linux.yml/badge.svg?branch=main)](https://github.com/nzbgetcom/nzbget/actions/workflows/linux.yml) [![windows build](https://github.com/nzbgetcom/nzbget/actions/workflows/windows.yml/badge.svg?branch=main)](https://github.com/nzbgetcom/nzbget/actions/workflows/windows.yml) [![osx build](https://github.com/nzbgetcom/nzbget/actions/workflows/osx.yml/badge.svg)](https://github.com/nzbgetcom/nzbget/actions/workflows/osx.yml) +[![docker build](https://github.com/nzbgetcom/nzbget/actions/workflows/docker.yml/badge.svg)](https://github.com/nzbgetcom/nzbget/actions/workflows/docker.yml) +[![synology build](https://github.com/nzbgetcom/nzbget/actions/workflows/synology.yml/badge.svg)](https://github.com/nzbgetcom/nzbget/actions/workflows/synology.yml) +[![qnap build](https://github.com/nzbgetcom/nzbget/actions/workflows/qnap.yml/badge.svg)](https://github.com/nzbgetcom/nzbget/actions/workflows/qnap.yml) ![Contributions welcome](https://img.shields.io/badge/contributions-welcome-blue.svg) @@ -30,29 +36,43 @@ More information available at https://nzbget.com We provide a easy-to-use installer for each platform we support. Please download binaries from our [releases](https://github.com/nzbgetcom/nzbget/tags) page. +We also provide a docker image for popular architectures. [Docker readme](docker/README.md) + +Synology packages are available as SynoCommunity packages and SPK packages. [Synology readme](synology/README.md) + +QNAP packages are available as native packages and buildroot packages. [QNAP readme](qnap/README.md) + +## Migration from older NZBGet versions + +[Migrating from NZBGet v21 or older](https://github.com/nzbgetcom/nzbget/discussions/100#discussioncomment-8080102) + +[Migrating from older Docker images](https://github.com/nzbgetcom/nzbget/issues/84#issuecomment-1884846500) + +## Supported platforms for installers + +`Windows`: Windows 7 and later, 32 or 64 Bit. + +`Linux`: Linux kernel 2.6 and later, x86 (32 or 64 Bit), ARM 32-bit (armel armhf), ARM 64-bit (aarch64) + +`macOS`: macOS 10.13 High Sierra and later, Intel / Apple Silicon. + ## Building from sources -Please follow [instructions](https://nzbget.com/documentation/building-development-version/) on the website +[General instructions](INSTALLATION.md) -## Contribution +[Linux cross-compiling / buildroot](linux/build-info.md) + +[macOS](osx/build-info.md) -Branches naming policy +[Synology](synology/build-info.md) -- `main` is a protected branch that contains only release code -- `develop` is a protected branch for development -- new branches should follow the following convention: - - `hotfix/brief-description` for any small hotfixes - - `feature/brief-description` for any new developments - - `bugfix/brief-description` for bugs +## Contribution -Pull requests flow for `develop` and `main` branches: +Contributions are very welcome - not only from developers, but from our users too - please don't hesitate to participate in [discussions](https://github.com/nzbgetcom/nzbget/discussions) or [create a new discussion](https://github.com/nzbgetcom/nzbget/discussions/new/choose) -1. For PRs targeting `develop` branch `Squash and merge` mode must be used. -2. After merging branch to `develop`, branch must be deleted. -3. For release PR (`develop` -> `main`) `Create a merge commit` mode must be used. -4. After merging `develop` -> `main`, must be back merge `main` -> `develop` before any changes in `develop` branch. +For more information - see [Contributing](CONTRIBUTING.md). -This flow results to the fact that in the PR to master branch we see only the squashed commits that correspond to the PRs in the develop branch in current release cycle. +## Donate +Please [donate](https://nzbget.com/donate/) if you like what we are doing. thank you! -We entice our users to participate in the project, please don't hesitate to get involved - create a [new issue](https://github.com/nzbgetcom/nzbget/issues/new) or [pull request](https://github.com/nzbgetcom/nzbget/compare)! \ No newline at end of file diff --git a/aclocal.m4 b/aclocal.m4 deleted file mode 100644 index 454a48f8..00000000 --- a/aclocal.m4 +++ /dev/null @@ -1,1400 +0,0 @@ -# generated automatically by aclocal 1.15 -*- Autoconf -*- - -# Copyright (C) 1996-2014 Free Software Foundation, Inc. - -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, -[m4_warning([this file was generated for autoconf 2.69. -You have another version of autoconf. It may work, but is not guaranteed to. -If you have problems, you may need to regenerate the build system entirely. -To do so, use the procedure documented by the package, typically 'autoreconf'.])]) - -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- -# serial 12 (pkg-config-0.29.2) - -dnl Copyright Ā© 2004 Scott James Remnant . -dnl Copyright Ā© 2012-2015 Dan Nicholson -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2 of the License, or -dnl (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, but -dnl WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl As a special exception to the GNU General Public License, if you -dnl distribute this file as part of a program that contains a -dnl configuration script generated by Autoconf, you may include it under -dnl the same distribution terms that you use for the rest of that -dnl program. - -dnl PKG_PREREQ(MIN-VERSION) -dnl ----------------------- -dnl Since: 0.29 -dnl -dnl Verify that the version of the pkg-config macros are at least -dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's -dnl installed version of pkg-config, this checks the developer's version -dnl of pkg.m4 when generating configure. -dnl -dnl To ensure that this macro is defined, also add: -dnl m4_ifndef([PKG_PREREQ], -dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) -dnl -dnl See the "Since" comment for each macro you use to see what version -dnl of the macros you require. -m4_defun([PKG_PREREQ], -[m4_define([PKG_MACROS_VERSION], [0.29.2]) -m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, - [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) -])dnl PKG_PREREQ - -dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) -dnl ---------------------------------- -dnl Since: 0.16 -dnl -dnl Search for the pkg-config tool and set the PKG_CONFIG variable to -dnl first found in the path. Checks that the version of pkg-config found -dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is -dnl used since that's the first version where most current features of -dnl pkg-config existed. -AC_DEFUN([PKG_PROG_PKG_CONFIG], -[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) -m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) -AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) -AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=m4_default([$1], [0.9.0]) - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - PKG_CONFIG="" - fi -fi[]dnl -])dnl PKG_PROG_PKG_CONFIG - -dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -dnl ------------------------------------------------------------------- -dnl Since: 0.18 -dnl -dnl Check to see whether a particular set of modules exists. Similar to -dnl PKG_CHECK_MODULES(), but does not set variables or print errors. -dnl -dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -dnl only at the first occurence in configure.ac, so if the first place -dnl it's called might be skipped (such as if it is within an "if", you -dnl have to call PKG_CHECK_EXISTS manually -AC_DEFUN([PKG_CHECK_EXISTS], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -if test -n "$PKG_CONFIG" && \ - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then - m4_default([$2], [:]) -m4_ifvaln([$3], [else - $3])dnl -fi]) - -dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) -dnl --------------------------------------------- -dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting -dnl pkg_failed based on the result. -m4_define([_PKG_CONFIG], -[if test -n "$$1"; then - pkg_cv_[]$1="$$1" - elif test -n "$PKG_CONFIG"; then - PKG_CHECK_EXISTS([$3], - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes ], - [pkg_failed=yes]) - else - pkg_failed=untried -fi[]dnl -])dnl _PKG_CONFIG - -dnl _PKG_SHORT_ERRORS_SUPPORTED -dnl --------------------------- -dnl Internal check to see if pkg-config supports short errors. -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi[]dnl -])dnl _PKG_SHORT_ERRORS_SUPPORTED - - -dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], -dnl [ACTION-IF-NOT-FOUND]) -dnl -------------------------------------------------------------- -dnl Since: 0.4.0 -dnl -dnl Note that if there is a possibility the first call to -dnl PKG_CHECK_MODULES might not happen, you should be sure to include an -dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac -AC_DEFUN([PKG_CHECK_MODULES], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl - -pkg_failed=no -AC_MSG_CHECKING([for $2]) - -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) -_PKG_CONFIG([$1][_LIBS], [libs], [$2]) - -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS -and $1[]_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details.]) - -if test $pkg_failed = yes; then - AC_MSG_RESULT([no]) - _PKG_SHORT_ERRORS_SUPPORTED - if test $_pkg_short_errors_supported = yes; then - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` - else - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD - - m4_default([$4], [AC_MSG_ERROR( -[Package requirements ($2) were not met: - -$$1_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -_PKG_TEXT])[]dnl - ]) -elif test $pkg_failed = untried; then - AC_MSG_RESULT([no]) - m4_default([$4], [AC_MSG_FAILURE( -[The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -_PKG_TEXT - -To get pkg-config, see .])[]dnl - ]) -else - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS - AC_MSG_RESULT([yes]) - $3 -fi[]dnl -])dnl PKG_CHECK_MODULES - - -dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], -dnl [ACTION-IF-NOT-FOUND]) -dnl --------------------------------------------------------------------- -dnl Since: 0.29 -dnl -dnl Checks for existence of MODULES and gathers its build flags with -dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags -dnl and VARIABLE-PREFIX_LIBS from --libs. -dnl -dnl Note that if there is a possibility the first call to -dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to -dnl include an explicit call to PKG_PROG_PKG_CONFIG in your -dnl configure.ac. -AC_DEFUN([PKG_CHECK_MODULES_STATIC], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -_save_PKG_CONFIG=$PKG_CONFIG -PKG_CONFIG="$PKG_CONFIG --static" -PKG_CHECK_MODULES($@) -PKG_CONFIG=$_save_PKG_CONFIG[]dnl -])dnl PKG_CHECK_MODULES_STATIC - - -dnl PKG_INSTALLDIR([DIRECTORY]) -dnl ------------------------- -dnl Since: 0.27 -dnl -dnl Substitutes the variable pkgconfigdir as the location where a module -dnl should install pkg-config .pc files. By default the directory is -dnl $libdir/pkgconfig, but the default can be changed by passing -dnl DIRECTORY. The user can override through the --with-pkgconfigdir -dnl parameter. -AC_DEFUN([PKG_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([pkgconfigdir], - [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, - [with_pkgconfigdir=]pkg_default) -AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -])dnl PKG_INSTALLDIR - - -dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) -dnl -------------------------------- -dnl Since: 0.27 -dnl -dnl Substitutes the variable noarch_pkgconfigdir as the location where a -dnl module should install arch-independent pkg-config .pc files. By -dnl default the directory is $datadir/pkgconfig, but the default can be -dnl changed by passing DIRECTORY. The user can override through the -dnl --with-noarch-pkgconfigdir parameter. -AC_DEFUN([PKG_NOARCH_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([noarch-pkgconfigdir], - [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, - [with_noarch_pkgconfigdir=]pkg_default) -AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -])dnl PKG_NOARCH_INSTALLDIR - - -dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, -dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -dnl ------------------------------------------- -dnl Since: 0.28 -dnl -dnl Retrieves the value of the pkg-config variable for the given module. -AC_DEFUN([PKG_CHECK_VAR], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl - -_PKG_CONFIG([$1], [variable="][$3]["], [$2]) -AS_VAR_COPY([$1], [pkg_cv_][$1]) - -AS_VAR_IF([$1], [""], [$5], [$4])dnl -])dnl PKG_CHECK_VAR - -# Copyright (C) 2002-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.15' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.15], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.15])dnl -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to -# '$srcdir', '$srcdir/..', or '$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is '.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ([2.52])dnl - m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -m4_define([_AM_COND_VALUE_$1], [$2])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - - -# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], - [$1], [CXX], [depcc="$CXX" am_compiler_list=], - [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], - [$1], [UPC], [depcc="$UPC" am_compiler_list=], - [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - am__universal=false - m4_case([$1], [CC], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac], - [CXX], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac]) - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES. -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE([dependency-tracking], [dnl -AS_HELP_STRING( - [--enable-dependency-tracking], - [do not reject slow dependency extractors]) -AS_HELP_STRING( - [--disable-dependency-tracking], - [speeds up one-time build])]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -AC_SUBST([am__nodep])dnl -_AM_SUBST_NOTMAKE([am__nodep])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[{ - # Older Autoconf quotes --file arguments for eval, but not when files - # are listed without --file. Let's play safe and only enable the eval - # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac - shift - for mf - do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done - done -} -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each '.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. -m4_define([AC_PROG_CC], -m4_defn([AC_PROG_CC]) -[_AM_PROG_CC_C_O -]) - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.65])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[AC_DIAGNOSE([obsolete], - [$0: two- and three-arguments forms are deprecated.]) -m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if( - m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), - [ok:ok],, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) - AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) -AM_MISSING_PROG([AUTOCONF], [autoconf]) -AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) -AM_MISSING_PROG([AUTOHEADER], [autoheader]) -AM_MISSING_PROG([MAKEINFO], [makeinfo]) -AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -AC_SUBST([mkdir_p], ['$(MKDIR_P)']) -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES([CC])], - [m4_define([AC_PROG_CC], - m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES([CXX])], - [m4_define([AC_PROG_CXX], - m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES([OBJC])], - [m4_define([AC_PROG_OBJC], - m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], - [_AM_DEPENDENCIES([OBJCXX])], - [m4_define([AC_PROG_OBJCXX], - m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl -]) -AC_REQUIRE([AM_SILENT_RULES])dnl -dnl The testsuite driver may need to know about EXEEXT, so add the -dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This -dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. -AC_CONFIG_COMMANDS_PRE(dnl -[m4_provide_if([_AM_COMPILER_EXEEXT], - [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) - fi -fi -dnl The trailing newline in this macro's definition is deliberate, for -dnl backward compatibility and to allow trailing 'dnl'-style comments -dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. -]) - -dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not -dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further -dnl mangled by Autoconf and run in a shell conditional statement. -m4_define([_AC_COMPILER_EXEEXT], -m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_arg=$1 -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $_am_arg | $_am_arg:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -if test x"${install_sh+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi -AC_SUBST([install_sh])]) - -# Copyright (C) 2003-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- -# From Jim Meyering - -# Copyright (C) 1996-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MAINTAINER_MODE([DEFAULT-MODE]) -# ---------------------------------- -# Control maintainer-specific portions of Makefiles. -# Default is to disable them, unless 'enable' is passed literally. -# For symmetry, 'disable' may be passed as well. Anyway, the user -# can override the default with the --enable/--disable switch. -AC_DEFUN([AM_MAINTAINER_MODE], -[m4_case(m4_default([$1], [disable]), - [enable], [m4_define([am_maintainer_other], [disable])], - [disable], [m4_define([am_maintainer_other], [enable])], - [m4_define([am_maintainer_other], [enable]) - m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) -AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode's default is 'disable' unless 'enable' is passed - AC_ARG_ENABLE([maintainer-mode], - [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], - am_maintainer_other[ make rules and dependencies not useful - (and sometimes confusing) to the casual installer])], - [USE_MAINTAINER_MODE=$enableval], - [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) - AC_MSG_RESULT([$USE_MAINTAINER_MODE]) - AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) - MAINT=$MAINTAINER_MODE_TRUE - AC_SUBST([MAINT])dnl -] -) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it is modern enough. -# If it is, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - AC_MSG_WARN(['missing' script is too old or missing]) -fi -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# -------------------- -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) - -# _AM_SET_OPTIONS(OPTIONS) -# ------------------------ -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[[\\\"\#\$\&\'\`$am_lf]]*) - AC_MSG_ERROR([unsafe absolute working directory name]);; -esac -case $srcdir in - *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) - AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken - alias in your environment]) - fi - if test "$[2]" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT([yes]) -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi -AC_CONFIG_COMMANDS_PRE( - [AC_MSG_CHECKING([that generated files are newer than configure]) - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - AC_MSG_RESULT([done])]) -rm -f conftest.file -]) - -# Copyright (C) 2009-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SILENT_RULES([DEFAULT]) -# -------------------------- -# Enable less verbose build rules; with the default set to DEFAULT -# ("yes" being less verbose, "no" or empty being verbose). -AC_DEFUN([AM_SILENT_RULES], -[AC_ARG_ENABLE([silent-rules], [dnl -AS_HELP_STRING( - [--enable-silent-rules], - [less verbose build output (undo: "make V=1")]) -AS_HELP_STRING( - [--disable-silent-rules], - [verbose build output (undo: "make V=0")])dnl -]) -case $enable_silent_rules in @%:@ ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; -esac -dnl -dnl A few 'make' implementations (e.g., NonStop OS and NextStep) -dnl do not support nested variable expansions. -dnl See automake bug#9928 and bug#10237. -am_make=${MAKE-make} -AC_CACHE_CHECK([whether $am_make supports nested variables], - [am_cv_make_support_nested_variables], - [if AS_ECHO([['TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi]) -if test $am_cv_make_support_nested_variables = yes; then - dnl Using '$V' instead of '$(V)' breaks IRIX make. - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AC_SUBST([AM_V])dnl -AM_SUBST_NOTMAKE([AM_V])dnl -AC_SUBST([AM_DEFAULT_V])dnl -AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl -AC_SUBST([AM_DEFAULT_VERBOSITY])dnl -AM_BACKSLASH='\' -AC_SUBST([AM_BACKSLASH])dnl -_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl -]) - -# Copyright (C) 2001-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor 'install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in "make install-strip", and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using 'strip' when the user -# run "make install-strip". However 'strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the 'STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# AM_SUBST_NOTMAKE(VARIABLE) -# -------------------------- -# Public sister of _AM_SUBST_NOTMAKE. -AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of 'v7', 'ustar', or 'pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -# -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AC_SUBST([AMTAR], ['$${TAR-tar}']) - -# We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' - -m4_if([$1], [v7], - [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], - - [m4_case([$1], - [ustar], - [# The POSIX 1988 'ustar' format is defined with fixed-size fields. - # There is notably a 21 bits limit for the UID and the GID. In fact, - # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 - # and bug#13588). - am_max_uid=2097151 # 2^21 - 1 - am_max_gid=$am_max_uid - # The $UID and $GID variables are not portable, so we need to resort - # to the POSIX-mandated id(1) utility. Errors in the 'id' calls - # below are definitely unexpected, so allow the users to see them - # (that is, avoid stderr redirection). - am_uid=`id -u || echo unknown` - am_gid=`id -g || echo unknown` - AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) - if test $am_uid -le $am_max_uid; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - _am_tools=none - fi - AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) - if test $am_gid -le $am_max_gid; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - _am_tools=none - fi], - - [pax], - [], - - [m4_fatal([Unknown tar format])]) - - AC_MSG_CHECKING([how to create a $1 tar archive]) - - # Go ahead even if we have the value already cached. We do so because we - # need to set the values for the 'am__tar' and 'am__untar' variables. - _am_tools=${am_cv_prog_tar_$1-$_am_tools} - - for _am_tool in $_am_tools; do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works. - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi - done - rm -rf conftest.dir - - AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) - AC_MSG_RESULT([$am_cv_prog_tar_$1])]) - -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - diff --git a/cmake_config.h.in b/cmake_config.h.in new file mode 100644 index 00000000..aa35cd47 --- /dev/null +++ b/cmake_config.h.in @@ -0,0 +1,5 @@ +/* Name of package */ +#cmakedefine PACKAGE "@PACKAGE@" + +/* Version number of package */ +#cmakedefine VERSION "@VERSION@" diff --git a/config.h.in b/config.h.in deleted file mode 100644 index b757759c..00000000 --- a/config.h.in +++ /dev/null @@ -1,196 +0,0 @@ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define to 1 to include debug-code */ -#undef DEBUG - -/* Define to 1 to not use curses */ -#undef DISABLE_CURSES - -/* Define to 1 to disable gzip-support */ -#undef DISABLE_GZIP - -/* Define to 1 to not use libxml2, only for development purposes */ -#undef DISABLE_LIBXML2 - -/* Define to 1 to disable par-verification and repair */ -#undef DISABLE_PARCHECK - -/* Define to 1 to not use TLS/SSL */ -#undef DISABLE_TLS - -/* Define to 1 to enable unit and integration tests */ -#undef ENABLE_TESTS - -/* Define to the name of macro which returns the name of function being - compiled */ -#undef FUNCTION_MACRO_NAME - -/* Define to 1 to create stacktrace on segmentation faults */ -#undef HAVE_BACKTRACE - -/* Define to 1 if ctime_r takes 2 arguments */ -#undef HAVE_CTIME_R_2 - -/* Define to 1 if ctime_r takes 3 arguments */ -#undef HAVE_CTIME_R_3 - -/* Define to 1 if you have the header file. */ -#undef HAVE_CURSES_H - -/* define if the compiler supports basic C++14 syntax */ -#undef HAVE_CXX14 - -/* Define to 1 if you have the header file. */ -#undef HAVE_ENDIAN_H - -/* Define to 1 if fdatasync is supported */ -#undef HAVE_FDATASYNC - -/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ -#undef HAVE_FSEEKO - -/* Define to 1 if F_FULLFSYNC is supported */ -#undef HAVE_FULLFSYNC - -/* Define to 1 if getaddrinfo is supported */ -#undef HAVE_GETADDRINFO - -/* Define to 1 if gethostbyname_r is supported */ -#undef HAVE_GETHOSTBYNAME_R - -/* Define to 1 if gethostbyname_r takes 3 arguments */ -#undef HAVE_GETHOSTBYNAME_R_3 - -/* Define to 1 if gethostbyname_r takes 5 arguments */ -#undef HAVE_GETHOSTBYNAME_R_5 - -/* Define to 1 if gethostbyname_r takes 6 arguments */ -#undef HAVE_GETHOSTBYNAME_R_6 - -/* Define to 1 if you have the `getopt' function. */ -#undef HAVE_GETOPT - -/* Define to 1 if you have the header file. */ -#undef HAVE_GETOPT_H - -/* Define to 1 if getopt_long is supported */ -#undef HAVE_GETOPT_LONG - -/* Define to 1 if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 to use GnuTLS library for TLS/SSL-support. */ -#undef HAVE_LIBGNUTLS - -/* Define to 1 if lockf is supported */ -#undef HAVE_LOCKF - -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NCURSES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NCURSES_NCURSES_H - -/* Define to 1 to use Nettle library for decryption. */ -#undef HAVE_NETTLE - -/* Define to 1 to use OpenSSL library for TLS/SSL-support and decryption. */ -#undef HAVE_OPENSSL - -/* Define to 1 if pthread_cancel is supported */ -#undef HAVE_PTHREAD_CANCEL - -/* Define to 1 if you have the header file. */ -#undef HAVE_REGEX_H - -/* Define to 1 if _SC_NPROCESSORS_ONLN is present in unistd.h */ -#undef HAVE_SC_NPROCESSORS_ONLN - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the `stricmp' function. */ -#undef HAVE_STRICMP - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_PRCTL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define to 1 if variadic macros are supported */ -#undef HAVE_VARIADIC_MACROS - -/* Define to 1 if OpenSSL supports function "X509_check_host". */ -#undef HAVE_X509_CHECK_HOST - -/* Define to 1 to exclude debug-code */ -#undef NDEBUG - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the home page for this package. */ -#undef PACKAGE_URL - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Define to 1 to install an empty signal handler for SIGCHLD */ -#undef SIGCHLD_HANDLER - -/* Determine what socket length (socklen_t) data type is */ -#undef SOCKLEN_T - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Version number of package */ -#undef VERSION - -/* Enable large inode numbers on Mac OS X 10.5. */ -#ifndef _DARWIN_USE_64_BIT_INODE -# define _DARWIN_USE_64_BIT_INODE 1 -#endif - -/* Number of bits in a file offset, on hosts where this is settable. */ -#undef _FILE_OFFSET_BITS - -/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ -#undef _LARGEFILE_SOURCE - -/* Define for large files, on AIX-style hosts. */ -#undef _LARGE_FILES - -/* Define to `unsigned int' if does not define. */ -#undef size_t diff --git a/configure b/configure deleted file mode 100755 index 9a140d84..00000000 --- a/configure +++ /dev/null @@ -1,10089 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for nzbget 22.0. -# -# 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 -test \$(( 1 + 1 )) = 2 || 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: nzbget@nzbget.com 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='nzbget' -PACKAGE_TARNAME='nzbget' -PACKAGE_VERSION='22.0' -PACKAGE_STRING='nzbget 22.0' -PACKAGE_BUGREPORT='nzbget@nzbget.com' -PACKAGE_URL='' - -ac_unique_file="daemon/main/nzbget.cpp" -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS -# include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#ifdef HAVE_INTTYPES_H -# include -#endif -#ifdef HAVE_STDINT_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif" - -ac_subst_vars='am__EXEEXT_FALSE -am__EXEEXT_TRUE -LTLIBOBJS -LIBOBJS -WITH_TESTS_FALSE -WITH_TESTS_TRUE -ACLECRC_CXXFLAGS -NEON_CXXFLAGS -PCLMUL_CXXFLAGS -SSSE3_CXXFLAGS -SSE2_CXXFLAGS -zlib_LIBS -zlib_CFLAGS -nettle_LIBS -nettle_CFLAGS -gnutls_LIBS -gnutls_CFLAGS -openssl_LIBS -openssl_CFLAGS -WITH_PAR2_FALSE -WITH_PAR2_TRUE -ncurses_LIBS -ncurses_CFLAGS -libxml2_LIBS -libxml2_CFLAGS -PKG_CONFIG_LIBDIR -PKG_CONFIG_PATH -PKG_CONFIG -EGREP -GREP -CXXCPP -HAVE_CXX14 -MAKE -TAR -am__fastdepCXX_FALSE -am__fastdepCXX_TRUE -CXXDEPMODE -am__nodep -AMDEPBACKSLASH -AMDEP_FALSE -AMDEP_TRUE -am__quote -am__include -DEPDIR -OBJEXT -EXEEXT -ac_ct_CXX -CPPFLAGS -LDFLAGS -CXXFLAGS -CXX -MAINT -MAINTAINER_MODE_FALSE -MAINTAINER_MODE_TRUE -AM_BACKSLASH -AM_DEFAULT_VERBOSITY -AM_DEFAULT_V -AM_V -am__untar -am__tar -AMTAR -am__leading_dot -SET_MAKE -AWK -mkdir_p -MKDIR_P -INSTALL_STRIP_PROGRAM -STRIP -install_sh -MAKEINFO -AUTOHEADER -AUTOMAKE -AUTOCONF -ACLOCAL -VERSION -PACKAGE -CYGPATH_W -am__isrc -INSTALL_DATA -INSTALL_SCRIPT -INSTALL_PROGRAM -target_os -target_vendor -target_cpu -target -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build -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 -enable_silent_rules -enable_maintainer_mode -enable_dependency_tracking -enable_cpp_check -enable_largefile -enable_libxml2 -with_libxml2_includes -with_libxml2_libraries -enable_curses -with_libcurses_includes -with_libcurses_libraries -enable_parcheck -enable_tls -with_tlslib -with_openssl_includes -with_openssl_libraries -with_libgnutls_includes -with_libgnutls_libraries -with_libnettle_includes -with_libnettle_libraries -enable_gzip -with_zlib_includes -with_zlib_libraries -enable_sigchld_handler -enable_debug -enable_tests -' - ac_precious_vars='build_alias -host_alias -target_alias -CXX -CXXFLAGS -LDFLAGS -LIBS -CPPFLAGS -CCC -CXXCPP -PKG_CONFIG -PKG_CONFIG_PATH -PKG_CONFIG_LIBDIR -libxml2_CFLAGS -libxml2_LIBS -ncurses_CFLAGS -ncurses_LIBS -openssl_CFLAGS -openssl_LIBS -gnutls_CFLAGS -gnutls_LIBS -nettle_CFLAGS -nettle_LIBS -zlib_CFLAGS -zlib_LIBS' - - -# 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 nzbget 22.0 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/nzbget] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] - --target=TARGET configure for building compilers for TARGET [HOST] -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of nzbget 22.0:";; - esac - cat <<\_ACEOF - -Optional Features: - --disable-option-checking ignore unrecognized --enable/--with options - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-silent-rules less verbose build output (undo: "make V=1") - --disable-silent-rules verbose build output (undo: "make V=0") - --enable-maintainer-mode - enable make rules and dependencies not useful (and - sometimes confusing) to the casual installer - --enable-dependency-tracking - do not reject slow dependency extractors - --disable-dependency-tracking - speeds up one-time build - --disable-cpp-check disable check for C++14 compiler features - --disable-largefile omit support for large files - --disable-libxml2 do not use libxml2 (removes dependency from - libxml2-library, only for development purposes) - --disable-curses do not use curses (removes dependency from - curses-library) - --disable-parcheck do not include par-check/-repair-support - --disable-tls do not use TLS/SSL (removes dependency from - TLS/SSL-libraries) - --disable-gzip disable gzip-compression/decompression (removes - dependency from zlib-library) - --disable-sigchld-handler - do not use sigchld-handler (the disabling may be - neccessary on 32-Bit BSD) - --enable-debug enable debugging - --enable-tests enable unit and integration tests - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-libxml2-includes=DIR - libxml2 include directory - --with-libxml2-libraries=DIR - libxml2 library directory - --with-libcurses-includes=DIR - libcurses include directory - --with-libcurses-libraries=DIR - libcurses library directory - --with-tlslib=(OpenSSL, GnuTLS) - TLS/SSL library to use - --with-openssl-includes=DIR - OpenSSL include directory - --with-openssl-libraries=DIR - OpenSSL library directory - --with-libgnutls-includes=DIR - GnuTLS include directory - --with-libgnutls-libraries=DIR - GnuTLS library directory - --with-libnettle-includes=DIR - Nettle include directory - --with-libnettle-libraries=DIR - Nettle library directory - --with-zlib-includes=DIR - zlib include directory - --with-zlib-libraries=DIR - zlib library directory - -Some influential environment variables: - CXX C++ compiler command - CXXFLAGS C++ compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - CXXCPP C++ preprocessor - PKG_CONFIG path to pkg-config utility - PKG_CONFIG_PATH - directories to add to pkg-config's search path - PKG_CONFIG_LIBDIR - path overriding pkg-config's built-in search path - libxml2_CFLAGS - C compiler flags for libxml2, overriding pkg-config - libxml2_LIBS - linker flags for libxml2, overriding pkg-config - ncurses_CFLAGS - C compiler flags for ncurses, overriding pkg-config - ncurses_LIBS - linker flags for ncurses, overriding pkg-config - openssl_CFLAGS - C compiler flags for openssl, overriding pkg-config - openssl_LIBS - linker flags for openssl, overriding pkg-config - gnutls_CFLAGS - C compiler flags for gnutls, overriding pkg-config - gnutls_LIBS linker flags for gnutls, overriding pkg-config - nettle_CFLAGS - C compiler flags for nettle, overriding pkg-config - nettle_LIBS linker flags for nettle, overriding pkg-config - zlib_CFLAGS C compiler flags for zlib, overriding pkg-config - zlib_LIBS linker flags for zlib, overriding pkg-config - -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 . -_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 -nzbget configure 22.0 -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. ## -## ------------------------ ## - -# ac_fn_cxx_try_compile LINENO -# ---------------------------- -# Try to compile conftest.$ac_ext, and return whether this succeeded. -ac_fn_cxx_try_compile () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext - 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 - (eval "$ac_compile") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$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 : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_cxx_try_compile - -# ac_fn_cxx_try_cpp LINENO -# ------------------------ -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. -ac_fn_cxx_try_cpp () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_cpp conftest.$ac_ext" -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_cpp conftest.$ac_ext") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$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 : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_cxx_try_cpp - -# 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 nzbget@nzbget.com ## -## ------------------------------------------- ##" - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=\$ac_header_compiler" -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_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;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_cxx_try_run - -# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES -# --------------------------------------------------------- -# Tests whether HEADER exists and can be compiled using the include files in -# INCLUDES, setting the cache variable VAR accordingly. -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 -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext 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_header_compile - -# ac_fn_cxx_try_link LINENO -# ------------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. -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 - 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>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$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 : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - 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_link - -# ac_fn_cxx_check_func LINENO FUNC VAR -# ------------------------------------ -# Tests whether FUNC exists, setting the cache variable VAR accordingly -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 -/* 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 - -#undef $2 - -/* 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 $2 (); -/* 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. */ -#if defined __stub_$2 || defined __stub___$2 -choke me -#endif - -int -main () -{ -return $2 (); - ; - return 0; -} -_ACEOF -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_decl LINENO SYMBOL VAR INCLUDES -# ----------------------------------------------- -# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR -# accordingly. -ac_fn_cxx_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 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -#ifndef $as_decl_name -#ifdef __cplusplus - (void) $as_decl_use; -#else - (void) $as_decl_name; -#endif -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext 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_decl - -# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES -# --------------------------------------------- -# Tests whether TYPE exists after having included INCLUDES, setting cache -# variable VAR accordingly. -ac_fn_cxx_check_type () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=no" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof ($2)) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof (($2))) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - -else - eval "$3=yes" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext 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_type -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 nzbget $as_me 22.0, 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 - - -ac_aux_dir= -for ac_dir in posix "$srcdir"/posix; 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 posix \"$srcdir\"/posix" "$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. - - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_build_alias=$build_alias -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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$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 - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$host_alias" = x; then - 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$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 - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 -$as_echo_n "checking target system type... " >&6; } -if ${ac_cv_target+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$target_alias" = x; then - ac_cv_target=$ac_cv_host -else - ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 -$as_echo "$ac_cv_target" >&6; } -case $ac_cv_target in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; -esac -target=$ac_cv_target -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_target -shift -target_cpu=$1 -target_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -target_os=$* -IFS=$ac_save_IFS -case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac - - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -test -n "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- -am__api_version='1.15' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - - done -IFS=$as_save_IFS - -rm -rf conftest.one conftest.two conftest.dir - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[\\\"\#\$\&\'\`$am_lf]*) - as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; -esac -case $srcdir in - *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - as_fn_error $? "ls -t appears to fail. Make sure there is not a broken - alias in your environment" "$LINENO" 5 - fi - if test "$2" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$2" = conftest.file - ) -then - # Ok. - : -else - as_fn_error $? "newly created file is older than distributed files! -Check your system clock" "$LINENO" 5 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi - -rm -f conftest.file - -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. -# By default was `s,x,x', remove it if useless. -ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` - -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` - -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} -fi - -if test x"${install_sh+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi - -# Installed binaries are usually stripped using 'strip' when the user -# run "make install-strip". However 'strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the 'STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_STRIP="${ac_tool_prefix}strip" - $as_echo "$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 -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - 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_STRIP="strip" - $as_echo "$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 -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - 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;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } -if test -z "$MKDIR_P"; then - if ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done - done -IFS=$as_save_IFS - -fi - - test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # 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=. - 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_AWK="$ac_prog" - $as_echo "$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 -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -# Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : - enableval=$enable_silent_rules; -fi - -case $enable_silent_rules in # ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=1;; -esac -am_make=${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - if $as_echo 'TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -$as_echo "$am_cv_make_support_nested_variables" >&6; } -if test $am_cv_make_support_nested_variables = yes; then - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AM_BACKSLASH='\' - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE='nzbget' - VERSION='22.0' - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -mkdir_p='$(MKDIR_P)' - -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AMTAR='$${TAR-tar}' - - -# We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar pax cpio none' - -am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' - - - - - - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 - fi -fi - - -ac_config_headers="$ac_config_headers config.h" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 -$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } - # Check whether --enable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then : - enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval -else - USE_MAINTAINER_MODE=no -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 -$as_echo "$USE_MAINTAINER_MODE" >&6; } - if test $USE_MAINTAINER_MODE = yes; then - MAINTAINER_MODE_TRUE= - MAINTAINER_MODE_FALSE='#' -else - MAINTAINER_MODE_TRUE='#' - MAINTAINER_MODE_FALSE= -fi - - MAINT=$MAINTAINER_MODE_TRUE - - - -# =========================================================================== -# http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional]) -# -# DESCRIPTION -# -# Check for baseline language coverage in the compiler for the specified -# version of the C++ standard. If necessary, add switches to CXXFLAGS to -# enable support. VERSION may be '11' (for the C++11 standard) or '14' -# (for the C++14 standard). -# -# The second argument, if specified, indicates whether you insist on an -# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. -# -std=c++11). If neither is specified, you get whatever works, with -# preference for an extended mode. -# -# The third argument, if specified 'mandatory' or if left unspecified, -# indicates that baseline support for the specified C++ standard is -# required and that the macro should error out if no mode with that -# support is found. If specified 'optional', then configuration proceeds -# regardless, after defining HAVE_CXX${VERSION} if and only if a -# supporting mode is found. -# -# LICENSE -# -# Copyright (c) 2008 Benjamin Kosnik -# Copyright (c) 2012 Zack Weinberg -# Copyright (c) 2013 Roy Stogner -# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov -# Copyright (c) 2015 Paul Norman -# Copyright (c) 2015 Moritz Klammler -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 1 - - - - - - - - - - - - - - - - - - - - - - -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 -if test -z "$CXX"; then - if test -n "$CCC"; 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 - 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 - 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=. - 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_CXX="$ac_tool_prefix$ac_prog" - $as_echo "$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 -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CXX" && break - done -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 -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 - 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=. - 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_CXX="$ac_prog" - $as_echo "$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 -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; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CXX" && break -done - - if test "x$ac_ct_CXX" = x; then - CXX="g++" - 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;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX - fi -fi - - fi -fi -# Provide some information about the compiler. -$as_echo "$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 - { { 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 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -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[^ ]*//'` - -# The possible output files: -ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" - -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { { ac_try="$ac_link_default" -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_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' -# 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. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && 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' - # 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. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -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 -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;} -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; } -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; } -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; } -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; }; 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 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) 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;} -as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } -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; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -FILE *f = fopen ("conftest.out", "w"); - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_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; } -if test "$cross_compiling" != yes; then - { { 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; } - if { ac_try='./conftest$ac_cv_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then - 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; } - fi - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -rm -f conftest.$ac_ext conftest$ac_cv_exeext 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 -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -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 - (eval "$ac_compile") 2>&5 - ac_status=$? - $as_echo "$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 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - $as_echo "$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;} -as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$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 -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GXX=yes -else - GXX= -fi -ac_test_CXXFLAGS=${CXXFLAGS+set} -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 - ac_cxx_werror_flag=yes - ac_cv_prog_cxx_g=no - CXXFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_prog_cxx_g=yes -else - CXXFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - -else - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -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 -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -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 - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - 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 -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 -$as_echo_n "checking for style of include used by $am_make... " >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 -$as_echo "$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then : - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CXX" am_compiler_list= - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CXX_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CXX_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=false - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with - # Solaris 10 /bin/sh. - echo '/* dummy */' > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with '-c' and '-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle '-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs. - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # After this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested. - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - msvc7 | msvc7msys | msvisualcpp | msvcmsys) - # This compiler won't grok '-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CXX_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CXX_dependencies_compiler_type=none -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then - am__fastdepCXX_TRUE= - am__fastdepCXX_FALSE='#' -else - am__fastdepCXX_TRUE='#' - am__fastdepCXX_FALSE= -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_path_TAR+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $TAR in - [\\/]* | ?:[\\/]*) - ac_cv_path_TAR="$TAR" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="$FALSE" - ;; -esac -fi -TAR=$ac_cv_path_TAR -if test -n "$TAR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 -$as_echo "$TAR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -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_path_MAKE+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MAKE in - [\\/]* | ?:[\\/]*) - ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="$FALSE" - ;; -esac -fi -MAKE=$ac_cv_path_MAKE -if test -n "$MAKE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 -$as_echo "$MAKE" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - - - -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 - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to test compiler features" >&5 -$as_echo_n "checking whether to test compiler features... " >&6; } -# Check whether --enable-cpp-check was given. -if test "${enable_cpp_check+set}" = set; then : - enableval=$enable_cpp_check; ENABLECPPCHECK=$enableval -else - ENABLECPPCHECK=yes -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLECPPCHECK" >&5 -$as_echo "$ENABLECPPCHECK" >&6; } -if test "$ENABLECPPCHECK" = "yes"; then - - ax_cxx_compile_cxx14_required=false - 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 - ac_success=no - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5 -$as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; } -if ${ax_cv_cxx_compile_cxx14+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - -// If the compiler admits that it is not ready for C++11, why torture it? -// Hopefully, this will speed up the test. - -#ifndef __cplusplus - -#error "This is not a C++ compiler" - -#elif __cplusplus < 201103L - -#error "This is not a C++11 compiler" - -#else - -namespace cxx11 -{ - - namespace test_static_assert - { - - template - struct check - { - static_assert(sizeof(int) <= sizeof(T), "not big enough"); - }; - - } - - namespace test_final_override - { - - struct Base - { - virtual void f() {} - }; - - struct Derived : public Base - { - virtual void f() override {} - }; - - } - - namespace test_double_right_angle_brackets - { - - template < typename T > - struct check {}; - - typedef check single_type; - typedef check> double_type; - typedef check>> triple_type; - typedef check>>> quadruple_type; - - } - - namespace test_decltype - { - - int - f() - { - int a = 1; - decltype(a) b = 2; - return a + b; - } - - } - - namespace test_type_deduction - { - - template < typename T1, typename T2 > - struct is_same - { - static const bool value = false; - }; - - template < typename T > - struct is_same - { - static const bool value = true; - }; - - template < typename T1, typename T2 > - auto - add(T1 a1, T2 a2) -> decltype(a1 + a2) - { - return a1 + a2; - } - - int - test(const int c, volatile int v) - { - static_assert(is_same::value == true, ""); - static_assert(is_same::value == false, ""); - static_assert(is_same::value == false, ""); - auto ac = c; - auto av = v; - auto sumi = ac + av + 'x'; - auto sumf = ac + av + 1.0; - static_assert(is_same::value == true, ""); - static_assert(is_same::value == true, ""); - static_assert(is_same::value == true, ""); - static_assert(is_same::value == false, ""); - static_assert(is_same::value == true, ""); - return (sumf > 0.0) ? sumi : add(c, v); - } - - } - - namespace test_noexcept - { - - int f() { return 0; } - int g() noexcept { return 0; } - - static_assert(noexcept(f()) == false, ""); - static_assert(noexcept(g()) == true, ""); - - } - - namespace test_constexpr - { - - template < typename CharT > - unsigned long constexpr - strlen_c_r(const CharT *const s, const unsigned long acc) noexcept - { - return *s ? strlen_c_r(s + 1, acc + 1) : acc; - } - - template < typename CharT > - unsigned long constexpr - strlen_c(const CharT *const s) noexcept - { - return strlen_c_r(s, 0UL); - } - - static_assert(strlen_c("") == 0UL, ""); - static_assert(strlen_c("1") == 1UL, ""); - static_assert(strlen_c("example") == 7UL, ""); - static_assert(strlen_c("another\0example") == 7UL, ""); - - } - - namespace test_rvalue_references - { - - template < int N > - struct answer - { - static constexpr int value = N; - }; - - answer<1> f(int&) { return answer<1>(); } - answer<2> f(const int&) { return answer<2>(); } - answer<3> f(int&&) { return answer<3>(); } - - void - test() - { - int i = 0; - const int c = 0; - static_assert(decltype(f(i))::value == 1, ""); - static_assert(decltype(f(c))::value == 2, ""); - static_assert(decltype(f(0))::value == 3, ""); - } - - } - - namespace test_uniform_initialization - { - - struct test - { - static const int zero {}; - static const int one {1}; - }; - - static_assert(test::zero == 0, ""); - static_assert(test::one == 1, ""); - - } - - namespace test_lambdas - { - - void - test1() - { - auto lambda1 = [](){}; - auto lambda2 = lambda1; - lambda1(); - lambda2(); - } - - int - test2() - { - auto a = [](int i, int j){ return i + j; }(1, 2); - auto b = []() -> int { return '0'; }(); - auto c = [=](){ return a + b; }(); - auto d = [&](){ return c; }(); - auto e = [a, &b](int x) mutable { - const auto identity = [](int y){ return y; }; - for (auto i = 0; i < a; ++i) - a += b--; - return x + identity(a + b); - }(0); - return a + b + c + d + e; - } - - int - test3() - { - const auto nullary = [](){ return 0; }; - const auto unary = [](int x){ return x; }; - using nullary_t = decltype(nullary); - using unary_t = decltype(unary); - const auto higher1st = [](nullary_t f){ return f(); }; - const auto higher2nd = [unary](nullary_t f1){ - return [unary, f1](unary_t f2){ return f2(unary(f1())); }; - }; - return higher1st(nullary) + higher2nd(nullary)(unary); - } - - } - - namespace test_variadic_templates - { - - template - struct sum; - - template - struct sum - { - static constexpr auto value = N0 + sum::value; - }; - - template <> - struct sum<> - { - static constexpr auto value = 0; - }; - - static_assert(sum<>::value == 0, ""); - static_assert(sum<1>::value == 1, ""); - static_assert(sum<23>::value == 23, ""); - static_assert(sum<1, 2>::value == 3, ""); - static_assert(sum<5, 5, 11>::value == 21, ""); - static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); - - } - - // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae - // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function - // because of this. - namespace test_template_alias_sfinae - { - - struct foo {}; - - template - using member = typename T::member_type; - - template - void func(...) {} - - template - void func(member*) {} - - void test(); - - void test() { func(0); } - - } - -} // namespace cxx11 - -#endif // __cplusplus >= 201103L - - - - -// If the compiler admits that it is not ready for C++14, why torture it? -// Hopefully, this will speed up the test. - -#ifndef __cplusplus - -#error "This is not a C++ compiler" - -//check for full C++14 support (disabed) -//#elif __cplusplus < 201402L - -// check for partial C++14 support (accept gcc 4.9) -#elif __cplusplus < 201300L - -#error "This is not a C++14 compiler" - -#else - -namespace cxx14 -{ - - namespace test_polymorphic_lambdas - { - - int - test() - { - const auto lambda = [](auto&&... args){ - const auto istiny = [](auto x){ - return (sizeof(x) == 1UL) ? 1 : 0; - }; - const int aretiny[] = { istiny(args)... }; - return aretiny[0]; - }; - return lambda(1, 1L, 1.0f, '1'); - } - - } - - namespace test_binary_literals - { - - constexpr auto ivii = 0b0000000000101010; - static_assert(ivii == 42, "wrong value"); - - } - -/* - namespace test_generalized_constexpr - { - - template < typename CharT > - constexpr unsigned long - strlen_c(const CharT *const s) noexcept - { - auto length = 0UL; - for (auto p = s; *p; ++p) - ++length; - return length; - } - - static_assert(strlen_c("") == 0UL, ""); - static_assert(strlen_c("x") == 1UL, ""); - static_assert(strlen_c("test") == 4UL, ""); - static_assert(strlen_c("another\0test") == 7UL, ""); - - } -*/ - - namespace test_lambda_init_capture - { - - int - test() - { - auto x = 0; - const auto lambda1 = [a = x](int b){ return a + b; }; - const auto lambda2 = [a = lambda1(x)](){ return a; }; - return lambda2(); - } - - } - - namespace test_digit_seperators - { - - constexpr auto ten_million = 100'000'000; - static_assert(ten_million == 100000000, ""); - - } - - namespace test_return_type_deduction - { - - auto f(int& x) { return x; } - decltype(auto) g(int& x) { return x; } - - template < typename T1, typename T2 > - struct is_same - { - static constexpr auto value = false; - }; - - template < typename T > - struct is_same - { - static constexpr auto value = true; - }; - - int - test() - { - auto x = 0; - static_assert(is_same::value, ""); - static_assert(is_same::value, ""); - return x; - } - - } - -} // namespace cxx14 - -#endif // __cplusplus >= 201402L - - - -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ax_cv_cxx_compile_cxx14=yes -else - ax_cv_cxx_compile_cxx14=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5 -$as_echo "$ax_cv_cxx_compile_cxx14" >&6; } - if test x$ax_cv_cxx_compile_cxx14 = xyes; then - ac_success=yes - fi - - if test x$ac_success = xno; then - for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do - cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS $switch" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - -// If the compiler admits that it is not ready for C++11, why torture it? -// Hopefully, this will speed up the test. - -#ifndef __cplusplus - -#error "This is not a C++ compiler" - -#elif __cplusplus < 201103L - -#error "This is not a C++11 compiler" - -#else - -namespace cxx11 -{ - - namespace test_static_assert - { - - template - struct check - { - static_assert(sizeof(int) <= sizeof(T), "not big enough"); - }; - - } - - namespace test_final_override - { - - struct Base - { - virtual void f() {} - }; - - struct Derived : public Base - { - virtual void f() override {} - }; - - } - - namespace test_double_right_angle_brackets - { - - template < typename T > - struct check {}; - - typedef check single_type; - typedef check> double_type; - typedef check>> triple_type; - typedef check>>> quadruple_type; - - } - - namespace test_decltype - { - - int - f() - { - int a = 1; - decltype(a) b = 2; - return a + b; - } - - } - - namespace test_type_deduction - { - - template < typename T1, typename T2 > - struct is_same - { - static const bool value = false; - }; - - template < typename T > - struct is_same - { - static const bool value = true; - }; - - template < typename T1, typename T2 > - auto - add(T1 a1, T2 a2) -> decltype(a1 + a2) - { - return a1 + a2; - } - - int - test(const int c, volatile int v) - { - static_assert(is_same::value == true, ""); - static_assert(is_same::value == false, ""); - static_assert(is_same::value == false, ""); - auto ac = c; - auto av = v; - auto sumi = ac + av + 'x'; - auto sumf = ac + av + 1.0; - static_assert(is_same::value == true, ""); - static_assert(is_same::value == true, ""); - static_assert(is_same::value == true, ""); - static_assert(is_same::value == false, ""); - static_assert(is_same::value == true, ""); - return (sumf > 0.0) ? sumi : add(c, v); - } - - } - - namespace test_noexcept - { - - int f() { return 0; } - int g() noexcept { return 0; } - - static_assert(noexcept(f()) == false, ""); - static_assert(noexcept(g()) == true, ""); - - } - - namespace test_constexpr - { - - template < typename CharT > - unsigned long constexpr - strlen_c_r(const CharT *const s, const unsigned long acc) noexcept - { - return *s ? strlen_c_r(s + 1, acc + 1) : acc; - } - - template < typename CharT > - unsigned long constexpr - strlen_c(const CharT *const s) noexcept - { - return strlen_c_r(s, 0UL); - } - - static_assert(strlen_c("") == 0UL, ""); - static_assert(strlen_c("1") == 1UL, ""); - static_assert(strlen_c("example") == 7UL, ""); - static_assert(strlen_c("another\0example") == 7UL, ""); - - } - - namespace test_rvalue_references - { - - template < int N > - struct answer - { - static constexpr int value = N; - }; - - answer<1> f(int&) { return answer<1>(); } - answer<2> f(const int&) { return answer<2>(); } - answer<3> f(int&&) { return answer<3>(); } - - void - test() - { - int i = 0; - const int c = 0; - static_assert(decltype(f(i))::value == 1, ""); - static_assert(decltype(f(c))::value == 2, ""); - static_assert(decltype(f(0))::value == 3, ""); - } - - } - - namespace test_uniform_initialization - { - - struct test - { - static const int zero {}; - static const int one {1}; - }; - - static_assert(test::zero == 0, ""); - static_assert(test::one == 1, ""); - - } - - namespace test_lambdas - { - - void - test1() - { - auto lambda1 = [](){}; - auto lambda2 = lambda1; - lambda1(); - lambda2(); - } - - int - test2() - { - auto a = [](int i, int j){ return i + j; }(1, 2); - auto b = []() -> int { return '0'; }(); - auto c = [=](){ return a + b; }(); - auto d = [&](){ return c; }(); - auto e = [a, &b](int x) mutable { - const auto identity = [](int y){ return y; }; - for (auto i = 0; i < a; ++i) - a += b--; - return x + identity(a + b); - }(0); - return a + b + c + d + e; - } - - int - test3() - { - const auto nullary = [](){ return 0; }; - const auto unary = [](int x){ return x; }; - using nullary_t = decltype(nullary); - using unary_t = decltype(unary); - const auto higher1st = [](nullary_t f){ return f(); }; - const auto higher2nd = [unary](nullary_t f1){ - return [unary, f1](unary_t f2){ return f2(unary(f1())); }; - }; - return higher1st(nullary) + higher2nd(nullary)(unary); - } - - } - - namespace test_variadic_templates - { - - template - struct sum; - - template - struct sum - { - static constexpr auto value = N0 + sum::value; - }; - - template <> - struct sum<> - { - static constexpr auto value = 0; - }; - - static_assert(sum<>::value == 0, ""); - static_assert(sum<1>::value == 1, ""); - static_assert(sum<23>::value == 23, ""); - static_assert(sum<1, 2>::value == 3, ""); - static_assert(sum<5, 5, 11>::value == 21, ""); - static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); - - } - - // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae - // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function - // because of this. - namespace test_template_alias_sfinae - { - - struct foo {}; - - template - using member = typename T::member_type; - - template - void func(...) {} - - template - void func(member*) {} - - void test(); - - void test() { func(0); } - - } - -} // namespace cxx11 - -#endif // __cplusplus >= 201103L - - - - -// If the compiler admits that it is not ready for C++14, why torture it? -// Hopefully, this will speed up the test. - -#ifndef __cplusplus - -#error "This is not a C++ compiler" - -//check for full C++14 support (disabed) -//#elif __cplusplus < 201402L - -// check for partial C++14 support (accept gcc 4.9) -#elif __cplusplus < 201300L - -#error "This is not a C++14 compiler" - -#else - -namespace cxx14 -{ - - namespace test_polymorphic_lambdas - { - - int - test() - { - const auto lambda = [](auto&&... args){ - const auto istiny = [](auto x){ - return (sizeof(x) == 1UL) ? 1 : 0; - }; - const int aretiny[] = { istiny(args)... }; - return aretiny[0]; - }; - return lambda(1, 1L, 1.0f, '1'); - } - - } - - namespace test_binary_literals - { - - constexpr auto ivii = 0b0000000000101010; - static_assert(ivii == 42, "wrong value"); - - } - -/* - namespace test_generalized_constexpr - { - - template < typename CharT > - constexpr unsigned long - strlen_c(const CharT *const s) noexcept - { - auto length = 0UL; - for (auto p = s; *p; ++p) - ++length; - return length; - } - - static_assert(strlen_c("") == 0UL, ""); - static_assert(strlen_c("x") == 1UL, ""); - static_assert(strlen_c("test") == 4UL, ""); - static_assert(strlen_c("another\0test") == 7UL, ""); - - } -*/ - - namespace test_lambda_init_capture - { - - int - test() - { - auto x = 0; - const auto lambda1 = [a = x](int b){ return a + b; }; - const auto lambda2 = [a = lambda1(x)](){ return a; }; - return lambda2(); - } - - } - - namespace test_digit_seperators - { - - constexpr auto ten_million = 100'000'000; - static_assert(ten_million == 100000000, ""); - - } - - namespace test_return_type_deduction - { - - auto f(int& x) { return x; } - decltype(auto) g(int& x) { return x; } - - template < typename T1, typename T2 > - struct is_same - { - static constexpr auto value = false; - }; - - template < typename T > - struct is_same - { - static constexpr auto value = true; - }; - - int - test() - { - auto x = 0; - static_assert(is_same::value, ""); - static_assert(is_same::value, ""); - return x; - } - - } - -} // namespace cxx14 - -#endif // __cplusplus >= 201402L - - - -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - eval $cachevar=yes -else - eval $cachevar=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CXXFLAGS="$ac_save_CXXFLAGS" -fi -eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - if eval test x\$$cachevar = xyes; then - CXXFLAGS="$CXXFLAGS $switch" - ac_success=yes - break - fi - done - fi - - if test x$ac_success = xno; then - for switch in -std=gnu++14 -std=gnu++0x; do - cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS $switch" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - -// If the compiler admits that it is not ready for C++11, why torture it? -// Hopefully, this will speed up the test. - -#ifndef __cplusplus - -#error "This is not a C++ compiler" - -#elif __cplusplus < 201103L - -#error "This is not a C++11 compiler" - -#else - -namespace cxx11 -{ - - namespace test_static_assert - { - - template - struct check - { - static_assert(sizeof(int) <= sizeof(T), "not big enough"); - }; - - } - - namespace test_final_override - { - - struct Base - { - virtual void f() {} - }; - - struct Derived : public Base - { - virtual void f() override {} - }; - - } - - namespace test_double_right_angle_brackets - { - - template < typename T > - struct check {}; - - typedef check single_type; - typedef check> double_type; - typedef check>> triple_type; - typedef check>>> quadruple_type; - - } - - namespace test_decltype - { - - int - f() - { - int a = 1; - decltype(a) b = 2; - return a + b; - } - - } - - namespace test_type_deduction - { - - template < typename T1, typename T2 > - struct is_same - { - static const bool value = false; - }; - - template < typename T > - struct is_same - { - static const bool value = true; - }; - - template < typename T1, typename T2 > - auto - add(T1 a1, T2 a2) -> decltype(a1 + a2) - { - return a1 + a2; - } - - int - test(const int c, volatile int v) - { - static_assert(is_same::value == true, ""); - static_assert(is_same::value == false, ""); - static_assert(is_same::value == false, ""); - auto ac = c; - auto av = v; - auto sumi = ac + av + 'x'; - auto sumf = ac + av + 1.0; - static_assert(is_same::value == true, ""); - static_assert(is_same::value == true, ""); - static_assert(is_same::value == true, ""); - static_assert(is_same::value == false, ""); - static_assert(is_same::value == true, ""); - return (sumf > 0.0) ? sumi : add(c, v); - } - - } - - namespace test_noexcept - { - - int f() { return 0; } - int g() noexcept { return 0; } - - static_assert(noexcept(f()) == false, ""); - static_assert(noexcept(g()) == true, ""); - - } - - namespace test_constexpr - { - - template < typename CharT > - unsigned long constexpr - strlen_c_r(const CharT *const s, const unsigned long acc) noexcept - { - return *s ? strlen_c_r(s + 1, acc + 1) : acc; - } - - template < typename CharT > - unsigned long constexpr - strlen_c(const CharT *const s) noexcept - { - return strlen_c_r(s, 0UL); - } - - static_assert(strlen_c("") == 0UL, ""); - static_assert(strlen_c("1") == 1UL, ""); - static_assert(strlen_c("example") == 7UL, ""); - static_assert(strlen_c("another\0example") == 7UL, ""); - - } - - namespace test_rvalue_references - { - - template < int N > - struct answer - { - static constexpr int value = N; - }; - - answer<1> f(int&) { return answer<1>(); } - answer<2> f(const int&) { return answer<2>(); } - answer<3> f(int&&) { return answer<3>(); } - - void - test() - { - int i = 0; - const int c = 0; - static_assert(decltype(f(i))::value == 1, ""); - static_assert(decltype(f(c))::value == 2, ""); - static_assert(decltype(f(0))::value == 3, ""); - } - - } - - namespace test_uniform_initialization - { - - struct test - { - static const int zero {}; - static const int one {1}; - }; - - static_assert(test::zero == 0, ""); - static_assert(test::one == 1, ""); - - } - - namespace test_lambdas - { - - void - test1() - { - auto lambda1 = [](){}; - auto lambda2 = lambda1; - lambda1(); - lambda2(); - } - - int - test2() - { - auto a = [](int i, int j){ return i + j; }(1, 2); - auto b = []() -> int { return '0'; }(); - auto c = [=](){ return a + b; }(); - auto d = [&](){ return c; }(); - auto e = [a, &b](int x) mutable { - const auto identity = [](int y){ return y; }; - for (auto i = 0; i < a; ++i) - a += b--; - return x + identity(a + b); - }(0); - return a + b + c + d + e; - } - - int - test3() - { - const auto nullary = [](){ return 0; }; - const auto unary = [](int x){ return x; }; - using nullary_t = decltype(nullary); - using unary_t = decltype(unary); - const auto higher1st = [](nullary_t f){ return f(); }; - const auto higher2nd = [unary](nullary_t f1){ - return [unary, f1](unary_t f2){ return f2(unary(f1())); }; - }; - return higher1st(nullary) + higher2nd(nullary)(unary); - } - - } - - namespace test_variadic_templates - { - - template - struct sum; - - template - struct sum - { - static constexpr auto value = N0 + sum::value; - }; - - template <> - struct sum<> - { - static constexpr auto value = 0; - }; - - static_assert(sum<>::value == 0, ""); - static_assert(sum<1>::value == 1, ""); - static_assert(sum<23>::value == 23, ""); - static_assert(sum<1, 2>::value == 3, ""); - static_assert(sum<5, 5, 11>::value == 21, ""); - static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); - - } - - // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae - // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function - // because of this. - namespace test_template_alias_sfinae - { - - struct foo {}; - - template - using member = typename T::member_type; - - template - void func(...) {} - - template - void func(member*) {} - - void test(); - - void test() { func(0); } - - } - -} // namespace cxx11 - -#endif // __cplusplus >= 201103L - - - - -// If the compiler admits that it is not ready for C++14, why torture it? -// Hopefully, this will speed up the test. - -#ifndef __cplusplus - -#error "This is not a C++ compiler" - -//check for full C++14 support (disabed) -//#elif __cplusplus < 201402L - -// check for partial C++14 support (accept gcc 4.9) -#elif __cplusplus < 201300L - -#error "This is not a C++14 compiler" - -#else - -namespace cxx14 -{ - - namespace test_polymorphic_lambdas - { - - int - test() - { - const auto lambda = [](auto&&... args){ - const auto istiny = [](auto x){ - return (sizeof(x) == 1UL) ? 1 : 0; - }; - const int aretiny[] = { istiny(args)... }; - return aretiny[0]; - }; - return lambda(1, 1L, 1.0f, '1'); - } - - } - - namespace test_binary_literals - { - - constexpr auto ivii = 0b0000000000101010; - static_assert(ivii == 42, "wrong value"); - - } - -/* - namespace test_generalized_constexpr - { - - template < typename CharT > - constexpr unsigned long - strlen_c(const CharT *const s) noexcept - { - auto length = 0UL; - for (auto p = s; *p; ++p) - ++length; - return length; - } - - static_assert(strlen_c("") == 0UL, ""); - static_assert(strlen_c("x") == 1UL, ""); - static_assert(strlen_c("test") == 4UL, ""); - static_assert(strlen_c("another\0test") == 7UL, ""); - - } -*/ - - namespace test_lambda_init_capture - { - - int - test() - { - auto x = 0; - const auto lambda1 = [a = x](int b){ return a + b; }; - const auto lambda2 = [a = lambda1(x)](){ return a; }; - return lambda2(); - } - - } - - namespace test_digit_seperators - { - - constexpr auto ten_million = 100'000'000; - static_assert(ten_million == 100000000, ""); - - } - - namespace test_return_type_deduction - { - - auto f(int& x) { return x; } - decltype(auto) g(int& x) { return x; } - - template < typename T1, typename T2 > - struct is_same - { - static constexpr auto value = false; - }; - - template < typename T > - struct is_same - { - static constexpr auto value = true; - }; - - int - test() - { - auto x = 0; - static_assert(is_same::value, ""); - static_assert(is_same::value, ""); - return x; - } - - } - -} // namespace cxx14 - -#endif // __cplusplus >= 201402L - - - -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - eval $cachevar=yes -else - eval $cachevar=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CXXFLAGS="$ac_save_CXXFLAGS" -fi -eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - if eval test x\$$cachevar = xyes; then - CXXFLAGS="$CXXFLAGS $switch" - ac_success=yes - break - fi - done - fi - - 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 - - if test x$ax_cxx_compile_cxx14_required = xtrue; then - if test x$ac_success = xno; then - as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5 - fi - else - if test x$ac_success = xno; then - HAVE_CXX14=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5 -$as_echo "$as_me: No compiler with C++14 support was found" >&6;} - else - HAVE_CXX14=1 - -$as_echo "#define HAVE_CXX14 1" >>confdefs.h - - fi - - - fi - - if test "$HAVE_CXX14" != "1"; then - as_fn_error $? "\"A compiler with support for C++14 language features is required. For details visit http://nzbget.com/cpp14\"" "$LINENO" 5 - fi -fi - -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 -{ $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; } -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" - 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 - Syntax error -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# 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 : - break -fi - - done - ac_cv_prog_CXXCPP=$CXXCPP - -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; } -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 - Syntax error -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# 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 : - -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 $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } -fi - -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 - - -{ $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 -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 - 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 - 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 : - -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 - -# 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 - -fi - -done - - -for ac_header in sys/prctl.h regex.h endian.h getopt.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 -$as_echo_n "checking for library containing pthread_create... " >&6; } -if ${ac_cv_search_pthread_create+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char pthread_create (); -int -main () -{ -return pthread_create (); - ; - return 0; -} -_ACEOF -for ac_lib in '' pthread; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_pthread_create=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_pthread_create+:} false; then : - break -fi -done -if ${ac_cv_search_pthread_create+:} false; then : - -else - ac_cv_search_pthread_create=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 -$as_echo "$ac_cv_search_pthread_create" >&6; } -ac_res=$ac_cv_search_pthread_create -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 -$as_echo_n "checking for library containing socket... " >&6; } -if ${ac_cv_search_socket+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -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 socket (); -int -main () -{ -return socket (); - ; - return 0; -} -_ACEOF -for ac_lib in '' socket; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_socket=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_socket+:} false; then : - break -fi -done -if ${ac_cv_search_socket+:} false; then : - -else - ac_cv_search_socket=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 -$as_echo "$ac_cv_search_socket" >&6; } -ac_res=$ac_cv_search_socket -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 -$as_echo_n "checking for library containing inet_addr... " >&6; } -if ${ac_cv_search_inet_addr+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -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 inet_addr (); -int -main () -{ -return inet_addr (); - ; - return 0; -} -_ACEOF -for ac_lib in '' nsl; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_inet_addr=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_inet_addr+:} false; then : - break -fi -done -if ${ac_cv_search_inet_addr+:} false; then : - -else - ac_cv_search_inet_addr=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5 -$as_echo "$ac_cv_search_inet_addr" >&6; } -ac_res=$ac_cv_search_inet_addr -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 -$as_echo_n "checking for library containing hstrerror... " >&6; } -if ${ac_cv_search_hstrerror+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char hstrerror (); -int -main () -{ -return hstrerror (); - ; - return 0; -} -_ACEOF -for ac_lib in '' resolv; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_hstrerror=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_hstrerror+:} false; then : - break -fi -done -if ${ac_cv_search_hstrerror+:} false; then : - -else - ac_cv_search_hstrerror=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 -$as_echo "$ac_cv_search_hstrerror" >&6; } -ac_res=$ac_cv_search_hstrerror -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - - -ac_fn_cxx_check_func "$LINENO" "lockf" "ac_cv_func_lockf" -if test "x$ac_cv_func_lockf" = xyes; then : - ac_fn_cxx_check_decl "$LINENO" "lockf" "ac_cv_have_decl_lockf" "#include -" -if test "x$ac_cv_have_decl_lockf" = xyes; then : - -$as_echo "#define HAVE_LOCKF 1" >>confdefs.h - -fi - -fi - -ac_fn_cxx_check_func "$LINENO" "pthread_cancel" "ac_cv_func_pthread_cancel" -if test "x$ac_cv_func_pthread_cancel" = xyes; then : - ac_fn_cxx_check_decl "$LINENO" "pthread_cancel" "ac_cv_have_decl_pthread_cancel" "#include -" -if test "x$ac_cv_have_decl_pthread_cancel" = xyes; then : - -$as_echo "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h - -fi - -fi - - - -ac_fn_cxx_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" -if test "x$ac_cv_func_getopt_long" = xyes; then : - -$as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h - -fi - - - -ac_fn_cxx_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync" -if test "x$ac_cv_func_fdatasync" = xyes; then : - -$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h - -fi - -ac_fn_cxx_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include -" -if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then : - -$as_echo "#define HAVE_FULLFSYNC 1" >>confdefs.h - -fi - - -# Check whether --enable-largefile was given. -if test "${enable_largefile+set}" = set; then : - enableval=$enable_largefile; -fi - -if test "$enable_largefile" != no; then - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 -$as_echo_n "checking for special C compiler options needed for large files... " >&6; } -if ${ac_cv_sys_largefile_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_sys_largefile_CC=no - if test "$GCC" != yes; then - ac_save_CC=$CC - while :; do - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF - if ac_fn_cxx_try_compile "$LINENO"; then : - break -fi -rm -f core conftest.err conftest.$ac_objext - CC="$CC -n32" - if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_sys_largefile_CC=' -n32'; break -fi -rm -f core conftest.err conftest.$ac_objext - break - done - CC=$ac_save_CC - rm -f conftest.$ac_ext - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 -$as_echo "$ac_cv_sys_largefile_CC" >&6; } - if test "$ac_cv_sys_largefile_CC" != no; then - CC=$CC$ac_cv_sys_largefile_CC - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } -if ${ac_cv_sys_file_offset_bits+:} false; then : - $as_echo_n "(cached) " >&6 -else - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_sys_file_offset_bits=no; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define _FILE_OFFSET_BITS 64 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_sys_file_offset_bits=64; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_file_offset_bits=unknown - break -done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 -$as_echo "$ac_cv_sys_file_offset_bits" >&6; } -case $ac_cv_sys_file_offset_bits in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits -_ACEOF -;; -esac -rm -rf conftest* - if test $ac_cv_sys_file_offset_bits = unknown; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 -$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } -if ${ac_cv_sys_large_files+:} false; then : - $as_echo_n "(cached) " >&6 -else - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_sys_large_files=no; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define _LARGE_FILES 1 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_sys_large_files=1; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_large_files=unknown - break -done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 -$as_echo "$ac_cv_sys_large_files" >&6; } -case $ac_cv_sys_large_files in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _LARGE_FILES $ac_cv_sys_large_files -_ACEOF -;; -esac -rm -rf conftest* - fi - - -fi - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime_r" >&5 -$as_echo_n "checking for ctime_r... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ - time_t clock; char buf[26]; ctime_r(&clock, buf, 26); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, and it takes 3 arguments" >&5 -$as_echo "yes, and it takes 3 arguments" >&6; } - FOUND="yes" - -$as_echo "#define HAVE_CTIME_R_3 1" >>confdefs.h - -else - FOUND="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -if test "$FOUND" = "no"; then -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ - time_t clock; char buf[26]; ctime_r(&clock, buf); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, and it takes 2 arguments" >&5 -$as_echo "yes, and it takes 2 arguments" >&6; } - FOUND="yes" - -$as_echo "#define HAVE_CTIME_R_2 1" >>confdefs.h - -else - FOUND="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -if test "$FOUND" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - as_fn_error $? "\"function ctime_r not found\"" "$LINENO" 5 -fi - - -ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" -if test "x$ac_cv_func_getaddrinfo" = xyes; then : - FOUND="yes" - -$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 -$as_echo_n "checking for library containing getaddrinfo... " >&6; } -if ${ac_cv_search_getaddrinfo+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char getaddrinfo (); -int -main () -{ -return getaddrinfo (); - ; - return 0; -} -_ACEOF -for ac_lib in '' nsl; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_getaddrinfo=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_getaddrinfo+:} false; then : - break -fi -done -if ${ac_cv_search_getaddrinfo+:} false; then : - -else - ac_cv_search_getaddrinfo=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 -$as_echo "$ac_cv_search_getaddrinfo" >&6; } -ac_res=$ac_cv_search_getaddrinfo -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -else - FOUND="no" -fi - - - -if test "$FOUND" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r" >&5 -$as_echo_n "checking for gethostbyname_r... " >&6; } - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ - char* szHost; struct hostent hinfobuf; char* strbuf; int h_errnop; - struct hostent* hinfo = gethostbyname_r(szHost, &hinfobuf, strbuf, 1024, &h_errnop); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, and it takes 5 arguments" >&5 -$as_echo "yes, and it takes 5 arguments" >&6; } - FOUND="yes" - -$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h - -else - FOUND="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - - if test "$FOUND" = "no"; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ - char* szHost; struct hostent* hinfo; struct hostent hinfobuf; char* strbuf; int h_errnop; - int err = gethostbyname_r(szHost, &hinfobuf, strbuf, 1024, &hinfo, &h_errnop); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, and it takes 6 arguments" >&5 -$as_echo "yes, and it takes 6 arguments" >&6; } - FOUND="yes" - -$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h - -else - FOUND="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - - if test "$FOUND" = "no"; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ - char* szHost; struct hostent hinfo; struct hostent_data hinfobuf; - int err = gethostbyname_r(szHost, &hinfo, &hinfobuf); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, and it takes 3 arguments" >&5 -$as_echo "yes, and it takes 3 arguments" >&6; } - FOUND="yes" - -$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - FOUND="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - - if test "$FOUND" = "yes"; then - -$as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5 -$as_echo_n "checking for library containing gethostbyname_r... " >&6; } -if ${ac_cv_search_gethostbyname_r+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char gethostbyname_r (); -int -main () -{ -return gethostbyname_r (); - ; - return 0; -} -_ACEOF -for ac_lib in '' nsl; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_gethostbyname_r=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_gethostbyname_r+:} false; then : - break -fi -done -if ${ac_cv_search_gethostbyname_r+:} false; then : - -else - ac_cv_search_gethostbyname_r=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5 -$as_echo "$ac_cv_search_gethostbyname_r" >&6; } -ac_res=$ac_cv_search_gethostbyname_r -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - fi -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (socklen_t)" >&5 -$as_echo_n "checking for type of socket length (socklen_t)... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include -#include -int -main () -{ - -(void)getsockopt (1, 1, 1, NULL, (socklen_t*)NULL) - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t" >&5 -$as_echo "socklen_t" >&6; } - SOCKLEN_T=socklen_t -else - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include -#include -int -main () -{ - -(void)getsockopt (1, 1, 1, NULL, (size_t*)NULL) - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t" >&5 -$as_echo "size_t" >&6; } - SOCKLEN_T=size_t -else - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include -#include -int -main () -{ - -(void)getsockopt (1, 1, 1, NULL, (int*)NULL) - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 -$as_echo "int" >&6; } - SOCKLEN_T=int -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5 -$as_echo "$as_me: WARNING: could not determine" >&2;} - SOCKLEN_T=int -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -cat >>confdefs.h <<_ACEOF -#define SOCKLEN_T $SOCKLEN_T -_ACEOF - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpu cores via sysconf" >&5 -$as_echo_n "checking for cpu cores via sysconf... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ - int a = _SC_NPROCESSORS_ONLN; - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - FOUND="yes" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define HAVE_SC_NPROCESSORS_ONLN 1" >>confdefs.h - -else - FOUND="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libxml2" >&5 -$as_echo_n "checking whether to use libxml2... " >&6; } -# Check whether --enable-libxml2 was given. -if test "${enable_libxml2+set}" = set; then : - enableval=$enable_libxml2; USELIBXML2=$enableval -else - USELIBXML2=yes -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USELIBXML2" >&5 -$as_echo "$USELIBXML2" >&6; } -if test "$USELIBXML2" = "yes"; then - -# Check whether --with-libxml2_includes was given. -if test "${with_libxml2_includes+set}" = set; then : - withval=$with_libxml2_includes; CPPFLAGS="${CPPFLAGS} -I${withval}" - INCVAL="yes" -else - INCVAL="no" -fi - - -# Check whether --with-libxml2_libraries was given. -if test "${with_libxml2_libraries+set}" = set; then : - withval=$with_libxml2_libraries; LDFLAGS="${LDFLAGS} -L${withval}" - LIBVAL="yes" -else - LIBVAL="no" -fi - - if test "$INCVAL" = "no" -o "$LIBVAL" = "no"; then - - - - - - - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_PKG_CONFIG"; then - ac_pt_PKG_CONFIG=$PKG_CONFIG - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ac_pt_PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG -if test -n "$ac_pt_PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_pt_PKG_CONFIG" = x; then - PKG_CONFIG="" - 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;} -ac_tool_warned=yes ;; -esac - PKG_CONFIG=$ac_pt_PKG_CONFIG - fi -else - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -fi - -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=0.9.0 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - PKG_CONFIG="" - fi -fi - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5 -$as_echo_n "checking for libxml-2.0... " >&6; } - -if test -n "$libxml2_CFLAGS"; then - pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$libxml2_LIBS"; then - pkg_cv_libxml2_LIBS="$libxml2_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` - else - libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$libxml2_PKG_ERRORS" >&5 - - as_fn_error $? "\"libxml2 library not found\"" "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - as_fn_error $? "\"libxml2 library not found\"" "$LINENO" 5 -else - libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS - libxml2_LIBS=$pkg_cv_libxml2_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - LIBS="${LIBS} $libxml2_LIBS" - CPPFLAGS="${CPPFLAGS} $libxml2_CFLAGS" -fi - fi - ac_fn_cxx_check_header_mongrel "$LINENO" "libxml/tree.h" "ac_cv_header_libxml_tree_h" "$ac_includes_default" -if test "x$ac_cv_header_libxml_tree_h" = xyes; then : - -else - as_fn_error $? "\"libxml2 header files not found\"" "$LINENO" 5 -fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xmlNewNode" >&5 -$as_echo_n "checking for library containing xmlNewNode... " >&6; } -if ${ac_cv_search_xmlNewNode+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char xmlNewNode (); -int -main () -{ -return xmlNewNode (); - ; - return 0; -} -_ACEOF -for ac_lib in '' xml2; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_xmlNewNode=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_xmlNewNode+:} false; then : - break -fi -done -if ${ac_cv_search_xmlNewNode+:} false; then : - -else - ac_cv_search_xmlNewNode=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xmlNewNode" >&5 -$as_echo "$ac_cv_search_xmlNewNode" >&6; } -ac_res=$ac_cv_search_xmlNewNode -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - as_fn_error $? "\"libxml2 library not found\"" "$LINENO" 5 -fi - -else - -$as_echo "#define DISABLE_LIBXML2 1" >>confdefs.h - -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use curses" >&5 -$as_echo_n "checking whether to use curses... " >&6; } -# Check whether --enable-curses was given. -if test "${enable_curses+set}" = set; then : - enableval=$enable_curses; USECURSES=$enableval -else - USECURSES=yes -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USECURSES" >&5 -$as_echo "$USECURSES" >&6; } -if test "$USECURSES" = "yes"; then - -# Check whether --with-libcurses_includes was given. -if test "${with_libcurses_includes+set}" = set; then : - withval=$with_libcurses_includes; CPPFLAGS="${CPPFLAGS} -I${withval}" - INCVAL="yes" -else - INCVAL="no" -fi - - -# Check whether --with-libcurses_libraries was given. -if test "${with_libcurses_libraries+set}" = set; then : - withval=$with_libcurses_libraries; LDFLAGS="${LDFLAGS} -L${withval}" - LIBVAL="yes" -else - LIBVAL="no" -fi - - if test "$INCVAL" = "no" -o "$LIBVAL" = "no"; then - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5 -$as_echo_n "checking for ncurses... " >&6; } - -if test -n "$ncurses_CFLAGS"; then - pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5 - ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$ncurses_LIBS"; then - pkg_cv_ncurses_LIBS="$ncurses_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5 - ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1` - else - ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$ncurses_PKG_ERRORS" >&5 - - as_fn_error $? "\"ncurses library not found\"" "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - as_fn_error $? "\"ncurses library not found\"" "$LINENO" 5 -else - ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS - ncurses_LIBS=$pkg_cv_ncurses_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - LIBS="${LIBS} $ncurses_LIBS" - CPPFLAGS="${CPPFLAGS} $ncurses_CFLAGS" -fi - fi - - ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" -if test "x$ac_cv_header_ncurses_h" = xyes; then : - FOUND=yes - -$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h - -else - FOUND=no -fi - - - if test "$FOUND" = "no"; then - ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default" -if test "x$ac_cv_header_ncurses_ncurses_h" = xyes; then : - FOUND=yes - -$as_echo "#define HAVE_NCURSES_NCURSES_H 1" >>confdefs.h - -else - FOUND=no -fi - - - fi - if test "$FOUND" = "no"; then - ac_fn_cxx_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" -if test "x$ac_cv_header_curses_h" = xyes; then : - FOUND=yes - -$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h - -else - FOUND=no -fi - - - fi - if test "$FOUND" = "no"; then - as_fn_error $? "Couldn't find curses headers (ncurses.h or curses.h)" "$LINENO" 5 - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing refresh" >&5 -$as_echo_n "checking for library containing refresh... " >&6; } -if ${ac_cv_search_refresh+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char refresh (); -int -main () -{ -return refresh (); - ; - return 0; -} -_ACEOF -for ac_lib in '' ncurses curses; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_refresh=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_refresh+:} false; then : - break -fi -done -if ${ac_cv_search_refresh+:} false; then : - -else - ac_cv_search_refresh=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_refresh" >&5 -$as_echo "$ac_cv_search_refresh" >&6; } -ac_res=$ac_cv_search_refresh -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - as_fn_error $? "Couldn't find curses library" "$LINENO" 5 -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nodelay" >&5 -$as_echo_n "checking for library containing nodelay... " >&6; } -if ${ac_cv_search_nodelay+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char nodelay (); -int -main () -{ -return nodelay (); - ; - return 0; -} -_ACEOF -for ac_lib in '' ncurses curses tinfo; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_nodelay=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_nodelay+:} false; then : - break -fi -done -if ${ac_cv_search_nodelay+:} false; then : - -else - ac_cv_search_nodelay=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nodelay" >&5 -$as_echo "$ac_cv_search_nodelay" >&6; } -ac_res=$ac_cv_search_nodelay -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - as_fn_error $? "Couldn't find curses library" "$LINENO" 5 -fi - -else - -$as_echo "#define DISABLE_CURSES 1" >>confdefs.h - -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include code for par-checking" >&5 -$as_echo_n "checking whether to include code for par-checking... " >&6; } -# Check whether --enable-parcheck was given. -if test "${enable_parcheck+set}" = set; then : - enableval=$enable_parcheck; ENABLEPARCHECK=$enableval -else - ENABLEPARCHECK=yes -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLEPARCHECK" >&5 -$as_echo "$ENABLEPARCHECK" >&6; } -if test "$ENABLEPARCHECK" = "yes"; then - ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF - -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 -$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } -if ${ac_cv_sys_largefile_source+:} false; then : - $as_echo_n "(cached) " >&6 -else - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include /* for off_t */ - #include -int -main () -{ -int (*fp) (FILE *, off_t, int) = fseeko; - return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_sys_largefile_source=no; break -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define _LARGEFILE_SOURCE 1 -#include /* for off_t */ - #include -int -main () -{ -int (*fp) (FILE *, off_t, int) = fseeko; - return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_sys_largefile_source=1; break -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ac_cv_sys_largefile_source=unknown - break -done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 -$as_echo "$ac_cv_sys_largefile_source" >&6; } -case $ac_cv_sys_largefile_source in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source -_ACEOF -;; -esac -rm -rf conftest* - -# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug -# in glibc 2.1.3, but that breaks too many other things. -# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. -if test $ac_cv_sys_largefile_source != unknown; then - -$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h - -fi - - for ac_func in stricmp -do : - ac_fn_cxx_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp" -if test "x$ac_cv_func_stricmp" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRICMP 1 -_ACEOF - -fi -done - - for ac_func in getopt -do : - ac_fn_cxx_check_func "$LINENO" "getopt" "ac_cv_func_getopt" -if test "x$ac_cv_func_getopt" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETOPT 1 -_ACEOF - -fi -done - - if true; then - WITH_PAR2_TRUE= - WITH_PAR2_FALSE='#' -else - WITH_PAR2_TRUE='#' - WITH_PAR2_FALSE= -fi - -else - -$as_echo "#define DISABLE_PARCHECK 1" >>confdefs.h - - if false; then - WITH_PAR2_TRUE= - WITH_PAR2_FALSE='#' -else - WITH_PAR2_TRUE='#' - WITH_PAR2_FALSE= -fi - -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use TLS/SSL" >&5 -$as_echo_n "checking whether to use TLS/SSL... " >&6; } -# Check whether --enable-tls was given. -if test "${enable_tls+set}" = set; then : - enableval=$enable_tls; USETLS=$enableval -else - USETLS=yes -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USETLS" >&5 -$as_echo "$USETLS" >&6; } -if test "$USETLS" = "yes"; then - -# Check whether --with-tlslib was given. -if test "${with_tlslib+set}" = set; then : - withval=$with_tlslib; TLSLIB="$withval" -fi - - if test "$TLSLIB" != "GnuTLS" -a "$TLSLIB" != "OpenSSL" -a "$TLSLIB" != ""; then - as_fn_error $? "Invalid argument for option --with-tlslib" "$LINENO" 5 - fi - - if test "$TLSLIB" = "OpenSSL" -o "$TLSLIB" = ""; then - -# Check whether --with-openssl_includes was given. -if test "${with_openssl_includes+set}" = set; then : - withval=$with_openssl_includes; CPPFLAGS="${CPPFLAGS} -I${withval}" - INCVAL="yes" -else - INCVAL="no" -fi - - -# Check whether --with-openssl_libraries was given. -if test "${with_openssl_libraries+set}" = set; then : - withval=$with_openssl_libraries; LDFLAGS="${LDFLAGS} -L${withval}" - LIBVAL="yes" -else - LIBVAL="no" -fi - - if test "$INCVAL" = "no" -o "$LIBVAL" = "no"; then - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5 -$as_echo_n "checking for openssl... " >&6; } - -if test -n "$openssl_CFLAGS"; then - pkg_cv_openssl_CFLAGS="$openssl_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 - ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$openssl_LIBS"; then - pkg_cv_openssl_LIBS="$openssl_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 - ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` - else - openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$openssl_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (openssl) were not met: - -$openssl_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables openssl_CFLAGS -and openssl_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables openssl_CFLAGS -and openssl_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - openssl_CFLAGS=$pkg_cv_openssl_CFLAGS - openssl_LIBS=$pkg_cv_openssl_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - LIBS="${LIBS} $openssl_LIBS" - CPPFLAGS="${CPPFLAGS} $openssl_CFLAGS" -fi - fi - - ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" -if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : - FOUND=yes - TLSHEADERS=yes -else - FOUND=no -fi - - - if test "$FOUND" = "no" -a "$TLSLIB" = "OpenSSL"; then - as_fn_error $? "Couldn't find OpenSSL headers (ssl.h)" "$LINENO" 5 - fi - if test "$FOUND" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ASN1_OBJECT_free" >&5 -$as_echo_n "checking for library containing ASN1_OBJECT_free... " >&6; } -if ${ac_cv_search_ASN1_OBJECT_free+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char ASN1_OBJECT_free (); -int -main () -{ -return ASN1_OBJECT_free (); - ; - return 0; -} -_ACEOF -for ac_lib in '' crypto; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_ASN1_OBJECT_free=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_ASN1_OBJECT_free+:} false; then : - break -fi -done -if ${ac_cv_search_ASN1_OBJECT_free+:} false; then : - -else - ac_cv_search_ASN1_OBJECT_free=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ASN1_OBJECT_free" >&5 -$as_echo "$ac_cv_search_ASN1_OBJECT_free" >&6; } -ac_res=$ac_cv_search_ASN1_OBJECT_free -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_CTX_new" >&5 -$as_echo_n "checking for library containing SSL_CTX_new... " >&6; } -if ${ac_cv_search_SSL_CTX_new+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char SSL_CTX_new (); -int -main () -{ -return SSL_CTX_new (); - ; - return 0; -} -_ACEOF -for ac_lib in '' ssl; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_SSL_CTX_new=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_SSL_CTX_new+:} false; then : - break -fi -done -if ${ac_cv_search_SSL_CTX_new+:} false; then : - -else - ac_cv_search_SSL_CTX_new=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_CTX_new" >&5 -$as_echo "$ac_cv_search_SSL_CTX_new" >&6; } -ac_res=$ac_cv_search_SSL_CTX_new -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - FOUND=yes -else - FOUND=no -fi - -else - FOUND=no -fi - - if test "$FOUND" = "no" -a "$TLSLIB" = "OpenSSL"; then - as_fn_error $? "Couldn't find OpenSSL library" "$LINENO" 5 - fi - if test "$FOUND" = "yes"; then - TLSLIB="OpenSSL" - -$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing X509_check_host" >&5 -$as_echo_n "checking for library containing X509_check_host... " >&6; } -if ${ac_cv_search_X509_check_host+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char X509_check_host (); -int -main () -{ -return X509_check_host (); - ; - return 0; -} -_ACEOF -for ac_lib in '' crypto; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_X509_check_host=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_X509_check_host+:} false; then : - break -fi -done -if ${ac_cv_search_X509_check_host+:} false; then : - -else - ac_cv_search_X509_check_host=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_X509_check_host" >&5 -$as_echo "$ac_cv_search_X509_check_host" >&6; } -ac_res=$ac_cv_search_X509_check_host -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -$as_echo "#define HAVE_X509_CHECK_HOST 1" >>confdefs.h - -fi - - fi - fi - fi - - if test "$TLSLIB" = "GnuTLS" -o "$TLSLIB" = ""; then - -# Check whether --with-libgnutls_includes was given. -if test "${with_libgnutls_includes+set}" = set; then : - withval=$with_libgnutls_includes; CPPFLAGS="${CPPFLAGS} -I${withval}" - INCVAL="yes" -else - INCVAL="no" -fi - - -# Check whether --with-libgnutls_libraries was given. -if test "${with_libgnutls_libraries+set}" = set; then : - withval=$with_libgnutls_libraries; LDFLAGS="${LDFLAGS} -L${withval}" - LIBVAL="yes" -else - LIBVAL="no" -fi - - if test "$INCVAL" = "no" -o "$LIBVAL" = "no"; then - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls" >&5 -$as_echo_n "checking for gnutls... " >&6; } - -if test -n "$gnutls_CFLAGS"; then - pkg_cv_gnutls_CFLAGS="$gnutls_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_gnutls_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$gnutls_LIBS"; then - pkg_cv_gnutls_LIBS="$gnutls_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_gnutls_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - gnutls_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1` - else - gnutls_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$gnutls_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (gnutls) were not met: - -$gnutls_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables gnutls_CFLAGS -and gnutls_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables gnutls_CFLAGS -and gnutls_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - gnutls_CFLAGS=$pkg_cv_gnutls_CFLAGS - gnutls_LIBS=$pkg_cv_gnutls_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - LIBS="${LIBS} $gnutls_LIBS" - CPPFLAGS="${CPPFLAGS} $gnutls_CFLAGS" -fi - fi - - ac_fn_cxx_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" -if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : - FOUND=yes - TLSHEADERS=yes -else - FOUND=no -fi - - - if test "$FOUND" = "no" -a "$TLSLIB" = "GnuTLS"; then - as_fn_error $? "Couldn't find GnuTLS headers (gnutls.h)" "$LINENO" 5 - fi - if test "$FOUND" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gnutls_global_init" >&5 -$as_echo_n "checking for library containing gnutls_global_init... " >&6; } -if ${ac_cv_search_gnutls_global_init+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char gnutls_global_init (); -int -main () -{ -return gnutls_global_init (); - ; - return 0; -} -_ACEOF -for ac_lib in '' gnutls; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_gnutls_global_init=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_gnutls_global_init+:} false; then : - break -fi -done -if ${ac_cv_search_gnutls_global_init+:} false; then : - -else - ac_cv_search_gnutls_global_init=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gnutls_global_init" >&5 -$as_echo "$ac_cv_search_gnutls_global_init" >&6; } -ac_res=$ac_cv_search_gnutls_global_init -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - FOUND=yes -else - FOUND=no -fi - - if test "$FOUND" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcrypt is needed" >&5 -$as_echo_n "checking whether gcrypt is needed... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #if GNUTLS_VERSION_NUMBER <= 0x020b00 - compile error - #endif -int -main () -{ -int a; - ; - 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; } - GCRYPT=no -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - GCRYPT=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if test "$GCRYPT" = "yes"; then - ac_fn_cxx_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default" -if test "x$ac_cv_header_gcrypt_h" = xyes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gcry_control" >&5 -$as_echo_n "checking for library containing gcry_control... " >&6; } -if ${ac_cv_search_gcry_control+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char gcry_control (); -int -main () -{ -return gcry_control (); - ; - return 0; -} -_ACEOF -for ac_lib in '' gnutls gcrypt; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_gcry_control=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_gcry_control+:} false; then : - break -fi -done -if ${ac_cv_search_gcry_control+:} false; then : - -else - ac_cv_search_gcry_control=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gcry_control" >&5 -$as_echo "$ac_cv_search_gcry_control" >&6; } -ac_res=$ac_cv_search_gcry_control -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - FOUND=yes -else - FOUND=no -fi - -else - FOUND=yes -fi - - - fi - fi - if test "$FOUND" = "no" -a "$TLSLIB" = "GnuTLS"; then - as_fn_error $? "Couldn't find GnuTLS library" "$LINENO" 5 - fi - if test "$FOUND" = "yes"; then - TLSLIB="GnuTLS" - -$as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h - - fi - fi - - if test "$TLSLIB" = "GnuTLS"; then - -# Check whether --with-libnettle_includes was given. -if test "${with_libnettle_includes+set}" = set; then : - withval=$with_libnettle_includes; CPPFLAGS="${CPPFLAGS} -I${withval}" - INCVAL="yes" -else - INCVAL="no" -fi - - -# Check whether --with-libnettle_libraries was given. -if test "${with_libnettle_libraries+set}" = set; then : - withval=$with_libnettle_libraries; LDFLAGS="${LDFLAGS} -L${withval}" - LIBVAL="yes" -else - LIBVAL="no" -fi - - if test "$INCVAL" = "no" -o "$LIBVAL" = "no"; then - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle" >&5 -$as_echo_n "checking for nettle... " >&6; } - -if test -n "$nettle_CFLAGS"; then - pkg_cv_nettle_CFLAGS="$nettle_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle\""; } >&5 - ($PKG_CONFIG --exists --print-errors "nettle") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_nettle_CFLAGS=`$PKG_CONFIG --cflags "nettle" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$nettle_LIBS"; then - pkg_cv_nettle_LIBS="$nettle_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle\""; } >&5 - ($PKG_CONFIG --exists --print-errors "nettle") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_nettle_LIBS=`$PKG_CONFIG --libs "nettle" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - nettle_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nettle" 2>&1` - else - nettle_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nettle" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$nettle_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (nettle) were not met: - -$nettle_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables nettle_CFLAGS -and nettle_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables nettle_CFLAGS -and nettle_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - nettle_CFLAGS=$pkg_cv_nettle_CFLAGS - nettle_LIBS=$pkg_cv_nettle_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - LIBS="${LIBS} $nettle_LIBS" - CPPFLAGS="${CPPFLAGS} $nettle_CFLAGS" -fi - fi - ac_fn_cxx_check_header_mongrel "$LINENO" "nettle/sha.h" "ac_cv_header_nettle_sha_h" "$ac_includes_default" -if test "x$ac_cv_header_nettle_sha_h" = xyes; then : - FOUND=yes -else - FOUND=no -fi - - - if test "$FOUND" = "no"; then - as_fn_error $? "Couldn't find Nettle headers (sha.h)" "$LINENO" 5 - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nettle_pbkdf2_hmac_sha256" >&5 -$as_echo_n "checking for library containing nettle_pbkdf2_hmac_sha256... " >&6; } -if ${ac_cv_search_nettle_pbkdf2_hmac_sha256+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char nettle_pbkdf2_hmac_sha256 (); -int -main () -{ -return nettle_pbkdf2_hmac_sha256 (); - ; - return 0; -} -_ACEOF -for ac_lib in '' nettle; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_nettle_pbkdf2_hmac_sha256=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_nettle_pbkdf2_hmac_sha256+:} false; then : - break -fi -done -if ${ac_cv_search_nettle_pbkdf2_hmac_sha256+:} false; then : - -else - ac_cv_search_nettle_pbkdf2_hmac_sha256=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nettle_pbkdf2_hmac_sha256" >&5 -$as_echo "$ac_cv_search_nettle_pbkdf2_hmac_sha256" >&6; } -ac_res=$ac_cv_search_nettle_pbkdf2_hmac_sha256 -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - FOUND=yes -else - FOUND=no -fi - - if test "$FOUND" = "no"; then - as_fn_error $? "Couldn't find Nettle library, required when using GnuTLS" "$LINENO" 5 - fi - if test "$FOUND" = "yes"; then - -$as_echo "#define HAVE_NETTLE 1" >>confdefs.h - - fi - fi - fi - - if test "$TLSLIB" = ""; then - if test "$TLSHEADERS" = ""; then - as_fn_error $? "Couldn't find neither OpenSSL nor GnuTLS headers (ssl.h or gnutls.h)" "$LINENO" 5 - else - as_fn_error $? "Couldn't find neither OpenSSL nor GnuTLS library" "$LINENO" 5 - fi - fi -else - -$as_echo "#define DISABLE_TLS 1" >>confdefs.h - -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gzip" >&5 -$as_echo_n "checking whether to use gzip... " >&6; } -# Check whether --enable-gzip was given. -if test "${enable_gzip+set}" = set; then : - enableval=$enable_gzip; USEZLIB=$enableval -else - USEZLIB=yes -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USEZLIB" >&5 -$as_echo "$USEZLIB" >&6; } -if test "$USEZLIB" = "yes"; then - -# Check whether --with-zlib_includes was given. -if test "${with_zlib_includes+set}" = set; then : - withval=$with_zlib_includes; CPPFLAGS="${CPPFLAGS} -I${withval}" - INCVAL="yes" -else - INCVAL="no" -fi - - -# Check whether --with-zlib_libraries was given. -if test "${with_zlib_libraries+set}" = set; then : - withval=$with_zlib_libraries; LDFLAGS="${LDFLAGS} -L${withval}" - LIBVAL="yes" -else - LIBVAL="no" -fi - - if test "$INCVAL" = "no" -o "$LIBVAL" = "no"; then - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 -$as_echo_n "checking for zlib... " >&6; } - -if test -n "$zlib_CFLAGS"; then - pkg_cv_zlib_CFLAGS="$zlib_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 - ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$zlib_LIBS"; then - pkg_cv_zlib_LIBS="$zlib_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 - ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` - else - zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$zlib_PKG_ERRORS" >&5 - - as_fn_error $? "Package requirements (zlib) were not met: - -$zlib_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -Alternatively, you may set the environment variables zlib_CFLAGS -and zlib_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -Alternatively, you may set the environment variables zlib_CFLAGS -and zlib_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see . -See \`config.log' for more details" "$LINENO" 5; } -else - zlib_CFLAGS=$pkg_cv_zlib_CFLAGS - zlib_LIBS=$pkg_cv_zlib_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - LIBS="${LIBS} $zlib_LIBS" - CPPFLAGS="${CPPFLAGS} $zlib_CFLAGS" -fi - fi - - ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" -if test "x$ac_cv_header_zlib_h" = xyes; then : - -else - as_fn_error $? "\"zlib header files not found\"" "$LINENO" 5 -fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflateBound" >&5 -$as_echo_n "checking for library containing deflateBound... " >&6; } -if ${ac_cv_search_deflateBound+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char deflateBound (); -int -main () -{ -return deflateBound (); - ; - return 0; -} -_ACEOF -for ac_lib in '' z; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_search_deflateBound=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_deflateBound+:} false; then : - break -fi -done -if ${ac_cv_search_deflateBound+:} false; then : - -else - ac_cv_search_deflateBound=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflateBound" >&5 -$as_echo "$ac_cv_search_deflateBound" >&6; } -ac_res=$ac_cv_search_deflateBound -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - as_fn_error $? "\"zlib library not found\"" "$LINENO" 5 -fi - -else - -$as_echo "#define DISABLE_GZIP 1" >>confdefs.h - -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SIMD-optimized routines" >&5 -$as_echo_n "checking whether to use SIMD-optimized routines... " >&6; } -USE_SIMD=no -case $host_cpu in - i?86|x86_64) - SSE2_CXXFLAGS="-msse2" - SSSE3_CXXFLAGS="-mssse3" - PCLMUL_CXXFLAGS="-msse4.1 -mpclmul" - USE_SIMD=yes - ;; - arm*) - NEON_CXXFLAGS="-mfpu=neon" - ACLECRC_CXXFLAGS="-march=armv8-a+crc -fpermissive" - USE_SIMD=yes - ;; - aarch64) - ACLECRC_CXXFLAGS="-march=armv8-a+crc -fpermissive" - USE_SIMD=yes - ;; -esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_SIMD" >&5 -$as_echo "$USE_SIMD" >&6; } - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an empty SIGCHLD handler" >&5 -$as_echo_n "checking whether to use an empty SIGCHLD handler... " >&6; } -# Check whether --enable-sigchld-handler was given. -if test "${enable_sigchld_handler+set}" = set; then : - enableval=$enable_sigchld_handler; SIGCHLDHANDLER=$enableval -else - SIGCHLDHANDLER=yes -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIGCHLDHANDLER" >&5 -$as_echo "$SIGCHLDHANDLER" >&6; } -if test "$SIGCHLDHANDLER" = "yes"; then - -$as_echo "#define SIGCHLD_HANDLER 1" >>confdefs.h - -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include all debugging code" >&5 -$as_echo_n "checking whether to include all debugging code... " >&6; } -# Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : - enableval=$enable_debug; ENABLEDEBUG=$enableval -else - ENABLEDEBUG=no -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLEDEBUG" >&5 -$as_echo "$ENABLEDEBUG" >&6; } - - -if test "$ENABLEDEBUG" = "yes"; then - - - -$as_echo "#define DEBUG 1" >>confdefs.h - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for macro returning current function name" >&5 -$as_echo_n "checking for macro returning current function name... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -printf("%s\n", __FUNCTION__); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: __FUNCTION__" >&5 -$as_echo "__FUNCTION__" >&6; } - FUNCTION_MACRO_NAME=__FUNCTION__ -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -printf("%s\n", __func__); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: __func__" >&5 -$as_echo "__func__" >&6; } - FUNCTION_MACRO_NAME=__func__ -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -if test "$FUNCTION_MACRO_NAME" != ""; then - -cat >>confdefs.h <<_ACEOF -#define FUNCTION_MACRO_NAME $FUNCTION_MACRO_NAME -_ACEOF - -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variadic macros" >&5 -$as_echo_n "checking for variadic macros... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - #define macro(...) macrofunc(__VA_ARGS__) - int macrofunc(int a, int b) { return a + b; } -int -main () -{ - int a=macro(1, 2); - ; - 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; } - -$as_echo "#define HAVE_VARIADIC_MACROS 1" >>confdefs.h - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace" >&5 -$as_echo_n "checking for backtrace... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include - #include -int -main () -{ - void *array[100]; size_t size; char **strings; - size = backtrace(array, 100); - strings = backtrace_symbols(array, size); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - FOUND=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h - -else - FOUND=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdynamic linker flag" >&5 -$as_echo_n "checking for rdynamic linker flag... " >&6; } - old_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -rdynamic" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - LDFLAGS="$old_LDFLAGS" -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - -else - -$as_echo "#define NDEBUG 1" >>confdefs.h - -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit and integration tests" >&5 -$as_echo_n "checking whether to enable unit and integration tests... " >&6; } -# Check whether --enable-tests was given. -if test "${enable_tests+set}" = set; then : - enableval=$enable_tests; ENABLETESTS=$enableval -else - ENABLETESTS=no -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLETESTS" >&5 -$as_echo "$ENABLETESTS" >&6; } -if test "$ENABLETESTS" = "yes"; then - -$as_echo "#define ENABLE_TESTS 1" >>confdefs.h - - if true; then - WITH_TESTS_TRUE= - WITH_TESTS_FALSE='#' -else - WITH_TESTS_TRUE='#' - WITH_TESTS_FALSE= -fi - -else - if false; then - WITH_TESTS_TRUE= - WITH_TESTS_FALSE='#' -else - WITH_TESTS_TRUE='#' - WITH_TESTS_FALSE= -fi - -fi - -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}' - -DEFS=-DHAVE_CONFIG_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 - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 -$as_echo_n "checking that generated files are newer than configure... " >&6; } - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 -$as_echo "done" >&6; } - if test -n "$EXEEXT"; then - am__EXEEXT_TRUE= - am__EXEEXT_FALSE='#' -else - am__EXEEXT_TRUE='#' - am__EXEEXT_FALSE= -fi - -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then - as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - as_fn_error $? "conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then - as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_PAR2_TRUE}" && test -z "${WITH_PAR2_FALSE}"; then - as_fn_error $? "conditional \"WITH_PAR2\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_PAR2_TRUE}" && test -z "${WITH_PAR2_FALSE}"; then - as_fn_error $? "conditional \"WITH_PAR2\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then - as_fn_error $? "conditional \"WITH_TESTS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then - as_fn_error $? "conditional \"WITH_TESTS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi - -: "${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 nzbget $as_me 22.0, 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 - -case $ac_config_headers in *" -"*) set x $ac_config_headers; shift; ac_config_headers=$*;; -esac - - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# Files that config.status was made for. -config_files="$ac_config_files" -config_headers="$ac_config_headers" -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 - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE - -Configuration files: -$config_files - -Configuration headers: -$config_headers - -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="\\ -nzbget config.status 22.0 -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' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -AWK='$AWK' -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;; - --header | --heade | --head | --hea ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$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.";; - --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 -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_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 - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "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_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - 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" - -# 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'. -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 -# here-document in config.status, that substitutes the proper values into -# config.h.in to produce config.h. - -# Create a delimiter string that does not exist in confdefs.h, to ease -# handling of long lines. -ac_delim='%!_!# ' -for ac_last_try in false false :; do - ac_tt=`sed -n "/$ac_delim/p" confdefs.h` - if test -z "$ac_tt"; then - break - elif $ac_last_try; then - as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -# For the awk script, D is an array of macro values keyed by name, -# likewise P contains macro parameters if any. Preserve backslash -# newline sequences. - -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* -sed -n ' -s/.\{148\}/&'"$ac_delim"'/g -t rset -:rset -s/^[ ]*#[ ]*define[ ][ ]*/ / -t def -d -:def -s/\\$// -t bsnl -s/["\\]/\\&/g -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ -D["\1"]=" \3"/p -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p -d -:bsnl -s/["\\]/\\&/g -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ -D["\1"]=" \3\\\\\\n"\\/p -t cont -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p -t cont -d -:cont -n -s/.\{148\}/&'"$ac_delim"'/g -t clear -:clear -s/\\$// -t bsnlc -s/["\\]/\\&/g; s/^/"/; s/$/"/p -d -:bsnlc -s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p -b cont -' >$CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 - for (key in D) D_is_set[key] = 1 - FS = "" -} -/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { - line = \$ 0 - split(line, arg, " ") - if (arg[1] == "#") { - defundef = arg[2] - mac1 = arg[3] - } else { - defundef = substr(arg[1], 2) - mac1 = arg[2] - } - split(mac1, mac2, "(") #) - macro = mac2[1] - prefix = substr(line, 1, index(line, defundef) - 1) - if (D_is_set[macro]) { - # Preserve the white space surrounding the "#". - print prefix "define", macro P[macro] D[macro] - next - } else { - # Replace #undef with comments. This is necessary, for example, - # in the case of _POSIX_SOURCE, which is predefined and required - # on some systems where configure will not decide to define it. - if (defundef == "undef") { - print "/*", prefix defundef, macro, "*/" - next - } - } -} -{ print } -_ACAWK -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 -fi # test -n "$CONFIG_HEADERS" - - -eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :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 - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_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 -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;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 - ;; - :H) - # - # CONFIG_HEADER - # - if test x"$ac_file" != x-; then - { - $as_echo "/* $configure_input */" \ - && 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;} - 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 */" \ - && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ - || as_fn_error $? "could not create -" "$LINENO" 5 - fi -# Compute "$ac_file"'s index in $config_headers. -_am_arg="$ac_file" -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $_am_arg | $_am_arg:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || -$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$_am_arg" : 'X\(//\)[^/]' \| \ - X"$_am_arg" : 'X\(//\)$' \| \ - X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$_am_arg" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'`/stamp-h$_am_stamp_count - ;; - - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || { - # Older Autoconf quotes --file arguments for eval, but not when files - # are listed without --file. Let's play safe and only enable the eval - # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac - shift - for mf - do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - as_dir=$dirpart/$fdir; as_fn_mkdir_p - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done - done -} - ;; - - 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/configure.ac b/configure.ac index b32d1d91..b4a8ca9c 100644 --- a/configure.ac +++ b/configure.ac @@ -21,16 +21,19 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.65) -AC_INIT(nzbget, 22.0, nzbget@nzbget.com) +AC_INIT(nzbget, 23.0, https://github.com/nzbgetcom/nzbget/issues) AC_CONFIG_AUX_DIR(posix) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE([foreign subdir-objects]) AC_CONFIG_SRCDIR([daemon/main/nzbget.cpp]) AC_CONFIG_HEADERS([config.h]) +AC_DEFINE(HAVE_CONFIG_H, 1, [Define to 1 use config.h]) AM_MAINTAINER_MODE m4_include([posix/ax_cxx_compile_stdcxx.m4]) +m4_include([posix/ax_boost_json.m4]) +AX_BOOST_JSON dnl dnl Check for programs. @@ -76,6 +79,7 @@ AC_SEARCH_LIBS([socket], [socket]) AC_SEARCH_LIBS([inet_addr], [nsl]) AC_SEARCH_LIBS([hstrerror], [resolv]) +AC_CHECK_LIB([boost_json], [main], [], [AC_MSG_ERROR([Could not find Boost.JSON library])]) dnl dnl Android NDK restrictions @@ -681,22 +685,5 @@ else AC_DEFINE([NDEBUG],1,Define to 1 to exclude debug-code) fi - -dnl -dnl Enable test suite. Deafult: no. -dnl -AC_MSG_CHECKING(whether to enable unit and integration tests) -AC_ARG_ENABLE(tests, - [AS_HELP_STRING([--enable-tests], [enable unit and integration tests])], - [ ENABLETESTS=$enableval ], - [ ENABLETESTS=no] ) -AC_MSG_RESULT($ENABLETESTS) -if test "$ENABLETESTS" = "yes"; then - AC_DEFINE([ENABLE_TESTS],1,[Define to 1 to enable unit and integration tests]) - AM_CONDITIONAL(WITH_TESTS, true) -else - AM_CONDITIONAL(WITH_TESTS, false) -fi - AC_CONFIG_FILES([Makefile]) AC_OUTPUT diff --git a/daemon/connect/Connection.cpp b/daemon/connect/Connection.cpp index 390a6523..86e5bae4 100644 --- a/daemon/connect/Connection.cpp +++ b/daemon/connect/Connection.cpp @@ -23,6 +23,7 @@ #include "Connection.h" #include "Log.h" #include "FileSystem.h" +#include "Options.h" static const int CONNECTION_READBUFFER_SIZE = 1024; #ifndef HAVE_GETADDRINFO @@ -120,6 +121,9 @@ Connection::Connection(const char* host, int port, bool tls) : debug("Creating Connection"); m_readBuf.Reserve(CONNECTION_READBUFFER_SIZE + 1); +#ifndef DISABLE_TLS + m_certVerifLevel = Options::ECertVerifLevel::cvStrict; +#endif } Connection::Connection(SOCKET socket, bool tls) @@ -138,6 +142,7 @@ Connection::Connection(SOCKET socket, bool tls) #ifndef DISABLE_TLS m_tlsSocket = nullptr; m_tlsError = false; + m_certVerifLevel = Options::ECertVerifLevel::cvStrict; #endif } @@ -992,7 +997,7 @@ bool Connection::StartTls(bool isClient, const char* certFile, const char* keyFi { debug("Starting TLS"); - m_tlsSocket = std::make_unique(m_socket, isClient, m_host, certFile, keyFile, m_cipher, this); + m_tlsSocket = std::make_unique(m_socket, isClient, m_host, certFile, keyFile, m_cipher, m_certVerifLevel, this); m_tlsSocket->SetSuppressErrors(m_suppressErrors); return m_tlsSocket->Start(); diff --git a/daemon/connect/Connection.h b/daemon/connect/Connection.h index e2c8a539..232d0384 100644 --- a/daemon/connect/Connection.h +++ b/daemon/connect/Connection.h @@ -84,6 +84,7 @@ class Connection void SetForceClose(bool forceClose) { m_forceClose = forceClose; } #ifndef DISABLE_TLS bool StartTls(bool isClient, const char* certFile, const char* keyFile); + void SetCertVerifLevel(unsigned int level) { m_certVerifLevel = level; } #endif int FetchTotalBytesRead(); @@ -104,6 +105,9 @@ class Connection int m_totalBytesRead = 0; bool m_gracefull = false; bool m_forceClose = false; +#ifndef DISABLE_TLS + unsigned int m_certVerifLevel; +#endif struct SockAddr { @@ -119,8 +123,9 @@ class Connection { public: ConTlsSocket(SOCKET socket, bool isClient, const char* host, - const char* certFile, const char* keyFile, const char* cipher, Connection* owner) : - TlsSocket(socket, isClient, host, certFile, keyFile, cipher), m_owner(owner) {} + const char* certFile, const char* keyFile, const char* cipher, + unsigned int certVerifLevel, Connection* owner) : + TlsSocket(socket, isClient, host, certFile, keyFile, cipher, certVerifLevel), m_owner(owner) {} protected: virtual void PrintError(const char* errMsg) { m_owner->PrintError(errMsg); } private: diff --git a/daemon/connect/TlsSocket.cpp b/daemon/connect/TlsSocket.cpp index 870c4e25..f23adf9a 100644 --- a/daemon/connect/TlsSocket.cpp +++ b/daemon/connect/TlsSocket.cpp @@ -27,6 +27,7 @@ #include "Log.h" #include "Util.h" #include "FileSystem.h" +#include "Options.h" CString TlsSocket::m_certStore; @@ -419,8 +420,14 @@ bool TlsSocket::Start() Close(); return false; } - - SSL_CTX_set_verify((SSL_CTX*)m_context, SSL_VERIFY_PEER, nullptr); + if (m_certVerifLevel > Options::ECertVerifLevel::cvNone) + { + SSL_CTX_set_verify((SSL_CTX*)m_context, SSL_VERIFY_PEER, nullptr); + } + else + { + SSL_CTX_set_verify((SSL_CTX*)m_context, SSL_VERIFY_NONE, nullptr); + } } m_session = SSL_new((SSL_CTX*)m_context); @@ -453,7 +460,7 @@ bool TlsSocket::Start() } int error_code = m_isClient ? SSL_connect((SSL*)m_session) : SSL_accept((SSL*)m_session); - if (error_code < 1) + if (error_code < 1 && m_certVerifLevel > Options::ECertVerifLevel::cvNone) { long verifyRes = SSL_get_verify_result((SSL*)m_session); if (verifyRes != X509_V_OK) @@ -567,7 +574,7 @@ bool TlsSocket::ValidateCert() #ifdef HAVE_X509_CHECK_HOST // hostname verification - if (!m_host.Empty() && X509_check_host(cert, m_host, m_host.Length(), 0, nullptr) != 1) + if (m_certVerifLevel > Options::ECertVerifLevel::cvMinimal && !m_host.Empty() && X509_check_host(cert, m_host, m_host.Length(), 0, nullptr) != 1) { const unsigned char* certHost = nullptr; // Find the position of the CN field in the Subject field of the certificate diff --git a/daemon/connect/TlsSocket.h b/daemon/connect/TlsSocket.h index 5b8d7d71..5a1c30d2 100644 --- a/daemon/connect/TlsSocket.h +++ b/daemon/connect/TlsSocket.h @@ -28,9 +28,9 @@ class TlsSocket { public: TlsSocket(SOCKET socket, bool isClient, const char* host, - const char* certFile, const char* keyFile, const char* cipher) : + const char* certFile, const char* keyFile, const char* cipher, int certVerifLevel) : m_socket(socket), m_isClient(isClient), m_host(host), - m_certFile(certFile), m_keyFile(keyFile), m_cipher(cipher) {} + m_certFile(certFile), m_keyFile(keyFile), m_cipher(cipher), m_certVerifLevel(certVerifLevel) {} virtual ~TlsSocket(); static void Init(); static void InitOptions(const char* certStore) { m_certStore = certStore; } @@ -56,6 +56,7 @@ class TlsSocket bool m_connected = false; int m_retCode; static CString m_certStore; + int m_certVerifLevel; // using "void*" to prevent the including of GnuTLS/OpenSSL header files into TlsSocket.h void* m_context = nullptr; diff --git a/daemon/extension/CommandScript.cpp b/daemon/extension/CommandScript.cpp index 9b096ed6..1f00a581 100644 --- a/daemon/extension/CommandScript.cpp +++ b/daemon/extension/CommandScript.cpp @@ -41,9 +41,9 @@ bool CommandScriptController::StartScript(const char* scriptName, const char* co scriptController->Start(); - for (ScriptConfig::Script& script : g_ScriptConfig->GetScripts()) + for (const auto script : g_ExtensionManager->GetExtensions()) { - if (FileSystem::SameFilename(scriptName, script.GetName())) + if (strcmp(scriptName, script->GetName()) == 0) { return true; } @@ -56,11 +56,11 @@ void CommandScriptController::Run() ExecuteScriptList(m_script); } -void CommandScriptController::ExecuteScript(ScriptConfig::Script* script) +void CommandScriptController::ExecuteScript(std::shared_ptr script) { PrintMessage(Message::mkInfo, "Executing script %s with command %s", script->GetName(), *m_command); - SetArgs({script->GetLocation()}); + SetArgs({script->GetEntry()}); BString<1024> infoName("script %s with command %s", script->GetName(), *m_command); SetInfoName(infoName); diff --git a/daemon/extension/CommandScript.h b/daemon/extension/CommandScript.h index 676432b0..ed20380d 100644 --- a/daemon/extension/CommandScript.h +++ b/daemon/extension/CommandScript.h @@ -31,7 +31,7 @@ class CommandScriptController : public Thread, public NzbScriptController static bool StartScript(const char* scriptName, const char* command, std::unique_ptr modifiedOptions); protected: - virtual void ExecuteScript(ScriptConfig::Script* script); + virtual void ExecuteScript(std::shared_ptr script); virtual void AddMessage(Message::EKind kind, const char* text); virtual const char* GetOptValue(const char* name, const char* value); diff --git a/daemon/extension/Extension.cpp b/daemon/extension/Extension.cpp new file mode 100644 index 00000000..044fbad2 --- /dev/null +++ b/daemon/extension/Extension.cpp @@ -0,0 +1,436 @@ +/* + * This file is part of nzbget. See . + * + * Copyright (C) 2023 Denis + * + * This program 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 2 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 . + */ + +#include "nzbget.h" + +#include "Xml.h" +#include "Extension.h" + +namespace Extension +{ + void Script::SetEntry(std::string entry) + { + m_entry = std::move(entry); + } + + const char* Script::GetEntry() const + { + return m_entry.c_str(); + } + + void Script::SetLocation(std::string location) + { + m_location = std::move(location); + } + + void Script::SetRootDir(std::string dir) + { + m_rootDir = std::move(dir); + } + + const char* Script::GetRootDir() const + { + return m_rootDir.c_str(); + } + + const char* Script::GetLocation() const + { + return m_location.c_str(); + } + + void Script::SetAuthor(std::string author) + { + m_author = std::move(author); + } + + const char* Script::GetAuthor() const + { + return m_author.c_str(); + } + + void Script::SetHomepage(std::string homepage) + { + m_homepage = std::move(homepage); + } + + const char* Script::GetHomepage() const + { + return m_homepage.c_str(); + } + + void Script::SetVersion(std::string version) + { + m_version = std::move(version); + } + + const char* Script::GetVersion() const + { + return m_version.c_str(); + } + + void Script::SetLicense(std::string license) + { + m_license = std::move(license); + } + + const char* Script::GetLicense() const + { + return m_license.c_str(); + } + + void Script::SetName(std::string name) + { + m_name = std::move(name); + } + + const char* Script::GetName() const + { + return m_name.c_str(); + } + + void Script::SetDisplayName(std::string displayName) + { + m_displayName = std::move(displayName); + } + + const char* Script::GetDisplayName() const + { + return m_displayName.c_str(); + } + + void Script::SetAbout(std::string about) + { + m_about = std::move(about); + } + + const char* Script::GetAbout() const + { + return m_about.c_str(); + } + + void Script::SetDescription(std::vector description) + { + m_description = std::move(description); + }; + + const std::vector& Script::GetDescription() const + { + return m_description; + } + + void Script::SetKind(Kind kind) + { + m_kind = std::move(kind); + }; + + bool Script::GetPostScript() const + { + return m_kind.post; + } + + bool Script::GetScanScript() const + { + return m_kind.scan; + } + + bool Script::GetQueueScript() const + { + return m_kind.queue; + } + bool Script::GetSchedulerScript() const + { + return m_kind.scheduler; + } + bool Script::GetFeedScript() const + { + return m_kind.feed; + } + void Script::SetQueueEvents(std::string queueEvents) + { + m_queueEvents = std::move(queueEvents); + } + + const char* Script::GetQueueEvents() const + { + return m_queueEvents.c_str(); + } + + + void Script::SetTaskTime(std::string taskTime) + { + m_taskTime = std::move(taskTime); + } + + const char* Script::GetTaskTime() const + { + return m_taskTime.c_str(); + } + + void Script::SetOptions(std::vector options) + { + m_options = std::move(options); + } + + void Script::SetRequirements(std::vector requirements) + { + m_requirements = std::move(requirements); + } + + const std::vector& Script::GetRequirements() const + { + return m_requirements; + } + + const std::vector& Script::GetOptions() const + { + return m_options; + } + + void Script::SetCommands(std::vector commands) + { + m_commands = std::move(commands); + } + + const std::vector& Script::GetCommands() const + { + return m_commands; + } + + std::string ToJsonStr(const Script& script) + { + Json::JsonObject json; + Json::JsonArray descriptionJson; + Json::JsonArray requirementsJson; + Json::JsonArray optionsJson; + Json::JsonArray commandsJson; + + json["Entry"] = script.GetEntry(); + json["Location"] = script.GetLocation(); + json["RootDir"] = script.GetRootDir(); + json["Name"] = script.GetName(); + json["DisplayName"] = script.GetDisplayName(); + json["About"] = script.GetAbout(); + json["Author"] = script.GetAuthor(); + json["Homepage"] = script.GetHomepage(); + json["License"] = script.GetLicense(); + json["Version"] = script.GetVersion(); + json["PostScript"] = script.GetPostScript(); + json["ScanScript"] = script.GetScanScript(); + json["QueueScript"] = script.GetQueueScript(); + json["SchedulerScript"] = script.GetSchedulerScript(); + json["FeedScript"] = script.GetFeedScript(); + json["QueueEvents"] = script.GetQueueEvents(); + json["TaskTime"] = script.GetTaskTime(); + + for (const auto& line : script.GetDescription()) + { + descriptionJson.push_back(Json::JsonValue(line)); + } + + for (const auto& line : script.GetRequirements()) + { + requirementsJson.push_back(Json::JsonValue(line)); + } + + for (const auto& option : script.GetOptions()) + { + Json::JsonObject optionJson; + Json::JsonArray descriptionJson; + Json::JsonArray selectJson; + + optionJson["Name"] = option.name; + optionJson["DisplayName"] = option.displayName; + + if (const std::string* val = boost::variant2::get_if(&option.value)) + { + optionJson["Value"] = *val; + } + else if (const double* val = boost::variant2::get_if(&option.value)) + { + optionJson["Value"] = *val; + } + + for (const auto& line : option.description) + { + descriptionJson.push_back(Json::JsonValue(line)); + } + + for (const auto& value : option.select) + { + if (const std::string* val = boost::variant2::get_if(&value)) + { + selectJson.push_back(Json::JsonValue(*val)); + } + else if (const double* val = boost::variant2::get_if(&value)) + { + selectJson.push_back(Json::JsonValue(*val)); + } + } + + optionJson["Description"] = std::move(descriptionJson); + optionJson["Select"] = std::move(selectJson); + optionsJson.push_back(std::move(optionJson)); + } + + for (const auto& command : script.GetCommands()) + { + Json::JsonObject commandJson; + Json::JsonArray descriptionJson; + + commandJson["Name"] = command.name; + commandJson["DisplayName"] = command.displayName; + commandJson["Action"] = command.action; + + + for (const auto& line : command.description) + { + descriptionJson.push_back(Json::JsonValue(line)); + } + + commandJson["Description"] = std::move(descriptionJson); + commandsJson.push_back(std::move(commandJson)); + } + + json["Description"] = std::move(descriptionJson); + json["Requirements"] = std::move(requirementsJson); + json["Options"] = std::move(optionsJson); + json["Commands"] = std::move(commandsJson); + + return Json::Serialize(json); + } + + std::string ToXmlStr(const Script& script) + { + xmlNodePtr rootNode = xmlNewNode(NULL, BAD_CAST "value"); + xmlNodePtr structNode = xmlNewNode(NULL, BAD_CAST "struct"); + + AddNewNode(structNode, "Entry", "string", script.GetEntry()); + AddNewNode(structNode, "Location", "string", script.GetLocation()); + AddNewNode(structNode, "RootDir", "string", script.GetRootDir()); + AddNewNode(structNode, "Name", "string", script.GetName()); + AddNewNode(structNode, "DisplayName", "string", script.GetDisplayName()); + AddNewNode(structNode, "About", "string", script.GetAbout()); + AddNewNode(structNode, "Author", "string", script.GetAuthor()); + AddNewNode(structNode, "Homepage", "string", script.GetHomepage()); + AddNewNode(structNode, "License", "string", script.GetLicense()); + AddNewNode(structNode, "Version", "string", script.GetVersion()); + + AddNewNode(structNode, "PostScript", "boolean", BoolToStr(script.GetPostScript())); + AddNewNode(structNode, "ScanScript", "boolean", BoolToStr(script.GetScanScript())); + AddNewNode(structNode, "QueueScript", "boolean", BoolToStr(script.GetQueueScript())); + AddNewNode(structNode, "SchedulerScript", "boolean", BoolToStr(script.GetSchedulerScript())); + AddNewNode(structNode, "FeedScript", "boolean", BoolToStr(script.GetFeedScript())); + + AddNewNode(structNode, "QueueEvents", "string", script.GetQueueEvents()); + AddNewNode(structNode, "TaskTime", "string", script.GetTaskTime()); + + xmlNodePtr descriptionNode = xmlNewNode(NULL, BAD_CAST "Description"); + for (const std::string& line : script.GetDescription()) + { + AddNewNode(descriptionNode, "Value", "string", line.c_str()); + } + + xmlNodePtr requirementsNode = xmlNewNode(NULL, BAD_CAST "Requirements"); + for (const std::string& line : script.GetRequirements()) + { + AddNewNode(requirementsNode, "Value", "string", line.c_str()); + } + + xmlNodePtr commandsNode = xmlNewNode(NULL, BAD_CAST "Commands"); + for (const ManifestFile::Command& command : script.GetCommands()) + { + AddNewNode(commandsNode, "Name", "string", command.name.c_str()); + AddNewNode(commandsNode, "DisplayName", "string", command.displayName.c_str()); + AddNewNode(commandsNode, "Action", "string", command.action.c_str()); + + xmlNodePtr descriptionNode = xmlNewNode(NULL, BAD_CAST "Description"); + for (const std::string& line : command.description) + { + AddNewNode(descriptionNode, "Value", "string", line.c_str()); + } + xmlAddChild(commandsNode, descriptionNode); + } + + xmlNodePtr optionsNode = xmlNewNode(NULL, BAD_CAST "Options"); + for (const ManifestFile::Option& option : script.GetOptions()) + { + AddNewNode(optionsNode, "Name", "string", option.name.c_str()); + AddNewNode(optionsNode, "DisplayName", "string", option.displayName.c_str()); + + if (const std::string* val = boost::variant2::get_if(&option.value)) + { + AddNewNode(optionsNode, "Value", "string", val->c_str()); + } + else if (const double* val = boost::variant2::get_if(&option.value)) + { + AddNewNode(optionsNode, "Value", "number", std::to_string(*val).c_str()); + } + + xmlNodePtr selectNode = xmlNewNode(NULL, BAD_CAST "Select"); + for (const auto& selectOption : option.select) + { + if (const std::string* val = boost::variant2::get_if(&selectOption)) + { + AddNewNode(selectNode, "Value", "string", val->c_str()); + } + else if (const double* val = boost::variant2::get_if(&selectOption)) + { + AddNewNode(selectNode, "Value", "number", std::to_string(*val).c_str()); + } + } + + xmlNodePtr descriptionNode = xmlNewNode(NULL, BAD_CAST "Description"); + for (const std::string& line : option.description) + { + AddNewNode(descriptionNode, "Value", "string", line.c_str()); + } + + xmlAddChild(optionsNode, descriptionNode); + xmlAddChild(optionsNode, selectNode); + } + + xmlAddChild(structNode, descriptionNode); + xmlAddChild(structNode, requirementsNode); + xmlAddChild(structNode, commandsNode); + xmlAddChild(structNode, optionsNode); + xmlAddChild(rootNode, structNode); + + std::string result = Xml::Serialize(rootNode); + xmlFreeNode(rootNode); + return result; + } + + namespace + { + void AddNewNode(xmlNodePtr rootNode, const char* name, const char* type, const char* value) + { + xmlNodePtr memberNode = xmlNewNode(NULL, BAD_CAST "member"); + xmlNodePtr valueNode = xmlNewNode(NULL, BAD_CAST "value"); + xmlNewChild(memberNode, NULL, BAD_CAST "name", BAD_CAST name); + xmlNewChild(valueNode, NULL, BAD_CAST type, BAD_CAST value); + xmlAddChild(memberNode, valueNode); + xmlAddChild(rootNode, memberNode); + } + + const char* BoolToStr(bool value) + { + return value ? "true" : "false"; + } + } +} diff --git a/daemon/extension/Extension.h b/daemon/extension/Extension.h new file mode 100644 index 00000000..6e3e7ef1 --- /dev/null +++ b/daemon/extension/Extension.h @@ -0,0 +1,117 @@ +/* + * This file is part of nzbget. See . + * + * Copyright (C) 2023 Denis + * + * This program 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 2 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 . + */ + +#ifndef EXTENSION_H +#define EXTENSION_H + +#include "ManifestFile.h" + +namespace Extension +{ + struct Kind + { + bool post = false; + bool scan = false; + bool queue = false; + bool scheduler = false; + bool feed = false; + }; + + class Script + { + public: + Script() = default; + ~Script() = default; + + Script& operator=(const Script&) = delete; + Script(const Script&) = delete; + + Script(Script&& other) = default; + Script& operator=(Script&& other) = default; + + void SetEntry(std::string entry); + const char* GetEntry() const; + void SetLocation(std::string location); + const char* GetLocation() const; + void SetRootDir(std::string dir); + const char* GetRootDir() const; + void SetAuthor(std::string author); + const char* GetAuthor() const; + void SetVersion(std::string version); + const char* GetVersion() const; + void SetLicense(std::string license); + const char* GetLicense() const; + void SetHomepage(std::string homepage); + const char* GetHomepage() const; + void SetName(std::string name); + const char* GetName() const; + void SetDisplayName(std::string displayName); + const char* GetDisplayName() const; + void SetAbout(std::string about); + const char* GetAbout() const; + void SetDescription(std::vector description); + const std::vector& GetDescription() const; + void SetKind(Kind kind); + bool GetPostScript() const; + bool GetScanScript() const; + bool GetQueueScript() const; + bool GetSchedulerScript() const; + bool GetFeedScript() const; + void SetQueueEvents(std::string queueEvents); + const char* GetQueueEvents() const; + void SetTaskTime(std::string taskTime); + const char* GetTaskTime() const; + void SetRequirements(std::vector requirements); + const std::vector& GetRequirements() const; + void SetOptions(std::vector options); + const std::vector& GetOptions() const; + void SetCommands(std::vector commands); + const std::vector& GetCommands() const; + + private: + Kind m_kind; + std::string m_entry; + std::string m_location; + std::string m_rootDir; + std::string m_author; + std::string m_version; + std::string m_homepage; + std::string m_license; + std::string m_name; + std::string m_displayName; + std::string m_about; + std::string m_queueEvents; + std::string m_taskTime; + std::vector m_description; + std::vector m_requirements; + std::vector m_options; + std::vector m_commands; + }; + + std::string ToJsonStr(const Script& script); + std::string ToXmlStr(const Script& script); + + namespace + { + void AddNewNode(xmlNodePtr rootNode, const char* name, const char* type, const char* value); + const char* BoolToStr(bool value); + } +} + +#endif diff --git a/daemon/extension/ExtensionLoader.cpp b/daemon/extension/ExtensionLoader.cpp new file mode 100644 index 00000000..c5135f7a --- /dev/null +++ b/daemon/extension/ExtensionLoader.cpp @@ -0,0 +1,459 @@ +/* + * This file is part of nzbget. See . + * + * Copyright (C) 2023 Denis + * + * This program 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 2 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 . + */ + +#include "nzbget.h" + +#include +#include "ExtensionLoader.h" +#include "ManifestFile.h" +#include "ScriptConfig.h" +#include "FileSystem.h" + +namespace ExtensionLoader +{ + const char* BEGIN_SCRIPT_SIGNATURE = "### NZBGET "; + const char* BEGIN_SCRIPT_COMMANDS_AND_OTPIONS = "### OPTIONS"; + const char* POST_SCRIPT_SIGNATURE = "POST-PROCESSING"; + const char* SCAN_SCRIPT_SIGNATURE = "SCAN"; + const char* QUEUE_SCRIPT_SIGNATURE = "QUEUE"; + const char* SCHEDULER_SCRIPT_SIGNATURE = "SCHEDULER"; + const char* FEED_SCRIPT_SIGNATURE = "FEED"; + const char* END_SCRIPT_SIGNATURE = " SCRIPT"; + const char* QUEUE_EVENTS_SIGNATURE = "### QUEUE EVENTS:"; + const char* TASK_TIME_SIGNATURE = "### TASK TIME:"; + const char* DEFINITION_SIGNATURE = "###"; + + const int BEGIN_SCRIPT_COMMANDS_AND_OTPIONS_LEN = strlen(BEGIN_SCRIPT_COMMANDS_AND_OTPIONS); + const int BEGIN_SINGNATURE_LEN = strlen(BEGIN_SCRIPT_SIGNATURE); + const int QUEUE_EVENTS_SIGNATURE_LEN = strlen(QUEUE_EVENTS_SIGNATURE); + const int TASK_TIME_SIGNATURE_LEN = strlen(TASK_TIME_SIGNATURE); + const int DEFINITION_SIGNATURE_LEN = strlen(DEFINITION_SIGNATURE); + + namespace V1 + { + bool Load(Extension::Script& script, const char* location, const char* rootDir) + { + std::ifstream file(script.GetEntry()); + if (!file.is_open()) + { + return false; + } + + std::string queueEvents; + std::string taskTime; + std::string about; + + Extension::Kind kind; + std::vector description; + std::vector requirements; + std::vector options; + std::vector commands; + + bool inBeforeConfig = false; + bool inConfig = false; + bool inAbout = false; + bool inDescription = false; + + // Declarations "QUEUE EVENT:" and "TASK TIME:" can be placed: + // - in script definition body (between opening and closing script signatures); + // - immediately before script definition (before opening script signature); + // - immediately after script definition (after closing script signature). + // The last two pissibilities are provided to increase compatibility of scripts with older + // nzbget versions which do not expect the extra declarations in the script defintion body. + std::string line; + while (std::getline(file, line)) + { + if (line.empty()) + { + continue; + } + if (!inBeforeConfig && !strncmp(line.c_str(), DEFINITION_SIGNATURE, DEFINITION_SIGNATURE_LEN)) + { + inBeforeConfig = true; + } + if (!inBeforeConfig && !inConfig) + { + continue; + } + + // if TASK TIME, e.g. ### TASK TIME: *;*:00;*:30 ### + if (!strncmp(line.c_str(), TASK_TIME_SIGNATURE, TASK_TIME_SIGNATURE_LEN)) + { + taskTime = line.substr(TASK_TIME_SIGNATURE_LEN + 1); + RemoveTailAndTrim(taskTime, "###"); + continue; + } + + if (!strncmp(line.c_str(), BEGIN_SCRIPT_SIGNATURE, BEGIN_SINGNATURE_LEN) && strstr(line.c_str(), END_SCRIPT_SIGNATURE)) + { + if (inConfig) + { + break; + } + inBeforeConfig = false; + inConfig = true; + kind = GetScriptKind(line.c_str()); + continue; + } + + // if QUEUE EVENTS, e.g. ### QUEUE EVENTS: NZB_ADDED, NZB_DOWNLOADED ### + if (!strncmp(line.c_str(), QUEUE_EVENTS_SIGNATURE, QUEUE_EVENTS_SIGNATURE_LEN)) + { + queueEvents = line.substr(QUEUE_EVENTS_SIGNATURE_LEN + 1); + RemoveTailAndTrim(queueEvents, "###"); + continue; + } + + // if about, e.g. # Sorts movies and tv shows. + if (inConfig && !strncmp(line.c_str(), "# ", 2) && !inDescription) + { + inAbout = true; + about.append(line.substr(2)).push_back('\n'); + continue; + } + + if (inConfig && !strncmp(line.c_str(), "#", 1) && inAbout) + { + inAbout = false; + inDescription = true; + continue; + } + + // if requirements: e.g. NOTE: This script requires Python to be installed on your system. + if (inConfig && !strncmp(line.c_str(), "# NOTE: ", 8) && inDescription) + { + requirements.push_back(line.substr(strlen("# NOTE: "))); + continue; + } + + // if description: e.g # This is a script for downloaded TV shows and movies... + if (inConfig && !strncmp(line.c_str(), "# ", 2) && inDescription) + { + description.push_back(line.substr(2)); + continue; + } + + if (!strncmp(line.c_str(), BEGIN_SCRIPT_COMMANDS_AND_OTPIONS, BEGIN_SCRIPT_COMMANDS_AND_OTPIONS_LEN)) + { + ParseOptionsAndCommands(file, options, commands); + break; + } + } + + if (!(kind.post || kind.scan || kind.queue || kind.scheduler || kind.feed)) + { + return false; + } + + BuildDisplayName(script); + Util::TrimRight(about); + + requirements.shrink_to_fit(); + options.shrink_to_fit(); + commands.shrink_to_fit(); + + script.SetLocation(location); + script.SetRootDir(rootDir); + script.SetRequirements(std::move(requirements)); + script.SetKind(std::move(kind)); + script.SetQueueEvents(std::move(queueEvents)); + script.SetAbout(std::move(about)); + script.SetDescription(std::move(description)); + script.SetTaskTime(std::move(taskTime)); + script.SetOptions(std::move(options)); + script.SetCommands(std::move(commands)); + + return true; + } + namespace + { + void RemoveTailAndTrim(std::string& str, const char* tail) + { + size_t tailIdx = str.find(tail); + if (tailIdx != std::string::npos) + { + str.erase(tailIdx); + } + Util::TrimRight(str); + } + + void BuildDisplayName(Extension::Script& script) + { + BString<1024> shortName = script.GetName(); + if (char* ext = strrchr(shortName, '.')) *ext = '\0'; // strip file extension + + const char* displayName = FileSystem::BaseFileName(shortName); + + script.SetDisplayName(displayName); + } + + void ParseOptionsAndCommands( + std::ifstream& file, + std::vector& options, + std::vector& commands) + { + std::vector selectOpts; + std::vector description; + + std::string line; + while (std::getline(file, line)) + { + if (strstr(line.c_str(), END_SCRIPT_SIGNATURE)) + { + break; + } + + if (line.empty()) + { + continue; + } + + size_t selectStartIdx = line.rfind("("); + size_t selectEndIdx = line.rfind(")"); + bool hasSelectOptions = selectStartIdx != std::string::npos + && description.empty() + && selectEndIdx != std::string::npos + && selectEndIdx != std::string::npos + && !strncmp(line.c_str(), "# ", 2); + + // e.g. # Description (Always, OnFailure) or # Description (1-65535) or # Description (1, 2-5, 10). + if (hasSelectOptions) + { + std::string selectOptionsStr = line.substr(selectStartIdx + 1, selectEndIdx - selectStartIdx - 1); + auto result = ExtractElements(selectOptionsStr); + auto& selectOptions = result.first; + auto& delimiter = result.second; + bool canBeNum = delimiter == "-"; + + if (delimiter.empty()) // doesn't have + { + description.push_back(line.substr(2)); + continue; + } + + if (canBeNum) + { + description.push_back(line.substr(2)); + } + else + { + description.push_back(line.substr(2, selectStartIdx - 3) + "."); + } + + selectOpts = GetSelectOptions(selectOptions, canBeNum); + continue; + } + + if (!strncmp(line.c_str(), "# ", 2)) + { + description.push_back(line.substr(2)); + continue; + } + + if (strncmp(line.c_str(), "# ", 2)) + { + // if option, e.g. #ConnectionTest=Send + size_t eqPos = line.find("="); + // if command, e.g. #ConnectionTest@Send Test E-Mail + size_t atPos = line.find("@"); + + if (atPos != std::string::npos && eqPos == std::string::npos) + { + ManifestFile::Command command; + std::string name = line.substr(1, atPos - 1); + std::string action = line.substr(atPos + 1); + Util::Trim(action); + Util::Trim(name); + command.action = std::move(action); + command.name = std::move(name); + command.description = std::move(description); + command.displayName = command.name; + commands.push_back(std::move(command)); + description.clear(); + selectOpts.clear(); + continue; + } + + if (eqPos != std::string::npos) + { + ManifestFile::Option option; + std::string name = line.substr(1, eqPos - 1); + std::string value = line.substr(eqPos + 1); + Util::Trim(value); + Util::Trim(name); + bool canBeNum = !selectOpts.empty() && boost::variant2::get_if(&selectOpts[0]); + option.value = std::move(GetSelectOpt(value, canBeNum)); + option.name = std::move(name); + option.description = std::move(description); + option.select = std::move(selectOpts); + option.displayName = option.name; + options.push_back(std::move(option)); + description.clear(); + selectOpts.clear(); + continue; + } + } + } + } + + std::vector + GetSelectOptions(const std::vector& opts, bool canBeNum) + { + std::vector selectOpts; + + for (const auto& option : opts) + { + selectOpts.push_back(GetSelectOpt(option, canBeNum)); + } + return selectOpts; + } + + ManifestFile::SelectOption GetSelectOpt(const std::string& val, bool canBeNum) + { + if (!canBeNum) + { + return ManifestFile::SelectOption(val); + } + + auto result = Util::StrToNum(val); + if (result.has_value()) + { + return ManifestFile::SelectOption(result.get()); + } + + return ManifestFile::SelectOption(val); + } + + std::pair, std::string> + ExtractElements(const std::string& str) + { + std::vector elements; + std::string word; + + for (size_t i = 0; i < str.size(); ++i) + { + if (i == str.size() - 1) + { + word += str[i]; + elements.push_back(std::move(word)); + break; + } + + if (str[i] == ',') + { + elements.push_back(std::move(word)); + word.clear(); + continue; + } + + if (str[i] == ' ' && word.empty()) + { + continue; + } + + if (str[i] == ' ' && !word.empty()) + { + elements.clear(); + elements.push_back(str); + return std::make_pair(std::move(elements), ""); + } + + if (str[i] == '-' && elements.empty()) + { + std::string restWord; + for (size_t j = i + 1; j < str.size(); ++j) + { + if (j >= str.size() - 1) + { + restWord += str[j]; + elements.push_back(std::move(word)); + elements.push_back(std::move(restWord)); + return std::make_pair(std::move(elements), "-"); + } + + if (str[j] == ' ') + { + elements.push_back(str); + return std::make_pair(std::move(elements), ""); + } + + if (str[j] == ',') + { + word += '-' + restWord; + elements.push_back(std::move(word)); + word.clear(); + i = j; + break; + } + + restWord += str[j]; + } + + continue; + } + + word += str[i]; + } + + return std::make_pair(std::move(elements), ","); + } + } + } + + bool V2::Load(Extension::Script& script, const char* location, const char* rootDir) + { + ManifestFile::Manifest manifest; + if (!ManifestFile::Load(manifest, location)) + return false; + + std::string entry = std::string(location) + PATH_SEPARATOR + manifest.main; + script.SetEntry(std::move(entry)); + script.SetLocation(location); + script.SetRootDir(rootDir); + script.SetAuthor(std::move(manifest.author)); + script.SetHomepage(std::move(manifest.homepage)); + script.SetLicense(std::move(manifest.license)); + script.SetVersion(std::move(manifest.version)); + script.SetDisplayName(std::move(manifest.displayName)); + script.SetName(std::move(manifest.name)); + script.SetAbout(std::move(manifest.about)); + script.SetDescription(std::move(manifest.description)); + script.SetKind(GetScriptKind(manifest.kind)); + script.SetQueueEvents(std::move(manifest.queueEvents)); + script.SetTaskTime(std::move(manifest.taskTime)); + script.SetRequirements(std::move(manifest.requirements)); + script.SetCommands(std::move(manifest.commands)); + script.SetOptions(std::move(manifest.options)); + return true; + } + + namespace + { + Extension::Kind GetScriptKind(const std::string& line) + { + Extension::Kind kind; + kind.post = strstr(line.c_str(), POST_SCRIPT_SIGNATURE) != nullptr; + kind.scan = strstr(line.c_str(), SCAN_SCRIPT_SIGNATURE) != nullptr; + kind.queue = strstr(line.c_str(), QUEUE_SCRIPT_SIGNATURE) != nullptr; + kind.scheduler = strstr(line.c_str(), SCHEDULER_SCRIPT_SIGNATURE) != nullptr; + kind.feed = strstr(line.c_str(), FEED_SCRIPT_SIGNATURE) != nullptr; + return kind; + } + } +} diff --git a/daemon/extension/ExtensionLoader.h b/daemon/extension/ExtensionLoader.h new file mode 100644 index 00000000..1fb504c5 --- /dev/null +++ b/daemon/extension/ExtensionLoader.h @@ -0,0 +1,78 @@ +/* + * This file is part of nzbget. See . + * + * Copyright (C) 2023 Denis + * + * This program 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 2 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 . + */ + +#ifndef EXTENSION_LOADER_H +#define EXTENSION_LOADER_H + +#include +#include "Extension.h" +#include "Util.h" + +namespace ExtensionLoader +{ + extern const char* BEGIN_SCRIPT_SIGNATURE; + extern const char* BEGIN_SCRIPT_COMMANDS_AND_OTPIONS; + extern const char* POST_SCRIPT_SIGNATURE; + extern const char* SCAN_SCRIPT_SIGNATURE; + extern const char* QUEUE_SCRIPT_SIGNATURE; + extern const char* SCHEDULER_SCRIPT_SIGNATURE; + extern const char* FEED_SCRIPT_SIGNATURE; + extern const char* END_SCRIPT_SIGNATURE; + extern const char* QUEUE_EVENTS_SIGNATURE; + extern const char* TASK_TIME_SIGNATURE; + extern const char* DEFINITION_SIGNATURE; + + extern const int BEGIN_SCRIPT_COMMANDS_AND_OTPIONS_LEN; + extern const int BEGIN_SINGNATURE_LEN; + extern const int QUEUE_EVENTS_SIGNATURE_LEN; + extern const int TASK_TIME_SIGNATURE_LEN; + extern const int DEFINITION_SIGNATURE_LEN; + + namespace V1 + { + bool Load(Extension::Script& script, const char* location, const char* rootDir); + namespace + { + void ParseOptionsAndCommands( + std::ifstream& file, + std::vector& options, + std::vector& commands + ); + std::vector + GetSelectOptions(const std::vector& opts, bool isDashDelim); + ManifestFile::SelectOption GetSelectOpt(const std::string& val, bool canBeNum); + void RemoveTailAndTrim(std::string& str, const char* tail); + void BuildDisplayName(Extension::Script& script); + std::pair, std::string> + ExtractElements(const std::string& str); + } + } + + namespace V2 + { + bool Load(Extension::Script& script, const char* location, const char* rootDir); + } + + namespace + { + Extension::Kind GetScriptKind(const std::string& line); + } +} + +#endif diff --git a/daemon/extension/ExtensionManager.cpp b/daemon/extension/ExtensionManager.cpp new file mode 100644 index 00000000..1fe0cad5 --- /dev/null +++ b/daemon/extension/ExtensionManager.cpp @@ -0,0 +1,387 @@ +/* + * This file is part of nzbget. See . + * + * Copyright (C) 2023 Denis + * + * This program 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 2 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 . + */ + +#include "nzbget.h" + +#include +#include "Util.h" +#include "FileSystem.h" +#include "NString.h" +#include "Unpack.h" +#include "ExtensionLoader.h" +#include "ExtensionManager.h" + +namespace ExtensionManager +{ + const Extensions& Manager::GetExtensions() const + { + std::shared_lock lock{m_mutex}; + return m_extensions; + } + + std::pair + Manager::DownloadExtension(const std::string& url, const std::string& extName) + { + BString<1024> tmpFileName; + tmpFileName.Format("%s%cextension-%s.tmp.zip", g_Options->GetTempDir(), PATH_SEPARATOR, extName.c_str()); + + std::unique_ptr downloader = std::make_unique(); + downloader->SetUrl(url.c_str()); + downloader->SetForce(true); + downloader->SetRetry(false); + downloader->SetOutputFilename(tmpFileName); + downloader->SetInfoName(extName.c_str()); + + WebDownloader::EStatus status = downloader->DownloadWithRedirects(5); + downloader.reset(); + + return std::make_pair(status, tmpFileName.Str()); + } + + boost::optional + Manager::UpdateExtension(const std::string& filename, const std::string& extName) + { + std::unique_lock lock{m_mutex}; + + auto extensionIt = GetByName(extName); + if (extensionIt == std::end(m_extensions)) + { + return "Failed to find " + extName; + } + + if (extensionIt->use_count() > 1) + { + return "Failed to update: " + filename + " is executing"; + } + + const auto deleteExtError = DeleteExtension(*(*extensionIt)); + if (deleteExtError) + { + if (!FileSystem::DeleteFile(filename.c_str())) + { + return "Failed to delete extension and temp file: " + filename; + } + + return deleteExtError; + } + + const auto installExtError = InstallExtension(filename, (*extensionIt)->GetRootDir()); + if (installExtError) + { + return installExtError; + } + + m_extensions.erase(extensionIt); + return boost::none; + } + + boost::optional + Manager::InstallExtension(const std::string& filename, const std::string& dest) + { + if (Util::EmptyStr(g_Options->GetSevenZipCmd())) + { + + return std::string("\"SevenZipCmd\" is not specified"); + } + + UnpackController unpacker; + std::string outputDir = "-o" + dest; + UnpackController::ArgList args = { + g_Options->GetSevenZipCmd(), + "x", + filename.c_str(), + outputDir.c_str(), + "-y", + }; + unpacker.SetArgs(std::move(args)); + + int res = unpacker.Execute(); + + if (res != 0) + { + if (!FileSystem::DeleteFile(filename.c_str())) + { + return "Failed to unpack and delete temp file: " + filename; + } + + return "Failed to unpack " + filename; + } + + if (!FileSystem::DeleteFile(filename.c_str())) + { + return "Failed to delete temp file: " + filename; + } + + return boost::none; + } + + boost::optional + Manager::DeleteExtension(const std::string& name) + { + std::unique_lock lock{m_mutex}; + + auto extensionIt = GetByName(name); + if (extensionIt == std::end(m_extensions)) + { + return "Failed to find " + name; + } + + if (extensionIt->use_count() > 1) + { + return "Failed to delete: " + name + " is executing"; + } + + const auto err = DeleteExtension(*(*extensionIt)); + if (err) + { + return err; + } + + m_extensions.erase(extensionIt); + return boost::none; + } + + boost::optional + Manager::LoadExtensions() + { + const char* scriptDir = g_Options->GetScriptDir(); + if (Util::EmptyStr(scriptDir)) + { + return std::string("\"ScriptDir\" is not specified"); + } + + std::unique_lock lock{m_mutex}; + + m_extensions.clear(); + + Tokenizer tokDir(scriptDir, ",;"); + while (const char* extensionDir = tokDir.Next()) + { + LoadExtensionDir(extensionDir, false, extensionDir); + } + + Sort(g_Options->GetScriptOrder()); + CreateTasks(); + m_extensions.shrink_to_fit(); + + return boost::none; + } + + boost::optional + Manager::DeleteExtension(const Extension::Script& ext) + { + const char* location = ext.GetLocation(); + + ptrdiff_t count = std::count_if( + std::begin(m_extensions), + std::end(m_extensions), + [&location](const auto& ext) { return strcmp(location, ext->GetLocation()) == 0; } + ); + + if (count > 1) + { + // for backward compatibility, when multiple V1 extensions placed + // in the same directory in which case we have to delete an entry file, + // not the entire directory. + location = ext.GetEntry(); + } + + if (FileSystem::DirectoryExists(location)) + { + CString err; + if (!FileSystem::DeleteDirectoryWithContent(location, err)) + { + return boost::optional(err.Str()); + } + + return boost::none; + } + else if (FileSystem::FileExists(location) && FileSystem::DeleteFile(location)) + { + return boost::none; + } + + return std::string("Failed to delete ") + location; + } + + void Manager::LoadExtensionDir(const char* directory, bool isSubDir, const char* rootDir) + { + Extension::Script extension; + + if (ExtensionLoader::V2::Load(extension, directory, rootDir)) { + if (!Exists(extension.GetName())) + { + m_extensions.emplace_back(std::make_shared(std::move(extension))); + return; + } + } + + DirBrowser dir(directory); + while (const char* filename = dir.Next()) + { + if (filename[0] == '.' || filename[0] == '_') + continue; + + BString<1024> entry("%s%c%s", directory, PATH_SEPARATOR, filename); + if (!FileSystem::DirectoryExists(entry)) + { + std::string name = GetExtensionName(filename); + if (Exists(name)) + { + continue; + } + + const char* location = isSubDir ? directory : *entry; + extension.SetEntry(*entry); + extension.SetName(std::move(name)); + if (ExtensionLoader::V1::Load(extension, location, rootDir)) + { + m_extensions.emplace_back(std::make_shared(std::move(extension))); + } + } + else if (!isSubDir) + { + LoadExtensionDir(entry, true, rootDir); + } + } + } + + void Manager::CreateTasks() const + { + for (const auto extension : m_extensions) + { + if (!extension->GetSchedulerScript() || Util::EmptyStr(extension->GetTaskTime())) + { + continue; + } + Tokenizer tok(g_Options->GetExtensions(), ",;"); + while (const char* scriptName = tok.Next()) + { + if (strcmp(scriptName, extension->GetName()) == 0) + { + g_Options->CreateSchedulerTask( + 0, + extension->GetTaskTime(), + nullptr, + Options::scScript, + extension->GetName() + ); + break; + } + } + } + } + + bool Manager::Exists(const std::string& name) const + { + return GetByName(name) != std::end(m_extensions); + } + + void Manager::Sort(const char* orderStr) + { + auto comparator = [](const auto& a, const auto& b) -> bool + { + return strcmp(a->GetName(), b->GetName()) < 0; + }; + + if (Util::EmptyStr(orderStr)) + { + std::sort( + std::begin(m_extensions), + std::end(m_extensions), + comparator + ); + return; + } + + std::vector order; + Tokenizer tokOrder(orderStr, ",;"); + while (const char* extName = tokOrder.Next()) + { + auto pos = std::find( + std::begin(order), + std::end(order), + extName + ); + + if (pos == std::end(order)) + { + order.push_back(extName); + } + } + + if (order.empty()) + { + std::sort( + std::begin(m_extensions), + std::end(m_extensions), + comparator + ); + return; + } + + size_t count = 0; + for (size_t i = 0; i < order.size(); ++i) + { + const std::string& name = order[i]; + auto it = std::find_if( + std::begin(m_extensions), + std::end(m_extensions), + [&name](const auto& ext) + { + return name == ext->GetName(); + } + ); + if (it != std::end(m_extensions)) + { + std::iter_swap(std::begin(m_extensions) + count, it); + ++count; + } + } + + std::sort( + std::begin(m_extensions) + count, + std::end(m_extensions), + comparator + ); + } + + std::string Manager::GetExtensionName(const std::string& fileName) const + { + size_t lastIdx = fileName.find_last_of("."); + if (lastIdx != std::string::npos) + { + return fileName.substr(0, lastIdx); + } + + return fileName; + } + + Extensions::const_iterator Manager::GetByName(const std::string& name) const + { + return std::find_if( + std::begin(m_extensions), + std::end(m_extensions), + [&name](const auto& ext) + { + return ext->GetName() == name; + } + ); + } +} diff --git a/daemon/extension/ExtensionManager.h b/daemon/extension/ExtensionManager.h new file mode 100644 index 00000000..6a9c63f9 --- /dev/null +++ b/daemon/extension/ExtensionManager.h @@ -0,0 +1,82 @@ +/* + * This file is part of nzbget. See . + * + * Copyright (C) 2023 Denis + * + * This program 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 2 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 . + */ + +#ifndef EXTENSION_MANAGER_H +#define EXTENSION_MANAGER_H + +#include +#include +#include +#include +#include +#include "WebDownloader.h" +#include "Options.h" +#include "Extension.h" + +namespace ExtensionManager +{ + using Extensions = std::vector>; + + class Manager + { + public: + Manager() = default; + ~Manager() = default; + + Manager(const Manager&) = delete; + Manager& operator=(const Manager&) = delete; + + Manager(Manager&&) = delete; + Manager& operator=(Manager&&) = delete; + + boost::optional + InstallExtension(const std::string& filename, const std::string& dest); + + boost::optional + UpdateExtension(const std::string& filename, const std::string& extName); + + boost::optional + DeleteExtension(const std::string& name); + + boost::optional + LoadExtensions(); + + std::pair + DownloadExtension(const std::string& url, const std::string& info); + + const Extensions& GetExtensions() const; + + private: + void LoadExtensionDir(const char* directory, bool isSubDir, const char* rootDir); + void CreateTasks() const; + Extensions::const_iterator GetByName(const std::string& name) const; + bool Exists(const std::string& name) const; + void Sort(const char* order); + std::string GetExtensionName(const std::string& fileName) const; + boost::optional + DeleteExtension(const Extension::Script& ext); + + Extensions m_extensions; + mutable std::shared_timed_mutex m_mutex; + }; +} + +extern ExtensionManager::Manager* g_ExtensionManager; + +#endif diff --git a/daemon/extension/FeedScript.cpp b/daemon/extension/FeedScript.cpp index 03b1477d..be36a889 100644 --- a/daemon/extension/FeedScript.cpp +++ b/daemon/extension/FeedScript.cpp @@ -40,7 +40,7 @@ void FeedScriptController::ExecuteScripts(const char* feedScript, const char* fe } } -void FeedScriptController::ExecuteScript(ScriptConfig::Script* script) +void FeedScriptController::ExecuteScript(std::shared_ptr script) { if (!script->GetFeedScript()) { @@ -49,7 +49,7 @@ void FeedScriptController::ExecuteScript(ScriptConfig::Script* script) PrintMessage(Message::mkInfo, "Executing feed-script %s for Feed%i", script->GetName(), m_feedId); - SetArgs({script->GetLocation()}); + SetArgs({script->GetEntry()}); BString<1024> infoName("feed-script %s for Feed%i", script->GetName(), m_feedId); SetInfoName(infoName); diff --git a/daemon/extension/FeedScript.h b/daemon/extension/FeedScript.h index 5dc6d0e6..86a98b22 100644 --- a/daemon/extension/FeedScript.h +++ b/daemon/extension/FeedScript.h @@ -29,7 +29,7 @@ class FeedScriptController : public NzbScriptController static void ExecuteScripts(const char* feedScript, const char* feedFile, int feedId, bool* success); protected: - virtual void ExecuteScript(ScriptConfig::Script* script); + virtual void ExecuteScript(std::shared_ptr script); private: const char* m_feedFile; diff --git a/daemon/extension/ManifestFile.cpp b/daemon/extension/ManifestFile.cpp new file mode 100644 index 00000000..bed19e5e --- /dev/null +++ b/daemon/extension/ManifestFile.cpp @@ -0,0 +1,232 @@ +/* + * This file is part of nzbget. See . + * + * Copyright (C) 2023 Denis + * + * This program 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 2 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 . + */ + +#include "nzbget.h" + +#include +#include "ManifestFile.h" +#include "Json.h" +#include "FileSystem.h" + +namespace ManifestFile +{ + const char* MANIFEST_FILE = "manifest.json"; + + bool Load(Manifest& manifest, const char* directory) + { + BString<1024> path("%s%c%s", directory, PATH_SEPARATOR, MANIFEST_FILE); + std::ifstream fs(path); + if (!fs.is_open()) + return false; + + Json::ErrorCode ec; + Json::JsonValue jsonValue = Json::Deserialize(fs, ec); + if (ec) + return false; + + Json::JsonObject json = jsonValue.as_object(); + + if (!ValidateAndSet(json, manifest)) + return false; + + return true; + } + + namespace + { + bool ValidateAndSet(const Json::JsonObject& json, Manifest& manifest) + { + if (!CheckKeyAndSet(json, "author", manifest.author)) + return false; + + if (!CheckKeyAndSet(json, "main", manifest.main)) + return false; + + if (!CheckKeyAndSet(json, "homepage", manifest.homepage)) + return false; + + if (!CheckKeyAndSet(json, "about", manifest.about)) + return false; + + if (!CheckKeyAndSet(json, "version", manifest.version)) + return false; + + if (!CheckKeyAndSet(json, "name", manifest.name)) + return false; + + if (!CheckKeyAndSet(json, "displayName", manifest.displayName)) + return false; + + if (!CheckKeyAndSet(json, "kind", manifest.kind)) + return false; + + if (!CheckKeyAndSet(json, "license", manifest.license)) + return false; + + if (!CheckKeyAndSet(json, "taskTime", manifest.taskTime)) + return false; + + if (!CheckKeyAndSet(json, "queueEvents", manifest.queueEvents)) + return false; + + if (!ValidateOptionsAndSet(json, manifest.options)) + return false; + + if (!ValidateCommandsAndSet(json, manifest.commands)) + return false; + + if (!ValidateTxtAndSet(json, manifest.description, "description")) + return false; + + if (!ValidateTxtAndSet(json, manifest.requirements, "requirements")) + return false; + + return true; + } + + bool ValidateCommandsAndSet(const Json::JsonObject& json, std::vector& commands) + { + auto rawCommands = json.if_contains("commands"); + if (!rawCommands || !rawCommands->is_array()) + return false; + + for (auto& value : rawCommands->as_array()) + { + Json::JsonObject cmdJson = value.as_object(); + Command command; + + if (!CheckKeyAndSet(cmdJson, "name", command.name)) + continue; + + if (!CheckKeyAndSet(cmdJson, "displayName", command.displayName)) + continue; + + if (!ValidateTxtAndSet(cmdJson, command.description, "description")) + continue; + + if (!CheckKeyAndSet(cmdJson, "action", command.action)) + continue; + + commands.emplace_back(std::move(command)); + } + + commands.shrink_to_fit(); + + return true; + } + + bool ValidateOptionsAndSet(const Json::JsonObject& json, std::vector