Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gdalBindings configuration for broader compatibility
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