What about storing the last command-line in .installed.cfg (or somewhere else) as configure does in config.status ?
Bug watches keep track of this bug in other bug trackers.