Skip to content

Commit

Permalink
Update gdalBindings configuration for broader compatibility
Browse files Browse the repository at this point in the history
Upgraded the configuration settings for gdalBindings to version 0.1.25, introducing a more sophisticated environment detection and compatibility logic. This update mandates autoconf 2.71 or newer, streamlining the build process. R-specific compilers and flags are now explicitly set, enhancing the portability and efficiency of compilation across different environments. The dependency on a C compiler has been shifted to a C++ compiler requirement, reflecting the project's reliance on C++ codebases.

The macOS specific configurations have been removed in favor of a universal approach that checks for GDAL dependencies using pkg-config and validates the presence of essential headers like gdal.h. A new macro, GDAL_TEST_PROGRAM_IFELSE, ensures the GDAL library can be correctly linked, either through pkg-config directly or via gdal-config as a fallback. This change aims to simplify the setup process on various systems and reduce platform-specific code, making the build system more robust and easier to maintain.

The dependency resolution logic now more gracefully handles failures, giving clear error messages when GDAL cannot be linked, thus improving the developer experience by making troubleshooting more straightforward.

This enhancement directly addresses the need for a more adaptive and fail-proof configuration process, especially important as the project expands to support a wider array of build environments and compiler setups.
  • Loading branch information
caiohamamura committed May 22, 2024
1 parent 5974eab commit 67c105e
Show file tree
Hide file tree
Showing 2 changed files with 1,458 additions and 463 deletions.
Loading

0 comments on commit 67c105e

Please sign in to comment.