LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2008, 02:21 AM   #1
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
Question Is it possible to get the ./configure options used to compile some code???


Hi All,
I'm wondering as i think i may need to be able to get this info if possible, but how can you find out what ./configure options were used to compile the source code of programs in the first place...i mean all sorts of programs....including apache. PHP is easy because you can get it with php -i or php.info pages....but is it possible to get this info for other packages as well that are compiled from source.

Thanks Regards

Ps- main reason being so if i need to compile in something new to the prog, i could use the same configure options as already used to get everything required compiled in...as well as...the extra options i want to configure into the prog as well.
 
Old 08-12-2008, 02:25 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
Short answer is that you can't in general. Some software will maintain those options in a config file installed into the system, as you've noted.

I find it most useful to create and maintain my own ~/etc/configs directory, where I store the config options I use to rebuild software. Then I just:

sh ~/etc/config/prog.config
make test install
 
Old 08-12-2008, 02:39 AM   #3
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Original Poster
Rep: Reputation: 39
oh dear...shame i would think that is a useful little and simple thing for software makers to do..(not that i'm criticizing how good the software is people create at all)

How would someone go about working out these options if at all possible when someone else has installed the software in the first place?

And thanks and noted...i think in future this is certainly something that should happen!! (noteing compilation instructions)
 
Old 08-12-2008, 02:43 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Assuming the configure script is one of these autoconf/automake configure scripts, it should have written a file called config.log in the directory where it was run. This usually contains a copy of the command used to invoke it. Of course, this only applies to packages you have built yourself, and where you have not cleaned up the source.
 
Old 08-12-2008, 03:12 AM   #5
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Original Poster
Rep: Reputation: 39
Thanks i think this could be what i needed...

But still if there are any other ways as well please anybody do tell
 
Old 08-12-2008, 04:41 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Some programs will give information on how it was built. Look at "gcc -v".

Also check for documentation installed with the package such as in /usr/share/doc/<package>-<version>/ or /usr/share/doc/packages/<package>/.
 
Old 08-15-2008, 02:24 AM   #7
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Original Poster
Rep: Reputation: 39
Thanks...all this is useful stuff...Cheers all
 
  


Reply


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
compile options teufelhund Slackware 5 04-12-2006 02:22 AM
./Compile options for Slackware redjokerx Slackware 6 08-31-2004 02:33 PM
How do you compile your software using optimization options (during the ./configure) joelf Linux - Software 3 09-25-2003 12:19 PM
pppd options error (exit code 2) NiallC Linux - Hardware 3 02-10-2003 01:47 AM
./configure - which options? Zingaro2002 Linux - General 4 01-24-2003 01:18 PM


All times are GMT -5. The time now is 11:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration