From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9876 invoked by alias); 2 Jan 2008 21:36:27 -0000 Received: (qmail 9868 invoked by uid 22791); 2 Jan 2008 21:36:26 -0000 X-Spam-Check-By: sourceware.org Received: from hs-out-0708.google.com (HELO hs-out-2122.google.com) (64.233.178.249) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 02 Jan 2008 21:31:19 +0000 Received: by hs-out-2122.google.com with SMTP id 4so3905931hsl.8 for ; Wed, 02 Jan 2008 13:31:00 -0800 (PST) Received: by 10.142.114.15 with SMTP id m15mr4281784wfc.235.1199309458334; Wed, 02 Jan 2008 13:30:58 -0800 (PST) Received: by 10.142.199.17 with HTTP; Wed, 2 Jan 2008 13:30:58 -0800 (PST) Message-ID: Date: Fri, 04 Jan 2008 06:13:00 -0000 From: NightStrike To: "Ian Lance Taylor" Subject: Re: top-level configure options, --help Cc: gcc-help In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg00028.txt.bz2 On 02 Jan 2008 08:54:39 -0800, Ian Lance Taylor wrote: > NightStrike writes: > > > I noticed that --with-sysroot is not listed in --help for the top > > level configure, but --with-build-sysroot is. Is that on purpose? > > Should the former not be used at all in place of the latter? > > This is an unfortunate artifact of autoconf --help handling with > recursive configure scripts. You'll see both mentioned in the output > of gcc/configure --help. --with-build-sysroot needs to be handled at > the top level in order to pass down the --sysroot option when > compiling libraries; therefore, it appears in the top level --help > output. --with-sysroot does not need to be handled at the top level; > therefore, it does not appear in the top level --help output. If that's the case, there must be more options as well that are not present in top level's --help that really are options that the user would actually use. I would think that a simple AS_HELP_STRING macro in the top level configure would accomplish this. That, or a blank ARG_WITH macro.. something like: AC_ARG_WITH([sysroot], [AS_HELP_STRING([--with-sysroot], [Sets the sysroot])], [], []) You could list the option in the top level configure, but give it no action. This is a benefit to the user, so that the top level configure --help contains all the options that a user would use.