From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: preprocessing Makefile Date: Sat, 21 Jul 2007 00:37:16 +0200 Message-ID: <878x9au2g3.fsf@ambire.localdomain> References: <873azkzp71.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184971077 14213 80.91.229.12 (20 Jul 2007 22:37:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2007 22:37:57 +0000 (UTC) Cc: alserkli@inbox.ru, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 21 00:37:56 2007 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.50) id 1IC16d-0008VA-OX for ged-emacs-devel@m.gmane.org; Sat, 21 Jul 2007 00:37:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IC16d-0006wo-2Y for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2007 18:37:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IC16Z-0006t3-Tu for emacs-devel@gnu.org; Fri, 20 Jul 2007 18:37:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IC16Y-0006qg-Ae for emacs-devel@gnu.org; Fri, 20 Jul 2007 18:37:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IC16Y-0006qP-2M for emacs-devel@gnu.org; Fri, 20 Jul 2007 18:37:46 -0400 Original-Received: from smtp-out3.libero.it ([212.52.84.43]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IC16W-0002J3-Q9; Fri, 20 Jul 2007 18:37:45 -0400 Original-Received: from localhost (172.31.0.50) by smtp-out3.libero.it (7.3.120) id 4688F31B01D65F70; Sat, 21 Jul 2007 00:37:43 +0200 X-Scanned: with antispam and antivirus automated system at libero.it Original-Received: from smtp-out4.libero.it ([172.31.0.40]) by localhost (asav-out9.libero.it [192.168.32.37]) (amavisd-new, port 10024) with ESMTP id bM9tkyJEn-h5; Sat, 21 Jul 2007 00:37:43 +0200 (CEST) Original-Received: from MailRelay10.libero.it (192.168.32.119) by smtp-out4.libero.it (7.3.120) id 4611FEBC0816D6BF; Sat, 21 Jul 2007 00:37:43 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FACbWoEaXFSCK/2dsb2JhbACBTA Original-Received: from ppp-138-32.21-151.libero.it (HELO ambire.localdomain) ([151.21.32.138]) by outrelay-b10.libero.it with ESMTP; 21 Jul 2007 00:37:43 +0200 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1IC164-0000PV-JK; Sat, 21 Jul 2007 00:37:16 +0200 In-Reply-To: (Richard Stallman's message of "Thu\, 19 Jul 2007 17\:21\:13 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 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:75201 Archived-At: () Richard Stallman () Thu, 19 Jul 2007 17:21:13 -0400 I don't know the autoconf features that would replace it. If they are equally powerful, then I don't mind if we switch to them. Can you explain how they work? How about emailing me (personally) the relevant documentation? ok, i'll do that as soon as i gather my thoughts. as for the OP's problem, the configure script includes the fragment: # Now get this: Some word that is part of the ${srcdir} directory name # or the ${configuration} value might, just might, happen to be an # identifier like `sun4' or `i386' or something, and be predefined by # the C preprocessor to some helpful value like 1, or maybe the empty # string. Needless to say consequent macro substitutions are less # than conducive to the makefile finding the correct directory. undefs="`echo $top_srcdir $configuration $canonical | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ `" which purports to avoid the s/linux/1/ problem by arranging to undefine (via -U) portions of the directory name (among other stuff). the bug is that the variable for the top srcdir is no longer top_srcdir, but ac_top_srcdir. to see if this diagnosis is correct, OP can change "$top_srcdir" on the line that begins undefs=... to be "$ac_top_srcdir" in the configure script directly (skipping the configure.in to configure generation step), then rerun the configuration. then let us know what results. i suspect `configuration' and `canonical' may likewise need to be updated, but i haven't checked those variables. thi