I have used GNU autoconf to generate a configure script for a program of mine, which I am now trying to cross-compile for Windows.
Under Linux, to change the location of the data files I supply --datarootdir=/blah
which works fine. Under Windows however, my application's path won't be known until run time (as the user could choose to install it anywhere.) Therefore I want to set the data directory to be the current directory, wherever that may be at the time the application is launched.
Unfortunately, passing --datarootdir=.
doesn't work:
configure: error: expected an absolute directory name for --datarootdir: .
How do you tell Autoconf/configure that you want a path relative to the current directory at run time?