If you look in config.log for any software package that uses a configure script, you will find that configure conveniently saves what the user has passed to configure. Example:
./configure PREFIX=$HOME/tmp --enable-foo --enable-bar
My question is where can I find what the user passed in so I can save it as a string? I've already checked $1 (which has a string value of "dummy") and $2 (which has a string value of "make"). Thanks.