LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-13-2011, 08:08 AM   #1
aero_z
Member
 
Registered: Dec 2008
Posts: 30

Rep: Reputation: 16
configure & make problem - autotools and version control


Hello

I am developing a small game. I have my project under version control (subversion).
Yesterday I noticed that after checkout you can't just compile the game in the usual way:

./configure
make
(this doesn't work)

This is because install-sh and other files are missing in the repository. I have a ./bootstrap script that solves the problem, but I want the configure script to work right away. So I started adding files under version control. Now I have these autotools related files in svn:

Makefile.am
Makefile.in
aclocal.m4
bootstrap
config.h.in
configure
configure.in
depcomp
install-sh
missing
src/Makefile.am
src/Makefile.in

But it still doesnt work as expected:
Code:
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
--- removed stuff ---
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands

$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/christian/Development/astrotest/missing --run autoconf
 cd . && /bin/bash /home/christian/Development/astrotest/missing --run automake-1.11 --foreign
/bin/bash ./config.status --recheck
running CONFIG_SHELL=/bin/bash /bin/bash ./configure --no-create --no-recursion
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
--- removed several lines ---
configure: creating ./config.status
 /bin/bash ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/christian/Development/astrotest/missing --run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/home/christian/Development/astrotest'
Making all in src
make[2]: Entering directory `/home/christian/Development/astrotest/src'
g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -MT Camera.o -MD -MP -MF .deps/Camera.Tpo -c -o Camera.o Camera.cpp
--- compiling ---
The configure script runs fine but when I run make, somehow the configure script is called again and some autotools like automake and autoconf are executed.
What can I do have the package build normally without having to run automake and others?
Which files do you have under version control?

Thank you very much!

Last edited by aero_z; 02-13-2011 at 08:46 AM.
 
Old 02-14-2011, 10:15 AM   #2
aero_z
Member
 
Registered: Dec 2008
Posts: 30

Original Poster
Rep: Reputation: 16
Is maybe a file not up to date? Why does it work without problems when I run ./bootstrap before? (aclocal, autoconf, automake, autoheader)
 
Old 02-14-2011, 01:30 PM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
"/bin/bash ./config.status --recheck" is what makes them get re-run.
Usually code from repos comes like you describe. They simply run a bootstrap or autonge.sh script which creates the needed file for a release tarball. You can often simply run 'autoreconf -if' to do what the autogen.sh script would do. One this is done in the sources, it makes the config files more version-dependent -for the autoconf/automake/libtool tools I mean.
 
Old 02-15-2011, 05:49 PM   #4
aero_z
Member
 
Registered: Dec 2008
Posts: 30

Original Poster
Rep: Reputation: 16
Actually I thought the user should be able to compile the code from the repository without having to use autotools. But I checked out some repositories of free projects (SDL, xmoto, gedit, wget) and none of them had a ready to use configure script.
It makes sense, since mostly you only use the repository if you are a developer.
I will remove the configure script from the repository too...
Thanks for the info.
 
Old 02-16-2011, 03:07 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
One thing more, even if you deliver a pre-configured tarball (I mean that has all the config files pre-generated), the 'recheck' option will cause them all to be regenerated when issuing 'make', so it would still requite your users to have automake/autoconf/libtool/m4/perl (and possibly intltool) installed.
 
Old 02-16-2011, 04:08 AM   #6
aero_z
Member
 
Registered: Dec 2008
Posts: 30

Original Poster
Rep: Reputation: 16
And how do I deactivate recheck?
 
Old 02-16-2011, 11:32 AM   #7
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,541

Rep: Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878
Quote:
Originally Posted by gnashley View Post
One thing more, even if you deliver a pre-configured tarball (I mean that has all the config files pre-generated), the 'recheck' option will cause them all to be regenerated when issuing 'make', so it would still requite your users to have automake/autoconf/libtool/m4/perl (and possibly intltool) installed.
No, the recheck option reruns configure, autotools are not required.
 
  


Reply

Tags
autotools, configure, make, subversion


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why PKGBUILD and not ./configure && make && make install? slkrover Arch 2 08-09-2010 04:04 AM
USB ports not working properly- Slack 12.2 & old-ish motherboard bogzab Slackware 6 08-27-2009 05:08 AM
these commands are not working on my server (./configure, make, make install) Anil Kumar K Linux - Software 3 07-02-2007 08:23 AM
Using GNU autotools properly MadCactus Linux - Software 0 08-19-2004 08:36 AM
Linux creating VFAT partitions & them not working properly! Thymox General 4 12-07-2001 04:51 AM


All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration