bootstrap: script options do not take absolute paths
When invoking a configure script generated by autotools, or by any other means, you can set various install directories, such prefix, as bindir, includedir, datadir, etc. CMake's bootstrap configure script also respects some of these install directories, however, it takes relative paths. If I use --prefix=/usr --bindir=/usr/cmake-bin
, as an example, I am given a Makefile that'll install cmake binaries to /usr/usr/cmake-bin
, as it does not take absolute paths for anything but --prefix
. On a configure script autogenerated by Autotools, it'll take absolute paths just fine.
The behavior is somewhat inline with the GNUInstallDirs module, which, when not given an absolute path, uses PREFIX or other toplevel variables(/var if RUNSTATEDIR is relative). However, this module is not present in the cmake version of the build system(why?) and the behavior isn't properly replicated across into the configure script.