Autogen and relative prefix

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
Post Reply
Lachu
Elite
Posts: 472
Joined: Sat May 04, 2013 2:19 pm

Autogen and relative prefix

Post 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?
louis94
Hardened
Posts: 270
Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium

Re: Autogen and relative prefix

Post by louis94 »

There is no way to set the prefix to a relative path. $PWD expands to the complete path of the current directory.
Post Reply