[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Printing configure arguments
From: |
Adam Mercer |
Subject: |
Re: Printing configure arguments |
Date: |
Mon, 24 May 2010 18:53:05 -0500 |
On Mon, May 24, 2010 at 18:41, Sam Shin <address@hidden> wrote:
> I am trying to print what a user would pass to a configure script. For
> example:
>
> ./configure --enable-foo --enable-bar
>
> I noticed that in config.log, the configure script will save a copy of how
> it was called by the user. Is there a variable that stores this information?
> So far the only solution I've come up with is using cat config.log | grep
> "./configure" but I feel like there is a much more elegant solution.
I use $ac_configure_args to get this, i.e.:
AC_DEFINE_UNQUOTED([LAL_CONFIGURE_ARGS],["$ac_configure_args"],[LAL
Configure Arguments])
then in codes this can be accessed using the LAL_CONFIGURE_ARGS definition.
Cheers
Adam