Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to build the source of a package on myself (new version, some additions) but I want to use the ./configure options from the original package as a starting point. I can't find anything in the source package, so where can I see the actual options used to compile a binary Debian package?

The Name of the package is php5-cgi.

share|improve this question
What is the name of the package? – jaume Mar 13 '13 at 10:08
I've added the name in the question. – Fu86 Mar 13 '13 at 10:28
up vote 5 down vote accepted

The options should be in the source package in the debian/rules file.

You can also check the build log, to see how exactly the package was built.
Search for the package on
Follow the links to the version you want to check and click on the result to see the full log file and search for ./configure.

share|improve this answer
Great! But I can't find php5-cgi with the search :( – Fu86 Mar 13 '13 at 10:29
php5-cgi is a sub-package (unsure if this is the correct term) of the php5 package. You can figure this out by searching for the package on and follow the "Developer Information" link on the right hand side. Note: since it's using sub-packages there might be multiple ./configure calls in the log. – faker Mar 13 '13 at 10:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.