View previous topic :: View next topic |
Author |
Message |
feivelda Guru
Joined: 21 Feb 2005 Posts: 480 Location: Frankfurt, Germany
|
Posted: Fri Jun 30, 2006 6:14 am Post subject: [Solved] Autoconf again |
|
|
I want to make the configure script for kommute, it's a kde project.
First I tried
Code: | make -f Makefile.cvs |
This doesn't work, due to autoconf
So I searched the forums and tried another way
Code: | WANT_AUTOCONF_2_5="1" make -f Makefile.cvs |
This gives me the same as without the WANT_AUTOCONF variable
Code: | WANT_AUTOCONF_2_5="1" make -f Makefile.cvs
This Makefile is only for the CVS repository
This will be deleted before making the distribution
*** YOU'RE USING autoconf (GNU Autoconf) 2.60.
*** KDE requires autoconf 2.52, 2.53 or 2.54
make[1]: *** [cvs] Fehler 1
make: *** [all] Fehler 2 |
So, what can I do?
Last edited by feivelda on Sun Jul 02, 2006 6:37 pm; edited 1 time in total |
|
Back to top |
|
|
phajdan.jr Retired Dev
Joined: 23 Mar 2006 Posts: 1777 Location: Poland
|
Posted: Fri Jun 30, 2006 3:36 pm Post subject: |
|
|
The syntax is
Code: |
WANT_AUTOCONF="2.5" your command here...
|
because gentoo uses its own (not sure) autoconf wrapper. |
|
Back to top |
|
|
feivelda Guru
Joined: 21 Feb 2005 Posts: 480 Location: Frankfurt, Germany
|
Posted: Fri Jun 30, 2006 8:26 pm Post subject: |
|
|
The error message is the same as above |
|
Back to top |
|
|
phajdan.jr Retired Dev
Joined: 23 Mar 2006 Posts: 1777 Location: Poland
|
Posted: Fri Jun 30, 2006 8:28 pm Post subject: |
|
|
See how it is done in /usr/portage/eclass/kde.eclass and related. |
|
Back to top |
|
|
feivelda Guru
Joined: 21 Feb 2005 Posts: 480 Location: Frankfurt, Germany
|
Posted: Sun Jul 02, 2006 6:37 pm Post subject: |
|
|
Thank you for this tip.
I builded a script, this solves the issue
Code: | #/bin/bash
# This is needed to fix building with autoconf 2.60.
# Many thanks to who preferred such a stupid check rather
# than a working arithmetic comparison.
[[ -f admin/cvs.sh ]] && sed -i -e '/case $AUTO\(CONF\|HEADER\)_VERSION in/,+1 s/2\.5/2.[56]/g' admin/cvs.sh
# rebuild configure script, etc
# This can happen with e.g. a cvs snapshot
if [ ! -f "./configure" ] || [ -n "$UNSERMAKE" ]; then
for x in Makefile.cvs admin/Makefile.common; do
if [ -f "$x" ] && [ -z "$makefile" ]; then makefile="$x"; fi
done
if [ -f "$makefile" ]; then
debug-print "$FUNCNAME: configure: generating configure script, running make -f $makefile"
make -j1 -f $makefile
fi
[ -f "./configure" ] || die "no configure script found, generation unsuccessful"
fi |
|
|
Back to top |
|
|
|