Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What does ./configure do?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
chobo
n00b
n00b


Joined: 11 Aug 2005
Posts: 12

PostPosted: Tue Aug 16, 2005 6:04 pm    Post subject: What does ./configure do? Reply with quote

Tried to install some kde-themes, and i had to do ./configure in the theme directory
what does that do? and anyway i can undo ./configure?
Back to top
View user's profile Send private message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Tue Aug 16, 2005 6:11 pm    Post subject: Reply with quote

./configure is part of the Make system, it usually sets the path to some needed binaries, and get various environment variables. I forget exactly where it stores the values, it probably something like .config or someother dot file. If you do an
Code:
 ls -lart
it will show the newest files in the current directory at the bottom of the list. You proabably don't need to undo the ./configure, you can always just run it again and it will overwrite the values.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Tue Aug 16, 2005 6:13 pm    Post subject: Reply with quote

./configure basically is a script that scans that the dependancies and tools needed for a sussessful comiling are present and work.
It also sets up the initial conditions for the "make" part (what follows ./configure)

The thing is Gentoo automates the

./configure
make
make install

so all you have to do is go "emerge foo"



odd you have to do that, did you try to install manually or let portage take control?
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
Gridmark
n00b
n00b


Joined: 11 Mar 2005
Posts: 22
Location: Dallas

PostPosted: Tue Aug 16, 2005 6:16 pm    Post subject: Reply with quote

Long answer:

All the configure script does is checks for certin files, variables, headers, libraries, etc related to the compiling of software (i.e. where KDE is installed, what kind of processor you are running, etc).
It's not making any changes to your system. When you're emerge'ing any software and you see something like the following:
Code:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk

That would be the configure script (Actually automake) doing its thing.

Short answer: ./configure is a good thing. Don't worry.
_________________
If it aint broke, fix it till it is.
Back to top
View user's profile Send private message
chobo
n00b
n00b


Joined: 11 Aug 2005
Posts: 12

PostPosted: Tue Aug 16, 2005 6:26 pm    Post subject: Reply with quote

well.. i tried "emerge <theme-name>", but portage doesn't detect anything.
I also tried putting the tar file in /usr/portage/distfiles, and typed "emerge <theme-name>" again. It still doesnt detect anything.

Or am i doing something wrong?
Back to top
View user's profile Send private message
opqdan
Guru
Guru


Joined: 13 Dec 2004
Posts: 429
Location: Redmond, WA, USA

PostPosted: Tue Aug 16, 2005 6:42 pm    Post subject: Reply with quote

You would have to inject the package into portage by setting up a portage overlay, creating an ebuild script and running the digest command on it.

This is probably a lot more work then you want to do to install something like a theme. Just do the ./configure, make, etc, but remember that this may cause problems down the road since portage has no idea that the package exists.

Where did you get this kde theme? In my experience, they usually come as tar.gz files that can be directly installed through the control-panel.
Back to top
View user's profile Send private message
Sangeki
Apprentice
Apprentice


Joined: 23 Apr 2005
Posts: 186

PostPosted: Wed Aug 17, 2005 1:04 am    Post subject: Reply with quote

opqdan wrote:
they usually come as tar.gz files that can be directly installed through the control-panel.



Erm, that's true for icon themes but that pretty much about it.

New Styles have to be compiled, like new GTK engines also have to be compiled.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum