Page 1 of 1

Autogen and relative prefix

Posted: Tue Dec 17, 2019 1:55 pm
by Lachu
Hi. I didn't known should I put this thread in tech support or development forum.
I need to compile freeciv with prefix set to "." (directory set as current working directory, when the programs run).
I type:

Code: Select all

./autogen.sh

The result is (last message):

Code: Select all

configure: error: expected an absolute directory name for --prefix: .

configure failed


Full output:

Code: Select all

+ checking for autoconf >= 2.61 ... found 2.69, ok.
+ checking for autoheader >= 2.61 ... found 2.69, ok.
+ checking for automake >= 1.10 ... found 1.15, ok.
+ checking for aclocal >= 1.10 ... found 1.15, ok.
+ checking for libtoolize >= 1.5.2 ... found 2.4.6, ok.
+ checking for python ... found 2.7.12, ok.
+ checking for xgettext >= 0.14 ... found 0.19.8.1, ok.
+ checking for msgfmt >= 0.14 ... found 0.19.8.1, ok.
+ running aclocal ...
+ running autoheader ...
+ running libtoolize ...
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'bootstrap'.
libtoolize: copying file 'bootstrap/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
+ running aclocal for libtool installed files...
+ running autoconf ...
+ running automake ...
configure.ac:16: installing 'bootstrap/compile'
configure.ac:78: installing 'bootstrap/missing'
ai/Makefile.am: installing 'bootstrap/depcomp'
+ removing config.cache ...
+ running configure ...

using:  --prefix=.

configure: error: expected an absolute directory name for --prefix: .

configure failed

Additionally, I need to set different binaries/data copy/destination directory, because I will create archive with it (archive won't contains sources, etc.).
Any help?

Re: Autogen and relative prefix

Posted: Thu Dec 26, 2019 6:10 pm
by louis94
There is no way to set the prefix to a relative path. $PWD expands to the complete path of the current directory.