How to fetch ./configure parameters used at last time?

8,761

Solution 1

Was the decompressed source directory kept around? If so, the configure flags would typically be in config.status or config.log.

This differs slightly depending on the software and whether or not autoconf was used.

Solution 2

config.status has a --config flag to print out the last configuration. I found it by running ./config.status --help

--config     print configuration, then exit

So just run ./config.status --config, and it will print out all the configure parameters.

Share:
8,761

Related videos on Youtube

Vladislav Rastrusny
Author by

Vladislav Rastrusny

Updated on September 17, 2022

Comments

  • Vladislav Rastrusny
    Vladislav Rastrusny almost 2 years

    I am upgrading LAMP stack on customer's server and need to ./configure mysql and apache with exact last settings they were compiled with last time. Where do I get these? PHP configure string can be got by php -i. What about others?

  • Vladislav Rastrusny
    Vladislav Rastrusny over 14 years
    This is not evangelical, this is just how that works ;) Unfortunately, RPM versions don't satisfy that case.
  • Ophidian
    Ophidian over 14 years
    This is the usual "I'm running CentOS but I need more recent versions of everything" case?
  • William Pursell
    William Pursell over 14 years
    +1: Also (assuming configure was generated by autoconf), you can reconfigure using the same flags by running $ config.status --recheck.
  • Vladislav Rastrusny
    Vladislav Rastrusny over 14 years
    No. Different reasons. CentOS version of Apache does not support worker mpm for example. Being torrent tracker, server needed worker mpm. etc.
  • Ophidian
    Ophidian over 14 years
    I suppose you could rebuild the source rpm with support turned on... A patch on the spec might be easier to maintain. You probably need to have your own, higher epoch set up so that system updates to httpd don't override yours.