From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Why and not "config.h" ? Date: Wed, 28 Jul 2010 09:46:42 +0200 Message-ID: <87y6cwqc9p.fsf@telefonica.net> References: <87wrsgs5t3.fsf@telefonica.net> <87d3u8cc0s.GNU's_Not_Unix!%yavor@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1280303226 14710 80.91.229.12 (28 Jul 2010 07:47:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2010 07:47:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 28 09:47:02 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oe1Lx-0002dU-LZ for ged-emacs-devel@m.gmane.org; Wed, 28 Jul 2010 09:47:01 +0200 Original-Received: from localhost ([127.0.0.1]:53312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oe1Lw-0002t3-Od for ged-emacs-devel@m.gmane.org; Wed, 28 Jul 2010 03:47:00 -0400 Original-Received: from [140.186.70.92] (port=44335 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oe1Lq-0002rU-Py for emacs-devel@gnu.org; Wed, 28 Jul 2010 03:46:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oe1Lp-0002gZ-Qt for emacs-devel@gnu.org; Wed, 28 Jul 2010 03:46:54 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:45333) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oe1Lp-0002gF-K0 for emacs-devel@gnu.org; Wed, 28 Jul 2010 03:46:53 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oe1Ll-0002Yv-LS for emacs-devel@gnu.org; Wed, 28 Jul 2010 09:46:49 +0200 Original-Received: from 83.42.13.171 ([83.42.13.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Jul 2010 09:46:49 +0200 Original-Received: from ofv by 83.42.13.171 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Jul 2010 09:46:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 83.42.13.171 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:BlQxCmUFGxIxq7Xbs+2u6Dugt3k= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:127919 Archived-At: Yavor Doganov writes: >> Emacs sources use the idiom >> >> #include > > The Autoconf manual recommends this practice. Yes, for the very same reason Miles explained. Quoting from the manual: "With the appropriate -I option, you can use ‘#include ’. Actually, it's a good habit to use it, because in the rare case when the source directory contains another config.h, the build directory should be searched first." I'll emphasize the phrase "With the appropriate -I option." Otherwise having a config.h on the source directory in a out of tree build is asking for trouble.